From 7e4ae75f404ce899eef0d05f99ff6879d7920aae Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:23:48 -0800 Subject: [PATCH] feat: [compute] Update Compute Engine API to revision 20240220 (#886) (#5100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Update Compute Engine API to revision 20240220 (#886) Source-Link: https://github.com/googleapis/googleapis/commit/0df0f51c86a9316e5bff871ec9ba79de1050b29c Source-Link: https://github.com/googleapis/googleapis-gen/commit/b0b8f147a77162bbc603cc1e04752a3621e12eb5 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImIwYjhmMTQ3YTc3MTYyYmJjNjAzY2MxZTA0NzUyYTM2MjFlMTJlYjUifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- packages/google-cloud-compute/README.md | 18 + .../google/cloud/compute/v1/compute.proto | 1208 +- .../google-cloud-compute/protos/protos.d.ts | 4438 +++- .../google-cloud-compute/protos/protos.js | 20244 ++++++++++++---- .../google-cloud-compute/protos/protos.json | 4000 ++- .../google-cloud-compute/samples/README.md | 324 + .../v1/accelerator_types.aggregated_list.js | 2 +- .../generated/v1/accelerator_types.list.js | 2 +- .../generated/v1/addresses.aggregated_list.js | 2 +- .../samples/generated/v1/addresses.list.js | 2 +- .../v1/autoscalers.aggregated_list.js | 2 +- .../samples/generated/v1/autoscalers.list.js | 2 +- .../generated/v1/backend_buckets.list.js | 2 +- .../v1/backend_services.aggregated_list.js | 2 +- .../generated/v1/backend_services.list.js | 2 +- .../v1/backend_services.list_usable.js | 2 +- .../v1/disk_types.aggregated_list.js | 2 +- .../samples/generated/v1/disk_types.list.js | 2 +- .../generated/v1/disks.aggregated_list.js | 2 +- .../samples/generated/v1/disks.list.js | 2 +- .../v1/external_vpn_gateways.list.js | 2 +- .../generated/v1/firewall_policies.list.js | 2 +- .../samples/generated/v1/firewalls.list.js | 2 +- .../v1/forwarding_rules.aggregated_list.js | 2 +- .../generated/v1/forwarding_rules.list.js | 2 +- .../generated/v1/global_addresses.list.js | 2 +- .../v1/global_forwarding_rules.list.js | 2 +- .../v1/global_network_endpoint_groups.list.js | 2 +- ..._endpoint_groups.list_network_endpoints.js | 2 +- .../v1/global_operations.aggregated_list.js | 2 +- .../generated/v1/global_operations.list.js | 2 +- .../v1/global_organization_operations.list.js | 2 +- .../global_public_delegated_prefixes.list.js | 2 +- .../v1/health_checks.aggregated_list.js | 2 +- .../generated/v1/health_checks.list.js | 2 +- .../samples/generated/v1/images.list.js | 2 +- ...instance_group_managers.aggregated_list.js | 2 +- .../v1/instance_group_managers.list.js | 2 +- .../v1/instance_group_managers.list_errors.js | 2 +- ...e_group_managers.list_managed_instances.js | 2 +- ...roup_managers.list_per_instance_configs.js | 2 +- .../v1/instance_groups.aggregated_list.js | 2 +- .../generated/v1/instance_groups.list.js | 2 +- .../v1/instance_groups.list_instances.js | 2 +- .../v1/instance_templates.aggregated_list.js | 2 +- .../generated/v1/instance_templates.list.js | 2 +- .../generated/v1/instances.aggregated_list.js | 2 +- .../samples/generated/v1/instances.list.js | 2 +- .../generated/v1/instances.list_referrers.js | 2 +- .../v1/instant_snapshots.aggregated_list.js | 91 + .../generated/v1/instant_snapshots.delete.js | 75 + .../generated/v1/instant_snapshots.get.js | 71 + .../v1/instant_snapshots.get_iam_policy.js | 75 + .../generated/v1/instant_snapshots.insert.js | 75 + .../generated/v1/instant_snapshots.list.js | 88 + .../v1/instant_snapshots.set_iam_policy.js | 76 + .../v1/instant_snapshots.set_labels.js | 80 + .../instant_snapshots.test_iam_permissions.js | 76 + ...nterconnect_attachments.aggregated_list.js | 2 +- .../v1/interconnect_attachments.list.js | 2 +- .../v1/interconnect_locations.list.js | 2 +- .../v1/interconnect_remote_locations.list.js | 2 +- .../generated/v1/interconnects.list.js | 2 +- .../samples/generated/v1/licenses.list.js | 2 +- .../generated/v1/machine_images.list.js | 2 +- .../v1/machine_types.aggregated_list.js | 2 +- .../generated/v1/machine_types.list.js | 2 +- .../v1/network_attachments.aggregated_list.js | 2 +- .../generated/v1/network_attachments.list.js | 2 +- ..._edge_security_services.aggregated_list.js | 2 +- ...network_endpoint_groups.aggregated_list.js | 2 +- .../v1/network_endpoint_groups.list.js | 2 +- ..._endpoint_groups.list_network_endpoints.js | 2 +- .../v1/network_firewall_policies.list.js | 2 +- .../samples/generated/v1/networks.list.js | 2 +- .../v1/networks.list_peering_routes.js | 2 +- .../v1/node_groups.aggregated_list.js | 2 +- .../samples/generated/v1/node_groups.list.js | 2 +- .../generated/v1/node_groups.list_nodes.js | 2 +- .../v1/node_templates.aggregated_list.js | 2 +- .../generated/v1/node_templates.list.js | 2 +- .../v1/node_types.aggregated_list.js | 2 +- .../samples/generated/v1/node_types.list.js | 2 +- .../v1/packet_mirrorings.aggregated_list.js | 2 +- .../generated/v1/packet_mirrorings.list.js | 2 +- .../v1/projects.get_xpn_resources.js | 2 +- .../generated/v1/projects.list_xpn_hosts.js | 2 +- .../v1/projects.set_cloud_armor_tier.js | 70 + .../v1/public_advertised_prefixes.list.js | 2 +- ...blic_delegated_prefixes.aggregated_list.js | 2 +- .../v1/public_delegated_prefixes.list.js | 2 +- .../generated/v1/region_autoscalers.list.js | 2 +- .../v1/region_backend_services.list.js | 2 +- .../v1/region_backend_services.list_usable.js | 2 +- .../v1/region_commitments.aggregated_list.js | 2 +- .../generated/v1/region_commitments.list.js | 2 +- .../generated/v1/region_disk_types.list.js | 2 +- .../samples/generated/v1/region_disks.list.js | 2 +- .../v1/region_health_check_services.list.js | 2 +- .../generated/v1/region_health_checks.list.js | 2 +- .../v1/region_instance_group_managers.list.js | 2 +- ...ion_instance_group_managers.list_errors.js | 2 +- ...e_group_managers.list_managed_instances.js | 2 +- ...roup_managers.list_per_instance_configs.js | 2 +- .../v1/region_instance_groups.list.js | 2 +- .../region_instance_groups.list_instances.js | 2 +- .../v1/region_instance_templates.list.js | 2 +- .../v1/region_instant_snapshots.delete.js | 75 + .../v1/region_instant_snapshots.get.js | 71 + ...region_instant_snapshots.get_iam_policy.js | 75 + .../v1/region_instant_snapshots.insert.js | 75 + .../v1/region_instant_snapshots.list.js | 88 + ...region_instant_snapshots.set_iam_policy.js | 76 + .../v1/region_instant_snapshots.set_labels.js | 80 + ..._instant_snapshots.test_iam_permissions.js | 76 + .../v1/region_network_endpoint_groups.list.js | 2 +- ..._endpoint_groups.list_network_endpoints.js | 2 +- .../region_network_firewall_policies.list.js | 2 +- .../v1/region_notification_endpoints.list.js | 2 +- .../generated/v1/region_operations.list.js | 2 +- .../v1/region_security_policies.list.js | 2 +- .../v1/region_ssl_certificates.list.js | 2 +- .../generated/v1/region_ssl_policies.list.js | 2 +- ...on_ssl_policies.list_available_features.js | 2 +- .../v1/region_target_http_proxies.list.js | 2 +- .../v1/region_target_https_proxies.list.js | 2 +- .../v1/region_target_tcp_proxies.list.js | 2 +- .../generated/v1/region_url_maps.list.js | 2 +- .../samples/generated/v1/region_zones.list.js | 2 +- .../samples/generated/v1/regions.list.js | 2 +- .../v1/reservations.aggregated_list.js | 2 +- .../samples/generated/v1/reservations.list.js | 2 +- .../v1/resource_policies.aggregated_list.js | 2 +- .../generated/v1/resource_policies.list.js | 2 +- .../generated/v1/routers.aggregated_list.js | 2 +- .../v1/routers.get_nat_mapping_info.js | 2 +- .../samples/generated/v1/routers.list.js | 2 +- .../samples/generated/v1/routes.list.js | 2 +- .../v1/security_policies.aggregated_list.js | 2 +- .../generated/v1/security_policies.list.js | 2 +- ...cies.list_preconfigured_expression_sets.js | 2 +- .../v1/service_attachments.aggregated_list.js | 2 +- .../generated/v1/service_attachments.list.js | 2 +- .../samples/generated/v1/snapshots.list.js | 2 +- ...ppet_metadata_google.cloud.compute.v1.json | 1054 +- .../v1/ssl_certificates.aggregated_list.js | 2 +- .../generated/v1/ssl_certificates.list.js | 2 +- .../v1/ssl_policies.aggregated_list.js | 2 +- .../samples/generated/v1/ssl_policies.list.js | 2 +- .../ssl_policies.list_available_features.js | 2 +- .../v1/subnetworks.aggregated_list.js | 2 +- .../samples/generated/v1/subnetworks.list.js | 2 +- .../generated/v1/subnetworks.list_usable.js | 2 +- .../generated/v1/target_grpc_proxies.list.js | 2 +- .../v1/target_http_proxies.aggregated_list.js | 2 +- .../generated/v1/target_http_proxies.list.js | 2 +- .../target_https_proxies.aggregated_list.js | 2 +- .../generated/v1/target_https_proxies.list.js | 2 +- .../v1/target_instances.aggregated_list.js | 2 +- .../generated/v1/target_instances.list.js | 2 +- .../v1/target_pools.aggregated_list.js | 2 +- .../samples/generated/v1/target_pools.list.js | 2 +- .../generated/v1/target_ssl_proxies.list.js | 2 +- .../v1/target_tcp_proxies.aggregated_list.js | 2 +- .../generated/v1/target_tcp_proxies.list.js | 2 +- .../v1/target_vpn_gateways.aggregated_list.js | 2 +- .../generated/v1/target_vpn_gateways.list.js | 2 +- .../generated/v1/url_maps.aggregated_list.js | 2 +- .../samples/generated/v1/url_maps.list.js | 2 +- .../v1/vpn_gateways.aggregated_list.js | 2 +- .../samples/generated/v1/vpn_gateways.list.js | 2 +- .../v1/vpn_tunnels.aggregated_list.js | 2 +- .../samples/generated/v1/vpn_tunnels.list.js | 2 +- .../generated/v1/zone_operations.list.js | 2 +- .../samples/generated/v1/zones.list.js | 2 +- packages/google-cloud-compute/src/index.ts | 8 + .../src/v1/accelerator_types_client.ts | 10 +- .../src/v1/addresses_client.ts | 10 +- .../src/v1/autoscalers_client.ts | 10 +- .../src/v1/backend_buckets_client.ts | 6 +- .../src/v1/backend_services_client.ts | 16 +- .../src/v1/disk_types_client.ts | 10 +- .../src/v1/disks_client.ts | 10 +- .../src/v1/external_vpn_gateways_client.ts | 6 +- .../src/v1/firewall_policies_client.ts | 6 +- .../src/v1/firewalls_client.ts | 6 +- .../src/v1/forwarding_rules_client.ts | 10 +- .../src/v1/gapic_metadata.json | 220 + .../src/v1/global_addresses_client.ts | 6 +- .../src/v1/global_forwarding_rules_client.ts | 6 +- .../global_network_endpoint_groups_client.ts | 12 +- .../src/v1/global_operations_client.ts | 10 +- .../global_organization_operations_client.ts | 6 +- ...global_public_delegated_prefixes_client.ts | 6 +- .../src/v1/health_checks_client.ts | 10 +- .../src/v1/images_client.ts | 6 +- packages/google-cloud-compute/src/v1/index.ts | 2 + .../src/v1/instance_group_managers_client.ts | 28 +- .../src/v1/instance_groups_client.ts | 16 +- .../src/v1/instance_templates_client.ts | 10 +- .../src/v1/instances_client.ts | 16 +- .../src/v1/instant_snapshots_client.ts | 1444 ++ .../v1/instant_snapshots_client_config.json | 62 + .../src/v1/instant_snapshots_proto_list.json | 3 + .../src/v1/interconnect_attachments_client.ts | 10 +- .../src/v1/interconnect_locations_client.ts | 6 +- .../interconnect_remote_locations_client.ts | 6 +- .../src/v1/interconnects_client.ts | 6 +- .../src/v1/licenses_client.ts | 6 +- .../src/v1/machine_images_client.ts | 6 +- .../src/v1/machine_types_client.ts | 10 +- .../src/v1/network_attachments_client.ts | 10 +- .../network_edge_security_services_client.ts | 4 +- .../src/v1/network_endpoint_groups_client.ts | 16 +- .../v1/network_firewall_policies_client.ts | 6 +- .../src/v1/networks_client.ts | 12 +- .../src/v1/node_groups_client.ts | 16 +- .../src/v1/node_templates_client.ts | 10 +- .../src/v1/node_types_client.ts | 10 +- .../src/v1/packet_mirrorings_client.ts | 10 +- .../src/v1/projects_client.ts | 132 +- .../src/v1/projects_client_config.json | 4 + .../v1/public_advertised_prefixes_client.ts | 6 +- .../v1/public_delegated_prefixes_client.ts | 10 +- .../src/v1/region_autoscalers_client.ts | 6 +- .../src/v1/region_backend_services_client.ts | 12 +- .../src/v1/region_commitments_client.ts | 10 +- .../src/v1/region_disk_types_client.ts | 6 +- .../src/v1/region_disks_client.ts | 6 +- .../v1/region_health_check_services_client.ts | 6 +- .../src/v1/region_health_checks_client.ts | 6 +- .../region_instance_group_managers_client.ts | 24 +- .../src/v1/region_instance_groups_client.ts | 12 +- .../v1/region_instance_templates_client.ts | 6 +- .../src/v1/region_instant_snapshots_client.ts | 1386 ++ ...egion_instant_snapshots_client_config.json | 58 + .../region_instant_snapshots_proto_list.json | 3 + .../region_network_endpoint_groups_client.ts | 12 +- ...region_network_firewall_policies_client.ts | 6 +- .../region_notification_endpoints_client.ts | 6 +- .../src/v1/region_operations_client.ts | 6 +- .../src/v1/region_security_policies_client.ts | 6 +- .../src/v1/region_ssl_certificates_client.ts | 6 +- .../src/v1/region_ssl_policies_client.ts | 8 +- .../v1/region_target_http_proxies_client.ts | 6 +- .../v1/region_target_https_proxies_client.ts | 6 +- .../v1/region_target_tcp_proxies_client.ts | 6 +- .../src/v1/region_url_maps_client.ts | 6 +- .../src/v1/region_zones_client.ts | 6 +- .../src/v1/regions_client.ts | 6 +- .../src/v1/reservations_client.ts | 10 +- .../src/v1/resource_policies_client.ts | 10 +- .../src/v1/routers_client.ts | 16 +- .../src/v1/routes_client.ts | 6 +- .../src/v1/security_policies_client.ts | 12 +- .../src/v1/service_attachments_client.ts | 10 +- .../src/v1/snapshots_client.ts | 6 +- .../src/v1/ssl_certificates_client.ts | 10 +- .../src/v1/ssl_policies_client.ts | 12 +- .../src/v1/subnetworks_client.ts | 16 +- .../src/v1/target_grpc_proxies_client.ts | 6 +- .../src/v1/target_http_proxies_client.ts | 10 +- .../src/v1/target_https_proxies_client.ts | 10 +- .../src/v1/target_instances_client.ts | 10 +- .../src/v1/target_pools_client.ts | 10 +- .../src/v1/target_ssl_proxies_client.ts | 6 +- .../src/v1/target_tcp_proxies_client.ts | 10 +- .../src/v1/target_vpn_gateways_client.ts | 10 +- .../src/v1/url_maps_client.ts | 10 +- .../src/v1/vpn_gateways_client.ts | 10 +- .../src/v1/vpn_tunnels_client.ts | 10 +- .../src/v1/zone_operations_client.ts | 6 +- .../src/v1/zones_client.ts | 6 +- .../system-test/fixtures/sample/src/index.js | 3 + .../system-test/fixtures/sample/src/index.ts | 16 + .../test/gapic_accelerator_types_v1.ts | 36 +- .../test/gapic_addresses_v1.ts | 36 +- .../test/gapic_addresses_v1small.ts | 36 +- .../test/gapic_autoscalers_v1.ts | 36 +- .../test/gapic_backend_buckets_v1.ts | 24 +- .../test/gapic_backend_services_v1.ts | 60 +- .../test/gapic_disk_types_v1.ts | 36 +- .../test/gapic_disks_v1.ts | 36 +- .../test/gapic_external_vpn_gateways_v1.ts | 24 +- .../test/gapic_firewalls_v1.ts | 24 +- .../test/gapic_forwarding_rules_v1.ts | 36 +- .../test/gapic_global_addresses_v1.ts | 24 +- .../test/gapic_global_forwarding_rules_v1.ts | 24 +- ...gapic_global_network_endpoint_groups_v1.ts | 48 +- .../test/gapic_global_operations_v1.ts | 36 +- ...pic_global_public_delegated_prefixes_v1.ts | 24 +- .../test/gapic_health_checks_v1.ts | 36 +- .../test/gapic_images_v1.ts | 24 +- .../test/gapic_instance_group_managers_v1.ts | 84 +- .../test/gapic_instance_groups_v1.ts | 60 +- .../test/gapic_instance_templates_v1.ts | 36 +- .../test/gapic_instances_v1.ts | 60 +- .../test/gapic_instant_snapshots_v1.ts | 1902 ++ .../test/gapic_interconnect_attachments_v1.ts | 36 +- .../test/gapic_interconnect_locations_v1.ts | 24 +- .../gapic_interconnect_remote_locations_v1.ts | 24 +- .../test/gapic_interconnects_v1.ts | 24 +- .../test/gapic_licenses_v1.ts | 24 +- .../test/gapic_machine_images_v1.ts | 24 +- .../test/gapic_machine_types_v1.ts | 36 +- .../test/gapic_network_attachments_v1.ts | 36 +- ...gapic_network_edge_security_services_v1.ts | 12 +- .../test/gapic_network_endpoint_groups_v1.ts | 60 +- .../gapic_network_firewall_policies_v1.ts | 24 +- .../test/gapic_networks_v1.ts | 48 +- .../test/gapic_node_groups_v1.ts | 60 +- .../test/gapic_node_templates_v1.ts | 36 +- .../test/gapic_node_types_v1.ts | 36 +- .../test/gapic_packet_mirrorings_v1.ts | 36 +- .../test/gapic_projects_v1.ts | 178 +- .../gapic_public_advertised_prefixes_v1.ts | 24 +- .../gapic_public_delegated_prefixes_v1.ts | 36 +- .../test/gapic_region_autoscalers_v1.ts | 24 +- .../test/gapic_region_backend_services_v1.ts | 48 +- .../test/gapic_region_commitments_v1.ts | 36 +- .../test/gapic_region_disk_types_v1.ts | 24 +- .../test/gapic_region_disks_v1.ts | 24 +- .../gapic_region_health_check_services_v1.ts | 24 +- .../test/gapic_region_health_checks_v1.ts | 24 +- ...gapic_region_instance_group_managers_v1.ts | 72 +- .../test/gapic_region_instance_groups_v1.ts | 48 +- .../gapic_region_instance_templates_v1.ts | 24 +- .../test/gapic_region_instant_snapshots_v1.ts | 1847 ++ ...gapic_region_network_endpoint_groups_v1.ts | 48 +- ...pic_region_network_firewall_policies_v1.ts | 24 +- .../gapic_region_notification_endpoints_v1.ts | 24 +- .../test/gapic_region_operations_v1.ts | 24 +- .../test/gapic_region_security_policies_v1.ts | 24 +- .../test/gapic_region_ssl_certificates_v1.ts | 24 +- .../test/gapic_region_ssl_policies_v1.ts | 24 +- .../gapic_region_target_http_proxies_v1.ts | 24 +- .../gapic_region_target_https_proxies_v1.ts | 24 +- .../gapic_region_target_tcp_proxies_v1.ts | 24 +- .../test/gapic_region_url_maps_v1.ts | 24 +- .../test/gapic_region_zones_v1.ts | 24 +- .../test/gapic_regions_v1.ts | 24 +- .../test/gapic_reservations_v1.ts | 36 +- .../test/gapic_resource_policies_v1.ts | 36 +- .../test/gapic_routers_v1.ts | 60 +- .../test/gapic_routes_v1.ts | 24 +- .../test/gapic_security_policies_v1.ts | 36 +- .../test/gapic_service_attachments_v1.ts | 36 +- .../test/gapic_snapshots_v1.ts | 24 +- .../test/gapic_ssl_certificates_v1.ts | 36 +- .../test/gapic_ssl_policies_v1.ts | 36 +- .../test/gapic_subnetworks_v1.ts | 60 +- .../test/gapic_target_grpc_proxies_v1.ts | 24 +- .../test/gapic_target_http_proxies_v1.ts | 36 +- .../test/gapic_target_https_proxies_v1.ts | 36 +- .../test/gapic_target_instances_v1.ts | 36 +- .../test/gapic_target_pools_v1.ts | 36 +- .../test/gapic_target_ssl_proxies_v1.ts | 24 +- .../test/gapic_target_tcp_proxies_v1.ts | 36 +- .../test/gapic_target_vpn_gateways_v1.ts | 36 +- .../test/gapic_url_maps_v1.ts | 36 +- .../test/gapic_vpn_gateways_v1.ts | 36 +- .../test/gapic_vpn_tunnels_v1.ts | 36 +- .../test/gapic_zone_operations_v1.ts | 24 +- .../test/gapic_zones_v1.ts | 24 +- 364 files changed, 36706 insertions(+), 7263 deletions(-) create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js create mode 100644 packages/google-cloud-compute/src/v1/instant_snapshots_client.ts create mode 100644 packages/google-cloud-compute/src/v1/instant_snapshots_client_config.json create mode 100644 packages/google-cloud-compute/src/v1/instant_snapshots_proto_list.json create mode 100644 packages/google-cloud-compute/src/v1/region_instant_snapshots_client.ts create mode 100644 packages/google-cloud-compute/src/v1/region_instant_snapshots_client_config.json create mode 100644 packages/google-cloud-compute/src/v1/region_instant_snapshots_proto_list.json create mode 100644 packages/google-cloud-compute/test/gapic_instant_snapshots_v1.ts create mode 100644 packages/google-cloud-compute/test/gapic_region_instant_snapshots_v1.ts diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 118cca4f92c..5fa7c8847a1 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -344,6 +344,15 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Instances.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instances.update_display_device.js,packages/google-cloud-compute/samples/README.md) | | Instances.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instances.update_network_interface.js,packages/google-cloud-compute/samples/README.md) | | Instances.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instances.update_shielded_instance_config.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js,packages/google-cloud-compute/samples/README.md) | +| Instant_snapshots.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js,packages/google-cloud-compute/samples/README.md) | | Interconnect_attachments.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js,packages/google-cloud-compute/samples/README.md) | | Interconnect_attachments.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.delete.js,packages/google-cloud-compute/samples/README.md) | | Interconnect_attachments.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.get.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.get.js,packages/google-cloud-compute/samples/README.md) | @@ -474,6 +483,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Projects.list_xpn_hosts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js,packages/google-cloud-compute/samples/README.md) | | Projects.move_disk | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.move_disk.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.move_disk.js,packages/google-cloud-compute/samples/README.md) | | Projects.move_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.move_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.move_instance.js,packages/google-cloud-compute/samples/README.md) | +| Projects.set_cloud_armor_tier | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js,packages/google-cloud-compute/samples/README.md) | | Projects.set_common_instance_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_common_instance_metadata.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.set_common_instance_metadata.js,packages/google-cloud-compute/samples/README.md) | | Projects.set_default_network_tier | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_default_network_tier.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.set_default_network_tier.js,packages/google-cloud-compute/samples/README.md) | | Projects.set_usage_export_bucket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_usage_export_bucket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.set_usage_export_bucket.js,packages/google-cloud-compute/samples/README.md) | @@ -573,6 +583,14 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Region_instance_templates.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js,packages/google-cloud-compute/samples/README.md) | | Region_instance_templates.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js,packages/google-cloud-compute/samples/README.md) | | Region_instances.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instances.bulk_insert.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.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) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js,packages/google-cloud-compute/samples/README.md) | +| Region_instant_snapshots.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js,packages/google-cloud-compute/samples/README.md) | | Region_network_endpoint_groups.attach_network_endpoints | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.attach_network_endpoints.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.attach_network_endpoints.js,packages/google-cloud-compute/samples/README.md) | | Region_network_endpoint_groups.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.delete.js,packages/google-cloud-compute/samples/README.md) | | Region_network_endpoint_groups.detach_network_endpoints | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.detach_network_endpoints.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.detach_network_endpoints.js,packages/google-cloud-compute/samples/README.md) | 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 b4cd73e3c39..44fc7c3b58f 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: 20240130 +// Source file revision: 20240220 // API name: compute // API version: v1 @@ -991,7 +991,7 @@ message AggregatedListAcceleratorTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1019,7 +1019,7 @@ message AggregatedListAddressesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1047,7 +1047,7 @@ message AggregatedListAutoscalersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1075,7 +1075,7 @@ message AggregatedListBackendServicesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1103,7 +1103,7 @@ message AggregatedListDiskTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1131,7 +1131,7 @@ message AggregatedListDisksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1159,7 +1159,7 @@ message AggregatedListForwardingRulesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1187,7 +1187,7 @@ message AggregatedListGlobalOperationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1215,7 +1215,7 @@ message AggregatedListHealthChecksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1243,7 +1243,7 @@ message AggregatedListInstanceGroupManagersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1271,7 +1271,7 @@ message AggregatedListInstanceGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1299,7 +1299,7 @@ message AggregatedListInstanceTemplatesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1327,7 +1327,35 @@ message AggregatedListInstancesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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 InstantSnapshots.AggregatedList. See the method description for details. +message AggregatedListInstantSnapshotsRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + 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; + + // 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 Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. @@ -1355,7 +1383,7 @@ message AggregatedListInterconnectAttachmentsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1383,7 +1411,7 @@ message AggregatedListMachineTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1411,7 +1439,7 @@ message AggregatedListNetworkAttachmentsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1439,7 +1467,7 @@ message AggregatedListNetworkEdgeSecurityServicesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1467,7 +1495,7 @@ message AggregatedListNetworkEndpointGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1495,7 +1523,7 @@ message AggregatedListNodeGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1523,7 +1551,7 @@ message AggregatedListNodeTemplatesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1551,7 +1579,7 @@ message AggregatedListNodeTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1579,7 +1607,7 @@ message AggregatedListPacketMirroringsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1607,7 +1635,7 @@ message AggregatedListPublicDelegatedPrefixesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1635,7 +1663,7 @@ message AggregatedListRegionCommitmentsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1663,7 +1691,7 @@ message AggregatedListReservationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1691,7 +1719,7 @@ message AggregatedListResourcePoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1719,7 +1747,7 @@ message AggregatedListRoutersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1747,7 +1775,7 @@ message AggregatedListSecurityPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1775,7 +1803,7 @@ message AggregatedListServiceAttachmentsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1803,7 +1831,7 @@ message AggregatedListSslCertificatesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1831,7 +1859,7 @@ message AggregatedListSslPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1859,7 +1887,7 @@ message AggregatedListSubnetworksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1887,7 +1915,7 @@ message AggregatedListTargetHttpProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1915,7 +1943,7 @@ message AggregatedListTargetHttpsProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1943,7 +1971,7 @@ message AggregatedListTargetInstancesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1971,7 +1999,7 @@ message AggregatedListTargetPoolsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -1999,7 +2027,7 @@ message AggregatedListTargetTcpProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -2027,7 +2055,7 @@ message AggregatedListTargetVpnGatewaysRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -2055,7 +2083,7 @@ message AggregatedListUrlMapsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -2083,7 +2111,7 @@ message AggregatedListVpnGatewaysRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -2111,7 +2139,7 @@ message AggregatedListVpnTunnelsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -2648,7 +2676,7 @@ message AttachedDiskInitializeParams { // Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. optional int64 provisioned_iops = 186769108; - // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be between 1 and 7,124. + // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must greater than or equal to 1. optional int64 provisioned_throughput = 526524181; // Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone. @@ -3117,6 +3145,22 @@ message Backend { } + // This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default + enum Preference { + // A value indicating that the enum field is not set. + UNDEFINED_PREFERENCE = 0; + + // No preference. + DEFAULT = 115302945; + + // If preference is unspecified, we set it to the DEFAULT value + PREFERENCE_UNSPECIFIED = 496219571; + + // Traffic will be sent to this backend first. + PREFERRED = 418847841; + + } + // Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. // Check the BalancingMode enum for the list of possible values. optional string balancing_mode = 430286217; @@ -3154,6 +3198,10 @@ message Backend { // Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. optional float max_utilization = 148192199; + // This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default + // Check the Preference enum for the list of possible values. + optional string preference = 150781147; + } // Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets. @@ -3560,6 +3608,9 @@ message BackendService { // URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty. repeated string service_bindings = 133581016; + // URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. + optional string service_lb_policy = 94848785; + // Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). // Check the SessionAffinity enum for the list of possible values. optional string session_affinity = 463888561; @@ -5384,6 +5435,28 @@ message DeleteInstancesRegionInstanceGroupManagerRequest { } +// A request message for InstantSnapshots.Delete. See the method description for details. +message DeleteInstantSnapshotRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot = 391638626 [(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 InterconnectAttachments.Delete. See the method description for details. message DeleteInterconnectAttachmentRequest { // Name of the interconnect attachment to delete. @@ -5879,6 +5952,28 @@ message DeleteRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshots.Delete. See the method description for details. +message DeleteRegionInstantSnapshotRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot = 391638626 [(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 RegionNetworkEndpointGroups.Delete. See the method description for details. message DeleteRegionNetworkEndpointGroupRequest { // The name of the network endpoint group to delete. It should comply with RFC1035. @@ -6861,7 +6956,7 @@ message Disk { // Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. optional int64 provisioned_iops = 186769108; - // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be between 1 and 7,124. + // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be greater than or equal to 1. optional int64 provisioned_throughput = 526524181; // [Output Only] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. @@ -6909,6 +7004,12 @@ message Disk { // [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. optional string source_image_id = 55328291; + // The source instant snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot + optional string source_instant_snapshot = 219202054; + + // [Output Only] The unique ID of the instant snapshot used to create this disk. This value identifies the exact instant snapshot that was used to create this persistent disk. For example, if you created the persistent disk from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact version of the instant snapshot that was used. + optional string source_instant_snapshot_id = 287582708; + // The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project /global/snapshots/snapshot - projects/project/global/snapshots/snapshot - global/snapshots/snapshot optional string source_snapshot = 126061928; @@ -7536,6 +7637,9 @@ message ExternalVpnGatewayInterface { // IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. optional string ip_address = 406272220; + // IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + optional string ipv6_address = 341563804; + } // Response to the list request, and contains a list of externalVpnGateways. @@ -8719,6 +8823,22 @@ message GetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshots.GetIamPolicy. See the method description for details. +message GetIamPolicyInstantSnapshotRequest { + // 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 Licenses.GetIamPolicy. See the method description for details. message GetIamPolicyLicenseRequest { // Requested IAM Policy version. @@ -8838,6 +8958,22 @@ message GetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshots.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionInstantSnapshotRequest { + // 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 RegionNetworkFirewallPolicies.GetIamPolicy. See the method description for details. message GetIamPolicyRegionNetworkFirewallPolicyRequest { // Requested IAM Policy version. @@ -9003,6 +9139,19 @@ message GetInstanceTemplateRequest { } +// A request message for InstantSnapshots.Get. See the method description for details. +message GetInstantSnapshotRequest { + // Name of the InstantSnapshot resource to return. + string instant_snapshot = 391638626 [(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 InterconnectAttachments.Get. See the method description for details. message GetInterconnectAttachmentRequest { // Name of the interconnect attachment to return. @@ -9138,7 +9287,7 @@ message GetNatMappingInfoRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // Name of the Router resource to query for Nat Mapping information of VM endpoints. @@ -9417,6 +9566,19 @@ message GetRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshots.Get. See the method description for details. +message GetRegionInstantSnapshotRequest { + // Name of the InstantSnapshot resource to return. + string instant_snapshot = 391638626 [(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 RegionNetworkEndpointGroups.Get. See the method description for details. message GetRegionNetworkEndpointGroupRequest { // The name of the network endpoint group. It should comply with RFC1035. @@ -9983,7 +10145,7 @@ message GetXpnResourcesProjectsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -11474,6 +11636,28 @@ message InsertInstanceTemplateRequest { } +// A request message for InstantSnapshots.Insert. See the method description for details. +message InsertInstantSnapshotRequest { + // 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" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InterconnectAttachments.Insert. See the method description for details. message InsertInterconnectAttachmentRequest { // The body resource for this request @@ -11937,6 +12121,28 @@ message InsertRegionInstanceTemplateRequest { } +// 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 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 RegionNetworkEndpointGroups.Insert. See the method description for details. message InsertRegionNetworkEndpointGroupRequest { // The body resource for this request @@ -13090,6 +13296,19 @@ message InstanceGroupManagerAutoHealingPolicy { // message InstanceGroupManagerInstanceLifecyclePolicy { + // The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. + enum DefaultActionOnFailure { + // A value indicating that the enum field is not set. + UNDEFINED_DEFAULT_ACTION_ON_FAILURE = 0; + + // MIG does not repair a failed or an unhealthy VM. + DO_NOTHING = 451307513; + + // (Default) MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. + REPAIR = 266277773; + + } + // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. enum ForceUpdateOnRepair { // A value indicating that the enum field is not set. @@ -13101,6 +13320,10 @@ message InstanceGroupManagerInstanceLifecyclePolicy { } + // The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. + // Check the DefaultActionOnFailure enum for the list of possible values. + optional string default_action_on_failure = 61383253; + // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. // Check the ForceUpdateOnRepair enum for the list of possible values. optional string force_update_on_repair = 356302027; @@ -14059,6 +14282,168 @@ message InstancesStartWithEncryptionKeyRequest { } +// Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly.. +message InstantSnapshot { + // [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + enum Architecture { + // A value indicating that the enum field is not set. + UNDEFINED_ARCHITECTURE = 0; + + // Default value indicating Architecture is not set. + ARCHITECTURE_UNSPECIFIED = 394750507; + + // Machines with architecture ARM64 + ARM64 = 62547450; + + // Machines with architecture X86_64 + X86_64 = 425300551; + + } + + // [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + // InstantSnapshot creation is in progress. + CREATING = 455564985; + + // InstantSnapshot is currently being deleted. + DELETING = 528602024; + + // InstantSnapshot creation failed. + FAILED = 455706685; + + // InstantSnapshot has been created successfully. + READY = 77848963; + + } + + // [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + + // [Output Only] Creation timestamp in RFC3339 text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you create the resource. + optional string description = 422937596; + + // [Output Only] Size of the source disk, specified in GB. + optional int64 disk_size_gb = 316263735; + + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + optional uint64 id = 3355; + + // [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources. + optional string kind = 3292052; + + // A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + optional string label_fingerprint = 178124825; + + // Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty. + map labels = 500195327; + + // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + optional string name = 3373707; + + // [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + optional string region = 138946292; + + // [Output Only] Status information for the instant snapshot resource. + optional InstantSnapshotResourceStatus resource_status = 249429315; + + // Output only. Reserved for future use. + optional bool satisfies_pzi = 480964257; + + // [Output Only] Reserved for future use. + optional bool satisfies_pzs = 480964267; + + // [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk + optional string source_disk = 451753793; + + // [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name. + optional string source_disk_id = 454190809; + + // [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + optional string zone = 3744684; + +} + +// +message InstantSnapshotAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstantSnapshotsScopedList resources. + map items = 100526016; + + // [Output Only] Type of resource. Always compute#instantSnapshotAggregatedList for aggregated lists of instantSnapshots. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// Contains a list of InstantSnapshot resources. +message InstantSnapshotList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstantSnapshot resources. + repeated InstantSnapshot items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message InstantSnapshotResourceStatus { + // [Output Only] The storage size of this instant snapshot. + optional int64 storage_size_bytes = 387548913; + +} + +// +message InstantSnapshotsScopedList { + // [Output Only] A list of instantSnapshots contained in this scope. + repeated InstantSnapshot instant_snapshots = 329637457; + + // [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty. + optional Warning warning = 50704284; + +} + // HttpRouteRuleMatch criteria for field values that must stay within the specified integer range. message Int64RangeMatch { // The end of the range (exclusive) in signed long integer format. @@ -15521,7 +15906,7 @@ message ListAcceleratorTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -15549,7 +15934,7 @@ message ListAddressesRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15578,7 +15963,7 @@ message ListAutoscalersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -15606,7 +15991,7 @@ message ListAvailableFeaturesRegionSslPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15628,7 +16013,7 @@ message ListAvailableFeaturesSslPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15650,7 +16035,7 @@ message ListBackendBucketsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15672,7 +16057,7 @@ message ListBackendServicesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15694,7 +16079,7 @@ message ListDiskTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -15719,7 +16104,7 @@ message ListDisksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -15747,7 +16132,7 @@ message ListErrorsInstanceGroupManagersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the managed instance group is located. It should conform to RFC1035. @@ -15778,7 +16163,7 @@ message ListErrorsRegionInstanceGroupManagersRequest { // Name of the region scoping this request. This should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15800,7 +16185,7 @@ message ListExternalVpnGatewaysRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15822,7 +16207,7 @@ message ListFirewallPoliciesRequest { // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15844,7 +16229,7 @@ message ListFirewallsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15869,7 +16254,7 @@ message ListForwardingRulesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15891,7 +16276,7 @@ message ListGlobalAddressesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15913,7 +16298,7 @@ message ListGlobalForwardingRulesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15935,7 +16320,7 @@ message ListGlobalNetworkEndpointGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15957,7 +16342,7 @@ message ListGlobalOperationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -15979,7 +16364,7 @@ message ListGlobalOrganizationOperationsRequest { // Parent ID for this request. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16001,7 +16386,7 @@ message ListGlobalPublicDelegatedPrefixesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16023,7 +16408,7 @@ message ListHealthChecksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16045,7 +16430,7 @@ message ListImagesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16067,7 +16452,7 @@ message ListInstanceGroupManagersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the managed instance group is located. @@ -16092,7 +16477,7 @@ message ListInstanceGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the instance group is located. @@ -16117,7 +16502,7 @@ message ListInstanceTemplatesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16145,7 +16530,7 @@ message ListInstancesInstanceGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the instance group is located. @@ -16179,7 +16564,7 @@ message ListInstancesRegionInstanceGroupsRequest { // The body resource for this request RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16201,7 +16586,32 @@ message ListInstancesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for InstantSnapshots.List. See the method description for details. +message ListInstantSnapshotsRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + 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 name of the zone for this request. @@ -16229,7 +16639,7 @@ message ListInterconnectAttachmentsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16251,7 +16661,7 @@ message ListInterconnectLocationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16273,7 +16683,7 @@ message ListInterconnectRemoteLocationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16295,7 +16705,7 @@ message ListInterconnectsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16317,7 +16727,7 @@ message ListLicensesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16339,7 +16749,7 @@ message ListMachineImagesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16361,7 +16771,7 @@ message ListMachineTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -16389,7 +16799,7 @@ message ListManagedInstancesInstanceGroupManagersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the managed instance group is located. @@ -16420,7 +16830,7 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16445,7 +16855,7 @@ message ListNetworkAttachmentsRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16467,7 +16877,7 @@ message ListNetworkEndpointGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the network endpoint group is located. It should comply with RFC1035. @@ -16495,7 +16905,7 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16523,7 +16933,7 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the network endpoint group is located. It should comply with RFC1035. @@ -16554,7 +16964,7 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // The name of the region where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16576,7 +16986,7 @@ message ListNetworkFirewallPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16598,7 +17008,7 @@ message ListNetworksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16620,7 +17030,7 @@ message ListNodeGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -16648,7 +17058,7 @@ message ListNodeTemplatesRequest { // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16670,7 +17080,7 @@ message ListNodeTypesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -16698,7 +17108,7 @@ message ListNodesNodeGroupsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -16726,7 +17136,7 @@ message ListPacketMirroringsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16774,7 +17184,7 @@ message ListPeeringRoutesNetworksRequest { // The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. optional string region = 138946292; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16799,7 +17209,7 @@ message ListPerInstanceConfigsInstanceGroupManagersRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // The name of the zone where the managed instance group is located. It should conform to RFC1035. @@ -16830,7 +17240,7 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // Name of the region scoping this request, should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16852,7 +17262,7 @@ message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16874,7 +17284,7 @@ message ListPublicAdvertisedPrefixesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16899,7 +17309,7 @@ message ListPublicDelegatedPrefixesRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16924,7 +17334,7 @@ message ListReferrersInstancesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -16952,7 +17362,7 @@ message ListRegionAutoscalersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -16977,7 +17387,7 @@ message ListRegionBackendServicesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17002,7 +17412,7 @@ message ListRegionCommitmentsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17027,7 +17437,7 @@ message ListRegionDiskTypesRequest { // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17052,7 +17462,7 @@ message ListRegionDisksRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17077,7 +17487,7 @@ message ListRegionHealthCheckServicesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17102,7 +17512,7 @@ message ListRegionHealthChecksRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17127,7 +17537,7 @@ message ListRegionInstanceGroupManagersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17152,7 +17562,7 @@ message ListRegionInstanceGroupsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17177,7 +17587,32 @@ message ListRegionInstanceTemplatesRequest { // The name of the regions for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for 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 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; } @@ -17202,7 +17637,7 @@ message ListRegionNetworkEndpointGroupsRequest { // The name of the region where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17227,7 +17662,7 @@ message ListRegionNetworkFirewallPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17252,7 +17687,7 @@ message ListRegionNotificationEndpointsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17277,7 +17712,7 @@ message ListRegionOperationsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17302,7 +17737,7 @@ message ListRegionSecurityPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17327,7 +17762,7 @@ message ListRegionSslCertificatesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17352,7 +17787,7 @@ message ListRegionSslPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17377,7 +17812,7 @@ message ListRegionTargetHttpProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17402,7 +17837,7 @@ message ListRegionTargetHttpsProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17427,7 +17862,7 @@ message ListRegionTargetTcpProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17452,7 +17887,7 @@ message ListRegionUrlMapsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17477,7 +17912,7 @@ message ListRegionZonesRequest { // Region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17499,7 +17934,7 @@ message ListRegionsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17521,7 +17956,7 @@ message ListReservationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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. @@ -17549,7 +17984,7 @@ message ListResourcePoliciesRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17574,7 +18009,7 @@ message ListRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17596,7 +18031,7 @@ message ListRoutesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17618,7 +18053,7 @@ message ListSecurityPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17643,7 +18078,7 @@ message ListServiceAttachmentsRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17665,7 +18100,7 @@ message ListSnapshotsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17687,7 +18122,7 @@ message ListSslCertificatesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17709,7 +18144,7 @@ message ListSslPoliciesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17734,7 +18169,7 @@ message ListSubnetworksRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17756,7 +18191,7 @@ message ListTargetGrpcProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17778,7 +18213,7 @@ message ListTargetHttpProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17800,7 +18235,7 @@ message ListTargetHttpsProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17822,7 +18257,7 @@ message ListTargetInstancesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // Name of the zone scoping this request. @@ -17850,7 +18285,7 @@ message ListTargetPoolsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17872,7 +18307,7 @@ message ListTargetSslProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17894,7 +18329,7 @@ message ListTargetTcpProxiesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17919,7 +18354,7 @@ message ListTargetVpnGatewaysRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17941,7 +18376,7 @@ message ListUrlMapsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17963,7 +18398,7 @@ message ListUsableBackendServicesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -17988,7 +18423,7 @@ message ListUsableRegionBackendServicesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -18010,7 +18445,7 @@ message ListUsableSubnetworksRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -18035,7 +18470,7 @@ message ListVpnGatewaysRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -18060,7 +18495,7 @@ message ListVpnTunnelsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -18085,7 +18520,7 @@ message ListXpnHostsProjectsRequest { // The body resource for this request ProjectsListXpnHostsRequest projects_list_xpn_hosts_request_resource = 238266391 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -18107,7 +18542,7 @@ message ListZoneOperationsRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. optional bool return_partial_success = 517198390; // Name of the zone for request. @@ -18132,7 +18567,7 @@ message ListZonesRequest { // 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. + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial 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; } @@ -22222,6 +22657,22 @@ message PreviewRouterRequest { // Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy. message Project { + // [Output Only] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + enum CloudArmorTier { + // A value indicating that the enum field is not set. + UNDEFINED_CLOUD_ARMOR_TIER = 0; + + // Enterprise tier protection billed annually. + CA_ENTERPRISE_ANNUAL = 219921116; + + // Enterprise tier protection billed monthly. + CA_ENTERPRISE_PAYGO = 453530323; + + // Standard protection. + CA_STANDARD = 13156734; + + } + // This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. enum DefaultNetworkTier { // A value indicating that the enum field is not set. @@ -22267,6 +22718,10 @@ message Project { } + // [Output Only] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + // Check the CloudArmorTier enum for the list of possible values. + optional string cloud_armor_tier = 4427052; + // Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. optional Metadata common_instance_metadata = 185794117; @@ -22348,6 +22803,30 @@ message ProjectsListXpnHostsRequest { } +// +message ProjectsSetCloudArmorTierRequest { + // Managed protection tier to be set. + enum CloudArmorTier { + // A value indicating that the enum field is not set. + UNDEFINED_CLOUD_ARMOR_TIER = 0; + + // Enterprise tier protection billed annually. + CA_ENTERPRISE_ANNUAL = 219921116; + + // Enterprise tier protection billed monthly. + CA_ENTERPRISE_PAYGO = 453530323; + + // Standard protection. + CA_STANDARD = 13156734; + + } + + // Managed protection tier to be set. + // Check the CloudArmorTier enum for the list of possible values. + optional string cloud_armor_tier = 4427052; + +} + // message ProjectsSetDefaultNetworkTierRequest { // Default network tier to be set. @@ -27023,6 +27502,22 @@ message SetCertificateMapTargetSslProxyRequest { } +// A request message for Projects.SetCloudArmorTier. See the method description for details. +message SetCloudArmorTierProjectRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The body resource for this request + ProjectsSetCloudArmorTierRequest projects_set_cloud_armor_tier_request_resource = 77053391 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // message SetCommonInstanceMetadataOperationMetadata { // [Output Only] The client operation id. @@ -27285,6 +27780,22 @@ message SetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshots.SetIamPolicy. See the method description for details. +message SetIamPolicyInstantSnapshotRequest { + // 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 Licenses.SetIamPolicy. See the method description for details. message SetIamPolicyLicenseRequest { // The body resource for this request @@ -27404,6 +27915,22 @@ message SetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshots.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionInstantSnapshotRequest { + // 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 RegionNetworkFirewallPolicies.SetIamPolicy. See the method description for details. message SetIamPolicyRegionNetworkFirewallPolicyRequest { // Project ID for this request. @@ -27711,6 +28238,31 @@ message SetLabelsInstanceRequest { } +// A request message for InstantSnapshots.SetLabels. See the method description for details. +message SetLabelsInstantSnapshotRequest { + // 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 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, + (google.cloud.operation_request_field) = "zone" + ]; + + // The body resource for this request + ZoneSetLabelsRequest zone_set_labels_request_resource = 364950798 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InterconnectAttachments.SetLabels. See the method description for details. message SetLabelsInterconnectAttachmentRequest { // Project ID for this request. @@ -27777,6 +28329,31 @@ message SetLabelsRegionDiskRequest { } +// A request message for RegionInstantSnapshots.SetLabels. See the method description for details. +message SetLabelsRegionInstantSnapshotRequest { + // 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 @@ -28969,6 +29546,15 @@ message Snapshot { // [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. optional string source_disk_id = 454190809; + // The source instant snapshot used to create this snapshot. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot + optional string source_instant_snapshot = 219202054; + + // Customer provided encryption key when creating Snapshot from Instant Snapshot. + optional CustomerEncryptionKey source_instant_snapshot_encryption_key = 436536060; + + // [Output Only] The unique ID of the instant snapshot used to create this snapshot. This value identifies the exact instant snapshot that was used to create this persistent disk. For example, if you created the persistent disk from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact instant snapshot that was used. + optional string source_instant_snapshot_id = 287582708; + // [Output Only] URL of the resource policy which created this scheduled snapshot. optional string source_snapshot_schedule_policy = 235756291; @@ -31270,6 +31856,22 @@ message TestIamPermissionsInstanceTemplateRequest { } +// A request message for InstantSnapshots.TestIamPermissions. See the method description for details. +message TestIamPermissionsInstantSnapshotRequest { + // 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 LicenseCodes.TestIamPermissions. See the method description for details. message TestIamPermissionsLicenseCodeRequest { // Project ID for this request. @@ -31434,6 +32036,22 @@ message TestIamPermissionsRegionDiskRequest { } +// A request message for RegionInstantSnapshots.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionInstantSnapshotRequest { + // 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 RegionNetworkFirewallPolicies.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionNetworkFirewallPolicyRequest { // Project ID for this request. @@ -32678,6 +33296,19 @@ message VmEndpointNatMappingsList { // Represents a HA VPN gateway. HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies . message VpnGateway { + // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used. + enum GatewayIpVersion { + // A value indicating that the enum field is not set. + UNDEFINED_GATEWAY_IP_VERSION = 0; + + // Every HA-VPN gateway interface is configured with an IPv4 address. + IPV4 = 2254341; + + // Every HA-VPN gateway interface is configured with an IPv6 address. + IPV6 = 2254343; + + } + // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. enum StackType { // A value indicating that the enum field is not set. @@ -32697,6 +33328,10 @@ message VpnGateway { // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; + // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used. + // Check the GatewayIpVersion enum for the list of possible values. + optional string gateway_ip_version = 65074843; + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; @@ -32858,6 +33493,9 @@ message VpnGatewayVpnGatewayInterface { // [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address. optional string ip_address = 406272220; + // [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + optional string ipv6_address = 341563804; + } // @@ -33527,7 +34165,7 @@ service AcceleratorTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of accelerator types. + // Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAcceleratorTypesRequest) returns (AcceleratorTypeAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/acceleratorTypes" @@ -33562,7 +34200,7 @@ service Addresses { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of addresses. + // Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAddressesRequest) returns (AddressAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/addresses" @@ -33636,7 +34274,7 @@ service Autoscalers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of autoscalers. + // Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAutoscalersRequest) returns (AutoscalerAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/autoscalers" @@ -33841,7 +34479,7 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of all BackendService resources, regional and global, available to the specified project. + // Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListBackendServicesRequest) returns (BackendServiceAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/backendServices" @@ -33988,7 +34626,7 @@ service DiskTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of disk types. + // Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListDiskTypesRequest) returns (DiskTypeAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/diskTypes" @@ -34033,7 +34671,7 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of persistent disks. + // Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListDisksRequest) returns (DiskAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/disks" @@ -34505,7 +35143,7 @@ service ForwardingRules { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of forwarding rules. + // Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListForwardingRulesRequest) returns (ForwardingRuleAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/forwardingRules" @@ -34805,7 +35443,7 @@ service GlobalOperations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of all operations. + // Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListGlobalOperationsRequest) returns (OperationAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/operations" @@ -34949,7 +35587,7 @@ service HealthChecks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. + // Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListHealthChecksRequest) returns (HealthChecksAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/healthChecks" @@ -35163,7 +35801,7 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of managed instance groups and groups them by zone. + // Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceGroupManagersRequest) returns (InstanceGroupManagerAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/instanceGroupManagers" @@ -35360,7 +35998,7 @@ service InstanceGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of instance groups and sorts them by zone. + // Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceGroupsRequest) returns (InstanceGroupAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/instanceGroups" @@ -35443,7 +36081,7 @@ service InstanceTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. + // Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceTemplatesRequest) returns (InstanceTemplateAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/instanceTemplates" @@ -35543,7 +36181,7 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. + // Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstancesRequest) returns (InstanceAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/instances" @@ -35969,6 +36607,96 @@ service Instances { } +// The InstantSnapshots API. +service InstantSnapshots { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListInstantSnapshotsRequest) returns (InstantSnapshotAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/instantSnapshots" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + rpc Delete(DeleteInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Returns the specified InstantSnapshot resource in the specified zone. + rpc Get(GetInstantSnapshotRequest) returns (InstantSnapshot) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot"; + } + + // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + rpc GetIamPolicy(GetIamPolicyInstantSnapshotRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource"; + } + + // Creates an instant snapshot in the specified zone. + rpc Insert(InsertInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Retrieves the list of InstantSnapshot resources contained within the specified zone. + rpc List(ListInstantSnapshotsRequest) returns (InstantSnapshotList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Sets the access control policy on the specified resource. Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyInstantSnapshotRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_policy_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; + } + + // Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation. + rpc SetLabels(SetLabelsInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "zone_set_labels_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels" + }; + option (google.api.method_signature) = "project,zone,resource,zone_set_labels_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsInstantSnapshotRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; + } + +} + // The InterconnectAttachments API. service InterconnectAttachments { option (google.api.default_host) = @@ -35978,7 +36706,7 @@ service InterconnectAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of interconnect attachments. + // Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInterconnectAttachmentsRequest) returns (InterconnectAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/interconnectAttachments" @@ -36364,7 +37092,7 @@ service MachineTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of machine types. + // Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListMachineTypesRequest) returns (MachineTypeAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/machineTypes" @@ -36399,7 +37127,7 @@ service NetworkAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. + // Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkAttachmentsRequest) returns (NetworkAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/networkAttachments" @@ -36489,7 +37217,7 @@ service NetworkEdgeSecurityServices { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. + // Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkEdgeSecurityServicesRequest) returns (NetworkEdgeSecurityServiceAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/networkEdgeSecurityServices" @@ -36545,7 +37273,7 @@ service NetworkEndpointGroups { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of network endpoint groups and sorts them by zone. + // Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkEndpointGroupsRequest) returns (NetworkEndpointGroupAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/networkEndpointGroups" @@ -36913,7 +37641,7 @@ service NodeGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. + // Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeGroupsRequest) returns (NodeGroupAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/nodeGroups" @@ -37041,7 +37769,7 @@ service NodeTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of node templates. + // Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeTemplatesRequest) returns (NodeTemplateAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/nodeTemplates" @@ -37122,7 +37850,7 @@ service NodeTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of node types. + // Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeTypesRequest) returns (NodeTypeAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/nodeTypes" @@ -37157,7 +37885,7 @@ service PacketMirrorings { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of packetMirrorings. + // Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListPacketMirroringsRequest) returns (PacketMirroringAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/packetMirrorings" @@ -37321,6 +38049,16 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } + // Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information. + rpc SetCloudArmorTier(SetCloudArmorTierProjectRequest) returns (Operation) { + option (google.api.http) = { + body: "projects_set_cloud_armor_tier_request_resource" + post: "/compute/v1/projects/{project}/setCloudArmorTier" + }; + option (google.api.method_signature) = "project,projects_set_cloud_armor_tier_request_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + // Sets metadata common to all instances within the specified project using the data included in the request. rpc SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest) returns (Operation) { option (google.api.http) = { @@ -37436,7 +38174,7 @@ service PublicDelegatedPrefixes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + // Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListPublicDelegatedPrefixesRequest) returns (PublicDelegatedPrefixAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/publicDelegatedPrefixes" @@ -37703,7 +38441,7 @@ service RegionCommitments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of commitments by region. + // Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRegionCommitmentsRequest) returns (CommitmentAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/commitments" @@ -38372,6 +39110,88 @@ service RegionInstances { } +// The RegionInstantSnapshots API. +service RegionInstantSnapshots { + 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 InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + rpc Delete(DeleteRegionInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified InstantSnapshot resource in the specified region. + rpc Get(GetRegionInstantSnapshotRequest) returns (InstantSnapshot) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot"; + } + + // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionInstantSnapshotRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // Creates an instant snapshot in the specified region. + rpc Insert(InsertRegionInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves the list of InstantSnapshot resources contained within the specified region. + rpc List(ListRegionInstantSnapshotsRequest) returns (InstantSnapshotList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionInstantSnapshotRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation. + rpc SetLabels(SetLabelsRegionInstantSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_set_labels_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{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(TestIamPermissionsRegionInstantSnapshotRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionNetworkEndpointGroups API. service RegionNetworkEndpointGroups { option (google.api.default_host) = @@ -39212,7 +40032,7 @@ service Reservations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of reservations. + // Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListReservationsRequest) returns (ReservationAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/reservations" @@ -39312,7 +40132,7 @@ service ResourcePolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of resource policies. + // Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListResourcePoliciesRequest) returns (ResourcePolicyAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/resourcePolicies" @@ -39402,7 +40222,7 @@ service Routers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of routers. + // Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRoutersRequest) returns (RouterAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/routers" @@ -39565,7 +40385,7 @@ service SecurityPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. + // Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSecurityPoliciesRequest) returns (SecurityPoliciesAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/securityPolicies" @@ -39674,7 +40494,7 @@ service ServiceAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. + // Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListServiceAttachmentsRequest) returns (ServiceAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/serviceAttachments" @@ -39875,7 +40695,7 @@ service SslCertificates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. + // Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSslCertificatesRequest) returns (SslCertificateAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/sslCertificates" @@ -39929,7 +40749,7 @@ service SslPolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. + // Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSslPoliciesRequest) returns (SslPoliciesAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/sslPolicies" @@ -40001,7 +40821,7 @@ service Subnetworks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of subnetworks. + // Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSubnetworksRequest) returns (SubnetworkAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/subnetworks" @@ -40175,7 +40995,7 @@ service TargetHttpProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. + // Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetHttpProxiesRequest) returns (TargetHttpProxyAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetHttpProxies" @@ -40249,7 +41069,7 @@ service TargetHttpsProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. + // Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetHttpsProxiesRequest) returns (TargetHttpsProxyAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetHttpsProxies" @@ -40363,7 +41183,7 @@ service TargetInstances { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of target instances. + // Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetInstancesRequest) returns (TargetInstanceAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetInstances" @@ -40447,7 +41267,7 @@ service TargetPools { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves an aggregated list of target pools. + // Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetPoolsRequest) returns (TargetPoolAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetPools" @@ -40646,7 +41466,7 @@ service TargetTcpProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. + // Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetTcpProxiesRequest) returns (TargetTcpProxyAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetTcpProxies" @@ -40720,7 +41540,7 @@ service TargetVpnGateways { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of target VPN gateways. + // Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetVpnGatewaysRequest) returns (TargetVpnGatewayAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/targetVpnGateways" @@ -40784,7 +41604,7 @@ service UrlMaps { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all UrlMap resources, regional and global, available to the specified project. + // Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListUrlMapsRequest) returns (UrlMapsAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/urlMaps" @@ -40877,7 +41697,7 @@ service VpnGateways { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of VPN gateways. + // Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListVpnGatewaysRequest) returns (VpnGatewayAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/vpnGateways" @@ -40958,7 +41778,7 @@ service VpnTunnels { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of VPN tunnels. + // Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListVpnTunnelsRequest) returns (VpnTunnelAggregatedList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/aggregated/vpnTunnels" diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 3e7e6352a04..a8dc5353899 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -220,6 +220,21 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Edition enum. */ + enum Edition { + EDITION_UNKNOWN = 0, + EDITION_PROTO2 = 998, + EDITION_PROTO3 = 999, + EDITION_2023 = 1000, + EDITION_2024 = 1001, + EDITION_1_TEST_ONLY = 1, + EDITION_2_TEST_ONLY = 2, + EDITION_99997_TEST_ONLY = 99997, + EDITION_99998_TEST_ONLY = 99998, + EDITION_99999_TEST_ONLY = 99999, + EDITION_MAX = 2147483647 + } + /** Properties of a FileDescriptorProto. */ interface IFileDescriptorProto { @@ -260,7 +275,7 @@ export namespace google { syntax?: (string|null); /** FileDescriptorProto edition */ - edition?: (string|null); + edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null); } /** Represents a FileDescriptorProto. */ @@ -309,7 +324,7 @@ export namespace google { public syntax: string; /** FileDescriptorProto edition. */ - public edition: string; + public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition); /** * Creates a new FileDescriptorProto instance using the specified properties. @@ -760,6 +775,15 @@ export namespace google { /** ExtensionRangeOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ExtensionRangeOptions declaration */ + declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null); + + /** ExtensionRangeOptions features */ + features?: (google.protobuf.IFeatureSet|null); + + /** ExtensionRangeOptions verification */ + verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null); } /** Represents an ExtensionRangeOptions. */ @@ -774,6 +798,15 @@ export namespace google { /** ExtensionRangeOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** ExtensionRangeOptions declaration. */ + public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[]; + + /** ExtensionRangeOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** ExtensionRangeOptions verification. */ + public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState); + /** * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set @@ -852,6 +885,136 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace ExtensionRangeOptions { + + /** Properties of a Declaration. */ + interface IDeclaration { + + /** Declaration number */ + number?: (number|null); + + /** Declaration fullName */ + fullName?: (string|null); + + /** Declaration type */ + type?: (string|null); + + /** Declaration reserved */ + reserved?: (boolean|null); + + /** Declaration repeated */ + repeated?: (boolean|null); + } + + /** Represents a Declaration. */ + class Declaration implements IDeclaration { + + /** + * Constructs a new Declaration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration); + + /** Declaration number. */ + public number: number; + + /** Declaration fullName. */ + public fullName: string; + + /** Declaration type. */ + public type: string; + + /** Declaration reserved. */ + public reserved: boolean; + + /** Declaration repeated. */ + public repeated: boolean; + + /** + * Creates a new Declaration instance using the specified properties. + * @param [properties] Properties to set + * @returns Declaration instance + */ + public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Declaration + * @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.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Declaration + * @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.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Verifies a Declaration 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 Declaration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Declaration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @param message Declaration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Declaration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Declaration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** VerificationState enum. */ + enum VerificationState { + DECLARATION = 0, + UNVERIFIED = 1 + } + } + /** Properties of a FieldDescriptorProto. */ interface IFieldDescriptorProto { @@ -1036,8 +1199,8 @@ export namespace google { /** Label enum. */ enum Label { LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 + LABEL_REPEATED = 3, + LABEL_REQUIRED = 2 } } @@ -1749,9 +1912,6 @@ export namespace google { /** FileOptions pyGenericServices */ pyGenericServices?: (boolean|null); - /** FileOptions phpGenericServices */ - phpGenericServices?: (boolean|null); - /** FileOptions deprecated */ deprecated?: (boolean|null); @@ -1779,6 +1939,9 @@ export namespace google { /** FileOptions rubyPackage */ rubyPackage?: (string|null); + /** FileOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** FileOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -1825,9 +1988,6 @@ export namespace google { /** FileOptions pyGenericServices. */ public pyGenericServices: boolean; - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; - /** FileOptions deprecated. */ public deprecated: boolean; @@ -1855,6 +2015,9 @@ export namespace google { /** FileOptions rubyPackage. */ public rubyPackage: string; + /** FileOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** FileOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -1964,6 +2127,9 @@ export namespace google { /** MessageOptions deprecatedLegacyJsonFieldConflicts */ deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** MessageOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** MessageOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -1995,6 +2161,9 @@ export namespace google { /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ public deprecatedLegacyJsonFieldConflicts: boolean; + /** MessageOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** MessageOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -2106,8 +2275,14 @@ export namespace google { /** FieldOptions retention */ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null); - /** FieldOptions target */ - target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null); + /** FieldOptions targets */ + targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null); + + /** FieldOptions editionDefaults */ + editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null); + + /** FieldOptions features */ + features?: (google.protobuf.IFeatureSet|null); /** FieldOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -2164,8 +2339,14 @@ export namespace google { /** FieldOptions retention. */ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention); - /** FieldOptions target. */ - public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType); + /** FieldOptions targets. */ + public targets: google.protobuf.FieldOptions.OptionTargetType[]; + + /** FieldOptions editionDefaults. */ + public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[]; + + /** FieldOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); /** FieldOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -2284,11 +2465,117 @@ export namespace google { TARGET_TYPE_SERVICE = 8, TARGET_TYPE_METHOD = 9 } + + /** Properties of an EditionDefault. */ + interface IEditionDefault { + + /** EditionDefault edition */ + edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null); + + /** EditionDefault value */ + value?: (string|null); + } + + /** Represents an EditionDefault. */ + class EditionDefault implements IEditionDefault { + + /** + * Constructs a new EditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FieldOptions.IEditionDefault); + + /** EditionDefault edition. */ + public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition); + + /** EditionDefault value. */ + public value: string; + + /** + * Creates a new EditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns EditionDefault instance + */ + public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault; + + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @param message EditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @param message EditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EditionDefault + * @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.protobuf.FieldOptions.EditionDefault; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EditionDefault + * @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.protobuf.FieldOptions.EditionDefault; + + /** + * Verifies an EditionDefault 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 EditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @param message EditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of an OneofOptions. */ interface IOneofOptions { + /** OneofOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** OneofOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -2302,6 +2589,9 @@ export namespace google { */ constructor(properties?: google.protobuf.IOneofOptions); + /** OneofOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** OneofOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -2395,6 +2685,9 @@ export namespace google { /** EnumOptions deprecatedLegacyJsonFieldConflicts */ deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** EnumOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** EnumOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -2417,6 +2710,9 @@ export namespace google { /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ public deprecatedLegacyJsonFieldConflicts: boolean; + /** EnumOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** EnumOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -2504,6 +2800,12 @@ export namespace google { /** EnumValueOptions deprecated */ deprecated?: (boolean|null); + /** EnumValueOptions features */ + features?: (google.protobuf.IFeatureSet|null); + + /** EnumValueOptions debugRedact */ + debugRedact?: (boolean|null); + /** EnumValueOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -2520,6 +2822,12 @@ export namespace google { /** EnumValueOptions deprecated. */ public deprecated: boolean; + /** EnumValueOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** EnumValueOptions debugRedact. */ + public debugRedact: boolean; + /** EnumValueOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -2604,6 +2912,9 @@ export namespace google { /** Properties of a ServiceOptions. */ interface IServiceOptions { + /** ServiceOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** ServiceOptions deprecated */ deprecated?: (boolean|null); @@ -2626,6 +2937,9 @@ export namespace google { */ constructor(properties?: google.protobuf.IServiceOptions); + /** ServiceOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** ServiceOptions deprecated. */ public deprecated: boolean; @@ -2719,6 +3033,9 @@ export namespace google { /** MethodOptions idempotencyLevel */ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + /** MethodOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** MethodOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -2750,6 +3067,9 @@ export namespace google { /** MethodOptions idempotencyLevel. */ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + /** MethodOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -3080,6 +3400,394 @@ export namespace google { } } + /** Properties of a FeatureSet. */ + interface IFeatureSet { + + /** FeatureSet fieldPresence */ + fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null); + + /** FeatureSet enumType */ + enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null); + + /** FeatureSet repeatedFieldEncoding */ + repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null); + + /** FeatureSet utf8Validation */ + utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null); + + /** FeatureSet messageEncoding */ + messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null); + + /** FeatureSet jsonFormat */ + jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null); + } + + /** Represents a FeatureSet. */ + class FeatureSet implements IFeatureSet { + + /** + * Constructs a new FeatureSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSet); + + /** FeatureSet fieldPresence. */ + public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence); + + /** FeatureSet enumType. */ + public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType); + + /** FeatureSet repeatedFieldEncoding. */ + public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding); + + /** FeatureSet utf8Validation. */ + public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation); + + /** FeatureSet messageEncoding. */ + public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding); + + /** FeatureSet jsonFormat. */ + public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat); + + /** + * Creates a new FeatureSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSet instance + */ + public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @param message FeatureSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @param message FeatureSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSet + * @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.protobuf.FeatureSet; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSet + * @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.protobuf.FeatureSet; + + /** + * Verifies a FeatureSet 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 FeatureSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @param message FeatureSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureSet { + + /** FieldPresence enum. */ + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0, + EXPLICIT = 1, + IMPLICIT = 2, + LEGACY_REQUIRED = 3 + } + + /** EnumType enum. */ + enum EnumType { + ENUM_TYPE_UNKNOWN = 0, + OPEN = 1, + CLOSED = 2 + } + + /** RepeatedFieldEncoding enum. */ + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0, + PACKED = 1, + EXPANDED = 2 + } + + /** Utf8Validation enum. */ + enum Utf8Validation { + UTF8_VALIDATION_UNKNOWN = 0, + VERIFY = 2, + NONE = 3 + } + + /** MessageEncoding enum. */ + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0, + LENGTH_PREFIXED = 1, + DELIMITED = 2 + } + + /** JsonFormat enum. */ + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0, + ALLOW = 1, + LEGACY_BEST_EFFORT = 2 + } + } + + /** Properties of a FeatureSetDefaults. */ + interface IFeatureSetDefaults { + + /** FeatureSetDefaults defaults */ + defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null); + + /** FeatureSetDefaults minimumEdition */ + minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null); + + /** FeatureSetDefaults maximumEdition */ + maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null); + } + + /** Represents a FeatureSetDefaults. */ + class FeatureSetDefaults implements IFeatureSetDefaults { + + /** + * Constructs a new FeatureSetDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSetDefaults); + + /** FeatureSetDefaults defaults. */ + public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]; + + /** FeatureSetDefaults minimumEdition. */ + public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition); + + /** FeatureSetDefaults maximumEdition. */ + public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition); + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetDefaults instance + */ + public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @param message FeatureSetDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @param message FeatureSetDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetDefaults + * @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.protobuf.FeatureSetDefaults; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSetDefaults + * @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.protobuf.FeatureSetDefaults; + + /** + * Verifies a FeatureSetDefaults 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 FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetDefaults + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @param message FeatureSetDefaults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSetDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureSetDefaults { + + /** Properties of a FeatureSetEditionDefault. */ + interface IFeatureSetEditionDefault { + + /** FeatureSetEditionDefault edition */ + edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null); + + /** FeatureSetEditionDefault features */ + features?: (google.protobuf.IFeatureSet|null); + } + + /** Represents a FeatureSetEditionDefault. */ + class FeatureSetEditionDefault implements IFeatureSetEditionDefault { + + /** + * Constructs a new FeatureSetEditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault); + + /** FeatureSetEditionDefault edition. */ + public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition); + + /** FeatureSetEditionDefault features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetEditionDefault instance + */ + public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @param message FeatureSetEditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @param message FeatureSetEditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetEditionDefault + * @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.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSetEditionDefault + * @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.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Verifies a FeatureSetEditionDefault 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 FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetEditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @param message FeatureSetEditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSetEditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSetEditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a SourceCodeInfo. */ interface ISourceCodeInfo { @@ -10295,6 +11003,166 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListInstantSnapshotsRequest. */ + interface IAggregatedListInstantSnapshotsRequest { + + /** AggregatedListInstantSnapshotsRequest filter */ + filter?: (string|null); + + /** AggregatedListInstantSnapshotsRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListInstantSnapshotsRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListInstantSnapshotsRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListInstantSnapshotsRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListInstantSnapshotsRequest project */ + project?: (string|null); + + /** AggregatedListInstantSnapshotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListInstantSnapshotsRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListInstantSnapshotsRequest. */ + class AggregatedListInstantSnapshotsRequest implements IAggregatedListInstantSnapshotsRequest { + + /** + * Constructs a new AggregatedListInstantSnapshotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest); + + /** AggregatedListInstantSnapshotsRequest filter. */ + public filter?: (string|null); + + /** AggregatedListInstantSnapshotsRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListInstantSnapshotsRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListInstantSnapshotsRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListInstantSnapshotsRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListInstantSnapshotsRequest project. */ + public project: string; + + /** AggregatedListInstantSnapshotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListInstantSnapshotsRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** AggregatedListInstantSnapshotsRequest _filter. */ + public _filter?: "filter"; + + /** AggregatedListInstantSnapshotsRequest _includeAllScopes. */ + public _includeAllScopes?: "includeAllScopes"; + + /** AggregatedListInstantSnapshotsRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** AggregatedListInstantSnapshotsRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** AggregatedListInstantSnapshotsRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** AggregatedListInstantSnapshotsRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** AggregatedListInstantSnapshotsRequest _serviceProjectNumber. */ + public _serviceProjectNumber?: "serviceProjectNumber"; + + /** + * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListInstantSnapshotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest): google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest; + + /** + * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * @param message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * @param message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListInstantSnapshotsRequest + * @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.AggregatedListInstantSnapshotsRequest; + + /** + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListInstantSnapshotsRequest + * @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.AggregatedListInstantSnapshotsRequest; + + /** + * Verifies an AggregatedListInstantSnapshotsRequest 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 AggregatedListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListInstantSnapshotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest; + + /** + * Creates a plain object from an AggregatedListInstantSnapshotsRequest message. Also converts values to other types if specified. + * @param message AggregatedListInstantSnapshotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListInstantSnapshotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListInstantSnapshotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListInterconnectAttachmentsRequest. */ interface IAggregatedListInterconnectAttachmentsRequest { @@ -19370,6 +20238,9 @@ export namespace google { /** Backend maxUtilization */ maxUtilization?: (number|null); + + /** Backend preference */ + preference?: (string|null); } /** Represents a Backend. */ @@ -19417,6 +20288,9 @@ export namespace google { /** Backend maxUtilization. */ public maxUtilization?: (number|null); + /** Backend preference. */ + public preference?: (string|null); + /** Backend _balancingMode. */ public _balancingMode?: "balancingMode"; @@ -19453,6 +20327,9 @@ export namespace google { /** Backend _maxUtilization. */ public _maxUtilization?: "maxUtilization"; + /** Backend _preference. */ + public _preference?: "preference"; + /** * Creates a new Backend instance using the specified properties. * @param [properties] Properties to set @@ -19540,6 +20417,14 @@ export namespace google { RATE = 2508000, UTILIZATION = 157008386 } + + /** Preference enum. */ + enum Preference { + UNDEFINED_PREFERENCE = 0, + DEFAULT = 115302945, + PREFERENCE_UNSPECIFIED = 496219571, + PREFERRED = 418847841 + } } /** Properties of a BackendBucket. */ @@ -20518,6 +21403,9 @@ export namespace google { /** BackendService serviceBindings */ serviceBindings?: (string[]|null); + /** BackendService serviceLbPolicy */ + serviceLbPolicy?: (string|null); + /** BackendService sessionAffinity */ sessionAffinity?: (string|null); @@ -20651,6 +21539,9 @@ export namespace google { /** BackendService serviceBindings. */ public serviceBindings: string[]; + /** BackendService serviceLbPolicy. */ + public serviceLbPolicy?: (string|null); + /** BackendService sessionAffinity. */ public sessionAffinity?: (string|null); @@ -20753,6 +21644,9 @@ export namespace google { /** BackendService _selfLink. */ public _selfLink?: "selfLink"; + /** BackendService _serviceLbPolicy. */ + public _serviceLbPolicy?: "serviceLbPolicy"; + /** BackendService _sessionAffinity. */ public _sessionAffinity?: "sessionAffinity"; @@ -30738,6 +31632,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteInstantSnapshotRequest. */ + interface IDeleteInstantSnapshotRequest { + + /** DeleteInstantSnapshotRequest instantSnapshot */ + instantSnapshot?: (string|null); + + /** DeleteInstantSnapshotRequest project */ + project?: (string|null); + + /** DeleteInstantSnapshotRequest requestId */ + requestId?: (string|null); + + /** DeleteInstantSnapshotRequest zone */ + zone?: (string|null); + } + + /** Represents a DeleteInstantSnapshotRequest. */ + class DeleteInstantSnapshotRequest implements IDeleteInstantSnapshotRequest { + + /** + * Constructs a new DeleteInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteInstantSnapshotRequest); + + /** DeleteInstantSnapshotRequest instantSnapshot. */ + public instantSnapshot: string; + + /** DeleteInstantSnapshotRequest project. */ + public project: string; + + /** DeleteInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** DeleteInstantSnapshotRequest zone. */ + public zone: string; + + /** DeleteInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new DeleteInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteInstantSnapshotRequest): google.cloud.compute.v1.DeleteInstantSnapshotRequest; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteInstantSnapshotRequest + * @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.DeleteInstantSnapshotRequest; + + /** + * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteInstantSnapshotRequest + * @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.DeleteInstantSnapshotRequest; + + /** + * Verifies a DeleteInstantSnapshotRequest 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 DeleteInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteInstantSnapshotRequest; + + /** + * Creates a plain object from a DeleteInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message DeleteInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteInterconnectAttachmentRequest. */ interface IDeleteInterconnectAttachmentRequest { @@ -33534,6 +34546,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionInstantSnapshotRequest. */ + interface IDeleteRegionInstantSnapshotRequest { + + /** DeleteRegionInstantSnapshotRequest instantSnapshot */ + instantSnapshot?: (string|null); + + /** DeleteRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** DeleteRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** DeleteRegionInstantSnapshotRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionInstantSnapshotRequest. */ + class DeleteRegionInstantSnapshotRequest implements IDeleteRegionInstantSnapshotRequest { + + /** + * Constructs a new DeleteRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest); + + /** DeleteRegionInstantSnapshotRequest instantSnapshot. */ + public instantSnapshot: string; + + /** DeleteRegionInstantSnapshotRequest project. */ + public project: string; + + /** DeleteRegionInstantSnapshotRequest region. */ + public region: string; + + /** DeleteRegionInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** DeleteRegionInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new DeleteRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest): google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest; + + /** + * Encodes the specified DeleteRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionInstantSnapshotRequest + * @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.DeleteRegionInstantSnapshotRequest; + + /** + * Decodes a DeleteRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionInstantSnapshotRequest + * @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.DeleteRegionInstantSnapshotRequest; + + /** + * Verifies a DeleteRegionInstantSnapshotRequest 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 DeleteRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a DeleteRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message DeleteRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionNetworkEndpointGroupRequest. */ interface IDeleteRegionNetworkEndpointGroupRequest { @@ -38959,6 +40089,12 @@ export namespace google { /** Disk sourceImageId */ sourceImageId?: (string|null); + /** Disk sourceInstantSnapshot */ + sourceInstantSnapshot?: (string|null); + + /** Disk sourceInstantSnapshotId */ + sourceInstantSnapshotId?: (string|null); + /** Disk sourceSnapshot */ sourceSnapshot?: (string|null); @@ -39107,6 +40243,12 @@ export namespace google { /** Disk sourceImageId. */ public sourceImageId?: (string|null); + /** Disk sourceInstantSnapshot. */ + public sourceInstantSnapshot?: (string|null); + + /** Disk sourceInstantSnapshotId. */ + public sourceInstantSnapshotId?: (string|null); + /** Disk sourceSnapshot. */ public sourceSnapshot?: (string|null); @@ -39224,6 +40366,12 @@ export namespace google { /** Disk _sourceImageId. */ public _sourceImageId?: "sourceImageId"; + /** Disk _sourceInstantSnapshot. */ + public _sourceInstantSnapshot?: "sourceInstantSnapshot"; + + /** Disk _sourceInstantSnapshotId. */ + public _sourceInstantSnapshotId?: "sourceInstantSnapshotId"; + /** Disk _sourceSnapshot. */ public _sourceSnapshot?: "sourceSnapshot"; @@ -43457,6 +44605,9 @@ export namespace google { /** ExternalVpnGatewayInterface ipAddress */ ipAddress?: (string|null); + + /** ExternalVpnGatewayInterface ipv6Address */ + ipv6Address?: (string|null); } /** Represents an ExternalVpnGatewayInterface. */ @@ -43474,12 +44625,18 @@ export namespace google { /** ExternalVpnGatewayInterface ipAddress. */ public ipAddress?: (string|null); + /** ExternalVpnGatewayInterface ipv6Address. */ + public ipv6Address?: (string|null); + /** ExternalVpnGatewayInterface _id. */ public _id?: "id"; /** ExternalVpnGatewayInterface _ipAddress. */ public _ipAddress?: "ipAddress"; + /** ExternalVpnGatewayInterface _ipv6Address. */ + public _ipv6Address?: "ipv6Address"; + /** * Creates a new ExternalVpnGatewayInterface instance using the specified properties. * @param [properties] Properties to set @@ -50866,6 +52023,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyInstantSnapshotRequest. */ + interface IGetIamPolicyInstantSnapshotRequest { + + /** GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotRequest project */ + project?: (string|null); + + /** GetIamPolicyInstantSnapshotRequest resource */ + resource?: (string|null); + + /** GetIamPolicyInstantSnapshotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetIamPolicyInstantSnapshotRequest. */ + class GetIamPolicyInstantSnapshotRequest implements IGetIamPolicyInstantSnapshotRequest { + + /** + * Constructs a new GetIamPolicyInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest); + + /** GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotRequest project. */ + public project: string; + + /** GetIamPolicyInstantSnapshotRequest resource. */ + public resource: string; + + /** GetIamPolicyInstantSnapshotRequest zone. */ + public zone: string; + + /** GetIamPolicyInstantSnapshotRequest _optionsRequestedPolicyVersion. */ + public _optionsRequestedPolicyVersion?: "optionsRequestedPolicyVersion"; + + /** + * Creates a new GetIamPolicyInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest): google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyInstantSnapshotRequest + * @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.GetIamPolicyInstantSnapshotRequest; + + /** + * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyInstantSnapshotRequest + * @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.GetIamPolicyInstantSnapshotRequest; + + /** + * Verifies a GetIamPolicyInstantSnapshotRequest 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 GetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest; + + /** + * Creates a plain object from a GetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyLicenseRequest. */ interface IGetIamPolicyLicenseRequest { @@ -51792,6 +53067,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyRegionInstantSnapshotRequest. */ + interface IGetIamPolicyRegionInstantSnapshotRequest { + + /** GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyRegionInstantSnapshotRequest. */ + class GetIamPolicyRegionInstantSnapshotRequest implements IGetIamPolicyRegionInstantSnapshotRequest { + + /** + * Constructs a new GetIamPolicyRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest); + + /** GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotRequest project. */ + public project: string; + + /** GetIamPolicyRegionInstantSnapshotRequest region. */ + public region: string; + + /** GetIamPolicyRegionInstantSnapshotRequest resource. */ + public resource: string; + + /** GetIamPolicyRegionInstantSnapshotRequest _optionsRequestedPolicyVersion. */ + public _optionsRequestedPolicyVersion?: "optionsRequestedPolicyVersion"; + + /** + * Creates a new GetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest): google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRegionInstantSnapshotRequest + * @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.GetIamPolicyRegionInstantSnapshotRequest; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRegionInstantSnapshotRequest + * @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.GetIamPolicyRegionInstantSnapshotRequest; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotRequest 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 GetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyRegionNetworkFirewallPolicyRequest. */ interface IGetIamPolicyRegionNetworkFirewallPolicyRequest { @@ -53136,6 +54529,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetInstantSnapshotRequest. */ + interface IGetInstantSnapshotRequest { + + /** GetInstantSnapshotRequest instantSnapshot */ + instantSnapshot?: (string|null); + + /** GetInstantSnapshotRequest project */ + project?: (string|null); + + /** GetInstantSnapshotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetInstantSnapshotRequest. */ + class GetInstantSnapshotRequest implements IGetInstantSnapshotRequest { + + /** + * Constructs a new GetInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetInstantSnapshotRequest); + + /** GetInstantSnapshotRequest instantSnapshot. */ + public instantSnapshot: string; + + /** GetInstantSnapshotRequest project. */ + public project: string; + + /** GetInstantSnapshotRequest zone. */ + public zone: string; + + /** + * Creates a new GetInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetInstantSnapshotRequest): google.cloud.compute.v1.GetInstantSnapshotRequest; + + /** + * Encodes the specified GetInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotRequest.verify|verify} messages. + * @param message GetInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotRequest.verify|verify} messages. + * @param message GetInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInstantSnapshotRequest + * @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.GetInstantSnapshotRequest; + + /** + * Decodes a GetInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInstantSnapshotRequest + * @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.GetInstantSnapshotRequest; + + /** + * Verifies a GetInstantSnapshotRequest 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 GetInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetInstantSnapshotRequest; + + /** + * Creates a plain object from a GetInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message GetInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetInterconnectAttachmentRequest. */ interface IGetInterconnectAttachmentRequest { @@ -56724,6 +58226,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionInstantSnapshotRequest. */ + interface IGetRegionInstantSnapshotRequest { + + /** GetRegionInstantSnapshotRequest instantSnapshot */ + instantSnapshot?: (string|null); + + /** GetRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** GetRegionInstantSnapshotRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionInstantSnapshotRequest. */ + class GetRegionInstantSnapshotRequest implements IGetRegionInstantSnapshotRequest { + + /** + * Constructs a new GetRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest); + + /** GetRegionInstantSnapshotRequest instantSnapshot. */ + public instantSnapshot: string; + + /** GetRegionInstantSnapshotRequest project. */ + public project: string; + + /** GetRegionInstantSnapshotRequest region. */ + public region: string; + + /** + * Creates a new GetRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest): google.cloud.compute.v1.GetRegionInstantSnapshotRequest; + + /** + * Encodes the specified GetRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionInstantSnapshotRequest + * @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.GetRegionInstantSnapshotRequest; + + /** + * Decodes a GetRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionInstantSnapshotRequest + * @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.GetRegionInstantSnapshotRequest; + + /** + * Verifies a GetRegionInstantSnapshotRequest 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 GetRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a GetRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message GetRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionNetworkEndpointGroupRequest. */ interface IGetRegionNetworkEndpointGroupRequest { @@ -70095,6 +71706,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertInstantSnapshotRequest. */ + interface IInsertInstantSnapshotRequest { + + /** InsertInstantSnapshotRequest instantSnapshotResource */ + instantSnapshotResource?: (google.cloud.compute.v1.IInstantSnapshot|null); + + /** InsertInstantSnapshotRequest project */ + project?: (string|null); + + /** InsertInstantSnapshotRequest requestId */ + requestId?: (string|null); + + /** InsertInstantSnapshotRequest zone */ + zone?: (string|null); + } + + /** Represents an InsertInstantSnapshotRequest. */ + class InsertInstantSnapshotRequest implements IInsertInstantSnapshotRequest { + + /** + * Constructs a new InsertInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertInstantSnapshotRequest); + + /** InsertInstantSnapshotRequest instantSnapshotResource. */ + public instantSnapshotResource?: (google.cloud.compute.v1.IInstantSnapshot|null); + + /** InsertInstantSnapshotRequest project. */ + public project: string; + + /** InsertInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** InsertInstantSnapshotRequest zone. */ + public zone: string; + + /** InsertInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new InsertInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertInstantSnapshotRequest): google.cloud.compute.v1.InsertInstantSnapshotRequest; + + /** + * Encodes the specified InsertInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotRequest.verify|verify} messages. + * @param message InsertInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotRequest.verify|verify} messages. + * @param message InsertInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertInstantSnapshotRequest + * @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.InsertInstantSnapshotRequest; + + /** + * Decodes an InsertInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertInstantSnapshotRequest + * @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.InsertInstantSnapshotRequest; + + /** + * Verifies an InsertInstantSnapshotRequest 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 InsertInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertInstantSnapshotRequest; + + /** + * Creates a plain object from an InsertInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message InsertInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertInterconnectAttachmentRequest. */ interface IInsertInterconnectAttachmentRequest { @@ -72697,6 +74426,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionInstantSnapshotRequest. */ + interface IInsertRegionInstantSnapshotRequest { + + /** InsertRegionInstantSnapshotRequest instantSnapshotResource */ + instantSnapshotResource?: (google.cloud.compute.v1.IInstantSnapshot|null); + + /** InsertRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** InsertRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** InsertRegionInstantSnapshotRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionInstantSnapshotRequest. */ + class InsertRegionInstantSnapshotRequest implements IInsertRegionInstantSnapshotRequest { + + /** + * Constructs a new InsertRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest); + + /** InsertRegionInstantSnapshotRequest instantSnapshotResource. */ + public instantSnapshotResource?: (google.cloud.compute.v1.IInstantSnapshot|null); + + /** InsertRegionInstantSnapshotRequest project. */ + public project: string; + + /** InsertRegionInstantSnapshotRequest region. */ + public region: string; + + /** InsertRegionInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** InsertRegionInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new InsertRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest): google.cloud.compute.v1.InsertRegionInstantSnapshotRequest; + + /** + * Encodes the specified InsertRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionInstantSnapshotRequest + * @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.InsertRegionInstantSnapshotRequest; + + /** + * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionInstantSnapshotRequest + * @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.InsertRegionInstantSnapshotRequest; + + /** + * Verifies an InsertRegionInstantSnapshotRequest 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 InsertRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionInstantSnapshotRequest; + + /** + * Creates a plain object from an InsertRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message InsertRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionNetworkEndpointGroupRequest. */ interface IInsertRegionNetworkEndpointGroupRequest { @@ -78589,6 +80436,9 @@ export namespace google { /** Properties of an InstanceGroupManagerInstanceLifecyclePolicy. */ interface IInstanceGroupManagerInstanceLifecyclePolicy { + /** InstanceGroupManagerInstanceLifecyclePolicy defaultActionOnFailure */ + defaultActionOnFailure?: (string|null); + /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair */ forceUpdateOnRepair?: (string|null); } @@ -78602,9 +80452,15 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy); + /** InstanceGroupManagerInstanceLifecyclePolicy defaultActionOnFailure. */ + public defaultActionOnFailure?: (string|null); + /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair. */ public forceUpdateOnRepair?: (string|null); + /** InstanceGroupManagerInstanceLifecyclePolicy _defaultActionOnFailure. */ + public _defaultActionOnFailure?: "defaultActionOnFailure"; + /** InstanceGroupManagerInstanceLifecyclePolicy _forceUpdateOnRepair. */ public _forceUpdateOnRepair?: "forceUpdateOnRepair"; @@ -78688,6 +80544,13 @@ export namespace google { namespace InstanceGroupManagerInstanceLifecyclePolicy { + /** DefaultActionOnFailure enum. */ + enum DefaultActionOnFailure { + UNDEFINED_DEFAULT_ACTION_ON_FAILURE = 0, + DO_NOTHING = 451307513, + REPAIR = 266277773 + } + /** ForceUpdateOnRepair enum. */ enum ForceUpdateOnRepair { UNDEFINED_FORCE_UPDATE_ON_REPAIR = 0, @@ -85324,6 +87187,781 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstantSnapshot. */ + interface IInstantSnapshot { + + /** InstantSnapshot architecture */ + architecture?: (string|null); + + /** InstantSnapshot creationTimestamp */ + creationTimestamp?: (string|null); + + /** InstantSnapshot description */ + description?: (string|null); + + /** InstantSnapshot diskSizeGb */ + diskSizeGb?: (number|Long|string|null); + + /** InstantSnapshot id */ + id?: (number|Long|string|null); + + /** InstantSnapshot kind */ + kind?: (string|null); + + /** InstantSnapshot labelFingerprint */ + labelFingerprint?: (string|null); + + /** InstantSnapshot labels */ + labels?: ({ [k: string]: string }|null); + + /** InstantSnapshot name */ + name?: (string|null); + + /** InstantSnapshot region */ + region?: (string|null); + + /** InstantSnapshot resourceStatus */ + resourceStatus?: (google.cloud.compute.v1.IInstantSnapshotResourceStatus|null); + + /** InstantSnapshot satisfiesPzi */ + satisfiesPzi?: (boolean|null); + + /** InstantSnapshot satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** InstantSnapshot selfLink */ + selfLink?: (string|null); + + /** InstantSnapshot selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** InstantSnapshot sourceDisk */ + sourceDisk?: (string|null); + + /** InstantSnapshot sourceDiskId */ + sourceDiskId?: (string|null); + + /** InstantSnapshot status */ + status?: (string|null); + + /** InstantSnapshot zone */ + zone?: (string|null); + } + + /** Represents an InstantSnapshot. */ + class InstantSnapshot implements IInstantSnapshot { + + /** + * Constructs a new InstantSnapshot. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshot); + + /** InstantSnapshot architecture. */ + public architecture?: (string|null); + + /** InstantSnapshot creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** InstantSnapshot description. */ + public description?: (string|null); + + /** InstantSnapshot diskSizeGb. */ + public diskSizeGb?: (number|Long|string|null); + + /** InstantSnapshot id. */ + public id?: (number|Long|string|null); + + /** InstantSnapshot kind. */ + public kind?: (string|null); + + /** InstantSnapshot labelFingerprint. */ + public labelFingerprint?: (string|null); + + /** InstantSnapshot labels. */ + public labels: { [k: string]: string }; + + /** InstantSnapshot name. */ + public name?: (string|null); + + /** InstantSnapshot region. */ + public region?: (string|null); + + /** InstantSnapshot resourceStatus. */ + public resourceStatus?: (google.cloud.compute.v1.IInstantSnapshotResourceStatus|null); + + /** InstantSnapshot satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + + /** InstantSnapshot satisfiesPzs. */ + public satisfiesPzs?: (boolean|null); + + /** InstantSnapshot selfLink. */ + public selfLink?: (string|null); + + /** InstantSnapshot selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** InstantSnapshot sourceDisk. */ + public sourceDisk?: (string|null); + + /** InstantSnapshot sourceDiskId. */ + public sourceDiskId?: (string|null); + + /** InstantSnapshot status. */ + public status?: (string|null); + + /** InstantSnapshot zone. */ + public zone?: (string|null); + + /** InstantSnapshot _architecture. */ + public _architecture?: "architecture"; + + /** InstantSnapshot _creationTimestamp. */ + public _creationTimestamp?: "creationTimestamp"; + + /** InstantSnapshot _description. */ + public _description?: "description"; + + /** InstantSnapshot _diskSizeGb. */ + public _diskSizeGb?: "diskSizeGb"; + + /** InstantSnapshot _id. */ + public _id?: "id"; + + /** InstantSnapshot _kind. */ + public _kind?: "kind"; + + /** InstantSnapshot _labelFingerprint. */ + public _labelFingerprint?: "labelFingerprint"; + + /** InstantSnapshot _name. */ + public _name?: "name"; + + /** InstantSnapshot _region. */ + public _region?: "region"; + + /** InstantSnapshot _resourceStatus. */ + public _resourceStatus?: "resourceStatus"; + + /** InstantSnapshot _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + + /** InstantSnapshot _satisfiesPzs. */ + public _satisfiesPzs?: "satisfiesPzs"; + + /** InstantSnapshot _selfLink. */ + public _selfLink?: "selfLink"; + + /** InstantSnapshot _selfLinkWithId. */ + public _selfLinkWithId?: "selfLinkWithId"; + + /** InstantSnapshot _sourceDisk. */ + public _sourceDisk?: "sourceDisk"; + + /** InstantSnapshot _sourceDiskId. */ + public _sourceDiskId?: "sourceDiskId"; + + /** InstantSnapshot _status. */ + public _status?: "status"; + + /** InstantSnapshot _zone. */ + public _zone?: "zone"; + + /** + * Creates a new InstantSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshot instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshot): google.cloud.compute.v1.InstantSnapshot; + + /** + * Encodes the specified InstantSnapshot message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshot.verify|verify} messages. + * @param message InstantSnapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshot message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshot.verify|verify} messages. + * @param message InstantSnapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshot + * @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.InstantSnapshot; + + /** + * Decodes an InstantSnapshot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshot + * @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.InstantSnapshot; + + /** + * Verifies an InstantSnapshot 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 InstantSnapshot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshot + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshot; + + /** + * Creates a plain object from an InstantSnapshot message. Also converts values to other types if specified. + * @param message InstantSnapshot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstantSnapshot { + + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + CREATING = 455564985, + DELETING = 528602024, + FAILED = 455706685, + READY = 77848963 + } + } + + /** Properties of an InstantSnapshotAggregatedList. */ + interface IInstantSnapshotAggregatedList { + + /** InstantSnapshotAggregatedList id */ + id?: (string|null); + + /** InstantSnapshotAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.IInstantSnapshotsScopedList }|null); + + /** InstantSnapshotAggregatedList kind */ + kind?: (string|null); + + /** InstantSnapshotAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** InstantSnapshotAggregatedList selfLink */ + selfLink?: (string|null); + + /** InstantSnapshotAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** InstantSnapshotAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents an InstantSnapshotAggregatedList. */ + class InstantSnapshotAggregatedList implements IInstantSnapshotAggregatedList { + + /** + * Constructs a new InstantSnapshotAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotAggregatedList); + + /** InstantSnapshotAggregatedList id. */ + public id?: (string|null); + + /** InstantSnapshotAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.IInstantSnapshotsScopedList }; + + /** InstantSnapshotAggregatedList kind. */ + public kind?: (string|null); + + /** InstantSnapshotAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** InstantSnapshotAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** InstantSnapshotAggregatedList unreachables. */ + public unreachables: string[]; + + /** InstantSnapshotAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** InstantSnapshotAggregatedList _id. */ + public _id?: "id"; + + /** InstantSnapshotAggregatedList _kind. */ + public _kind?: "kind"; + + /** InstantSnapshotAggregatedList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** InstantSnapshotAggregatedList _selfLink. */ + public _selfLink?: "selfLink"; + + /** InstantSnapshotAggregatedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new InstantSnapshotAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotAggregatedList): google.cloud.compute.v1.InstantSnapshotAggregatedList; + + /** + * Encodes the specified InstantSnapshotAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotAggregatedList.verify|verify} messages. + * @param message InstantSnapshotAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotAggregatedList.verify|verify} messages. + * @param message InstantSnapshotAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotAggregatedList + * @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.InstantSnapshotAggregatedList; + + /** + * Decodes an InstantSnapshotAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotAggregatedList + * @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.InstantSnapshotAggregatedList; + + /** + * Verifies an InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotAggregatedList; + + /** + * Creates a plain object from an InstantSnapshotAggregatedList message. Also converts values to other types if specified. + * @param message InstantSnapshotAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotAggregatedList + * @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 { + + /** InstantSnapshotList id */ + id?: (string|null); + + /** InstantSnapshotList items */ + items?: (google.cloud.compute.v1.IInstantSnapshot[]|null); + + /** InstantSnapshotList kind */ + kind?: (string|null); + + /** InstantSnapshotList nextPageToken */ + nextPageToken?: (string|null); + + /** InstantSnapshotList selfLink */ + selfLink?: (string|null); + + /** InstantSnapshotList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents an InstantSnapshotList. */ + class InstantSnapshotList implements IInstantSnapshotList { + + /** + * Constructs a new InstantSnapshotList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotList); + + /** InstantSnapshotList id. */ + public id?: (string|null); + + /** InstantSnapshotList items. */ + public items: google.cloud.compute.v1.IInstantSnapshot[]; + + /** InstantSnapshotList kind. */ + public kind?: (string|null); + + /** InstantSnapshotList nextPageToken. */ + public nextPageToken?: (string|null); + + /** InstantSnapshotList selfLink. */ + public selfLink?: (string|null); + + /** InstantSnapshotList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** InstantSnapshotList _id. */ + public _id?: "id"; + + /** InstantSnapshotList _kind. */ + public _kind?: "kind"; + + /** InstantSnapshotList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** InstantSnapshotList _selfLink. */ + public _selfLink?: "selfLink"; + + /** InstantSnapshotList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new InstantSnapshotList instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotList instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotList): google.cloud.compute.v1.InstantSnapshotList; + + /** + * Encodes the specified InstantSnapshotList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotList.verify|verify} messages. + * @param message InstantSnapshotList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotList.verify|verify} messages. + * @param message InstantSnapshotList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotList + * @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.InstantSnapshotList; + + /** + * Decodes an InstantSnapshotList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotList + * @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.InstantSnapshotList; + + /** + * Verifies an InstantSnapshotList 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 InstantSnapshotList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotList; + + /** + * Creates a plain object from an InstantSnapshotList message. Also converts values to other types if specified. + * @param message InstantSnapshotList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotResourceStatus. */ + interface IInstantSnapshotResourceStatus { + + /** InstantSnapshotResourceStatus storageSizeBytes */ + storageSizeBytes?: (number|Long|string|null); + } + + /** Represents an InstantSnapshotResourceStatus. */ + class InstantSnapshotResourceStatus implements IInstantSnapshotResourceStatus { + + /** + * Constructs a new InstantSnapshotResourceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotResourceStatus); + + /** InstantSnapshotResourceStatus storageSizeBytes. */ + public storageSizeBytes?: (number|Long|string|null); + + /** InstantSnapshotResourceStatus _storageSizeBytes. */ + public _storageSizeBytes?: "storageSizeBytes"; + + /** + * Creates a new InstantSnapshotResourceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotResourceStatus instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotResourceStatus): google.cloud.compute.v1.InstantSnapshotResourceStatus; + + /** + * Encodes the specified InstantSnapshotResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotResourceStatus.verify|verify} messages. + * @param message InstantSnapshotResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotResourceStatus.verify|verify} messages. + * @param message InstantSnapshotResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotResourceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotResourceStatus + * @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.InstantSnapshotResourceStatus; + + /** + * Decodes an InstantSnapshotResourceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotResourceStatus + * @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.InstantSnapshotResourceStatus; + + /** + * Verifies an InstantSnapshotResourceStatus 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 InstantSnapshotResourceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotResourceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotResourceStatus; + + /** + * Creates a plain object from an InstantSnapshotResourceStatus message. Also converts values to other types if specified. + * @param message InstantSnapshotResourceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotResourceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotResourceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotResourceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotsScopedList. */ + interface IInstantSnapshotsScopedList { + + /** InstantSnapshotsScopedList instantSnapshots */ + instantSnapshots?: (google.cloud.compute.v1.IInstantSnapshot[]|null); + + /** InstantSnapshotsScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents an InstantSnapshotsScopedList. */ + class InstantSnapshotsScopedList implements IInstantSnapshotsScopedList { + + /** + * Constructs a new InstantSnapshotsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotsScopedList); + + /** InstantSnapshotsScopedList instantSnapshots. */ + public instantSnapshots: google.cloud.compute.v1.IInstantSnapshot[]; + + /** InstantSnapshotsScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** InstantSnapshotsScopedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new InstantSnapshotsScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotsScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotsScopedList): google.cloud.compute.v1.InstantSnapshotsScopedList; + + /** + * Encodes the specified InstantSnapshotsScopedList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotsScopedList.verify|verify} messages. + * @param message InstantSnapshotsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotsScopedList.verify|verify} messages. + * @param message InstantSnapshotsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotsScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotsScopedList + * @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.InstantSnapshotsScopedList; + + /** + * Decodes an InstantSnapshotsScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotsScopedList + * @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.InstantSnapshotsScopedList; + + /** + * Verifies an InstantSnapshotsScopedList 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 InstantSnapshotsScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotsScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotsScopedList; + + /** + * Creates a plain object from an InstantSnapshotsScopedList message. Also converts values to other types if specified. + * @param message InstantSnapshotsScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotsScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotsScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotsScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Int64RangeMatch. */ interface IInt64RangeMatch { @@ -95786,6 +98424,154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListInstantSnapshotsRequest. */ + interface IListInstantSnapshotsRequest { + + /** ListInstantSnapshotsRequest filter */ + filter?: (string|null); + + /** ListInstantSnapshotsRequest maxResults */ + maxResults?: (number|null); + + /** ListInstantSnapshotsRequest orderBy */ + orderBy?: (string|null); + + /** ListInstantSnapshotsRequest pageToken */ + pageToken?: (string|null); + + /** ListInstantSnapshotsRequest project */ + project?: (string|null); + + /** ListInstantSnapshotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotsRequest zone */ + zone?: (string|null); + } + + /** Represents a ListInstantSnapshotsRequest. */ + class ListInstantSnapshotsRequest implements IListInstantSnapshotsRequest { + + /** + * Constructs a new ListInstantSnapshotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListInstantSnapshotsRequest); + + /** ListInstantSnapshotsRequest filter. */ + public filter?: (string|null); + + /** ListInstantSnapshotsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListInstantSnapshotsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListInstantSnapshotsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListInstantSnapshotsRequest project. */ + public project: string; + + /** ListInstantSnapshotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotsRequest zone. */ + public zone: string; + + /** ListInstantSnapshotsRequest _filter. */ + public _filter?: "filter"; + + /** ListInstantSnapshotsRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListInstantSnapshotsRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListInstantSnapshotsRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListInstantSnapshotsRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListInstantSnapshotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInstantSnapshotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListInstantSnapshotsRequest): google.cloud.compute.v1.ListInstantSnapshotsRequest; + + /** + * Encodes the specified ListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotsRequest.verify|verify} messages. + * @param message ListInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotsRequest.verify|verify} messages. + * @param message ListInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInstantSnapshotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInstantSnapshotsRequest + * @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.ListInstantSnapshotsRequest; + + /** + * Decodes a ListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInstantSnapshotsRequest + * @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.ListInstantSnapshotsRequest; + + /** + * Verifies a ListInstantSnapshotsRequest 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 ListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInstantSnapshotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListInstantSnapshotsRequest; + + /** + * Creates a plain object from a ListInstantSnapshotsRequest message. Also converts values to other types if specified. + * @param message ListInstantSnapshotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListInstantSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInstantSnapshotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInstantSnapshotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListInterconnectAttachmentsRequest. */ interface IListInterconnectAttachmentsRequest { @@ -101447,6 +104233,154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionInstantSnapshotsRequest. */ + interface IListRegionInstantSnapshotsRequest { + + /** ListRegionInstantSnapshotsRequest filter */ + filter?: (string|null); + + /** ListRegionInstantSnapshotsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionInstantSnapshotsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionInstantSnapshotsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionInstantSnapshotsRequest project */ + project?: (string|null); + + /** ListRegionInstantSnapshotsRequest region */ + region?: (string|null); + + /** ListRegionInstantSnapshotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionInstantSnapshotsRequest. */ + class ListRegionInstantSnapshotsRequest implements IListRegionInstantSnapshotsRequest { + + /** + * Constructs a new ListRegionInstantSnapshotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest); + + /** ListRegionInstantSnapshotsRequest filter. */ + public filter?: (string|null); + + /** ListRegionInstantSnapshotsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionInstantSnapshotsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionInstantSnapshotsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionInstantSnapshotsRequest project. */ + public project: string; + + /** ListRegionInstantSnapshotsRequest region. */ + public region: string; + + /** ListRegionInstantSnapshotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListRegionInstantSnapshotsRequest _filter. */ + public _filter?: "filter"; + + /** ListRegionInstantSnapshotsRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListRegionInstantSnapshotsRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListRegionInstantSnapshotsRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListRegionInstantSnapshotsRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionInstantSnapshotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest): google.cloud.compute.v1.ListRegionInstantSnapshotsRequest; + + /** + * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionInstantSnapshotsRequest + * @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.ListRegionInstantSnapshotsRequest; + + /** + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionInstantSnapshotsRequest + * @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.ListRegionInstantSnapshotsRequest; + + /** + * Verifies a ListRegionInstantSnapshotsRequest 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 ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionInstantSnapshotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionInstantSnapshotsRequest; + + /** + * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. + * @param message ListRegionInstantSnapshotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionInstantSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionInstantSnapshotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionInstantSnapshotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionNetworkEndpointGroupsRequest. */ interface IListRegionNetworkEndpointGroupsRequest { @@ -129289,6 +132223,9 @@ export namespace google { /** Properties of a Project. */ interface IProject { + /** Project cloudArmorTier */ + cloudArmorTier?: (string|null); + /** Project commonInstanceMetadata */ commonInstanceMetadata?: (google.cloud.compute.v1.IMetadata|null); @@ -129341,6 +132278,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IProject); + /** Project cloudArmorTier. */ + public cloudArmorTier?: (string|null); + /** Project commonInstanceMetadata. */ public commonInstanceMetadata?: (google.cloud.compute.v1.IMetadata|null); @@ -129383,6 +132323,9 @@ export namespace google { /** Project xpnProjectStatus. */ public xpnProjectStatus?: (string|null); + /** Project _cloudArmorTier. */ + public _cloudArmorTier?: "cloudArmorTier"; + /** Project _commonInstanceMetadata. */ public _commonInstanceMetadata?: "commonInstanceMetadata"; @@ -129499,6 +132442,14 @@ export namespace google { namespace Project { + /** CloudArmorTier enum. */ + enum CloudArmorTier { + UNDEFINED_CLOUD_ARMOR_TIER = 0, + CA_ENTERPRISE_ANNUAL = 219921116, + CA_ENTERPRISE_PAYGO = 453530323, + CA_STANDARD = 13156734 + } + /** DefaultNetworkTier enum. */ enum DefaultNetworkTier { UNDEFINED_DEFAULT_NETWORK_TIER = 0, @@ -129940,6 +132891,117 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ProjectsSetCloudArmorTierRequest. */ + interface IProjectsSetCloudArmorTierRequest { + + /** ProjectsSetCloudArmorTierRequest cloudArmorTier */ + cloudArmorTier?: (string|null); + } + + /** Represents a ProjectsSetCloudArmorTierRequest. */ + class ProjectsSetCloudArmorTierRequest implements IProjectsSetCloudArmorTierRequest { + + /** + * Constructs a new ProjectsSetCloudArmorTierRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest); + + /** ProjectsSetCloudArmorTierRequest cloudArmorTier. */ + public cloudArmorTier?: (string|null); + + /** ProjectsSetCloudArmorTierRequest _cloudArmorTier. */ + public _cloudArmorTier?: "cloudArmorTier"; + + /** + * Creates a new ProjectsSetCloudArmorTierRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectsSetCloudArmorTierRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest): google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest; + + /** + * Encodes the specified ProjectsSetCloudArmorTierRequest message. Does not implicitly {@link google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.verify|verify} messages. + * @param message ProjectsSetCloudArmorTierRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProjectsSetCloudArmorTierRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.verify|verify} messages. + * @param message ProjectsSetCloudArmorTierRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectsSetCloudArmorTierRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectsSetCloudArmorTierRequest + * @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.ProjectsSetCloudArmorTierRequest; + + /** + * Decodes a ProjectsSetCloudArmorTierRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProjectsSetCloudArmorTierRequest + * @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.ProjectsSetCloudArmorTierRequest; + + /** + * Verifies a ProjectsSetCloudArmorTierRequest 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 ProjectsSetCloudArmorTierRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProjectsSetCloudArmorTierRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest; + + /** + * Creates a plain object from a ProjectsSetCloudArmorTierRequest message. Also converts values to other types if specified. + * @param message ProjectsSetCloudArmorTierRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProjectsSetCloudArmorTierRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProjectsSetCloudArmorTierRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ProjectsSetCloudArmorTierRequest { + + /** CloudArmorTier enum. */ + enum CloudArmorTier { + UNDEFINED_CLOUD_ARMOR_TIER = 0, + CA_ENTERPRISE_ANNUAL = 219921116, + CA_ENTERPRISE_PAYGO = 453530323, + CA_STANDARD = 13156734 + } + } + /** Properties of a ProjectsSetDefaultNetworkTierRequest. */ interface IProjectsSetDefaultNetworkTierRequest { @@ -153848,6 +156910,118 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetCloudArmorTierProjectRequest. */ + interface ISetCloudArmorTierProjectRequest { + + /** SetCloudArmorTierProjectRequest project */ + project?: (string|null); + + /** SetCloudArmorTierProjectRequest projectsSetCloudArmorTierRequestResource */ + projectsSetCloudArmorTierRequestResource?: (google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest|null); + + /** SetCloudArmorTierProjectRequest requestId */ + requestId?: (string|null); + } + + /** Represents a SetCloudArmorTierProjectRequest. */ + class SetCloudArmorTierProjectRequest implements ISetCloudArmorTierProjectRequest { + + /** + * Constructs a new SetCloudArmorTierProjectRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest); + + /** SetCloudArmorTierProjectRequest project. */ + public project: string; + + /** SetCloudArmorTierProjectRequest projectsSetCloudArmorTierRequestResource. */ + public projectsSetCloudArmorTierRequestResource?: (google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest|null); + + /** SetCloudArmorTierProjectRequest requestId. */ + public requestId?: (string|null); + + /** SetCloudArmorTierProjectRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetCloudArmorTierProjectRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetCloudArmorTierProjectRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest): google.cloud.compute.v1.SetCloudArmorTierProjectRequest; + + /** + * Encodes the specified SetCloudArmorTierProjectRequest message. Does not implicitly {@link google.cloud.compute.v1.SetCloudArmorTierProjectRequest.verify|verify} messages. + * @param message SetCloudArmorTierProjectRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetCloudArmorTierProjectRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetCloudArmorTierProjectRequest.verify|verify} messages. + * @param message SetCloudArmorTierProjectRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetCloudArmorTierProjectRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetCloudArmorTierProjectRequest + * @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.SetCloudArmorTierProjectRequest; + + /** + * Decodes a SetCloudArmorTierProjectRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetCloudArmorTierProjectRequest + * @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.SetCloudArmorTierProjectRequest; + + /** + * Verifies a SetCloudArmorTierProjectRequest 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 SetCloudArmorTierProjectRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetCloudArmorTierProjectRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetCloudArmorTierProjectRequest; + + /** + * Creates a plain object from a SetCloudArmorTierProjectRequest message. Also converts values to other types if specified. + * @param message SetCloudArmorTierProjectRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetCloudArmorTierProjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetCloudArmorTierProjectRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetCloudArmorTierProjectRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetCommonInstanceMetadataOperationMetadata. */ interface ISetCommonInstanceMetadataOperationMetadata { @@ -155563,6 +158737,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyInstantSnapshotRequest. */ + interface ISetIamPolicyInstantSnapshotRequest { + + /** SetIamPolicyInstantSnapshotRequest project */ + project?: (string|null); + + /** SetIamPolicyInstantSnapshotRequest resource */ + resource?: (string|null); + + /** SetIamPolicyInstantSnapshotRequest zone */ + zone?: (string|null); + + /** SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource */ + zoneSetPolicyRequestResource?: (google.cloud.compute.v1.IZoneSetPolicyRequest|null); + } + + /** Represents a SetIamPolicyInstantSnapshotRequest. */ + class SetIamPolicyInstantSnapshotRequest implements ISetIamPolicyInstantSnapshotRequest { + + /** + * Constructs a new SetIamPolicyInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest); + + /** SetIamPolicyInstantSnapshotRequest project. */ + public project: string; + + /** SetIamPolicyInstantSnapshotRequest resource. */ + public resource: string; + + /** SetIamPolicyInstantSnapshotRequest zone. */ + public zone: string; + + /** SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource. */ + public zoneSetPolicyRequestResource?: (google.cloud.compute.v1.IZoneSetPolicyRequest|null); + + /** + * Creates a new SetIamPolicyInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest): google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyInstantSnapshotRequest + * @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.SetIamPolicyInstantSnapshotRequest; + + /** + * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyInstantSnapshotRequest + * @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.SetIamPolicyInstantSnapshotRequest; + + /** + * Verifies a SetIamPolicyInstantSnapshotRequest 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 SetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest; + + /** + * Creates a plain object from a SetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyLicenseRequest. */ interface ISetIamPolicyLicenseRequest { @@ -156465,6 +159754,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyRegionInstantSnapshotRequest. */ + interface ISetIamPolicyRegionInstantSnapshotRequest { + + /** SetIamPolicyRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyRegionInstantSnapshotRequest. */ + class SetIamPolicyRegionInstantSnapshotRequest implements ISetIamPolicyRegionInstantSnapshotRequest { + + /** + * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest); + + /** SetIamPolicyRegionInstantSnapshotRequest project. */ + public project: string; + + /** SetIamPolicyRegionInstantSnapshotRequest region. */ + public region: string; + + /** SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest): google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRegionInstantSnapshotRequest + * @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.SetIamPolicyRegionInstantSnapshotRequest; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRegionInstantSnapshotRequest + * @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.SetIamPolicyRegionInstantSnapshotRequest; + + /** + * Verifies a SetIamPolicyRegionInstantSnapshotRequest 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 SetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyRegionNetworkFirewallPolicyRequest. */ interface ISetIamPolicyRegionNetworkFirewallPolicyRequest { @@ -158329,6 +161733,130 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetLabelsInstantSnapshotRequest. */ + interface ISetLabelsInstantSnapshotRequest { + + /** SetLabelsInstantSnapshotRequest project */ + project?: (string|null); + + /** SetLabelsInstantSnapshotRequest requestId */ + requestId?: (string|null); + + /** SetLabelsInstantSnapshotRequest resource */ + resource?: (string|null); + + /** SetLabelsInstantSnapshotRequest zone */ + zone?: (string|null); + + /** SetLabelsInstantSnapshotRequest zoneSetLabelsRequestResource */ + zoneSetLabelsRequestResource?: (google.cloud.compute.v1.IZoneSetLabelsRequest|null); + } + + /** Represents a SetLabelsInstantSnapshotRequest. */ + class SetLabelsInstantSnapshotRequest implements ISetLabelsInstantSnapshotRequest { + + /** + * Constructs a new SetLabelsInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest); + + /** SetLabelsInstantSnapshotRequest project. */ + public project: string; + + /** SetLabelsInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** SetLabelsInstantSnapshotRequest resource. */ + public resource: string; + + /** SetLabelsInstantSnapshotRequest zone. */ + public zone: string; + + /** SetLabelsInstantSnapshotRequest zoneSetLabelsRequestResource. */ + public zoneSetLabelsRequestResource?: (google.cloud.compute.v1.IZoneSetLabelsRequest|null); + + /** SetLabelsInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetLabelsInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLabelsInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest): google.cloud.compute.v1.SetLabelsInstantSnapshotRequest; + + /** + * Encodes the specified SetLabelsInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsInstantSnapshotRequest.verify|verify} messages. + * @param message SetLabelsInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetLabelsInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsInstantSnapshotRequest.verify|verify} messages. + * @param message SetLabelsInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetLabelsInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetLabelsInstantSnapshotRequest + * @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.SetLabelsInstantSnapshotRequest; + + /** + * Decodes a SetLabelsInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetLabelsInstantSnapshotRequest + * @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.SetLabelsInstantSnapshotRequest; + + /** + * Verifies a SetLabelsInstantSnapshotRequest 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 SetLabelsInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLabelsInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetLabelsInstantSnapshotRequest; + + /** + * Creates a plain object from a SetLabelsInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message SetLabelsInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetLabelsInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLabelsInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLabelsInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetLabelsInterconnectAttachmentRequest. */ interface ISetLabelsInterconnectAttachmentRequest { @@ -158686,6 +162214,130 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetLabelsRegionInstantSnapshotRequest. */ + interface ISetLabelsRegionInstantSnapshotRequest { + + /** SetLabelsRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** SetLabelsRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** SetLabelsRegionInstantSnapshotRequest regionSetLabelsRequestResource */ + regionSetLabelsRequestResource?: (google.cloud.compute.v1.IRegionSetLabelsRequest|null); + + /** SetLabelsRegionInstantSnapshotRequest requestId */ + requestId?: (string|null); + + /** SetLabelsRegionInstantSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a SetLabelsRegionInstantSnapshotRequest. */ + class SetLabelsRegionInstantSnapshotRequest implements ISetLabelsRegionInstantSnapshotRequest { + + /** + * Constructs a new SetLabelsRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest); + + /** SetLabelsRegionInstantSnapshotRequest project. */ + public project: string; + + /** SetLabelsRegionInstantSnapshotRequest region. */ + public region: string; + + /** SetLabelsRegionInstantSnapshotRequest regionSetLabelsRequestResource. */ + public regionSetLabelsRequestResource?: (google.cloud.compute.v1.IRegionSetLabelsRequest|null); + + /** SetLabelsRegionInstantSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** SetLabelsRegionInstantSnapshotRequest resource. */ + public resource: string; + + /** SetLabelsRegionInstantSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetLabelsRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLabelsRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest): google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest; + + /** + * Encodes the specified SetLabelsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest.verify|verify} messages. + * @param message SetLabelsRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetLabelsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest.verify|verify} messages. + * @param message SetLabelsRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetLabelsRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetLabelsRegionInstantSnapshotRequest + * @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.SetLabelsRegionInstantSnapshotRequest; + + /** + * Decodes a SetLabelsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetLabelsRegionInstantSnapshotRequest + * @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.SetLabelsRegionInstantSnapshotRequest; + + /** + * Verifies a SetLabelsRegionInstantSnapshotRequest 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 SetLabelsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLabelsRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a SetLabelsRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message SetLabelsRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLabelsRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLabelsRegionInstantSnapshotRequest + * @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 { @@ -164645,6 +168297,15 @@ export namespace google { /** Snapshot sourceDiskId */ sourceDiskId?: (string|null); + /** Snapshot sourceInstantSnapshot */ + sourceInstantSnapshot?: (string|null); + + /** Snapshot sourceInstantSnapshotEncryptionKey */ + sourceInstantSnapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** Snapshot sourceInstantSnapshotId */ + sourceInstantSnapshotId?: (string|null); + /** Snapshot sourceSnapshotSchedulePolicy */ sourceSnapshotSchedulePolicy?: (string|null); @@ -164754,6 +168415,15 @@ export namespace google { /** Snapshot sourceDiskId. */ public sourceDiskId?: (string|null); + /** Snapshot sourceInstantSnapshot. */ + public sourceInstantSnapshot?: (string|null); + + /** Snapshot sourceInstantSnapshotEncryptionKey. */ + public sourceInstantSnapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** Snapshot sourceInstantSnapshotId. */ + public sourceInstantSnapshotId?: (string|null); + /** Snapshot sourceSnapshotSchedulePolicy. */ public sourceSnapshotSchedulePolicy?: (string|null); @@ -164841,6 +168511,15 @@ export namespace google { /** Snapshot _sourceDiskId. */ public _sourceDiskId?: "sourceDiskId"; + /** Snapshot _sourceInstantSnapshot. */ + public _sourceInstantSnapshot?: "sourceInstantSnapshot"; + + /** Snapshot _sourceInstantSnapshotEncryptionKey. */ + public _sourceInstantSnapshotEncryptionKey?: "sourceInstantSnapshotEncryptionKey"; + + /** Snapshot _sourceInstantSnapshotId. */ + public _sourceInstantSnapshotId?: "sourceInstantSnapshotId"; + /** Snapshot _sourceSnapshotSchedulePolicy. */ public _sourceSnapshotSchedulePolicy?: "sourceSnapshotSchedulePolicy"; @@ -177876,6 +181555,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsInstantSnapshotRequest. */ + interface ITestIamPermissionsInstantSnapshotRequest { + + /** TestIamPermissionsInstantSnapshotRequest project */ + project?: (string|null); + + /** TestIamPermissionsInstantSnapshotRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsInstantSnapshotRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotRequest zone */ + zone?: (string|null); + } + + /** Represents a TestIamPermissionsInstantSnapshotRequest. */ + class TestIamPermissionsInstantSnapshotRequest implements ITestIamPermissionsInstantSnapshotRequest { + + /** + * Constructs a new TestIamPermissionsInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest); + + /** TestIamPermissionsInstantSnapshotRequest project. */ + public project: string; + + /** TestIamPermissionsInstantSnapshotRequest resource. */ + public resource: string; + + /** TestIamPermissionsInstantSnapshotRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotRequest zone. */ + public zone: string; + + /** + * Creates a new TestIamPermissionsInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest): google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsInstantSnapshotRequest + * @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.TestIamPermissionsInstantSnapshotRequest; + + /** + * Decodes a TestIamPermissionsInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsInstantSnapshotRequest + * @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.TestIamPermissionsInstantSnapshotRequest; + + /** + * Verifies a TestIamPermissionsInstantSnapshotRequest 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 TestIamPermissionsInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest; + + /** + * Creates a plain object from a TestIamPermissionsInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsLicenseCodeRequest. */ interface ITestIamPermissionsLicenseCodeRequest { @@ -179117,6 +182911,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionInstantSnapshotRequest. */ + interface ITestIamPermissionsRegionInstantSnapshotRequest { + + /** TestIamPermissionsRegionInstantSnapshotRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionInstantSnapshotRequest. */ + class TestIamPermissionsRegionInstantSnapshotRequest implements ITestIamPermissionsRegionInstantSnapshotRequest { + + /** + * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest); + + /** TestIamPermissionsRegionInstantSnapshotRequest project. */ + public project: string; + + /** TestIamPermissionsRegionInstantSnapshotRequest region. */ + public region: string; + + /** TestIamPermissionsRegionInstantSnapshotRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionInstantSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest): google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionInstantSnapshotRequest + * @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.TestIamPermissionsRegionInstantSnapshotRequest; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionInstantSnapshotRequest + * @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.TestIamPermissionsRegionInstantSnapshotRequest; + + /** + * Verifies a TestIamPermissionsRegionInstantSnapshotRequest 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 TestIamPermissionsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionInstantSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionInstantSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionInstantSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionNetworkFirewallPolicyRequest. */ interface ITestIamPermissionsRegionNetworkFirewallPolicyRequest { @@ -186079,6 +189988,9 @@ export namespace google { /** VpnGateway description */ description?: (string|null); + /** VpnGateway gatewayIpVersion */ + gatewayIpVersion?: (string|null); + /** VpnGateway id */ id?: (number|Long|string|null); @@ -186125,6 +190037,9 @@ export namespace google { /** VpnGateway description. */ public description?: (string|null); + /** VpnGateway gatewayIpVersion. */ + public gatewayIpVersion?: (string|null); + /** VpnGateway id. */ public id?: (number|Long|string|null); @@ -186161,6 +190076,9 @@ export namespace google { /** VpnGateway _description. */ public _description?: "description"; + /** VpnGateway _gatewayIpVersion. */ + public _gatewayIpVersion?: "gatewayIpVersion"; + /** VpnGateway _id. */ public _id?: "id"; @@ -186265,6 +190183,13 @@ export namespace google { namespace VpnGateway { + /** GatewayIpVersion enum. */ + enum GatewayIpVersion { + UNDEFINED_GATEWAY_IP_VERSION = 0, + IPV4 = 2254341, + IPV6 = 2254343 + } + /** StackType enum. */ enum StackType { UNDEFINED_STACK_TYPE = 0, @@ -187038,6 +190963,9 @@ export namespace google { /** VpnGatewayVpnGatewayInterface ipAddress */ ipAddress?: (string|null); + + /** VpnGatewayVpnGatewayInterface ipv6Address */ + ipv6Address?: (string|null); } /** Represents a VpnGatewayVpnGatewayInterface. */ @@ -187058,6 +190986,9 @@ export namespace google { /** VpnGatewayVpnGatewayInterface ipAddress. */ public ipAddress?: (string|null); + /** VpnGatewayVpnGatewayInterface ipv6Address. */ + public ipv6Address?: (string|null); + /** VpnGatewayVpnGatewayInterface _id. */ public _id?: "id"; @@ -187067,6 +190998,9 @@ export namespace google { /** VpnGatewayVpnGatewayInterface _ipAddress. */ public _ipAddress?: "ipAddress"; + /** VpnGatewayVpnGatewayInterface _ipv6Address. */ + public _ipv6Address?: "ipv6Address"; + /** * Creates a new VpnGatewayVpnGatewayInterface instance using the specified properties. * @param [properties] Properties to set @@ -195716,6 +199650,219 @@ export namespace google { type UpdateShieldedInstanceConfigCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents an InstantSnapshots */ + class InstantSnapshots extends $protobuf.rpc.Service { + + /** + * Constructs a new InstantSnapshots 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 InstantSnapshots 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): InstantSnapshots; + + /** + * Calls AggregatedList. + * @param request AggregatedListInstantSnapshotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest, callback: google.cloud.compute.v1.InstantSnapshots.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListInstantSnapshotsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotRequest): Promise; + + /** + * Calls Get. + * @param request GetInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshot + */ + public get(request: google.cloud.compute.v1.IGetInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.GetCallback): void; + + /** + * Calls Get. + * @param request GetInstantSnapshotRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetInstantSnapshotRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest): Promise; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotRequest): Promise; + + /** + * Calls List. + * @param request ListInstantSnapshotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotList + */ + public list(request: google.cloud.compute.v1.IListInstantSnapshotsRequest, callback: google.cloud.compute.v1.InstantSnapshots.ListCallback): void; + + /** + * Calls List. + * @param request ListInstantSnapshotsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListInstantSnapshotsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest): Promise; + + /** + * Calls SetLabels. + * @param request SetLabelsInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.SetLabelsCallback): void; + + /** + * Calls SetLabels. + * @param request SetLabelsInstantSnapshotRequest message or plain object + * @returns Promise + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest): Promise; + } + + namespace InstantSnapshots { + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|aggregatedList}. + * @param error Error, if any + * @param [response] InstantSnapshotAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshotAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|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.InstantSnapshots|get}. + * @param error Error, if any + * @param [response] InstantSnapshot + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshot) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|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.InstantSnapshots|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.InstantSnapshots|list}. + * @param error Error, if any + * @param [response] InstantSnapshotList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshotList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|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.InstantSnapshots|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.InstantSnapshots|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents an InterconnectAttachments */ class InterconnectAttachments extends $protobuf.rpc.Service { @@ -198804,6 +202951,20 @@ export namespace google { */ public moveInstance(request: google.cloud.compute.v1.IMoveInstanceProjectRequest): Promise; + /** + * Calls SetCloudArmorTier. + * @param request SetCloudArmorTierProjectRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setCloudArmorTier(request: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, callback: google.cloud.compute.v1.Projects.SetCloudArmorTierCallback): void; + + /** + * Calls SetCloudArmorTier. + * @param request SetCloudArmorTierProjectRequest message or plain object + * @returns Promise + */ + public setCloudArmorTier(request: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest): Promise; + /** * Calls SetCommonInstanceMetadata. * @param request SetCommonInstanceMetadataProjectRequest message or plain object @@ -198919,6 +203080,13 @@ export namespace google { */ type MoveInstanceCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Projects|setCloudArmorTier}. + * @param error Error, if any + * @param [response] Operation + */ + type SetCloudArmorTierCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Projects|setCommonInstanceMetadata}. * @param error Error, if any @@ -201269,6 +205437,198 @@ export namespace google { type BulkInsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionInstantSnapshots */ + class RegionInstantSnapshots extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionInstantSnapshots 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 RegionInstantSnapshots 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): RegionInstantSnapshots; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshot + */ + public get(request: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionInstantSnapshotRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest): Promise; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotList + */ + public list(request: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionInstantSnapshotsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest): Promise; + + /** + * Calls SetLabels. + * @param request SetLabelsRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.SetLabelsCallback): void; + + /** + * Calls SetLabels. + * @param request SetLabelsRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, callback: google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest): Promise; + } + + namespace RegionInstantSnapshots { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|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.RegionInstantSnapshots|get}. + * @param error Error, if any + * @param [response] InstantSnapshot + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshot) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|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.RegionInstantSnapshots|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.RegionInstantSnapshots|list}. + * @param error Error, if any + * @param [response] InstantSnapshotList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshotList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|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.RegionInstantSnapshots|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.RegionInstantSnapshots|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionNetworkEndpointGroups */ class RegionNetworkEndpointGroups extends $protobuf.rpc.Service { @@ -210745,6 +215105,9 @@ export namespace google { /** Publishing librarySettings */ librarySettings?: (google.api.IClientLibrarySettings[]|null); + + /** Publishing protoReferenceDocumentationUri */ + protoReferenceDocumentationUri?: (string|null); } /** Represents a Publishing. */ @@ -210783,6 +215146,9 @@ export namespace google { /** Publishing librarySettings. */ public librarySettings: google.api.IClientLibrarySettings[]; + /** Publishing protoReferenceDocumentationUri. */ + public protoReferenceDocumentationUri: string; + /** * Creates a new Publishing instance using the specified properties. * @param [properties] Properties to set @@ -211363,6 +215729,21 @@ export namespace google { /** DotnetSettings common */ common?: (google.api.ICommonLanguageSettings|null); + + /** DotnetSettings renamedServices */ + renamedServices?: ({ [k: string]: string }|null); + + /** DotnetSettings renamedResources */ + renamedResources?: ({ [k: string]: string }|null); + + /** DotnetSettings ignoredResources */ + ignoredResources?: (string[]|null); + + /** DotnetSettings forcedNamespaceAliases */ + forcedNamespaceAliases?: (string[]|null); + + /** DotnetSettings handwrittenSignatures */ + handwrittenSignatures?: (string[]|null); } /** Represents a DotnetSettings. */ @@ -211377,6 +215758,21 @@ export namespace google { /** DotnetSettings common. */ public common?: (google.api.ICommonLanguageSettings|null); + /** DotnetSettings renamedServices. */ + public renamedServices: { [k: string]: string }; + + /** DotnetSettings renamedResources. */ + public renamedResources: { [k: string]: string }; + + /** DotnetSettings ignoredResources. */ + public ignoredResources: string[]; + + /** DotnetSettings forcedNamespaceAliases. */ + public forcedNamespaceAliases: string[]; + + /** DotnetSettings handwrittenSignatures. */ + public handwrittenSignatures: string[]; + /** * Creates a new DotnetSettings instance using the specified properties. * @param [properties] Properties to set @@ -211657,6 +216053,9 @@ export namespace google { /** MethodSettings longRunning */ longRunning?: (google.api.MethodSettings.ILongRunning|null); + + /** MethodSettings autoPopulatedFields */ + autoPopulatedFields?: (string[]|null); } /** Represents a MethodSettings. */ @@ -211674,6 +216073,9 @@ export namespace google { /** MethodSettings longRunning. */ public longRunning?: (google.api.MethodSettings.ILongRunning|null); + /** MethodSettings autoPopulatedFields. */ + public autoPopulatedFields: string[]; + /** * Creates a new MethodSettings instance using the specified properties. * @param [properties] Properties to set @@ -211876,7 +216278,10 @@ export namespace google { CLOUD = 1, ADS = 2, PHOTOS = 3, - STREET_VIEW = 4 + STREET_VIEW = 4, + SHOPPING = 5, + GEO = 6, + GENERATIVE_AI = 7 } /** ClientLibraryDestination enum. */ @@ -211907,7 +216312,8 @@ export namespace google { INPUT_ONLY = 4, IMMUTABLE = 5, UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 + NON_EMPTY_DEFAULT = 7, + IDENTIFIER = 8 } /** Properties of a ResourceDescriptor. */ diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 77a2955f67d..aa1e83287d9 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -508,6 +508,38 @@ return FileDescriptorSet; })(); + /** + * Edition enum. + * @name google.protobuf.Edition + * @enum {number} + * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value + * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value + * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value + * @property {number} EDITION_2023=1000 EDITION_2023 value + * @property {number} EDITION_2024=1001 EDITION_2024 value + * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value + * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value + * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value + * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value + * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value + * @property {number} EDITION_MAX=2147483647 EDITION_MAX value + */ + protobuf.Edition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EDITION_UNKNOWN"] = 0; + values[valuesById[998] = "EDITION_PROTO2"] = 998; + values[valuesById[999] = "EDITION_PROTO3"] = 999; + values[valuesById[1000] = "EDITION_2023"] = 1000; + values[valuesById[1001] = "EDITION_2024"] = 1001; + values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; + values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; + values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; + values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; + values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; + values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; + return values; + })(); + protobuf.FileDescriptorProto = (function() { /** @@ -526,7 +558,7 @@ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {string|null} [edition] FileDescriptorProto edition + * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition */ /** @@ -649,11 +681,11 @@ /** * FileDescriptorProto edition. - * @member {string} edition + * @member {google.protobuf.Edition} edition * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileDescriptorProto.prototype.edition = ""; + FileDescriptorProto.prototype.edition = 0; /** * Creates a new FileDescriptorProto instance using the specified properties. @@ -711,7 +743,7 @@ if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); return writer; }; @@ -818,8 +850,8 @@ message.syntax = reader.string(); break; } - case 13: { - message.edition = reader.string(); + case 14: { + message.edition = reader.int32(); break; } default: @@ -934,8 +966,22 @@ if (!$util.isString(message.syntax)) return "syntax: string expected"; if (message.edition != null && message.hasOwnProperty("edition")) - if (!$util.isString(message.edition)) - return "edition: string expected"; + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } return null; }; @@ -1028,8 +1074,58 @@ } if (object.syntax != null) message.syntax = String(object.syntax); - if (object.edition != null) - message.edition = String(object.edition); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } return message; }; @@ -1061,7 +1157,7 @@ object.options = null; object.sourceCodeInfo = null; object.syntax = ""; - object.edition = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -1109,7 +1205,7 @@ if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = message.edition; + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; return object; }; @@ -2212,6 +2308,9 @@ * @memberof google.protobuf * @interface IExtensionRangeOptions * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @property {Array.|null} [declaration] ExtensionRangeOptions declaration + * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features + * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification */ /** @@ -2224,6 +2323,7 @@ */ function ExtensionRangeOptions(properties) { this.uninterpretedOption = []; + this.declaration = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2238,6 +2338,30 @@ */ ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * ExtensionRangeOptions declaration. + * @member {Array.} declaration + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.declaration = $util.emptyArray; + + /** + * ExtensionRangeOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.features = null; + + /** + * ExtensionRangeOptions verification. + * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.verification = 1; + /** * Creates a new ExtensionRangeOptions instance using the specified properties. * @function create @@ -2262,6 +2386,13 @@ ExtensionRangeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.declaration != null && message.declaration.length) + for (var i = 0; i < message.declaration.length; ++i) + $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -2305,6 +2436,20 @@ message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } + case 2: { + if (!(message.declaration && message.declaration.length)) + message.declaration = []; + message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32())); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.verification = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -2349,6 +2494,28 @@ return "uninterpretedOption." + error; } } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + if (!Array.isArray(message.declaration)) + return "declaration: array expected"; + for (var i = 0; i < message.declaration.length; ++i) { + var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]); + if (error) + return "declaration." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.verification != null && message.hasOwnProperty("verification")) + switch (message.verification) { + default: + return "verification: enum value expected"; + case 0: + case 1: + break; + } return null; }; @@ -2374,6 +2541,37 @@ message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object.declaration) { + if (!Array.isArray(object.declaration)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); + message.declaration = []; + for (var i = 0; i < object.declaration.length; ++i) { + if (typeof object.declaration[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); + message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + switch (object.verification) { + case "DECLARATION": + case 0: + message.verification = 0; + break; + default: + if (typeof object.verification === "number") { + message.verification = object.verification; + break; + } + break; + case "UNVERIFIED": + case 1: + message.verification = 1; + break; + } return message; }; @@ -2390,8 +2588,23 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { + object.declaration = []; object.uninterpretedOption = []; + } + if (options.defaults) { + object.verification = options.enums === String ? "UNVERIFIED" : 1; + object.features = null; + } + if (message.declaration && message.declaration.length) { + object.declaration = []; + for (var j = 0; j < message.declaration.length; ++j) + object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options); + } + if (message.verification != null && message.hasOwnProperty("verification")) + object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -2426,6 +2639,316 @@ return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; }; + ExtensionRangeOptions.Declaration = (function() { + + /** + * Properties of a Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @interface IDeclaration + * @property {number|null} [number] Declaration number + * @property {string|null} [fullName] Declaration fullName + * @property {string|null} [type] Declaration type + * @property {boolean|null} [reserved] Declaration reserved + * @property {boolean|null} [repeated] Declaration repeated + */ + + /** + * Constructs a new Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @classdesc Represents a Declaration. + * @implements IDeclaration + * @constructor + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + */ + function Declaration(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]]; + } + + /** + * Declaration number. + * @member {number} number + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.number = 0; + + /** + * Declaration fullName. + * @member {string} fullName + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.fullName = ""; + + /** + * Declaration type. + * @member {string} type + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.type = ""; + + /** + * Declaration reserved. + * @member {boolean} reserved + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.reserved = false; + + /** + * Declaration repeated. + * @member {boolean} repeated + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.repeated = false; + + /** + * Creates a new Declaration instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance + */ + Declaration.create = function create(properties) { + return new Declaration(properties); + }; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); + if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); + return writer; + }; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.number = reader.int32(); + break; + } + case 2: { + message.fullName = reader.string(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + case 5: { + message.reserved = reader.bool(); + break; + } + case 6: { + message.repeated = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Declaration message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Declaration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.fullName != null && message.hasOwnProperty("fullName")) + if (!$util.isString(message.fullName)) + return "fullName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.reserved != null && message.hasOwnProperty("reserved")) + if (typeof message.reserved !== "boolean") + return "reserved: boolean expected"; + if (message.repeated != null && message.hasOwnProperty("repeated")) + if (typeof message.repeated !== "boolean") + return "repeated: boolean expected"; + return null; + }; + + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + */ + Declaration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + if (object.number != null) + message.number = object.number | 0; + if (object.fullName != null) + message.fullName = String(object.fullName); + if (object.type != null) + message.type = String(object.type); + if (object.reserved != null) + message.reserved = Boolean(object.reserved); + if (object.repeated != null) + message.repeated = Boolean(object.repeated); + return message; + }; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Declaration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.number = 0; + object.fullName = ""; + object.type = ""; + object.reserved = false; + object.repeated = false; + } + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.fullName != null && message.hasOwnProperty("fullName")) + object.fullName = message.fullName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.reserved != null && message.hasOwnProperty("reserved")) + object.reserved = message.reserved; + if (message.repeated != null && message.hasOwnProperty("repeated")) + object.repeated = message.repeated; + return object; + }; + + /** + * Converts this Declaration to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + * @returns {Object.} JSON object + */ + Declaration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Declaration + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; + }; + + return Declaration; + })(); + + /** + * VerificationState enum. + * @name google.protobuf.ExtensionRangeOptions.VerificationState + * @enum {number} + * @property {number} DECLARATION=0 DECLARATION value + * @property {number} UNVERIFIED=1 UNVERIFIED value + */ + ExtensionRangeOptions.VerificationState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DECLARATION"] = 0; + values[valuesById[1] = "UNVERIFIED"] = 1; + return values; + })(); + return ExtensionRangeOptions; })(); @@ -2721,8 +3244,8 @@ default: return "label: enum value expected"; case 1: - case 2: case 3: + case 2: break; } if (message.type != null && message.hasOwnProperty("type")) @@ -2802,14 +3325,14 @@ case 1: message.label = 1; break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; case "LABEL_REPEATED": case 3: message.label = 3; break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; } switch (object.type) { default: @@ -3039,14 +3562,14 @@ * @name google.protobuf.FieldDescriptorProto.Label * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value */ FieldDescriptorProto.Label = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; values[valuesById[3] = "LABEL_REPEATED"] = 3; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; return values; })(); @@ -4745,7 +5268,6 @@ * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices * @property {boolean|null} [deprecated] FileOptions deprecated * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix @@ -4755,6 +5277,7 @@ * @property {string|null} [phpNamespace] FileOptions phpNamespace * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition */ @@ -4856,14 +5379,6 @@ */ FileOptions.prototype.pyGenericServices = false; - /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpGenericServices = false; - /** * FileOptions deprecated. * @member {boolean} deprecated @@ -4936,6 +5451,14 @@ */ FileOptions.prototype.rubyPackage = ""; + /** + * FileOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.features = null; + /** * FileOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -5010,12 +5533,12 @@ writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -5096,10 +5619,6 @@ message.pyGenericServices = reader.bool(); break; } - case 42: { - message.phpGenericServices = reader.bool(); - break; - } case 23: { message.deprecated = reader.bool(); break; @@ -5136,6 +5655,10 @@ message.rubyPackage = reader.string(); break; } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -5219,9 +5742,6 @@ if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) if (typeof message.pyGenericServices !== "boolean") return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -5249,6 +5769,11 @@ if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) if (!$util.isString(message.rubyPackage)) return "rubyPackage: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -5320,8 +5845,6 @@ message.javaGenericServices = Boolean(object.javaGenericServices); if (object.pyGenericServices != null) message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.ccEnableArenas != null) @@ -5340,6 +5863,11 @@ message.phpMetadataNamespace = String(object.phpMetadataNamespace); if (object.rubyPackage != null) message.rubyPackage = String(object.rubyPackage); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FileOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); @@ -5398,9 +5926,9 @@ object.swiftPrefix = ""; object.phpClassPrefix = ""; object.phpNamespace = ""; - object.phpGenericServices = false; object.phpMetadataNamespace = ""; object.rubyPackage = ""; + object.features = null; } if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) object.javaPackage = message.javaPackage; @@ -5436,12 +5964,12 @@ object.phpClassPrefix = message.phpClassPrefix; if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) object.phpMetadataNamespace = message.phpMetadataNamespace; if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) object.rubyPackage = message.rubyPackage; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -5511,6 +6039,7 @@ * @property {boolean|null} [deprecated] MessageOptions deprecated * @property {boolean|null} [mapEntry] MessageOptions mapEntry * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource */ @@ -5571,6 +6100,14 @@ */ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + /** + * MessageOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.features = null; + /** * MessageOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -5621,6 +6158,8 @@ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -5680,6 +6219,10 @@ message.deprecatedLegacyJsonFieldConflicts = reader.bool(); break; } + case 12: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -5740,6 +6283,11 @@ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -5779,6 +6327,11 @@ message.mapEntry = Boolean(object.mapEntry); if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MessageOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); @@ -5818,6 +6371,7 @@ object.deprecated = false; object.mapEntry = false; object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; object[".google.api.resource"] = null; } if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) @@ -5830,6 +6384,8 @@ object.mapEntry = message.mapEntry; if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -5884,7 +6440,9 @@ * @property {boolean|null} [weak] FieldOptions weak * @property {boolean|null} [debugRedact] FieldOptions debugRedact * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention - * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target + * @property {Array.|null} [targets] FieldOptions targets + * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults + * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference @@ -5902,6 +6460,8 @@ * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ function FieldOptions(properties) { + this.targets = []; + this.editionDefaults = []; this.uninterpretedOption = []; this[".google.api.fieldBehavior"] = []; if (properties) @@ -5983,12 +6543,28 @@ FieldOptions.prototype.retention = 0; /** - * FieldOptions target. - * @member {google.protobuf.FieldOptions.OptionTargetType} target + * FieldOptions targets. + * @member {Array.} targets * @memberof google.protobuf.FieldOptions * @instance */ - FieldOptions.prototype.target = 0; + FieldOptions.prototype.targets = $util.emptyArray; + + /** + * FieldOptions editionDefaults. + * @member {Array.} editionDefaults + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.editionDefaults = $util.emptyArray; + + /** + * FieldOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.features = null; /** * FieldOptions uninterpretedOption. @@ -6080,8 +6656,14 @@ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target); + if (message.targets != null && message.targets.length) + for (var i = 0; i < message.targets.length; ++i) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); + if (message.editionDefaults != null && message.editionDefaults.length) + for (var i = 0; i < message.editionDefaults.length; ++i) + $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -6169,8 +6751,25 @@ message.retention = reader.int32(); break; } - case 18: { - message.target = reader.int32(); + case 19: { + if (!(message.targets && message.targets.length)) + message.targets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.targets.push(reader.int32()); + } else + message.targets.push(reader.int32()); + break; + } + case 20: { + if (!(message.editionDefaults && message.editionDefaults.length)) + message.editionDefaults = []; + message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32())); + break; + } + case 21: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); break; } case 999: { @@ -6286,22 +6885,40 @@ case 2: break; } - if (message.target != null && message.hasOwnProperty("target")) - switch (message.target) { - default: - return "target: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + if (message.targets != null && message.hasOwnProperty("targets")) { + if (!Array.isArray(message.targets)) + return "targets: array expected"; + for (var i = 0; i < message.targets.length; ++i) + switch (message.targets[i]) { + default: + return "targets: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { + if (!Array.isArray(message.editionDefaults)) + return "editionDefaults: array expected"; + for (var i = 0; i < message.editionDefaults.length; ++i) { + var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]); + if (error) + return "editionDefaults." + error; } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -6326,6 +6943,7 @@ case 5: case 6: case 7: + case 8: break; } } @@ -6438,53 +7056,73 @@ message.retention = 2; break; } - switch (object.target) { - default: - if (typeof object.target === "number") { - message.target = object.target; - break; + if (object.targets) { + if (!Array.isArray(object.targets)) + throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); + message.targets = []; + for (var i = 0; i < object.targets.length; ++i) + switch (object.targets[i]) { + default: + if (typeof object.targets[i] === "number") { + message.targets[i] = object.targets[i]; + break; + } + case "TARGET_TYPE_UNKNOWN": + case 0: + message.targets[i] = 0; + break; + case "TARGET_TYPE_FILE": + case 1: + message.targets[i] = 1; + break; + case "TARGET_TYPE_EXTENSION_RANGE": + case 2: + message.targets[i] = 2; + break; + case "TARGET_TYPE_MESSAGE": + case 3: + message.targets[i] = 3; + break; + case "TARGET_TYPE_FIELD": + case 4: + message.targets[i] = 4; + break; + case "TARGET_TYPE_ONEOF": + case 5: + message.targets[i] = 5; + break; + case "TARGET_TYPE_ENUM": + case 6: + message.targets[i] = 6; + break; + case "TARGET_TYPE_ENUM_ENTRY": + case 7: + message.targets[i] = 7; + break; + case "TARGET_TYPE_SERVICE": + case 8: + message.targets[i] = 8; + break; + case "TARGET_TYPE_METHOD": + case 9: + message.targets[i] = 9; + break; + } + } + if (object.editionDefaults) { + if (!Array.isArray(object.editionDefaults)) + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); + message.editionDefaults = []; + for (var i = 0; i < object.editionDefaults.length; ++i) { + if (typeof object.editionDefaults[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); + message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]); } - break; - case "TARGET_TYPE_UNKNOWN": - case 0: - message.target = 0; - break; - case "TARGET_TYPE_FILE": - case 1: - message.target = 1; - break; - case "TARGET_TYPE_EXTENSION_RANGE": - case 2: - message.target = 2; - break; - case "TARGET_TYPE_MESSAGE": - case 3: - message.target = 3; - break; - case "TARGET_TYPE_FIELD": - case 4: - message.target = 4; - break; - case "TARGET_TYPE_ONEOF": - case 5: - message.target = 5; - break; - case "TARGET_TYPE_ENUM": - case 6: - message.target = 6; - break; - case "TARGET_TYPE_ENUM_ENTRY": - case 7: - message.target = 7; - break; - case "TARGET_TYPE_SERVICE": - case 8: - message.target = 8; - break; - case "TARGET_TYPE_METHOD": - case 9: - message.target = 9; - break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FieldOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) @@ -6539,6 +7177,10 @@ case 7: message[".google.api.fieldBehavior"][i] = 7; break; + case "IDENTIFIER": + case 8: + message[".google.api.fieldBehavior"][i] = 8; + break; } } if (object[".google.api.resourceReference"] != null) { @@ -6595,6 +7237,8 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { + object.targets = []; + object.editionDefaults = []; object.uninterpretedOption = []; object[".google.api.fieldBehavior"] = []; } @@ -6608,7 +7252,7 @@ object.unverifiedLazy = false; object.debugRedact = false; object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; - object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0; + object.features = null; object[".google.api.resourceReference"] = null; object[".google.cloud.operationField"] = options.enums === String ? "UNDEFINED" : 0; object[".google.cloud.operationRequestField"] = ""; @@ -6632,8 +7276,18 @@ object.debugRedact = message.debugRedact; if (message.retention != null && message.hasOwnProperty("retention")) object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; - if (message.target != null && message.hasOwnProperty("target")) - object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target; + if (message.targets && message.targets.length) { + object.targets = []; + for (var j = 0; j < message.targets.length; ++j) + object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; + } + if (message.editionDefaults && message.editionDefaults.length) { + object.editionDefaults = []; + for (var j = 0; j < message.editionDefaults.length; ++j) + object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options); + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -6759,6 +7413,297 @@ return values; })(); + FieldOptions.EditionDefault = (function() { + + /** + * Properties of an EditionDefault. + * @memberof google.protobuf.FieldOptions + * @interface IEditionDefault + * @property {google.protobuf.Edition|null} [edition] EditionDefault edition + * @property {string|null} [value] EditionDefault value + */ + + /** + * Constructs a new EditionDefault. + * @memberof google.protobuf.FieldOptions + * @classdesc Represents an EditionDefault. + * @implements IEditionDefault + * @constructor + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + */ + function EditionDefault(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]]; + } + + /** + * EditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.edition = 0; + + /** + * EditionDefault value. + * @member {string} value + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.value = ""; + + /** + * Creates a new EditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance + */ + EditionDefault.create = function create(properties) { + return new EditionDefault(properties); + }; + + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EditionDefault message. + * @function verify + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + */ + EditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) + return object; + var message = new $root.google.protobuf.FieldOptions.EditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this EditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + * @returns {Object.} JSON object + */ + EditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; + }; + + return EditionDefault; + })(); + return FieldOptions; })(); @@ -6768,6 +7713,7 @@ * Properties of an OneofOptions. * @memberof google.protobuf * @interface IOneofOptions + * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption */ @@ -6787,6 +7733,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * OneofOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.features = null; + /** * OneofOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -6819,6 +7773,8 @@ OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -6856,6 +7812,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -6897,6 +7857,11 @@ OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -6921,6 +7886,11 @@ if (object instanceof $root.google.protobuf.OneofOptions) return object; var message = new $root.google.protobuf.OneofOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.OneofOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); @@ -6949,6 +7919,10 @@ var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; + if (options.defaults) + object.features = null; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -6995,6 +7969,7 @@ * @property {boolean|null} [allowAlias] EnumOptions allowAlias * @property {boolean|null} [deprecated] EnumOptions deprecated * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ @@ -7038,6 +8013,14 @@ */ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + /** + * EnumOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.features = null; + /** * EnumOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -7076,6 +8059,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -7125,6 +8110,10 @@ message.deprecatedLegacyJsonFieldConflicts = reader.bool(); break; } + case 7: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -7175,6 +8164,11 @@ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -7205,6 +8199,11 @@ message.deprecated = Boolean(object.deprecated); if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); @@ -7237,6 +8236,7 @@ object.allowAlias = false; object.deprecated = false; object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; } if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) object.allowAlias = message.allowAlias; @@ -7244,6 +8244,8 @@ object.deprecated = message.deprecated; if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -7288,6 +8290,8 @@ * @memberof google.protobuf * @interface IEnumValueOptions * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features + * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ @@ -7315,6 +8319,22 @@ */ EnumValueOptions.prototype.deprecated = false; + /** + * EnumValueOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.features = null; + + /** + * EnumValueOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.debugRedact = false; + /** * EnumValueOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -7349,6 +8369,10 @@ writer = $Writer.create(); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -7390,6 +8414,14 @@ message.deprecated = reader.bool(); break; } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.debugRedact = reader.bool(); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -7434,6 +8466,14 @@ if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -7460,6 +8500,13 @@ var message = new $root.google.protobuf.EnumValueOptions(); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); @@ -7488,10 +8535,17 @@ var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) + if (options.defaults) { object.deprecated = false; + object.features = null; + object.debugRedact = false; + } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -7535,6 +8589,7 @@ * Properties of a ServiceOptions. * @memberof google.protobuf * @interface IServiceOptions + * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features * @property {boolean|null} [deprecated] ServiceOptions deprecated * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost @@ -7557,6 +8612,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ServiceOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.features = null; + /** * ServiceOptions deprecated. * @member {boolean} deprecated @@ -7615,6 +8678,8 @@ writer = $Writer.create(); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -7656,6 +8721,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 34: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 33: { message.deprecated = reader.bool(); break; @@ -7709,6 +8778,11 @@ ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -7742,6 +8816,11 @@ if (object instanceof $root.google.protobuf.ServiceOptions) return object; var message = new $root.google.protobuf.ServiceOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.uninterpretedOption) { @@ -7778,11 +8857,14 @@ object.uninterpretedOption = []; if (options.defaults) { object.deprecated = false; + object.features = null; object[".google.api.defaultHost"] = ""; object[".google.api.oauthScopes"] = ""; } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -7832,6 +8914,7 @@ * @interface IMethodOptions * @property {boolean|null} [deprecated] MethodOptions deprecated * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature @@ -7872,6 +8955,14 @@ */ MethodOptions.prototype.idempotencyLevel = 0; + /** + * MethodOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.features = null; + /** * MethodOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -7940,6 +9031,8 @@ writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -7994,6 +9087,10 @@ message.idempotencyLevel = reader.int32(); break; } + case 35: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -8065,6 +9162,11 @@ case 2: break; } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -8129,6 +9231,11 @@ message.idempotencyLevel = 2; break; } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MethodOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); @@ -8178,6 +9285,7 @@ if (options.defaults) { object.deprecated = false; object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object.features = null; object[".google.cloud.operationService"] = ""; object[".google.cloud.operationPollingMethod"] = false; object[".google.api.http"] = null; @@ -8186,6 +9294,8 @@ object.deprecated = message.deprecated; if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -8878,6 +9988,1268 @@ return UninterpretedOption; })(); + protobuf.FeatureSet = (function() { + + /** + * Properties of a FeatureSet. + * @memberof google.protobuf + * @interface IFeatureSet + * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence + * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType + * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding + * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation + * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding + * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat + */ + + /** + * Constructs a new FeatureSet. + * @memberof google.protobuf + * @classdesc Represents a FeatureSet. + * @implements IFeatureSet + * @constructor + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + */ + function FeatureSet(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]]; + } + + /** + * FeatureSet fieldPresence. + * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.fieldPresence = 0; + + /** + * FeatureSet enumType. + * @member {google.protobuf.FeatureSet.EnumType} enumType + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.enumType = 0; + + /** + * FeatureSet repeatedFieldEncoding. + * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.repeatedFieldEncoding = 0; + + /** + * FeatureSet utf8Validation. + * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.utf8Validation = 0; + + /** + * FeatureSet messageEncoding. + * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.messageEncoding = 0; + + /** + * FeatureSet jsonFormat. + * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.jsonFormat = 0; + + /** + * Creates a new FeatureSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + * @returns {google.protobuf.FeatureSet} FeatureSet instance + */ + FeatureSet.create = function create(properties) { + return new FeatureSet(properties); + }; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); + if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); + if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); + if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); + if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); + return writer; + }; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.fieldPresence = reader.int32(); + break; + } + case 2: { + message.enumType = reader.int32(); + break; + } + case 3: { + message.repeatedFieldEncoding = reader.int32(); + break; + } + case 4: { + message.utf8Validation = reader.int32(); + break; + } + case 5: { + message.messageEncoding = reader.int32(); + break; + } + case 6: { + message.jsonFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSet message. + * @function verify + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + switch (message.fieldPresence) { + default: + return "fieldPresence: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) + switch (message.enumType) { + default: + return "enumType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + switch (message.repeatedFieldEncoding) { + default: + return "repeatedFieldEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + switch (message.utf8Validation) { + default: + return "utf8Validation: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + switch (message.messageEncoding) { + default: + return "messageEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + switch (message.jsonFormat) { + default: + return "jsonFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSet} FeatureSet + */ + FeatureSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSet) + return object; + var message = new $root.google.protobuf.FeatureSet(); + switch (object.fieldPresence) { + default: + if (typeof object.fieldPresence === "number") { + message.fieldPresence = object.fieldPresence; + break; + } + break; + case "FIELD_PRESENCE_UNKNOWN": + case 0: + message.fieldPresence = 0; + break; + case "EXPLICIT": + case 1: + message.fieldPresence = 1; + break; + case "IMPLICIT": + case 2: + message.fieldPresence = 2; + break; + case "LEGACY_REQUIRED": + case 3: + message.fieldPresence = 3; + break; + } + switch (object.enumType) { + default: + if (typeof object.enumType === "number") { + message.enumType = object.enumType; + break; + } + break; + case "ENUM_TYPE_UNKNOWN": + case 0: + message.enumType = 0; + break; + case "OPEN": + case 1: + message.enumType = 1; + break; + case "CLOSED": + case 2: + message.enumType = 2; + break; + } + switch (object.repeatedFieldEncoding) { + default: + if (typeof object.repeatedFieldEncoding === "number") { + message.repeatedFieldEncoding = object.repeatedFieldEncoding; + break; + } + break; + case "REPEATED_FIELD_ENCODING_UNKNOWN": + case 0: + message.repeatedFieldEncoding = 0; + break; + case "PACKED": + case 1: + message.repeatedFieldEncoding = 1; + break; + case "EXPANDED": + case 2: + message.repeatedFieldEncoding = 2; + break; + } + switch (object.utf8Validation) { + default: + if (typeof object.utf8Validation === "number") { + message.utf8Validation = object.utf8Validation; + break; + } + break; + case "UTF8_VALIDATION_UNKNOWN": + case 0: + message.utf8Validation = 0; + break; + case "VERIFY": + case 2: + message.utf8Validation = 2; + break; + case "NONE": + case 3: + message.utf8Validation = 3; + break; + } + switch (object.messageEncoding) { + default: + if (typeof object.messageEncoding === "number") { + message.messageEncoding = object.messageEncoding; + break; + } + break; + case "MESSAGE_ENCODING_UNKNOWN": + case 0: + message.messageEncoding = 0; + break; + case "LENGTH_PREFIXED": + case 1: + message.messageEncoding = 1; + break; + case "DELIMITED": + case 2: + message.messageEncoding = 2; + break; + } + switch (object.jsonFormat) { + default: + if (typeof object.jsonFormat === "number") { + message.jsonFormat = object.jsonFormat; + break; + } + break; + case "JSON_FORMAT_UNKNOWN": + case 0: + message.jsonFormat = 0; + break; + case "ALLOW": + case 1: + message.jsonFormat = 1; + break; + case "LEGACY_BEST_EFFORT": + case 2: + message.jsonFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.FeatureSet} message FeatureSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; + object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; + object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; + object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; + object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; + object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; + } + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; + if (message.enumType != null && message.hasOwnProperty("enumType")) + object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; + return object; + }; + + /** + * Converts this FeatureSet to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSet + * @instance + * @returns {Object.} JSON object + */ + FeatureSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSet + * @function getTypeUrl + * @memberof google.protobuf.FeatureSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSet"; + }; + + /** + * FieldPresence enum. + * @name google.protobuf.FeatureSet.FieldPresence + * @enum {number} + * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value + * @property {number} EXPLICIT=1 EXPLICIT value + * @property {number} IMPLICIT=2 IMPLICIT value + * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value + */ + FeatureSet.FieldPresence = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; + values[valuesById[1] = "EXPLICIT"] = 1; + values[valuesById[2] = "IMPLICIT"] = 2; + values[valuesById[3] = "LEGACY_REQUIRED"] = 3; + return values; + })(); + + /** + * EnumType enum. + * @name google.protobuf.FeatureSet.EnumType + * @enum {number} + * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value + * @property {number} OPEN=1 OPEN value + * @property {number} CLOSED=2 CLOSED value + */ + FeatureSet.EnumType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "OPEN"] = 1; + values[valuesById[2] = "CLOSED"] = 2; + return values; + })(); + + /** + * RepeatedFieldEncoding enum. + * @name google.protobuf.FeatureSet.RepeatedFieldEncoding + * @enum {number} + * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value + * @property {number} PACKED=1 PACKED value + * @property {number} EXPANDED=2 EXPANDED value + */ + FeatureSet.RepeatedFieldEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "PACKED"] = 1; + values[valuesById[2] = "EXPANDED"] = 2; + return values; + })(); + + /** + * Utf8Validation enum. + * @name google.protobuf.FeatureSet.Utf8Validation + * @enum {number} + * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value + * @property {number} VERIFY=2 VERIFY value + * @property {number} NONE=3 NONE value + */ + FeatureSet.Utf8Validation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; + values[valuesById[2] = "VERIFY"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + /** + * MessageEncoding enum. + * @name google.protobuf.FeatureSet.MessageEncoding + * @enum {number} + * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value + * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value + * @property {number} DELIMITED=2 DELIMITED value + */ + FeatureSet.MessageEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "LENGTH_PREFIXED"] = 1; + values[valuesById[2] = "DELIMITED"] = 2; + return values; + })(); + + /** + * JsonFormat enum. + * @name google.protobuf.FeatureSet.JsonFormat + * @enum {number} + * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value + * @property {number} ALLOW=1 ALLOW value + * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value + */ + FeatureSet.JsonFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "ALLOW"] = 1; + values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; + return values; + })(); + + return FeatureSet; + })(); + + protobuf.FeatureSetDefaults = (function() { + + /** + * Properties of a FeatureSetDefaults. + * @memberof google.protobuf + * @interface IFeatureSetDefaults + * @property {Array.|null} [defaults] FeatureSetDefaults defaults + * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition + * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition + */ + + /** + * Constructs a new FeatureSetDefaults. + * @memberof google.protobuf + * @classdesc Represents a FeatureSetDefaults. + * @implements IFeatureSetDefaults + * @constructor + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + */ + function FeatureSetDefaults(properties) { + this.defaults = []; + 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]]; + } + + /** + * FeatureSetDefaults defaults. + * @member {Array.} defaults + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.defaults = $util.emptyArray; + + /** + * FeatureSetDefaults minimumEdition. + * @member {google.protobuf.Edition} minimumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.minimumEdition = 0; + + /** + * FeatureSetDefaults maximumEdition. + * @member {google.protobuf.Edition} maximumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.maximumEdition = 0; + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance + */ + FeatureSetDefaults.create = function create(properties) { + return new FeatureSetDefaults(properties); + }; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.defaults.length) + for (var i = 0; i < message.defaults.length; ++i) + $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); + return writer; + }; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.defaults && message.defaults.length)) + message.defaults = []; + message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32())); + break; + } + case 4: { + message.minimumEdition = reader.int32(); + break; + } + case 5: { + message.maximumEdition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetDefaults message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + if (!Array.isArray(message.defaults)) + return "defaults: array expected"; + for (var i = 0; i < message.defaults.length; ++i) { + var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]); + if (error) + return "defaults." + error; + } + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + switch (message.minimumEdition) { + default: + return "minimumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + switch (message.maximumEdition) { + default: + return "maximumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + */ + FeatureSetDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults(); + if (object.defaults) { + if (!Array.isArray(object.defaults)) + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); + message.defaults = []; + for (var i = 0; i < object.defaults.length; ++i) { + if (typeof object.defaults[i] !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); + message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]); + } + } + switch (object.minimumEdition) { + default: + if (typeof object.minimumEdition === "number") { + message.minimumEdition = object.minimumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.minimumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.minimumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.minimumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.minimumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.minimumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.minimumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.minimumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.minimumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.minimumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.minimumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.minimumEdition = 2147483647; + break; + } + switch (object.maximumEdition) { + default: + if (typeof object.maximumEdition === "number") { + message.maximumEdition = object.maximumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.maximumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.maximumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.maximumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.maximumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.maximumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.maximumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.maximumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.maximumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.maximumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.maximumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.maximumEdition = 2147483647; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.defaults = []; + if (options.defaults) { + object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.defaults && message.defaults.length) { + object.defaults = []; + for (var j = 0; j < message.defaults.length; ++j) + object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options); + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; + return object; + }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults + * @instance + * @returns {Object.} JSON object + */ + FeatureSetDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetDefaults + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; + }; + + FeatureSetDefaults.FeatureSetEditionDefault = (function() { + + /** + * Properties of a FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @interface IFeatureSetEditionDefault + * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition + * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features + */ + + /** + * Constructs a new FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @classdesc Represents a FeatureSetEditionDefault. + * @implements IFeatureSetEditionDefault + * @constructor + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + */ + function FeatureSetEditionDefault(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]]; + } + + /** + * FeatureSetEditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.edition = 0; + + /** + * FeatureSetEditionDefault features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.features = null; + + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance + */ + FeatureSetEditionDefault.create = function create(properties) { + return new FeatureSetEditionDefault(properties); + }; + + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetEditionDefault message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetEditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + return null; + }; + + /** + * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + */ + FeatureSetEditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetEditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.features = null; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this FeatureSetEditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + * @returns {Object.} JSON object + */ + FeatureSetEditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetEditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; + }; + + return FeatureSetEditionDefault; + })(); + + return FeatureSetDefaults; + })(); + protobuf.SourceCodeInfo = (function() { /** @@ -29162,31 +31534,31 @@ 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) @@ -29194,171 +31566,171 @@ } /** - * 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; /** - * AggregatedListInterconnectAttachmentsRequest _filter. + * AggregatedListInstantSnapshotsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _includeAllScopes. + * AggregatedListInstantSnapshotsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _maxResults. + * AggregatedListInstantSnapshotsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _orderBy. + * AggregatedListInstantSnapshotsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _pageToken. + * AggregatedListInstantSnapshotsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _returnPartialSuccess. + * AggregatedListInstantSnapshotsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListInterconnectAttachmentsRequest _serviceProjectNumber. + * AggregatedListInstantSnapshotsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - 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")) @@ -29381,33 +31753,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) { + AggregatedListInstantSnapshotsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -29452,30 +31824,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 = {}; @@ -29521,17 +31893,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) @@ -29559,15 +31931,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 = {}; @@ -29617,59 +31989,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) @@ -29677,171 +32049,171 @@ } /** - * 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; /** - * AggregatedListMachineTypesRequest _filter. + * AggregatedListInterconnectAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _maxResults. + * AggregatedListInterconnectAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _orderBy. + * AggregatedListInterconnectAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _pageToken. + * AggregatedListInterconnectAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListMachineTypesRequest _serviceProjectNumber. + * AggregatedListInterconnectAttachmentsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - 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")) @@ -29864,33 +32236,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) { + AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -29935,30 +32307,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 = {}; @@ -30004,17 +32376,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) @@ -30042,15 +32414,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 = {}; @@ -30100,59 +32472,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) @@ -30160,171 +32532,171 @@ } /** - * 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; /** - * AggregatedListNetworkAttachmentsRequest _filter. + * AggregatedListMachineTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _includeAllScopes. + * AggregatedListMachineTypesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _maxResults. + * AggregatedListMachineTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _orderBy. + * AggregatedListMachineTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _pageToken. + * AggregatedListMachineTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. + * AggregatedListMachineTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkAttachmentsRequest _serviceProjectNumber. + * AggregatedListMachineTypesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - 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")) @@ -30347,33 +32719,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) { + AggregatedListMachineTypesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -30418,30 +32790,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 = {}; @@ -30487,17 +32859,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) @@ -30525,15 +32897,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 = {}; @@ -30583,59 +32955,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) @@ -30643,171 +33015,171 @@ } /** - * 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; /** - * AggregatedListNetworkEdgeSecurityServicesRequest _filter. + * AggregatedListNetworkAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. + * AggregatedListNetworkAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. + * AggregatedListNetworkAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. + * AggregatedListNetworkAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. + * AggregatedListNetworkAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _serviceProjectNumber. + * AggregatedListNetworkAttachmentsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - 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")) @@ -30830,33 +33202,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) { + AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -30901,30 +33273,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 = {}; @@ -30970,17 +33342,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) @@ -31008,15 +33380,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 = {}; @@ -31066,59 +33438,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) @@ -31126,171 +33498,171 @@ } /** - * 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; /** - * AggregatedListNetworkEndpointGroupsRequest _filter. + * AggregatedListNetworkEdgeSecurityServicesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _serviceProjectNumber. + * AggregatedListNetworkEdgeSecurityServicesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - 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")) @@ -31313,33 +33685,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) { + AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -31384,30 +33756,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 = {}; @@ -31453,17 +33825,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) @@ -31491,15 +33863,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 = {}; @@ -31549,59 +33921,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.AggregatedListNodeGroupsRequest = (function() { + v1.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @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 IAggregatedListNetworkEndpointGroupsRequest + * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31609,171 +33981,171 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeGroupsRequest serviceProjectNumber. + * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeGroupsRequest _filter. + * AggregatedListNetworkEndpointGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _maxResults. + * AggregatedListNetworkEndpointGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _orderBy. + * AggregatedListNetworkEndpointGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _pageToken. + * AggregatedListNetworkEndpointGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _serviceProjectNumber. + * AggregatedListNetworkEndpointGroupsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.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.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest 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 */ - AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -31796,33 +34168,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.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.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest 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 */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @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.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @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 */ - AggregatedListNodeGroupsRequest.decode = function decode(reader, length) { + AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length) { 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.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -31867,30 +34239,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @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 */ - AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @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 */ - AggregatedListNodeGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31936,17 +34308,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31974,15 +34346,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32032,59 +34404,59 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeGroupsRequest + * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - 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) @@ -32092,171 +34464,171 @@ } /** - * 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; /** - * AggregatedListNodeTemplatesRequest _filter. + * AggregatedListNodeGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _includeAllScopes. + * AggregatedListNodeGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _maxResults. + * AggregatedListNodeGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _orderBy. + * AggregatedListNodeGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _pageToken. + * AggregatedListNodeGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _returnPartialSuccess. + * AggregatedListNodeGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _serviceProjectNumber. + * AggregatedListNodeGroupsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - 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")) @@ -32279,33 +34651,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) { + AggregatedListNodeGroupsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -32350,30 +34722,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 = {}; @@ -32419,17 +34791,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) @@ -32457,15 +34829,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 = {}; @@ -32515,59 +34887,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) @@ -32575,171 +34947,171 @@ } /** - * 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; /** - * AggregatedListNodeTypesRequest _filter. + * AggregatedListNodeTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _includeAllScopes. + * AggregatedListNodeTemplatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _maxResults. + * AggregatedListNodeTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _orderBy. + * AggregatedListNodeTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _pageToken. + * AggregatedListNodeTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _returnPartialSuccess. + * AggregatedListNodeTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _serviceProjectNumber. + * AggregatedListNodeTemplatesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - 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")) @@ -32762,33 +35134,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) { + AggregatedListNodeTemplatesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -32833,30 +35205,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 = {}; @@ -32902,17 +35274,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) @@ -32940,15 +35312,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 = {}; @@ -32998,59 +35370,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) @@ -33058,171 +35430,171 @@ } /** - * 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; /** - * AggregatedListPacketMirroringsRequest _filter. + * AggregatedListNodeTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _includeAllScopes. + * AggregatedListNodeTypesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _maxResults. + * AggregatedListNodeTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _orderBy. + * AggregatedListNodeTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _pageToken. + * AggregatedListNodeTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _returnPartialSuccess. + * AggregatedListNodeTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _serviceProjectNumber. + * AggregatedListNodeTypesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - 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")) @@ -33245,33 +35617,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) { + AggregatedListNodeTypesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -33316,30 +35688,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 = {}; @@ -33385,17 +35757,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) @@ -33423,15 +35795,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 = {}; @@ -33481,59 +35853,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) @@ -33541,171 +35913,171 @@ } /** - * 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; /** - * AggregatedListPublicDelegatedPrefixesRequest _filter. + * AggregatedListPacketMirroringsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. + * AggregatedListPacketMirroringsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _maxResults. + * AggregatedListPacketMirroringsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _orderBy. + * AggregatedListPacketMirroringsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _pageToken. + * AggregatedListPacketMirroringsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. + * AggregatedListPacketMirroringsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _serviceProjectNumber. + * AggregatedListPacketMirroringsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - 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")) @@ -33728,33 +36100,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) { + AggregatedListPacketMirroringsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -33799,30 +36171,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 = {}; @@ -33868,17 +36240,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) @@ -33906,15 +36278,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 = {}; @@ -33964,59 +36336,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) @@ -34024,171 +36396,171 @@ } /** - * 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; /** - * AggregatedListRegionCommitmentsRequest _filter. + * AggregatedListPublicDelegatedPrefixesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _maxResults. + * AggregatedListPublicDelegatedPrefixesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _orderBy. + * AggregatedListPublicDelegatedPrefixesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _pageToken. + * AggregatedListPublicDelegatedPrefixesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _serviceProjectNumber. + * AggregatedListPublicDelegatedPrefixesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - 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")) @@ -34211,33 +36583,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) { + AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -34282,30 +36654,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 = {}; @@ -34351,17 +36723,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) @@ -34389,15 +36761,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 = {}; @@ -34447,59 +36819,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.AggregatedListReservationsRequest = (function() { + v1.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @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 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 AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34507,171 +36879,171 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListReservationsRequest serviceProjectNumber. + * AggregatedListRegionCommitmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCommitmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListReservationsRequest _filter. + * AggregatedListRegionCommitmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _includeAllScopes. + * AggregatedListRegionCommitmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _maxResults. + * AggregatedListRegionCommitmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _orderBy. + * AggregatedListRegionCommitmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _pageToken. + * AggregatedListRegionCommitmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _serviceProjectNumber. + * AggregatedListRegionCommitmentsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.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.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest 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 */ - AggregatedListReservationsRequest.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")) @@ -34694,33 +37066,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.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.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest 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 */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @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.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @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 */ - AggregatedListReservationsRequest.decode = function decode(reader, length) { + AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length) { 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.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -34765,30 +37137,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest 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.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @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 */ - AggregatedListReservationsRequest.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 AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @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 */ - AggregatedListReservationsRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34834,17 +37206,17 @@ }; /** - * Creates an AggregatedListReservationsRequest 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.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34872,15 +37244,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest 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.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34930,59 +37302,59 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.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 AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionCommitmentsRequest; })(); - 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) @@ -34990,171 +37362,171 @@ } /** - * 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; /** - * AggregatedListResourcePoliciesRequest _filter. + * AggregatedListReservationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _includeAllScopes. + * AggregatedListReservationsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _maxResults. + * AggregatedListReservationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _orderBy. + * AggregatedListReservationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _pageToken. + * AggregatedListReservationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _returnPartialSuccess. + * AggregatedListReservationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _serviceProjectNumber. + * AggregatedListReservationsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - 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")) @@ -35177,33 +37549,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) { + AggregatedListReservationsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -35248,30 +37620,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 = {}; @@ -35317,17 +37689,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) @@ -35355,15 +37727,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 = {}; @@ -35413,59 +37785,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) @@ -35473,171 +37845,171 @@ } /** - * 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; /** - * AggregatedListRoutersRequest _filter. + * AggregatedListResourcePoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _includeAllScopes. + * AggregatedListResourcePoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _maxResults. + * AggregatedListResourcePoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _orderBy. + * AggregatedListResourcePoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _pageToken. + * AggregatedListResourcePoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _returnPartialSuccess. + * AggregatedListResourcePoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _serviceProjectNumber. + * AggregatedListResourcePoliciesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - 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")) @@ -35660,33 +38032,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) { + AggregatedListResourcePoliciesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -35731,30 +38103,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 = {}; @@ -35800,17 +38172,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) @@ -35838,15 +38210,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 = {}; @@ -35896,59 +38268,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) @@ -35956,171 +38328,171 @@ } /** - * 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; /** - * AggregatedListSecurityPoliciesRequest _filter. + * AggregatedListRoutersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _includeAllScopes. + * AggregatedListRoutersRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _maxResults. + * AggregatedListRoutersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _orderBy. + * AggregatedListRoutersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _pageToken. + * AggregatedListRoutersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. + * AggregatedListRoutersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _serviceProjectNumber. + * AggregatedListRoutersRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - 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")) @@ -36143,33 +38515,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) { + AggregatedListRoutersRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -36214,30 +38586,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 = {}; @@ -36283,17 +38655,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) @@ -36321,15 +38693,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 = {}; @@ -36379,59 +38751,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) @@ -36439,171 +38811,171 @@ } /** - * 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; /** - * AggregatedListServiceAttachmentsRequest _filter. + * AggregatedListSecurityPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _includeAllScopes. + * AggregatedListSecurityPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _maxResults. + * AggregatedListSecurityPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _orderBy. + * AggregatedListSecurityPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _pageToken. + * AggregatedListSecurityPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _serviceProjectNumber. + * AggregatedListSecurityPoliciesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - 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")) @@ -36626,33 +38998,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) { + AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -36697,30 +39069,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 = {}; @@ -36766,17 +39138,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) @@ -36804,15 +39176,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 = {}; @@ -36862,59 +39234,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) @@ -36922,171 +39294,171 @@ } /** - * 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; /** - * AggregatedListSslCertificatesRequest _filter. + * AggregatedListServiceAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _includeAllScopes. + * AggregatedListServiceAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _maxResults. + * AggregatedListServiceAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _orderBy. + * AggregatedListServiceAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _pageToken. + * AggregatedListServiceAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _serviceProjectNumber. + * AggregatedListServiceAttachmentsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - 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")) @@ -37109,33 +39481,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) { + AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -37180,30 +39552,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 = {}; @@ -37249,17 +39621,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) @@ -37287,15 +39659,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 = {}; @@ -37345,59 +39717,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) @@ -37405,171 +39777,171 @@ } /** - * 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; /** - * AggregatedListSslPoliciesRequest _filter. + * AggregatedListSslCertificatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _includeAllScopes. + * AggregatedListSslCertificatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _maxResults. + * AggregatedListSslCertificatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _orderBy. + * AggregatedListSslCertificatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _pageToken. + * AggregatedListSslCertificatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _returnPartialSuccess. + * AggregatedListSslCertificatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _serviceProjectNumber. + * AggregatedListSslCertificatesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - 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")) @@ -37592,33 +39964,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) { + AggregatedListSslCertificatesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -37663,30 +40035,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 = {}; @@ -37732,17 +40104,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) @@ -37770,15 +40142,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 = {}; @@ -37828,59 +40200,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.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @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 + * @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 AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37888,171 +40260,171 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSubnetworksRequest serviceProjectNumber. + * AggregatedListSslPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; + AggregatedListSslPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSubnetworksRequest _filter. + * AggregatedListSslPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _includeAllScopes. + * AggregatedListSslPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _maxResults. + * AggregatedListSslPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _orderBy. + * AggregatedListSslPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _pageToken. + * AggregatedListSslPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _returnPartialSuccess. + * AggregatedListSslPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _serviceProjectNumber. + * AggregatedListSslPoliciesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest 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 */ - AggregatedListSubnetworksRequest.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")) @@ -38075,33 +40447,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest 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 */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @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.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.decode = function decode(reader, length) { + AggregatedListSslPoliciesRequest.decode = function decode(reader, length) { 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.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -38146,30 +40518,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest 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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.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 AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -38215,17 +40587,17 @@ }; /** - * Creates an AggregatedListSubnetworksRequest 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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -38253,15 +40625,15 @@ }; /** - * Creates a plain object from an AggregatedListSubnetworksRequest 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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -38311,59 +40683,59 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.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 AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListSubnetworksRequest; + return AggregatedListSslPoliciesRequest; })(); - 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 */ /** - * 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) @@ -38371,171 +40743,171 @@ } /** - * 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; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetHttpProxiesRequest _filter. + * AggregatedListSubnetworksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _includeAllScopes. + * AggregatedListSubnetworksRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _maxResults. + * AggregatedListSubnetworksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _orderBy. + * AggregatedListSubnetworksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _pageToken. + * AggregatedListSubnetworksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. + * AggregatedListSubnetworksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _serviceProjectNumber. + * AggregatedListSubnetworksRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), 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")) @@ -38558,33 +40930,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) { + AggregatedListSubnetworksRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -38629,30 +41001,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 = {}; @@ -38698,17 +41070,17 @@ }; /** - * 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) @@ -38736,15 +41108,15 @@ }; /** - * 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 = {}; @@ -38794,59 +41166,59 @@ }; /** - * 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; + 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) @@ -38854,171 +41226,171 @@ } /** - * 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; /** - * AggregatedListTargetHttpsProxiesRequest _filter. + * AggregatedListTargetHttpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. + * AggregatedListTargetHttpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _maxResults. + * AggregatedListTargetHttpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _orderBy. + * AggregatedListTargetHttpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _pageToken. + * AggregatedListTargetHttpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _serviceProjectNumber. + * AggregatedListTargetHttpProxiesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - 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")) @@ -39041,33 +41413,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) { + AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -39112,30 +41484,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 = {}; @@ -39181,17 +41553,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) @@ -39219,15 +41591,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 = {}; @@ -39277,59 +41649,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) @@ -39337,171 +41709,171 @@ } /** - * 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; /** - * AggregatedListTargetInstancesRequest _filter. + * AggregatedListTargetHttpsProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _maxResults. + * AggregatedListTargetHttpsProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _orderBy. + * AggregatedListTargetHttpsProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _pageToken. + * AggregatedListTargetHttpsProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _serviceProjectNumber. + * AggregatedListTargetHttpsProxiesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - 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")) @@ -39524,33 +41896,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) { + AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -39595,30 +41967,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 = {}; @@ -39664,17 +42036,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) @@ -39702,15 +42074,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 = {}; @@ -39760,59 +42132,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) @@ -39820,171 +42192,171 @@ } /** - * 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; /** - * AggregatedListTargetPoolsRequest _filter. + * AggregatedListTargetInstancesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _includeAllScopes. + * AggregatedListTargetInstancesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _maxResults. + * AggregatedListTargetInstancesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _orderBy. + * AggregatedListTargetInstancesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _pageToken. + * AggregatedListTargetInstancesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _returnPartialSuccess. + * AggregatedListTargetInstancesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _serviceProjectNumber. + * AggregatedListTargetInstancesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - 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")) @@ -40007,33 +42379,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) { + AggregatedListTargetInstancesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -40078,30 +42450,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 = {}; @@ -40147,17 +42519,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) @@ -40185,15 +42557,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 = {}; @@ -40243,59 +42615,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) @@ -40303,171 +42675,171 @@ } /** - * 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; /** - * AggregatedListTargetTcpProxiesRequest _filter. + * AggregatedListTargetPoolsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _includeAllScopes. + * AggregatedListTargetPoolsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _maxResults. + * AggregatedListTargetPoolsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _orderBy. + * AggregatedListTargetPoolsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _pageToken. + * AggregatedListTargetPoolsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. + * AggregatedListTargetPoolsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _serviceProjectNumber. + * AggregatedListTargetPoolsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - 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")) @@ -40490,33 +42862,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) { + AggregatedListTargetPoolsRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -40561,30 +42933,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 = {}; @@ -40630,17 +43002,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) @@ -40668,15 +43040,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 = {}; @@ -40726,59 +43098,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) @@ -40786,171 +43158,171 @@ } /** - * 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; /** - * AggregatedListTargetVpnGatewaysRequest _filter. + * AggregatedListTargetTcpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. + * AggregatedListTargetTcpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _maxResults. + * AggregatedListTargetTcpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _orderBy. + * AggregatedListTargetTcpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _pageToken. + * AggregatedListTargetTcpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _serviceProjectNumber. + * AggregatedListTargetTcpProxiesRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - 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")) @@ -40973,33 +43345,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) { + AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -41044,30 +43416,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 = {}; @@ -41113,17 +43485,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) @@ -41151,15 +43523,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 = {}; @@ -41209,59 +43581,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) @@ -41269,171 +43641,171 @@ } /** - * 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; /** - * AggregatedListUrlMapsRequest _filter. + * AggregatedListTargetVpnGatewaysRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _maxResults. + * AggregatedListTargetVpnGatewaysRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _orderBy. + * AggregatedListTargetVpnGatewaysRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _pageToken. + * AggregatedListTargetVpnGatewaysRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _serviceProjectNumber. + * AggregatedListTargetVpnGatewaysRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - 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")) @@ -41456,33 +43828,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) { + AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length) { 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(); switch (tag >>> 3) { @@ -41527,30 +43899,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 = {}; @@ -41596,17 +43968,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) @@ -41634,15 +44006,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 = {}; @@ -41692,59 +44064,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) @@ -41752,171 +44124,171 @@ } /** - * 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; /** - * AggregatedListVpnGatewaysRequest _filter. + * AggregatedListUrlMapsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _includeAllScopes. + * AggregatedListUrlMapsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _maxResults. + * AggregatedListUrlMapsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _orderBy. + * AggregatedListUrlMapsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _pageToken. + * AggregatedListUrlMapsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListUrlMapsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _serviceProjectNumber. + * AggregatedListUrlMapsRequest _serviceProjectNumber. * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - 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")) @@ -41939,33 +44311,516 @@ }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * 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.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.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @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.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @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 */ - AggregatedListVpnGatewaysRequest.decode = function decode(reader, length) { + AggregatedListUrlMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + 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(); + 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; + + /** + * AggregatedListVpnGatewaysRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _includeAllScopes. + * @member {"includeAllScopes"|undefined} _includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _serviceProjectNumber. + * @member {"serviceProjectNumber"|undefined} _serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + 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")) + 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 AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @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.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @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.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnGatewaysRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55320,6 +58175,7 @@ * @property {number|null} [maxRatePerEndpoint] Backend maxRatePerEndpoint * @property {number|null} [maxRatePerInstance] Backend maxRatePerInstance * @property {number|null} [maxUtilization] Backend maxUtilization + * @property {string|null} [preference] Backend preference */ /** @@ -55433,6 +58289,14 @@ */ Backend.prototype.maxUtilization = null; + /** + * Backend preference. + * @member {string|null|undefined} preference + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.preference = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -55568,6 +58432,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Backend _preference. + * @member {"preference"|undefined} _preference + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Object.defineProperty(Backend.prototype, "_preference", { + get: $util.oneOfGetter($oneOfFields = ["preference"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Backend instance using the specified properties. * @function create @@ -55606,6 +58481,8 @@ writer.uint32(/* id 138892530, wireType 0 =*/1111140240).bool(message.failover); if (message.maxUtilization != null && Object.hasOwnProperty.call(message, "maxUtilization")) 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.maxConnectionsPerEndpoint != null && Object.hasOwnProperty.call(message, "maxConnectionsPerEndpoint")) writer.uint32(/* id 216904604, wireType 0 =*/1735236832).int32(message.maxConnectionsPerEndpoint); if (message.capacityScaler != null && Object.hasOwnProperty.call(message, "capacityScaler")) @@ -55698,6 +58575,10 @@ message.maxUtilization = reader.float(); break; } + case 150781147: { + message.preference = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -55794,6 +58675,11 @@ if (typeof message.maxUtilization !== "number") return "maxUtilization: number expected"; } + if (message.preference != null && message.hasOwnProperty("preference")) { + properties._preference = 1; + if (!$util.isString(message.preference)) + return "preference: string expected"; + } return null; }; @@ -55833,6 +58719,8 @@ message.maxRatePerInstance = Number(object.maxRatePerInstance); if (object.maxUtilization != null) message.maxUtilization = Number(object.maxUtilization); + if (object.preference != null) + message.preference = String(object.preference); return message; }; @@ -55884,6 +58772,11 @@ if (options.oneofs) object._maxUtilization = "maxUtilization"; } + if (message.preference != null && message.hasOwnProperty("preference")) { + object.preference = message.preference; + if (options.oneofs) + object._preference = "preference"; + } if (message.maxConnectionsPerEndpoint != null && message.hasOwnProperty("maxConnectionsPerEndpoint")) { object.maxConnectionsPerEndpoint = message.maxConnectionsPerEndpoint; if (options.oneofs) @@ -55956,6 +58849,24 @@ return values; })(); + /** + * Preference enum. + * @name google.cloud.compute.v1.Backend.Preference + * @enum {number} + * @property {number} UNDEFINED_PREFERENCE=0 UNDEFINED_PREFERENCE value + * @property {number} DEFAULT=115302945 DEFAULT value + * @property {number} PREFERENCE_UNSPECIFIED=496219571 PREFERENCE_UNSPECIFIED value + * @property {number} PREFERRED=418847841 PREFERRED value + */ + Backend.Preference = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PREFERENCE"] = 0; + values[valuesById[115302945] = "DEFAULT"] = 115302945; + values[valuesById[496219571] = "PREFERENCE_UNSPECIFIED"] = 496219571; + values[valuesById[418847841] = "PREFERRED"] = 418847841; + return values; + })(); + return Backend; })(); @@ -58528,6 +61439,7 @@ * @property {google.cloud.compute.v1.ISecuritySettings|null} [securitySettings] BackendService securitySettings * @property {string|null} [selfLink] BackendService selfLink * @property {Array.|null} [serviceBindings] BackendService serviceBindings + * @property {string|null} [serviceLbPolicy] BackendService serviceLbPolicy * @property {string|null} [sessionAffinity] BackendService sessionAffinity * @property {google.cloud.compute.v1.ISubsetting|null} [subsetting] BackendService subsetting * @property {number|null} [timeoutSec] BackendService timeoutSec @@ -58853,6 +61765,14 @@ */ BackendService.prototype.serviceBindings = $util.emptyArray; + /** + * BackendService serviceLbPolicy. + * @member {string|null|undefined} serviceLbPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.serviceLbPolicy = null; + /** * BackendService sessionAffinity. * @member {string|null|undefined} sessionAffinity @@ -59218,6 +62138,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendService _serviceLbPolicy. + * @member {"serviceLbPolicy"|undefined} _serviceLbPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + Object.defineProperty(BackendService.prototype, "_serviceLbPolicy", { + get: $util.oneOfGetter($oneOfFields = ["serviceLbPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendService _sessionAffinity. * @member {"sessionAffinity"|undefined} _sessionAffinity @@ -59305,6 +62236,8 @@ writer.uint32(/* id 79994995, wireType 0 =*/639959960).int32(message.timeoutSec); if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) writer.uint32(/* id 84577944, wireType 2 =*/676623554).string(message.protocol); + if (message.serviceLbPolicy != null && Object.hasOwnProperty.call(message, "serviceLbPolicy")) + writer.uint32(/* id 94848785, wireType 2 =*/758790282).string(message.serviceLbPolicy); if (message.compressionMode != null && Object.hasOwnProperty.call(message, "compressionMode")) writer.uint32(/* id 95520988, wireType 2 =*/764167906).string(message.compressionMode); if (message.failoverPolicy != null && Object.hasOwnProperty.call(message, "failoverPolicy")) @@ -59578,6 +62511,10 @@ message.serviceBindings.push(reader.string()); break; } + case 94848785: { + message.serviceLbPolicy = reader.string(); + break; + } case 463888561: { message.sessionAffinity = reader.string(); break; @@ -59869,6 +62806,11 @@ if (!$util.isString(message.serviceBindings[i])) return "serviceBindings: string[] expected"; } + if (message.serviceLbPolicy != null && message.hasOwnProperty("serviceLbPolicy")) { + properties._serviceLbPolicy = 1; + if (!$util.isString(message.serviceLbPolicy)) + return "serviceLbPolicy: string expected"; + } if (message.sessionAffinity != null && message.hasOwnProperty("sessionAffinity")) { properties._sessionAffinity = 1; if (!$util.isString(message.sessionAffinity)) @@ -60066,6 +63008,8 @@ for (var i = 0; i < object.serviceBindings.length; ++i) message.serviceBindings[i] = String(object.serviceBindings[i]); } + if (object.serviceLbPolicy != null) + message.serviceLbPolicy = String(object.serviceLbPolicy); if (object.sessionAffinity != null) message.sessionAffinity = String(object.sessionAffinity); if (object.subsetting != null) { @@ -60186,6 +63130,11 @@ if (options.oneofs) object._protocol = "protocol"; } + if (message.serviceLbPolicy != null && message.hasOwnProperty("serviceLbPolicy")) { + object.serviceLbPolicy = message.serviceLbPolicy; + if (options.oneofs) + object._serviceLbPolicy = "serviceLbPolicy"; + } if (message.compressionMode != null && message.hasOwnProperty("compressionMode")) { object.compressionMode = message.compressionMode; if (options.oneofs) @@ -86494,6 +89443,298 @@ return DeleteInstancesRegionInstanceGroupManagerRequest; })(); + 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; + + /** + * DeleteInstantSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + */ + 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) { + 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(); + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = 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 DeleteInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + if (!$util.isString(message.instantSnapshot)) + return "instantSnapshot: 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 DeleteInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest + */ + DeleteInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteInstantSnapshotRequest(); + if (object.instantSnapshot != null) + message.instantSnapshot = String(object.instantSnapshot); + 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 DeleteInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.DeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.instantSnapshot = ""; + } + 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.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + object.instantSnapshot = message.instantSnapshot; + return object; + }; + + /** + * Converts this DeleteInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteInstantSnapshotRequest"; + }; + + return DeleteInstantSnapshotRequest; + })(); + v1.DeleteInterconnectAttachmentRequest = (function() { /** @@ -93364,6 +96605,298 @@ return DeleteRegionInstanceTemplateRequest; })(); + v1.DeleteRegionInstantSnapshotRequest = (function() { + + /** + * Properties of a DeleteRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionInstantSnapshotRequest + * @property {string|null} [instantSnapshot] DeleteRegionInstantSnapshotRequest instantSnapshot + * @property {string|null} [project] DeleteRegionInstantSnapshotRequest project + * @property {string|null} [region] DeleteRegionInstantSnapshotRequest region + * @property {string|null} [requestId] DeleteRegionInstantSnapshotRequest requestId + */ + + /** + * Constructs a new DeleteRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionInstantSnapshotRequest. + * @implements IDeleteRegionInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest=} [properties] Properties to set + */ + function DeleteRegionInstantSnapshotRequest(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]]; + } + + /** + * DeleteRegionInstantSnapshotRequest instantSnapshot. + * @member {string} instantSnapshot + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + */ + DeleteRegionInstantSnapshotRequest.prototype.instantSnapshot = ""; + + /** + * DeleteRegionInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + */ + DeleteRegionInstantSnapshotRequest.prototype.project = ""; + + /** + * DeleteRegionInstantSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + */ + DeleteRegionInstantSnapshotRequest.prototype.region = ""; + + /** + * DeleteRegionInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + */ + DeleteRegionInstantSnapshotRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteRegionInstantSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + */ + Object.defineProperty(DeleteRegionInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest} DeleteRegionInstantSnapshotRequest instance + */ + DeleteRegionInstantSnapshotRequest.create = function create(properties) { + return new DeleteRegionInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest} message DeleteRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotRequest.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.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) + writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); + return writer; + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest} message DeleteRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @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.DeleteRegionInstantSnapshotRequest} DeleteRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = 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 DeleteRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest} DeleteRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + if (!$util.isString(message.instantSnapshot)) + return "instantSnapshot: 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 DeleteRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest} DeleteRegionInstantSnapshotRequest + */ + DeleteRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest(); + if (object.instantSnapshot != null) + message.instantSnapshot = String(object.instantSnapshot); + 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 DeleteRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest} message DeleteRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instantSnapshot = ""; + } + 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.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + object.instantSnapshot = message.instantSnapshot; + return object; + }; + + /** + * Converts this DeleteRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest"; + }; + + return DeleteRegionInstantSnapshotRequest; + })(); + v1.DeleteRegionNetworkEndpointGroupRequest = (function() { /** @@ -106363,6 +109896,8 @@ * @property {string|null} [sourceImage] Disk sourceImage * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceImageEncryptionKey] Disk sourceImageEncryptionKey * @property {string|null} [sourceImageId] Disk sourceImageId + * @property {string|null} [sourceInstantSnapshot] Disk sourceInstantSnapshot + * @property {string|null} [sourceInstantSnapshotId] Disk sourceInstantSnapshotId * @property {string|null} [sourceSnapshot] Disk sourceSnapshot * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceSnapshotEncryptionKey] Disk sourceSnapshotEncryptionKey * @property {string|null} [sourceSnapshotId] Disk sourceSnapshotId @@ -106700,6 +110235,22 @@ */ Disk.prototype.sourceImageId = null; + /** + * Disk sourceInstantSnapshot. + * @member {string|null|undefined} sourceInstantSnapshot + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.sourceInstantSnapshot = null; + + /** + * Disk sourceInstantSnapshotId. + * @member {string|null|undefined} sourceInstantSnapshotId + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.sourceInstantSnapshotId = null; + /** * Disk sourceSnapshot. * @member {string|null|undefined} sourceSnapshot @@ -107108,6 +110659,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Disk _sourceInstantSnapshot. + * @member {"sourceInstantSnapshot"|undefined} _sourceInstantSnapshot + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_sourceInstantSnapshot", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshot"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Disk _sourceInstantSnapshotId. + * @member {"sourceInstantSnapshotId"|undefined} _sourceInstantSnapshotId + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_sourceInstantSnapshotId", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Disk _sourceSnapshot. * @member {"sourceSnapshot"|undefined} _sourceSnapshot @@ -107267,6 +110840,8 @@ writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); if (message.provisionedIops != null && Object.hasOwnProperty.call(message, "provisionedIops")) writer.uint32(/* id 186769108, wireType 0 =*/1494152864).int64(message.provisionedIops); + if (message.sourceInstantSnapshot != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshot")) + writer.uint32(/* id 219202054, wireType 2 =*/1753616434).string(message.sourceInstantSnapshot); if (message.sourceStorageObject != null && Object.hasOwnProperty.call(message, "sourceStorageObject")) writer.uint32(/* id 233052711, wireType 2 =*/1864421690).string(message.sourceStorageObject); if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) @@ -107275,6 +110850,8 @@ writer.uint32(/* id 267568957, wireType 2 =*/2140551658).string(message.sourceConsistencyGroupPolicyId); if (message.diskEncryptionKey != null && Object.hasOwnProperty.call(message, "diskEncryptionKey")) $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.diskEncryptionKey, writer.uint32(/* id 271660677, wireType 2 =*/2173285418).fork()).ldelim(); + 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")) writer.uint32(/* id 302803283, wireType 2 =*/2422426266).string(message.architecture); if (message.sourceSnapshotEncryptionKey != null && Object.hasOwnProperty.call(message, "sourceSnapshotEncryptionKey")) @@ -107553,6 +111130,14 @@ message.sourceImageId = reader.string(); break; } + case 219202054: { + message.sourceInstantSnapshot = reader.string(); + break; + } + case 287582708: { + message.sourceInstantSnapshotId = reader.string(); + break; + } case 126061928: { message.sourceSnapshot = reader.string(); break; @@ -107848,6 +111433,16 @@ if (!$util.isString(message.sourceImageId)) return "sourceImageId: string expected"; } + if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { + properties._sourceInstantSnapshot = 1; + if (!$util.isString(message.sourceInstantSnapshot)) + return "sourceInstantSnapshot: string expected"; + } + if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { + properties._sourceInstantSnapshotId = 1; + if (!$util.isString(message.sourceInstantSnapshotId)) + return "sourceInstantSnapshotId: string expected"; + } if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { properties._sourceSnapshot = 1; if (!$util.isString(message.sourceSnapshot)) @@ -108082,6 +111677,10 @@ } if (object.sourceImageId != null) message.sourceImageId = String(object.sourceImageId); + if (object.sourceInstantSnapshot != null) + message.sourceInstantSnapshot = String(object.sourceInstantSnapshot); + if (object.sourceInstantSnapshotId != null) + message.sourceInstantSnapshotId = String(object.sourceInstantSnapshotId); if (object.sourceSnapshot != null) message.sourceSnapshot = String(object.sourceSnapshot); if (object.sourceSnapshotEncryptionKey != null) { @@ -108268,6 +111867,11 @@ if (options.oneofs) object._provisionedIops = "provisionedIops"; } + if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { + object.sourceInstantSnapshot = message.sourceInstantSnapshot; + if (options.oneofs) + object._sourceInstantSnapshot = "sourceInstantSnapshot"; + } if (message.sourceStorageObject != null && message.hasOwnProperty("sourceStorageObject")) { object.sourceStorageObject = message.sourceStorageObject; if (options.oneofs) @@ -108288,6 +111892,11 @@ if (options.oneofs) object._diskEncryptionKey = "diskEncryptionKey"; } + if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { + object.sourceInstantSnapshotId = message.sourceInstantSnapshotId; + if (options.oneofs) + object._sourceInstantSnapshotId = "sourceInstantSnapshotId"; + } if (message.architecture != null && message.hasOwnProperty("architecture")) { object.architecture = message.architecture; if (options.oneofs) @@ -119369,6 +122978,7 @@ * @interface IExternalVpnGatewayInterface * @property {number|null} [id] ExternalVpnGatewayInterface id * @property {string|null} [ipAddress] ExternalVpnGatewayInterface ipAddress + * @property {string|null} [ipv6Address] ExternalVpnGatewayInterface ipv6Address */ /** @@ -119402,6 +123012,14 @@ */ ExternalVpnGatewayInterface.prototype.ipAddress = null; + /** + * ExternalVpnGatewayInterface ipv6Address. + * @member {string|null|undefined} ipv6Address + * @memberof google.cloud.compute.v1.ExternalVpnGatewayInterface + * @instance + */ + ExternalVpnGatewayInterface.prototype.ipv6Address = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -119427,6 +123045,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ExternalVpnGatewayInterface _ipv6Address. + * @member {"ipv6Address"|undefined} _ipv6Address + * @memberof google.cloud.compute.v1.ExternalVpnGatewayInterface + * @instance + */ + Object.defineProperty(ExternalVpnGatewayInterface.prototype, "_ipv6Address", { + get: $util.oneOfGetter($oneOfFields = ["ipv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ExternalVpnGatewayInterface instance using the specified properties. * @function create @@ -119453,6 +123082,8 @@ writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 3355, wireType 0 =*/26840).uint32(message.id); + if (message.ipv6Address != null && Object.hasOwnProperty.call(message, "ipv6Address")) + writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); return writer; @@ -119497,6 +123128,10 @@ message.ipAddress = reader.string(); break; } + case 341563804: { + message.ipv6Address = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -119543,6 +123178,11 @@ if (!$util.isString(message.ipAddress)) return "ipAddress: string expected"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + properties._ipv6Address = 1; + if (!$util.isString(message.ipv6Address)) + return "ipv6Address: string expected"; + } return null; }; @@ -119562,6 +123202,8 @@ message.id = object.id >>> 0; if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.ipv6Address != null) + message.ipv6Address = String(object.ipv6Address); return message; }; @@ -119583,6 +123225,11 @@ if (options.oneofs) object._id = "id"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + object.ipv6Address = message.ipv6Address; + if (options.oneofs) + object._ipv6Address = "ipv6Address"; + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { object.ipAddress = message.ipAddress; if (options.oneofs) @@ -139064,6 +142711,298 @@ return GetIamPolicyInstanceTemplateRequest; })(); + v1.GetIamPolicyInstantSnapshotRequest = (function() { + + /** + * Properties of a GetIamPolicyInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyInstantSnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInstantSnapshotRequest project + * @property {string|null} [resource] GetIamPolicyInstantSnapshotRequest resource + * @property {string|null} [zone] GetIamPolicyInstantSnapshotRequest zone + */ + + /** + * Constructs a new GetIamPolicyInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyInstantSnapshotRequest. + * @implements IGetIamPolicyInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + */ + function GetIamPolicyInstantSnapshotRequest(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]]; + } + + /** + * GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + */ + GetIamPolicyInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + */ + GetIamPolicyInstantSnapshotRequest.prototype.project = ""; + + /** + * GetIamPolicyInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + */ + GetIamPolicyInstantSnapshotRequest.prototype.resource = ""; + + /** + * GetIamPolicyInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + */ + GetIamPolicyInstantSnapshotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetIamPolicyInstantSnapshotRequest _optionsRequestedPolicyVersion. + * @member {"optionsRequestedPolicyVersion"|undefined} _optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + */ + Object.defineProperty(GetIamPolicyInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest instance + */ + GetIamPolicyInstantSnapshotRequest.create = function create(properties) { + return new GetIamPolicyInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyInstantSnapshotRequest.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 GetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @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.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyInstantSnapshotRequest.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 GetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + */ + GetIamPolicyInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest(); + 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 GetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyInstantSnapshotRequest.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 GetIamPolicyInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest"; + }; + + return GetIamPolicyInstantSnapshotRequest; + })(); + v1.GetIamPolicyLicenseRequest = (function() { /** @@ -141331,27 +145270,27 @@ return GetIamPolicyRegionDiskRequest; })(); - v1.GetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { + v1.GetIamPolicyRegionInstantSnapshotRequest = (function() { /** - * Properties of a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * Properties of a GetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @interface IGetIamPolicyRegionNetworkFirewallPolicyRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyRegionNetworkFirewallPolicyRequest project - * @property {string|null} [region] GetIamPolicyRegionNetworkFirewallPolicyRequest region - * @property {string|null} [resource] GetIamPolicyRegionNetworkFirewallPolicyRequest resource + * @interface IGetIamPolicyRegionInstantSnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionInstantSnapshotRequest project + * @property {string|null} [region] GetIamPolicyRegionInstantSnapshotRequest region + * @property {string|null} [resource] GetIamPolicyRegionInstantSnapshotRequest resource */ /** - * Constructs a new GetIamPolicyRegionNetworkFirewallPolicyRequest. + * Constructs a new GetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a GetIamPolicyRegionNetworkFirewallPolicyRequest. - * @implements IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @classdesc Represents a GetIamPolicyRegionInstantSnapshotRequest. + * @implements IGetIamPolicyRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set */ - function GetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { + function GetIamPolicyRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141359,73 +145298,73 @@ } /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion. + * GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyRegionInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest project. + * GetIamPolicyRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest region. + * GetIamPolicyRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest resource. + * GetIamPolicyRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest _optionsRequestedPolicyVersion. + * GetIamPolicyRegionInstantSnapshotRequest _optionsRequestedPolicyVersion. * @member {"optionsRequestedPolicyVersion"|undefined} _optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - Object.defineProperty(GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyRegionInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. + * Creates a new GetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { - return new GetIamPolicyRegionNetworkFirewallPolicyRequest(properties); + GetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { + return new GetIamPolicyRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + GetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -141440,33 +145379,325 @@ }; /** - * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length) { + GetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + */ + GetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest"; + }; + + return GetIamPolicyRegionInstantSnapshotRequest; + })(); + + v1.GetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionNetworkFirewallPolicyRequest project + * @property {string|null} [region] GetIamPolicyRegionNetworkFirewallPolicyRequest region + * @property {string|null} [resource] GetIamPolicyRegionNetworkFirewallPolicyRequest resource + */ + + /** + * Constructs a new GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @implements IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest _optionsRequestedPolicyVersion. + * @member {"optionsRequestedPolicyVersion"|undefined} _optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + Object.defineProperty(GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { + return new GetIamPolicyRegionNetworkFirewallPolicyRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -144514,6 +148745,256 @@ return GetInstanceTemplateRequest; })(); + v1.GetInstantSnapshotRequest = (function() { + + /** + * Properties of a GetInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetInstantSnapshotRequest + * @property {string|null} [instantSnapshot] GetInstantSnapshotRequest instantSnapshot + * @property {string|null} [project] GetInstantSnapshotRequest project + * @property {string|null} [zone] GetInstantSnapshotRequest zone + */ + + /** + * Constructs a new GetInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetInstantSnapshotRequest. + * @implements IGetInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest=} [properties] Properties to set + */ + function GetInstantSnapshotRequest(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]]; + } + + /** + * GetInstantSnapshotRequest instantSnapshot. + * @member {string} instantSnapshot + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @instance + */ + GetInstantSnapshotRequest.prototype.instantSnapshot = ""; + + /** + * GetInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @instance + */ + GetInstantSnapshotRequest.prototype.project = ""; + + /** + * GetInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @instance + */ + GetInstantSnapshotRequest.prototype.zone = ""; + + /** + * Creates a new GetInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetInstantSnapshotRequest} GetInstantSnapshotRequest instance + */ + GetInstantSnapshotRequest.create = function create(properties) { + return new GetInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest} message GetInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotRequest.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.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) + writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); + return writer; + }; + + /** + * Encodes the specified GetInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest} message GetInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @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.GetInstantSnapshotRequest} GetInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = 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 GetInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetInstantSnapshotRequest} GetInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + if (!$util.isString(message.instantSnapshot)) + return "instantSnapshot: 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 GetInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetInstantSnapshotRequest} GetInstantSnapshotRequest + */ + GetInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetInstantSnapshotRequest(); + if (object.instantSnapshot != null) + message.instantSnapshot = String(object.instantSnapshot); + 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 GetInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetInstantSnapshotRequest} message GetInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.instantSnapshot = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + object.instantSnapshot = message.instantSnapshot; + return object; + }; + + /** + * Converts this GetInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetInstantSnapshotRequest"; + }; + + return GetInstantSnapshotRequest; + })(); + v1.GetInterconnectAttachmentRequest = (function() { /** @@ -152761,6 +157242,256 @@ return GetRegionInstanceTemplateRequest; })(); + v1.GetRegionInstantSnapshotRequest = (function() { + + /** + * Properties of a GetRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionInstantSnapshotRequest + * @property {string|null} [instantSnapshot] GetRegionInstantSnapshotRequest instantSnapshot + * @property {string|null} [project] GetRegionInstantSnapshotRequest project + * @property {string|null} [region] GetRegionInstantSnapshotRequest region + */ + + /** + * Constructs a new GetRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionInstantSnapshotRequest. + * @implements IGetRegionInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest=} [properties] Properties to set + */ + function GetRegionInstantSnapshotRequest(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]]; + } + + /** + * GetRegionInstantSnapshotRequest instantSnapshot. + * @member {string} instantSnapshot + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @instance + */ + GetRegionInstantSnapshotRequest.prototype.instantSnapshot = ""; + + /** + * GetRegionInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @instance + */ + GetRegionInstantSnapshotRequest.prototype.project = ""; + + /** + * GetRegionInstantSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @instance + */ + GetRegionInstantSnapshotRequest.prototype.region = ""; + + /** + * Creates a new GetRegionInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotRequest} GetRegionInstantSnapshotRequest instance + */ + GetRegionInstantSnapshotRequest.create = function create(properties) { + return new GetRegionInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest} message GetRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotRequest.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.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) + writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); + return writer; + }; + + /** + * Encodes the specified GetRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest} message GetRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @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.GetRegionInstantSnapshotRequest} GetRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetRegionInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = 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 GetRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotRequest} GetRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + if (!$util.isString(message.instantSnapshot)) + return "instantSnapshot: 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 GetRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotRequest} GetRegionInstantSnapshotRequest + */ + GetRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionInstantSnapshotRequest(); + if (object.instantSnapshot != null) + message.instantSnapshot = String(object.instantSnapshot); + 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 GetRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetRegionInstantSnapshotRequest} message GetRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instantSnapshot = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instantSnapshot != null && message.hasOwnProperty("instantSnapshot")) + object.instantSnapshot = message.instantSnapshot; + return object; + }; + + /** + * Converts this GetRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionInstantSnapshotRequest"; + }; + + return GetRegionInstantSnapshotRequest; + })(); + v1.GetRegionNetworkEndpointGroupRequest = (function() { /** @@ -187377,6 +192108,303 @@ return InsertInstanceTemplateRequest; })(); + v1.InsertInstantSnapshotRequest = (function() { + + /** + * Properties of an InsertInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertInstantSnapshotRequest + * @property {google.cloud.compute.v1.IInstantSnapshot|null} [instantSnapshotResource] InsertInstantSnapshotRequest instantSnapshotResource + * @property {string|null} [project] InsertInstantSnapshotRequest project + * @property {string|null} [requestId] InsertInstantSnapshotRequest requestId + * @property {string|null} [zone] InsertInstantSnapshotRequest zone + */ + + /** + * Constructs a new InsertInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertInstantSnapshotRequest. + * @implements IInsertInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest=} [properties] Properties to set + */ + function InsertInstantSnapshotRequest(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]]; + } + + /** + * InsertInstantSnapshotRequest instantSnapshotResource. + * @member {google.cloud.compute.v1.IInstantSnapshot|null|undefined} instantSnapshotResource + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + */ + InsertInstantSnapshotRequest.prototype.instantSnapshotResource = null; + + /** + * InsertInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + */ + InsertInstantSnapshotRequest.prototype.project = ""; + + /** + * InsertInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + */ + InsertInstantSnapshotRequest.prototype.requestId = null; + + /** + * InsertInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + */ + InsertInstantSnapshotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertInstantSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + */ + Object.defineProperty(InsertInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertInstantSnapshotRequest} InsertInstantSnapshotRequest instance + */ + InsertInstantSnapshotRequest.create = function create(properties) { + return new InsertInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified InsertInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest} message InsertInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotRequest.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.instantSnapshotResource != null && Object.hasOwnProperty.call(message, "instantSnapshotResource")) + $root.google.cloud.compute.v1.InstantSnapshot.encode(message.instantSnapshotResource, writer.uint32(/* id 383915339, wireType 2 =*/3071322714).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest} message InsertInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @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.InsertInstantSnapshotRequest} InsertInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 383915339: { + message.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.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 InsertInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertInstantSnapshotRequest} InsertInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) { + var error = $root.google.cloud.compute.v1.InstantSnapshot.verify(message.instantSnapshotResource); + if (error) + return "instantSnapshotResource." + 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 InsertInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertInstantSnapshotRequest} InsertInstantSnapshotRequest + */ + InsertInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertInstantSnapshotRequest(); + if (object.instantSnapshotResource != null) { + if (typeof object.instantSnapshotResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertInstantSnapshotRequest.instantSnapshotResource: object expected"); + message.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.fromObject(object.instantSnapshotResource); + } + 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 InsertInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.InsertInstantSnapshotRequest} message InsertInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.instantSnapshotResource = 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.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) + object.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.toObject(message.instantSnapshotResource, options); + return object; + }; + + /** + * Converts this InsertInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + InsertInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertInstantSnapshotRequest"; + }; + + return InsertInstantSnapshotRequest; + })(); + v1.InsertInterconnectAttachmentRequest = (function() { /** @@ -193948,27 +198976,27 @@ return InsertRegionInstanceTemplateRequest; })(); - v1.InsertRegionNetworkEndpointGroupRequest = (function() { + v1.InsertRegionInstantSnapshotRequest = (function() { /** - * Properties of an InsertRegionNetworkEndpointGroupRequest. + * Properties of an InsertRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @interface IInsertRegionNetworkEndpointGroupRequest - * @property {google.cloud.compute.v1.INetworkEndpointGroup|null} [networkEndpointGroupResource] InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource - * @property {string|null} [project] InsertRegionNetworkEndpointGroupRequest project - * @property {string|null} [region] InsertRegionNetworkEndpointGroupRequest region - * @property {string|null} [requestId] InsertRegionNetworkEndpointGroupRequest requestId + * @interface IInsertRegionInstantSnapshotRequest + * @property {google.cloud.compute.v1.IInstantSnapshot|null} [instantSnapshotResource] InsertRegionInstantSnapshotRequest instantSnapshotResource + * @property {string|null} [project] InsertRegionInstantSnapshotRequest project + * @property {string|null} [region] InsertRegionInstantSnapshotRequest region + * @property {string|null} [requestId] InsertRegionInstantSnapshotRequest requestId */ /** - * Constructs a new InsertRegionNetworkEndpointGroupRequest. + * Constructs a new InsertRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an InsertRegionNetworkEndpointGroupRequest. - * @implements IInsertRegionNetworkEndpointGroupRequest + * @classdesc Represents an InsertRegionInstantSnapshotRequest. + * @implements IInsertRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set */ - function InsertRegionNetworkEndpointGroupRequest(properties) { + function InsertRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193976,73 +199004,73 @@ } /** - * InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource. - * @member {google.cloud.compute.v1.INetworkEndpointGroup|null|undefined} networkEndpointGroupResource - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * InsertRegionInstantSnapshotRequest instantSnapshotResource. + * @member {google.cloud.compute.v1.IInstantSnapshot|null|undefined} instantSnapshotResource + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.networkEndpointGroupResource = null; + InsertRegionInstantSnapshotRequest.prototype.instantSnapshotResource = null; /** - * InsertRegionNetworkEndpointGroupRequest project. + * InsertRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.project = ""; + InsertRegionInstantSnapshotRequest.prototype.project = ""; /** - * InsertRegionNetworkEndpointGroupRequest region. + * InsertRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.region = ""; + InsertRegionInstantSnapshotRequest.prototype.region = ""; /** - * InsertRegionNetworkEndpointGroupRequest requestId. + * InsertRegionInstantSnapshotRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionNetworkEndpointGroupRequest.prototype.requestId = null; + InsertRegionInstantSnapshotRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * InsertRegionNetworkEndpointGroupRequest _requestId. + * InsertRegionInstantSnapshotRequest _requestId. * @member {"requestId"|undefined} _requestId - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @instance */ - Object.defineProperty(InsertRegionNetworkEndpointGroupRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionInstantSnapshotRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new InsertRegionNetworkEndpointGroupRequest instance using the specified properties. + * Creates a new InsertRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest instance + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest instance */ - InsertRegionNetworkEndpointGroupRequest.create = function create(properties) { - return new InsertRegionNetworkEndpointGroupRequest(properties); + InsertRegionInstantSnapshotRequest.create = function create(properties) { + return new InsertRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified InsertRegionNetworkEndpointGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionNetworkEndpointGroupRequest.encode = function encode(message, writer) { + InsertRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) @@ -194051,44 +199079,341 @@ 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.networkEndpointGroupResource != null && Object.hasOwnProperty.call(message, "networkEndpointGroupResource")) - $root.google.cloud.compute.v1.NetworkEndpointGroup.encode(message.networkEndpointGroupResource, writer.uint32(/* id 525788839, wireType 2 =*/4206310714).fork()).ldelim(); + if (message.instantSnapshotResource != null && Object.hasOwnProperty.call(message, "instantSnapshotResource")) + $root.google.cloud.compute.v1.InstantSnapshot.encode(message.instantSnapshotResource, writer.uint32(/* id 383915339, wireType 2 =*/3071322714).fork()).ldelim(); return writer; }; /** - * Encodes the specified InsertRegionNetworkEndpointGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionNetworkEndpointGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionNetworkEndpointGroupRequest message from the specified reader or buffer. + * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest * @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.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionNetworkEndpointGroupRequest.decode = function decode(reader, length) { + InsertRegionInstantSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 525788839: { - message.networkEndpointGroupResource = $root.google.cloud.compute.v1.NetworkEndpointGroup.decode(reader, reader.uint32()); + case 383915339: { + message.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.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 InsertRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) { + var error = $root.google.cloud.compute.v1.InstantSnapshot.verify(message.instantSnapshotResource); + if (error) + return "instantSnapshotResource." + 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 InsertRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + */ + InsertRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest(); + if (object.instantSnapshotResource != null) { + if (typeof object.instantSnapshotResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionInstantSnapshotRequest.instantSnapshotResource: object expected"); + message.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.fromObject(object.instantSnapshotResource); + } + 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 InsertRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instantSnapshotResource = 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.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) + object.instantSnapshotResource = $root.google.cloud.compute.v1.InstantSnapshot.toObject(message.instantSnapshotResource, options); + return object; + }; + + /** + * Converts this InsertRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionInstantSnapshotRequest"; + }; + + return InsertRegionInstantSnapshotRequest; + })(); + + v1.InsertRegionNetworkEndpointGroupRequest = (function() { + + /** + * Properties of an InsertRegionNetworkEndpointGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionNetworkEndpointGroupRequest + * @property {google.cloud.compute.v1.INetworkEndpointGroup|null} [networkEndpointGroupResource] InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource + * @property {string|null} [project] InsertRegionNetworkEndpointGroupRequest project + * @property {string|null} [region] InsertRegionNetworkEndpointGroupRequest region + * @property {string|null} [requestId] InsertRegionNetworkEndpointGroupRequest requestId + */ + + /** + * Constructs a new InsertRegionNetworkEndpointGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionNetworkEndpointGroupRequest. + * @implements IInsertRegionNetworkEndpointGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + */ + function InsertRegionNetworkEndpointGroupRequest(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]]; + } + + /** + * InsertRegionNetworkEndpointGroupRequest networkEndpointGroupResource. + * @member {google.cloud.compute.v1.INetworkEndpointGroup|null|undefined} networkEndpointGroupResource + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.networkEndpointGroupResource = null; + + /** + * InsertRegionNetworkEndpointGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.project = ""; + + /** + * InsertRegionNetworkEndpointGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.region = ""; + + /** + * InsertRegionNetworkEndpointGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + InsertRegionNetworkEndpointGroupRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertRegionNetworkEndpointGroupRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @instance + */ + Object.defineProperty(InsertRegionNetworkEndpointGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionNetworkEndpointGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest instance + */ + InsertRegionNetworkEndpointGroupRequest.create = function create(properties) { + return new InsertRegionNetworkEndpointGroupRequest(properties); + }; + + /** + * Encodes the specified InsertRegionNetworkEndpointGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionNetworkEndpointGroupRequest.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.networkEndpointGroupResource != null && Object.hasOwnProperty.call(message, "networkEndpointGroupResource")) + $root.google.cloud.compute.v1.NetworkEndpointGroup.encode(message.networkEndpointGroupResource, writer.uint32(/* id 525788839, wireType 2 =*/4206310714).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionNetworkEndpointGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionNetworkEndpointGroupRequest} message InsertRegionNetworkEndpointGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionNetworkEndpointGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionNetworkEndpointGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest + * @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.InsertRegionNetworkEndpointGroupRequest} InsertRegionNetworkEndpointGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionNetworkEndpointGroupRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 525788839: { + message.networkEndpointGroupResource = $root.google.cloud.compute.v1.NetworkEndpointGroup.decode(reader, reader.uint32()); break; } case 227560217: { @@ -210683,6 +216008,7 @@ * Properties of an InstanceGroupManagerInstanceLifecyclePolicy. * @memberof google.cloud.compute.v1 * @interface IInstanceGroupManagerInstanceLifecyclePolicy + * @property {string|null} [defaultActionOnFailure] InstanceGroupManagerInstanceLifecyclePolicy defaultActionOnFailure * @property {string|null} [forceUpdateOnRepair] InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair */ @@ -210701,6 +216027,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * InstanceGroupManagerInstanceLifecyclePolicy defaultActionOnFailure. + * @member {string|null|undefined} defaultActionOnFailure + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + */ + InstanceGroupManagerInstanceLifecyclePolicy.prototype.defaultActionOnFailure = null; + /** * InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair. * @member {string|null|undefined} forceUpdateOnRepair @@ -210712,6 +216046,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * InstanceGroupManagerInstanceLifecyclePolicy _defaultActionOnFailure. + * @member {"defaultActionOnFailure"|undefined} _defaultActionOnFailure + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + */ + Object.defineProperty(InstanceGroupManagerInstanceLifecyclePolicy.prototype, "_defaultActionOnFailure", { + get: $util.oneOfGetter($oneOfFields = ["defaultActionOnFailure"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManagerInstanceLifecyclePolicy _forceUpdateOnRepair. * @member {"forceUpdateOnRepair"|undefined} _forceUpdateOnRepair @@ -210747,6 +216092,8 @@ InstanceGroupManagerInstanceLifecyclePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.defaultActionOnFailure != null && Object.hasOwnProperty.call(message, "defaultActionOnFailure")) + writer.uint32(/* id 61383253, wireType 2 =*/491066026).string(message.defaultActionOnFailure); if (message.forceUpdateOnRepair != null && Object.hasOwnProperty.call(message, "forceUpdateOnRepair")) writer.uint32(/* id 356302027, wireType 2 =*/2850416218).string(message.forceUpdateOnRepair); return writer; @@ -210783,6 +216130,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 61383253: { + message.defaultActionOnFailure = reader.string(); + break; + } case 356302027: { message.forceUpdateOnRepair = reader.string(); break; @@ -210823,6 +216174,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.defaultActionOnFailure != null && message.hasOwnProperty("defaultActionOnFailure")) { + properties._defaultActionOnFailure = 1; + if (!$util.isString(message.defaultActionOnFailure)) + return "defaultActionOnFailure: string expected"; + } if (message.forceUpdateOnRepair != null && message.hasOwnProperty("forceUpdateOnRepair")) { properties._forceUpdateOnRepair = 1; if (!$util.isString(message.forceUpdateOnRepair)) @@ -210843,6 +216199,8 @@ if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy) return object; var message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy(); + if (object.defaultActionOnFailure != null) + message.defaultActionOnFailure = String(object.defaultActionOnFailure); if (object.forceUpdateOnRepair != null) message.forceUpdateOnRepair = String(object.forceUpdateOnRepair); return message; @@ -210861,6 +216219,11 @@ if (!options) options = {}; var object = {}; + if (message.defaultActionOnFailure != null && message.hasOwnProperty("defaultActionOnFailure")) { + object.defaultActionOnFailure = message.defaultActionOnFailure; + if (options.oneofs) + object._defaultActionOnFailure = "defaultActionOnFailure"; + } if (message.forceUpdateOnRepair != null && message.hasOwnProperty("forceUpdateOnRepair")) { object.forceUpdateOnRepair = message.forceUpdateOnRepair; if (options.oneofs) @@ -210895,6 +216258,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy"; }; + /** + * DefaultActionOnFailure enum. + * @name google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.DefaultActionOnFailure + * @enum {number} + * @property {number} UNDEFINED_DEFAULT_ACTION_ON_FAILURE=0 UNDEFINED_DEFAULT_ACTION_ON_FAILURE value + * @property {number} DO_NOTHING=451307513 DO_NOTHING value + * @property {number} REPAIR=266277773 REPAIR value + */ + InstanceGroupManagerInstanceLifecyclePolicy.DefaultActionOnFailure = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_DEFAULT_ACTION_ON_FAILURE"] = 0; + values[valuesById[451307513] = "DO_NOTHING"] = 451307513; + values[valuesById[266277773] = "REPAIR"] = 266277773; + return values; + })(); + /** * ForceUpdateOnRepair enum. * @name google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.ForceUpdateOnRepair @@ -228260,6 +233639,2408 @@ return InstancesStartWithEncryptionKeyRequest; })(); + v1.InstantSnapshot = (function() { + + /** + * Properties of an InstantSnapshot. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshot + * @property {string|null} [architecture] InstantSnapshot architecture + * @property {string|null} [creationTimestamp] InstantSnapshot creationTimestamp + * @property {string|null} [description] InstantSnapshot description + * @property {number|Long|null} [diskSizeGb] InstantSnapshot diskSizeGb + * @property {number|Long|null} [id] InstantSnapshot id + * @property {string|null} [kind] InstantSnapshot kind + * @property {string|null} [labelFingerprint] InstantSnapshot labelFingerprint + * @property {Object.|null} [labels] InstantSnapshot labels + * @property {string|null} [name] InstantSnapshot name + * @property {string|null} [region] InstantSnapshot region + * @property {google.cloud.compute.v1.IInstantSnapshotResourceStatus|null} [resourceStatus] InstantSnapshot resourceStatus + * @property {boolean|null} [satisfiesPzi] InstantSnapshot satisfiesPzi + * @property {boolean|null} [satisfiesPzs] InstantSnapshot satisfiesPzs + * @property {string|null} [selfLink] InstantSnapshot selfLink + * @property {string|null} [selfLinkWithId] InstantSnapshot selfLinkWithId + * @property {string|null} [sourceDisk] InstantSnapshot sourceDisk + * @property {string|null} [sourceDiskId] InstantSnapshot sourceDiskId + * @property {string|null} [status] InstantSnapshot status + * @property {string|null} [zone] InstantSnapshot zone + */ + + /** + * Constructs a new InstantSnapshot. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshot. + * @implements IInstantSnapshot + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshot=} [properties] Properties to set + */ + function InstantSnapshot(properties) { + this.labels = {}; + 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]]; + } + + /** + * InstantSnapshot architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.architecture = null; + + /** + * InstantSnapshot creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.creationTimestamp = null; + + /** + * InstantSnapshot description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.description = null; + + /** + * InstantSnapshot diskSizeGb. + * @member {number|Long|null|undefined} diskSizeGb + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.diskSizeGb = null; + + /** + * InstantSnapshot id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.id = null; + + /** + * InstantSnapshot kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.kind = null; + + /** + * InstantSnapshot labelFingerprint. + * @member {string|null|undefined} labelFingerprint + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.labelFingerprint = null; + + /** + * InstantSnapshot labels. + * @member {Object.} labels + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.labels = $util.emptyObject; + + /** + * InstantSnapshot name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.name = null; + + /** + * InstantSnapshot region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.region = null; + + /** + * InstantSnapshot resourceStatus. + * @member {google.cloud.compute.v1.IInstantSnapshotResourceStatus|null|undefined} resourceStatus + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.resourceStatus = null; + + /** + * InstantSnapshot satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.satisfiesPzi = null; + + /** + * InstantSnapshot satisfiesPzs. + * @member {boolean|null|undefined} satisfiesPzs + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.satisfiesPzs = null; + + /** + * InstantSnapshot selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.selfLink = null; + + /** + * InstantSnapshot selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.selfLinkWithId = null; + + /** + * InstantSnapshot sourceDisk. + * @member {string|null|undefined} sourceDisk + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceDisk = null; + + /** + * InstantSnapshot sourceDiskId. + * @member {string|null|undefined} sourceDiskId + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceDiskId = null; + + /** + * InstantSnapshot status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.status = null; + + /** + * InstantSnapshot zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstantSnapshot _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _creationTimestamp. + * @member {"creationTimestamp"|undefined} _creationTimestamp + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _description. + * @member {"description"|undefined} _description + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _diskSizeGb. + * @member {"diskSizeGb"|undefined} _diskSizeGb + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_diskSizeGb", { + get: $util.oneOfGetter($oneOfFields = ["diskSizeGb"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _labelFingerprint. + * @member {"labelFingerprint"|undefined} _labelFingerprint + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_labelFingerprint", { + get: $util.oneOfGetter($oneOfFields = ["labelFingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _name. + * @member {"name"|undefined} _name + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _region. + * @member {"region"|undefined} _region + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _resourceStatus. + * @member {"resourceStatus"|undefined} _resourceStatus + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_resourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["resourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _satisfiesPzs. + * @member {"satisfiesPzs"|undefined} _satisfiesPzs + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_satisfiesPzs", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _selfLinkWithId. + * @member {"selfLinkWithId"|undefined} _selfLinkWithId + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _sourceDisk. + * @member {"sourceDisk"|undefined} _sourceDisk + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_sourceDisk", { + get: $util.oneOfGetter($oneOfFields = ["sourceDisk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _sourceDiskId. + * @member {"sourceDiskId"|undefined} _sourceDiskId + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_sourceDiskId", { + get: $util.oneOfGetter($oneOfFields = ["sourceDiskId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _status. + * @member {"status"|undefined} _status + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshot _zone. + * @member {"zone"|undefined} _zone + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + Object.defineProperty(InstantSnapshot.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshot instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {google.cloud.compute.v1.IInstantSnapshot=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshot} InstantSnapshot instance + */ + InstantSnapshot.create = function create(properties) { + return new InstantSnapshot(properties); + }; + + /** + * Encodes the specified InstantSnapshot message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshot.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {google.cloud.compute.v1.IInstantSnapshot} message InstantSnapshot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshot.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.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")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) + $root.google.cloud.compute.v1.InstantSnapshotResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); + if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture")) + writer.uint32(/* id 302803283, wireType 2 =*/2422426266).string(message.architecture); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 316263735, wireType 0 =*/2530109880).int64(message.diskSizeGb); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.sourceDisk != null && Object.hasOwnProperty.call(message, "sourceDisk")) + writer.uint32(/* id 451753793, wireType 2 =*/3614030346).string(message.sourceDisk); + if (message.sourceDiskId != null && Object.hasOwnProperty.call(message, "sourceDiskId")) + writer.uint32(/* id 454190809, wireType 2 =*/3633526474).string(message.sourceDiskId); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); + 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(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshot message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshot.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {google.cloud.compute.v1.IInstantSnapshot} message InstantSnapshot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshot.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshot message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshot + * @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.InstantSnapshot} InstantSnapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshot.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshot(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 302803283: { + message.architecture = reader.string(); + break; + } + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 316263735: { + message.diskSizeGb = reader.int64(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 178124825: { + message.labelFingerprint = reader.string(); + break; + } + case 500195327: { + if (message.labels === $util.emptyObject) + message.labels = {}; + 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.labels[key] = value; + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 249429315: { + message.resourceStatus = $root.google.cloud.compute.v1.InstantSnapshotResourceStatus.decode(reader, reader.uint32()); + break; + } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } + case 480964267: { + message.satisfiesPzs = reader.bool(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 451753793: { + message.sourceDisk = reader.string(); + break; + } + case 454190809: { + message.sourceDiskId = 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 InstantSnapshot message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshot} InstantSnapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshot.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshot message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshot.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.architecture != null && message.hasOwnProperty("architecture")) { + properties._architecture = 1; + if (!$util.isString(message.architecture)) + return "architecture: string expected"; + } + 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.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { + properties._diskSizeGb = 1; + if (!$util.isInteger(message.diskSizeGb) && !(message.diskSizeGb && $util.isInteger(message.diskSizeGb.low) && $util.isInteger(message.diskSizeGb.high))) + return "diskSizeGb: integer|Long 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.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { + properties._labelFingerprint = 1; + if (!$util.isString(message.labelFingerprint)) + return "labelFingerprint: string expected"; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k: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.InstantSnapshotResourceStatus.verify(message.resourceStatus); + if (error) + return "resourceStatus." + error; + } + } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + properties._satisfiesPzs = 1; + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean 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.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + properties._sourceDisk = 1; + if (!$util.isString(message.sourceDisk)) + return "sourceDisk: string expected"; + } + if (message.sourceDiskId != null && message.hasOwnProperty("sourceDiskId")) { + properties._sourceDiskId = 1; + if (!$util.isString(message.sourceDiskId)) + return "sourceDiskId: 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 InstantSnapshot message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshot} InstantSnapshot + */ + InstantSnapshot.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshot) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshot(); + if (object.architecture != null) + message.architecture = String(object.architecture); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.diskSizeGb != null) + if ($util.Long) + (message.diskSizeGb = $util.Long.fromValue(object.diskSizeGb)).unsigned = false; + else if (typeof object.diskSizeGb === "string") + message.diskSizeGb = parseInt(object.diskSizeGb, 10); + else if (typeof object.diskSizeGb === "number") + message.diskSizeGb = object.diskSizeGb; + else if (typeof object.diskSizeGb === "object") + message.diskSizeGb = new $util.LongBits(object.diskSizeGb.low >>> 0, object.diskSizeGb.high >>> 0).toNumber(); + 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.labelFingerprint != null) + message.labelFingerprint = String(object.labelFingerprint); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshot.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + 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.InstantSnapshot.resourceStatus: object expected"); + message.resourceStatus = $root.google.cloud.compute.v1.InstantSnapshotResourceStatus.fromObject(object.resourceStatus); + } + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.sourceDisk != null) + message.sourceDisk = String(object.sourceDisk); + if (object.sourceDiskId != null) + message.sourceDiskId = String(object.sourceDiskId); + 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 InstantSnapshot message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {google.cloud.compute.v1.InstantSnapshot} message InstantSnapshot + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshot.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + 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.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { + object.labelFingerprint = message.labelFingerprint; + if (options.oneofs) + object._labelFingerprint = "labelFingerprint"; + } + 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.InstantSnapshotResourceStatus.toObject(message.resourceStatus, options); + if (options.oneofs) + object._resourceStatus = "resourceStatus"; + } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { + if (typeof message.diskSizeGb === "number") + object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; + else + object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; + if (options.oneofs) + object._diskSizeGb = "diskSizeGb"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + object.sourceDisk = message.sourceDisk; + if (options.oneofs) + object._sourceDisk = "sourceDisk"; + } + if (message.sourceDiskId != null && message.hasOwnProperty("sourceDiskId")) { + object.sourceDiskId = message.sourceDiskId; + if (options.oneofs) + object._sourceDiskId = "sourceDiskId"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + object.satisfiesPzs = message.satisfiesPzs; + if (options.oneofs) + object._satisfiesPzs = "satisfiesPzs"; + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + return object; + }; + + /** + * Converts this InstantSnapshot to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshot + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshot"; + }; + + /** + * Architecture enum. + * @name google.cloud.compute.v1.InstantSnapshot.Architecture + * @enum {number} + * @property {number} UNDEFINED_ARCHITECTURE=0 UNDEFINED_ARCHITECTURE value + * @property {number} ARCHITECTURE_UNSPECIFIED=394750507 ARCHITECTURE_UNSPECIFIED value + * @property {number} ARM64=62547450 ARM64 value + * @property {number} X86_64=425300551 X86_64 value + */ + InstantSnapshot.Architecture = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ARCHITECTURE"] = 0; + values[valuesById[394750507] = "ARCHITECTURE_UNSPECIFIED"] = 394750507; + values[valuesById[62547450] = "ARM64"] = 62547450; + values[valuesById[425300551] = "X86_64"] = 425300551; + return values; + })(); + + /** + * Status enum. + * @name google.cloud.compute.v1.InstantSnapshot.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} READY=77848963 READY value + */ + InstantSnapshot.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[77848963] = "READY"] = 77848963; + return values; + })(); + + return InstantSnapshot; + })(); + + v1.InstantSnapshotAggregatedList = (function() { + + /** + * Properties of an InstantSnapshotAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotAggregatedList + * @property {string|null} [id] InstantSnapshotAggregatedList id + * @property {Object.|null} [items] InstantSnapshotAggregatedList items + * @property {string|null} [kind] InstantSnapshotAggregatedList kind + * @property {string|null} [nextPageToken] InstantSnapshotAggregatedList nextPageToken + * @property {string|null} [selfLink] InstantSnapshotAggregatedList selfLink + * @property {Array.|null} [unreachables] InstantSnapshotAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] InstantSnapshotAggregatedList warning + */ + + /** + * Constructs a new InstantSnapshotAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotAggregatedList. + * @implements IInstantSnapshotAggregatedList + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotAggregatedList=} [properties] Properties to set + */ + function InstantSnapshotAggregatedList(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]]; + } + + /** + * InstantSnapshotAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.id = null; + + /** + * InstantSnapshotAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.items = $util.emptyObject; + + /** + * InstantSnapshotAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.kind = null; + + /** + * InstantSnapshotAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.nextPageToken = null; + + /** + * InstantSnapshotAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.selfLink = null; + + /** + * InstantSnapshotAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * InstantSnapshotAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + InstantSnapshotAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstantSnapshotAggregatedList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + Object.defineProperty(InstantSnapshotAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotAggregatedList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + Object.defineProperty(InstantSnapshotAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotAggregatedList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + Object.defineProperty(InstantSnapshotAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotAggregatedList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + Object.defineProperty(InstantSnapshotAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotAggregatedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + */ + Object.defineProperty(InstantSnapshotAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotAggregatedList} InstantSnapshotAggregatedList instance + */ + InstantSnapshotAggregatedList.create = function create(properties) { + return new InstantSnapshotAggregatedList(properties); + }; + + /** + * Encodes the specified InstantSnapshotAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotAggregatedList} message InstantSnapshotAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotAggregatedList.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.InstantSnapshotsScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotAggregatedList} message InstantSnapshotAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @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.InstantSnapshotAggregatedList} InstantSnapshotAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotAggregatedList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshotAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + 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.InstantSnapshotsScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotAggregatedList} InstantSnapshotAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotAggregatedList.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.InstantSnapshotsScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates an InstantSnapshotAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotAggregatedList} InstantSnapshotAggregatedList + */ + InstantSnapshotAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotAggregatedList.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.InstantSnapshotAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.InstantSnapshotsScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1.InstantSnapshotAggregatedList.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.InstantSnapshotAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1.InstantSnapshotAggregatedList} message InstantSnapshotAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.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.InstantSnapshotsScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this InstantSnapshotAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotAggregatedList"; + }; + + return InstantSnapshotAggregatedList; + })(); + + v1.InstantSnapshotList = (function() { + + /** + * Properties of an InstantSnapshotList. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotList + * @property {string|null} [id] InstantSnapshotList id + * @property {Array.|null} [items] InstantSnapshotList items + * @property {string|null} [kind] InstantSnapshotList kind + * @property {string|null} [nextPageToken] InstantSnapshotList nextPageToken + * @property {string|null} [selfLink] InstantSnapshotList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] InstantSnapshotList warning + */ + + /** + * Constructs a new InstantSnapshotList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotList. + * @implements IInstantSnapshotList + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotList=} [properties] Properties to set + */ + function InstantSnapshotList(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]]; + } + + /** + * InstantSnapshotList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.id = null; + + /** + * InstantSnapshotList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.items = $util.emptyArray; + + /** + * InstantSnapshotList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.kind = null; + + /** + * InstantSnapshotList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.nextPageToken = null; + + /** + * InstantSnapshotList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.selfLink = null; + + /** + * InstantSnapshotList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + InstantSnapshotList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstantSnapshotList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + Object.defineProperty(InstantSnapshotList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + Object.defineProperty(InstantSnapshotList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + Object.defineProperty(InstantSnapshotList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + Object.defineProperty(InstantSnapshotList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstantSnapshotList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + */ + Object.defineProperty(InstantSnapshotList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotList} InstantSnapshotList instance + */ + InstantSnapshotList.create = function create(properties) { + return new InstantSnapshotList(properties); + }; + + /** + * Encodes the specified InstantSnapshotList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotList} message InstantSnapshotList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotList.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.InstantSnapshot.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 InstantSnapshotList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotList} message InstantSnapshotList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @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.InstantSnapshotList} InstantSnapshotList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshotList(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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.InstantSnapshot.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 an InstantSnapshotList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotList} InstantSnapshotList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotList message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotList.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.InstantSnapshot.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 an InstantSnapshotList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotList} InstantSnapshotList + */ + InstantSnapshotList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotList) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.InstantSnapshotList.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.InstantSnapshotList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.InstantSnapshot.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.InstantSnapshotList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {google.cloud.compute.v1.InstantSnapshotList} message InstantSnapshotList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotList.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.InstantSnapshot.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 InstantSnapshotList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotList"; + }; + + return InstantSnapshotList; + })(); + + v1.InstantSnapshotResourceStatus = (function() { + + /** + * Properties of an InstantSnapshotResourceStatus. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotResourceStatus + * @property {number|Long|null} [storageSizeBytes] InstantSnapshotResourceStatus storageSizeBytes + */ + + /** + * Constructs a new InstantSnapshotResourceStatus. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotResourceStatus. + * @implements IInstantSnapshotResourceStatus + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotResourceStatus=} [properties] Properties to set + */ + function InstantSnapshotResourceStatus(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]]; + } + + /** + * InstantSnapshotResourceStatus storageSizeBytes. + * @member {number|Long|null|undefined} storageSizeBytes + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @instance + */ + InstantSnapshotResourceStatus.prototype.storageSizeBytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstantSnapshotResourceStatus _storageSizeBytes. + * @member {"storageSizeBytes"|undefined} _storageSizeBytes + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @instance + */ + Object.defineProperty(InstantSnapshotResourceStatus.prototype, "_storageSizeBytes", { + get: $util.oneOfGetter($oneOfFields = ["storageSizeBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotResourceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotResourceStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotResourceStatus} InstantSnapshotResourceStatus instance + */ + InstantSnapshotResourceStatus.create = function create(properties) { + return new InstantSnapshotResourceStatus(properties); + }; + + /** + * Encodes the specified InstantSnapshotResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotResourceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotResourceStatus} message InstantSnapshotResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotResourceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.storageSizeBytes != null && Object.hasOwnProperty.call(message, "storageSizeBytes")) + writer.uint32(/* id 387548913, wireType 0 =*/3100391304).int64(message.storageSizeBytes); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotResourceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotResourceStatus} message InstantSnapshotResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotResourceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotResourceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @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.InstantSnapshotResourceStatus} InstantSnapshotResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotResourceStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshotResourceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 387548913: { + message.storageSizeBytes = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotResourceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotResourceStatus} InstantSnapshotResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotResourceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotResourceStatus message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotResourceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.storageSizeBytes != null && message.hasOwnProperty("storageSizeBytes")) { + properties._storageSizeBytes = 1; + if (!$util.isInteger(message.storageSizeBytes) && !(message.storageSizeBytes && $util.isInteger(message.storageSizeBytes.low) && $util.isInteger(message.storageSizeBytes.high))) + return "storageSizeBytes: integer|Long expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotResourceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotResourceStatus} InstantSnapshotResourceStatus + */ + InstantSnapshotResourceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotResourceStatus) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotResourceStatus(); + if (object.storageSizeBytes != null) + if ($util.Long) + (message.storageSizeBytes = $util.Long.fromValue(object.storageSizeBytes)).unsigned = false; + else if (typeof object.storageSizeBytes === "string") + message.storageSizeBytes = parseInt(object.storageSizeBytes, 10); + else if (typeof object.storageSizeBytes === "number") + message.storageSizeBytes = object.storageSizeBytes; + else if (typeof object.storageSizeBytes === "object") + message.storageSizeBytes = new $util.LongBits(object.storageSizeBytes.low >>> 0, object.storageSizeBytes.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotResourceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {google.cloud.compute.v1.InstantSnapshotResourceStatus} message InstantSnapshotResourceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotResourceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.storageSizeBytes != null && message.hasOwnProperty("storageSizeBytes")) { + if (typeof message.storageSizeBytes === "number") + object.storageSizeBytes = options.longs === String ? String(message.storageSizeBytes) : message.storageSizeBytes; + else + object.storageSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageSizeBytes) : options.longs === Number ? new $util.LongBits(message.storageSizeBytes.low >>> 0, message.storageSizeBytes.high >>> 0).toNumber() : message.storageSizeBytes; + if (options.oneofs) + object._storageSizeBytes = "storageSizeBytes"; + } + return object; + }; + + /** + * Converts this InstantSnapshotResourceStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotResourceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotResourceStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotResourceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotResourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotResourceStatus"; + }; + + return InstantSnapshotResourceStatus; + })(); + + v1.InstantSnapshotsScopedList = (function() { + + /** + * Properties of an InstantSnapshotsScopedList. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotsScopedList + * @property {Array.|null} [instantSnapshots] InstantSnapshotsScopedList instantSnapshots + * @property {google.cloud.compute.v1.IWarning|null} [warning] InstantSnapshotsScopedList warning + */ + + /** + * Constructs a new InstantSnapshotsScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotsScopedList. + * @implements IInstantSnapshotsScopedList + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotsScopedList=} [properties] Properties to set + */ + function InstantSnapshotsScopedList(properties) { + this.instantSnapshots = []; + 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]]; + } + + /** + * InstantSnapshotsScopedList instantSnapshots. + * @member {Array.} instantSnapshots + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @instance + */ + InstantSnapshotsScopedList.prototype.instantSnapshots = $util.emptyArray; + + /** + * InstantSnapshotsScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @instance + */ + InstantSnapshotsScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstantSnapshotsScopedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @instance + */ + Object.defineProperty(InstantSnapshotsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotsScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotsScopedList} InstantSnapshotsScopedList instance + */ + InstantSnapshotsScopedList.create = function create(properties) { + return new InstantSnapshotsScopedList(properties); + }; + + /** + * Encodes the specified InstantSnapshotsScopedList message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotsScopedList} message InstantSnapshotsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotsScopedList.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.instantSnapshots != null && message.instantSnapshots.length) + for (var i = 0; i < message.instantSnapshots.length; ++i) + $root.google.cloud.compute.v1.InstantSnapshot.encode(message.instantSnapshots[i], writer.uint32(/* id 329637457, wireType 2 =*/2637099658).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotsScopedList} message InstantSnapshotsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotsScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @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.InstantSnapshotsScopedList} InstantSnapshotsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotsScopedList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshotsScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 329637457: { + if (!(message.instantSnapshots && message.instantSnapshots.length)) + message.instantSnapshots = []; + message.instantSnapshots.push($root.google.cloud.compute.v1.InstantSnapshot.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 an InstantSnapshotsScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotsScopedList} InstantSnapshotsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotsScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotsScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotsScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshots != null && message.hasOwnProperty("instantSnapshots")) { + if (!Array.isArray(message.instantSnapshots)) + return "instantSnapshots: array expected"; + for (var i = 0; i < message.instantSnapshots.length; ++i) { + var error = $root.google.cloud.compute.v1.InstantSnapshot.verify(message.instantSnapshots[i]); + if (error) + return "instantSnapshots." + 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 an InstantSnapshotsScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotsScopedList} InstantSnapshotsScopedList + */ + InstantSnapshotsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotsScopedList) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotsScopedList(); + if (object.instantSnapshots) { + if (!Array.isArray(object.instantSnapshots)) + throw TypeError(".google.cloud.compute.v1.InstantSnapshotsScopedList.instantSnapshots: array expected"); + message.instantSnapshots = []; + for (var i = 0; i < object.instantSnapshots.length; ++i) { + if (typeof object.instantSnapshots[i] !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotsScopedList.instantSnapshots: object expected"); + message.instantSnapshots[i] = $root.google.cloud.compute.v1.InstantSnapshot.fromObject(object.instantSnapshots[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotsScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {google.cloud.compute.v1.InstantSnapshotsScopedList} message InstantSnapshotsScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotsScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instantSnapshots = []; + 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.instantSnapshots && message.instantSnapshots.length) { + object.instantSnapshots = []; + for (var j = 0; j < message.instantSnapshots.length; ++j) + object.instantSnapshots[j] = $root.google.cloud.compute.v1.InstantSnapshot.toObject(message.instantSnapshots[j], options); + } + return object; + }; + + /** + * Converts this InstantSnapshotsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotsScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotsScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotsScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotsScopedList"; + }; + + return InstantSnapshotsScopedList; + })(); + v1.Int64RangeMatch = (function() { /** @@ -258237,6 +266018,427 @@ return ListInstancesRequest; })(); + v1.ListInstantSnapshotsRequest = (function() { + + /** + * Properties of a ListInstantSnapshotsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListInstantSnapshotsRequest + * @property {string|null} [filter] ListInstantSnapshotsRequest filter + * @property {number|null} [maxResults] ListInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListInstantSnapshotsRequest pageToken + * @property {string|null} [project] ListInstantSnapshotsRequest project + * @property {boolean|null} [returnPartialSuccess] ListInstantSnapshotsRequest returnPartialSuccess + * @property {string|null} [zone] ListInstantSnapshotsRequest zone + */ + + /** + * Constructs a new ListInstantSnapshotsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListInstantSnapshotsRequest. + * @implements IListInstantSnapshotsRequest + * @constructor + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest=} [properties] Properties to set + */ + function ListInstantSnapshotsRequest(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]]; + } + + /** + * ListInstantSnapshotsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.filter = null; + + /** + * ListInstantSnapshotsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.maxResults = null; + + /** + * ListInstantSnapshotsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.orderBy = null; + + /** + * ListInstantSnapshotsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.pageToken = null; + + /** + * ListInstantSnapshotsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.project = ""; + + /** + * ListInstantSnapshotsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + + /** + * ListInstantSnapshotsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + ListInstantSnapshotsRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListInstantSnapshotsRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + Object.defineProperty(ListInstantSnapshotsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListInstantSnapshotsRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + Object.defineProperty(ListInstantSnapshotsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListInstantSnapshotsRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + Object.defineProperty(ListInstantSnapshotsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListInstantSnapshotsRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + Object.defineProperty(ListInstantSnapshotsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListInstantSnapshotsRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + */ + Object.defineProperty(ListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListInstantSnapshotsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListInstantSnapshotsRequest} ListInstantSnapshotsRequest instance + */ + ListInstantSnapshotsRequest.create = function create(properties) { + return new ListInstantSnapshotsRequest(properties); + }; + + /** + * Encodes the specified ListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest} message ListInstantSnapshotsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotsRequest.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 ListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest} message ListInstantSnapshotsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInstantSnapshotsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @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.ListInstantSnapshotsRequest} ListInstantSnapshotsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListInstantSnapshotsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 ListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListInstantSnapshotsRequest} ListInstantSnapshotsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInstantSnapshotsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInstantSnapshotsRequest.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 ListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListInstantSnapshotsRequest} ListInstantSnapshotsRequest + */ + ListInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListInstantSnapshotsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListInstantSnapshotsRequest(); + 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 ListInstantSnapshotsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {google.cloud.compute.v1.ListInstantSnapshotsRequest} message ListInstantSnapshotsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInstantSnapshotsRequest.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 ListInstantSnapshotsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @instance + * @returns {Object.} JSON object + */ + ListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInstantSnapshotsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListInstantSnapshotsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListInstantSnapshotsRequest"; + }; + + return ListInstantSnapshotsRequest; + })(); + v1.ListInterconnectAttachmentsRequest = (function() { /** @@ -270544,58 +278746,479 @@ }; /** - * Converts this ListRegionAutoscalersRequest to JSON. + * Converts this ListRegionAutoscalersRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionAutoscalersRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; + }; + + return ListRegionAutoscalersRequest; + })(); + + v1.ListRegionBackendServicesRequest = (function() { + + /** + * Properties of a ListRegionBackendServicesRequest. + * @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 + */ + + /** + * Constructs a new ListRegionBackendServicesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionBackendServicesRequest. + * @implements IListRegionBackendServicesRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + */ + function ListRegionBackendServicesRequest(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]]; + } + + /** + * ListRegionBackendServicesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.filter = null; + + /** + * ListRegionBackendServicesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.maxResults = null; + + /** + * ListRegionBackendServicesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.orderBy = null; + + /** + * ListRegionBackendServicesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.pageToken = null; + + /** + * ListRegionBackendServicesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.project = ""; + + /** + * ListRegionBackendServicesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.region = ""; + + /** + * ListRegionBackendServicesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListRegionBackendServicesRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + */ + ListRegionBackendServicesRequest.create = function create(properties) { + return new ListRegionBackendServicesRequest(properties); + }; + + /** + * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @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 + */ + ListRegionBackendServicesRequest.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 ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @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 + */ + ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * @function decode + * @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.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRegionBackendServicesRequest message. + * @function verify + * @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 + */ + ListRegionBackendServicesRequest.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 ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + */ + ListRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + 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 ListRegionBackendServicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRegionBackendServicesRequest.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 ListRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionAutoscalersRequest + * Gets the default type url for ListRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; }; - return ListRegionAutoscalersRequest; + return ListRegionBackendServicesRequest; })(); - v1.ListRegionBackendServicesRequest = (function() { + v1.ListRegionCommitmentsRequest = (function() { /** - * Properties of a ListRegionBackendServicesRequest. + * Properties of a ListRegionCommitmentsRequest. * @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 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 ListRegionBackendServicesRequest. + * Constructs a new ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionBackendServicesRequest. - * @implements IListRegionBackendServicesRequest + * @classdesc Represents a ListRegionCommitmentsRequest. + * @implements IListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set */ - function ListRegionBackendServicesRequest(properties) { + function ListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -270603,141 +279226,141 @@ } /** - * ListRegionBackendServicesRequest filter. + * ListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.filter = null; + ListRegionCommitmentsRequest.prototype.filter = null; /** - * ListRegionBackendServicesRequest maxResults. + * ListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.maxResults = null; + ListRegionCommitmentsRequest.prototype.maxResults = null; /** - * ListRegionBackendServicesRequest orderBy. + * ListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.orderBy = null; + ListRegionCommitmentsRequest.prototype.orderBy = null; /** - * ListRegionBackendServicesRequest pageToken. + * ListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.pageToken = null; + ListRegionCommitmentsRequest.prototype.pageToken = null; /** - * ListRegionBackendServicesRequest project. + * ListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.project = ""; + ListRegionCommitmentsRequest.prototype.project = ""; /** - * ListRegionBackendServicesRequest region. + * ListRegionCommitmentsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.region = ""; + ListRegionCommitmentsRequest.prototype.region = ""; /** - * ListRegionBackendServicesRequest returnPartialSuccess. + * ListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionBackendServicesRequest _filter. + * ListRegionCommitmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _maxResults. + * ListRegionCommitmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _orderBy. + * ListRegionCommitmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _pageToken. + * ListRegionCommitmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _returnPartialSuccess. + * ListRegionCommitmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance */ - ListRegionBackendServicesRequest.create = function create(properties) { - return new ListRegionBackendServicesRequest(properties); + ListRegionCommitmentsRequest.create = function create(properties) { + return new ListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.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.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest 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 */ - ListRegionBackendServicesRequest.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")) @@ -270758,33 +279381,33 @@ }; /** - * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.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.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest 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 */ - ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @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.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @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 */ - ListRegionBackendServicesRequest.decode = function decode(reader, length) { + ListRegionCommitmentsRequest.decode = function decode(reader, length) { 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.ListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -270825,30 +279448,30 @@ }; /** - * Decodes a ListRegionBackendServicesRequest 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.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @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 */ - ListRegionBackendServicesRequest.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 ListRegionBackendServicesRequest message. + * Verifies a ListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @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 */ - ListRegionBackendServicesRequest.verify = function verify(message) { + ListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -270887,17 +279510,17 @@ }; /** - * Creates a ListRegionBackendServicesRequest 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.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest */ - ListRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + ListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -270916,15 +279539,15 @@ }; /** - * Creates a plain object from a ListRegionBackendServicesRequest 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.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -270965,58 +279588,58 @@ }; /** - * Converts this ListRegionBackendServicesRequest to JSON. + * Converts this ListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListRegionCommitmentsRequest.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 ListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; }; - return ListRegionBackendServicesRequest; + return ListRegionCommitmentsRequest; })(); - v1.ListRegionCommitmentsRequest = (function() { + v1.ListRegionDiskTypesRequest = (function() { /** - * Properties of a ListRegionCommitmentsRequest. + * Properties of a ListRegionDiskTypesRequest. * @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 IListRegionDiskTypesRequest + * @property {string|null} [filter] ListRegionDiskTypesRequest filter + * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults + * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy + * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken + * @property {string|null} [project] ListRegionDiskTypesRequest project + * @property {string|null} [region] ListRegionDiskTypesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionCommitmentsRequest. + * Constructs a new ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionCommitmentsRequest. - * @implements IListRegionCommitmentsRequest + * @classdesc Represents a ListRegionDiskTypesRequest. + * @implements IListRegionDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set */ - function ListRegionCommitmentsRequest(properties) { + function ListRegionDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271024,141 +279647,141 @@ } /** - * ListRegionCommitmentsRequest filter. + * ListRegionDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.filter = null; + ListRegionDiskTypesRequest.prototype.filter = null; /** - * ListRegionCommitmentsRequest maxResults. + * ListRegionDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.maxResults = null; + ListRegionDiskTypesRequest.prototype.maxResults = null; /** - * ListRegionCommitmentsRequest orderBy. + * ListRegionDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.orderBy = null; + ListRegionDiskTypesRequest.prototype.orderBy = null; /** - * ListRegionCommitmentsRequest pageToken. + * ListRegionDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.pageToken = null; + ListRegionDiskTypesRequest.prototype.pageToken = null; /** - * ListRegionCommitmentsRequest project. + * ListRegionDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.project = ""; + ListRegionDiskTypesRequest.prototype.project = ""; /** - * ListRegionCommitmentsRequest region. + * ListRegionDiskTypesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.region = ""; + ListRegionDiskTypesRequest.prototype.region = ""; /** - * ListRegionCommitmentsRequest returnPartialSuccess. + * ListRegionDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionCommitmentsRequest _filter. + * ListRegionDiskTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _maxResults. + * ListRegionDiskTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _orderBy. + * ListRegionDiskTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _pageToken. + * ListRegionDiskTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _returnPartialSuccess. + * ListRegionDiskTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCommitmentsRequest instance using the specified properties. + * Creates a new ListRegionDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance */ - ListRegionCommitmentsRequest.create = function create(properties) { - return new ListRegionCommitmentsRequest(properties); + ListRegionDiskTypesRequest.create = function create(properties) { + return new ListRegionDiskTypesRequest(properties); }; /** - * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.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.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest 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 */ - ListRegionCommitmentsRequest.encode = function encode(message, writer) { + ListRegionDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -271179,33 +279802,33 @@ }; /** - * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.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.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest 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 */ - ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @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.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @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 */ - ListRegionCommitmentsRequest.decode = function decode(reader, length) { + ListRegionDiskTypesRequest.decode = function decode(reader, length) { 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.ListRegionDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -271246,30 +279869,30 @@ }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @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 */ - ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionCommitmentsRequest message. + * Verifies a ListRegionDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @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 */ - ListRegionCommitmentsRequest.verify = function verify(message) { + ListRegionDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -271308,17 +279931,17 @@ }; /** - * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest */ - ListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) + ListRegionDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -271337,15 +279960,15 @@ }; /** - * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCommitmentsRequest.toObject = function toObject(message, options) { + ListRegionDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -271386,58 +280009,58 @@ }; /** - * Converts this ListRegionCommitmentsRequest to JSON. + * Converts this ListRegionDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance * @returns {Object.} JSON object */ - ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionCommitmentsRequest + * Gets the default type url for ListRegionDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; }; - return ListRegionCommitmentsRequest; + return ListRegionDiskTypesRequest; })(); - v1.ListRegionDiskTypesRequest = (function() { + v1.ListRegionDisksRequest = (function() { /** - * Properties of a ListRegionDiskTypesRequest. + * Properties of a ListRegionDisksRequest. * @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 IListRegionDisksRequest + * @property {string|null} [filter] ListRegionDisksRequest filter + * @property {number|null} [maxResults] ListRegionDisksRequest maxResults + * @property {string|null} [orderBy] ListRegionDisksRequest orderBy + * @property {string|null} [pageToken] ListRegionDisksRequest pageToken + * @property {string|null} [project] ListRegionDisksRequest project + * @property {string|null} [region] ListRegionDisksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDiskTypesRequest. + * Constructs a new ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDiskTypesRequest. - * @implements IListRegionDiskTypesRequest + * @classdesc Represents a ListRegionDisksRequest. + * @implements IListRegionDisksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set */ - function ListRegionDiskTypesRequest(properties) { + function ListRegionDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271445,141 +280068,141 @@ } /** - * ListRegionDiskTypesRequest filter. + * ListRegionDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.filter = null; + ListRegionDisksRequest.prototype.filter = null; /** - * ListRegionDiskTypesRequest maxResults. + * ListRegionDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.maxResults = null; + ListRegionDisksRequest.prototype.maxResults = null; /** - * ListRegionDiskTypesRequest orderBy. + * ListRegionDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.orderBy = null; + ListRegionDisksRequest.prototype.orderBy = null; /** - * ListRegionDiskTypesRequest pageToken. + * ListRegionDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.pageToken = null; + ListRegionDisksRequest.prototype.pageToken = null; /** - * ListRegionDiskTypesRequest project. + * ListRegionDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.project = ""; + ListRegionDisksRequest.prototype.project = ""; /** - * ListRegionDiskTypesRequest region. + * ListRegionDisksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.region = ""; + ListRegionDisksRequest.prototype.region = ""; /** - * ListRegionDiskTypesRequest returnPartialSuccess. + * ListRegionDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; + ListRegionDisksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionDiskTypesRequest _filter. + * ListRegionDisksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _maxResults. + * ListRegionDisksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _orderBy. + * ListRegionDisksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _pageToken. + * ListRegionDisksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _returnPartialSuccess. + * ListRegionDisksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDiskTypesRequest instance using the specified properties. + * Creates a new ListRegionDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance */ - ListRegionDiskTypesRequest.create = function create(properties) { - return new ListRegionDiskTypesRequest(properties); + ListRegionDisksRequest.create = function create(properties) { + return new ListRegionDisksRequest(properties); }; /** - * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.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.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest 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 */ - ListRegionDiskTypesRequest.encode = function encode(message, writer) { + ListRegionDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -271600,33 +280223,33 @@ }; /** - * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.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.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest 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 */ - ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @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.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @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 */ - ListRegionDiskTypesRequest.decode = function decode(reader, length) { + ListRegionDisksRequest.decode = function decode(reader, length) { 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.ListRegionDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -271667,30 +280290,30 @@ }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @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 */ - ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDiskTypesRequest message. + * Verifies a ListRegionDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @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 */ - ListRegionDiskTypesRequest.verify = function verify(message) { + ListRegionDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -271729,17 +280352,17 @@ }; /** - * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest */ - ListRegionDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) + ListRegionDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -271758,15 +280381,15 @@ }; /** - * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest + * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDiskTypesRequest.toObject = function toObject(message, options) { + ListRegionDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -271807,58 +280430,58 @@ }; /** - * Converts this ListRegionDiskTypesRequest to JSON. + * Converts this ListRegionDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance * @returns {Object.} JSON object */ - ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { + ListRegionDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDiskTypesRequest + * Gets the default type url for ListRegionDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; }; - return ListRegionDiskTypesRequest; + return ListRegionDisksRequest; })(); - v1.ListRegionDisksRequest = (function() { + v1.ListRegionHealthCheckServicesRequest = (function() { /** - * Properties of a ListRegionDisksRequest. + * Properties of a ListRegionHealthCheckServicesRequest. * @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 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 ListRegionDisksRequest. + * Constructs a new ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDisksRequest. - * @implements IListRegionDisksRequest + * @classdesc Represents a ListRegionHealthCheckServicesRequest. + * @implements IListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function ListRegionDisksRequest(properties) { + function ListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271866,141 +280489,141 @@ } /** - * ListRegionDisksRequest filter. + * ListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.filter = null; + ListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * ListRegionDisksRequest maxResults. + * ListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.maxResults = null; + ListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * ListRegionDisksRequest orderBy. + * ListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.orderBy = null; + ListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * ListRegionDisksRequest pageToken. + * ListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.pageToken = null; + ListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * ListRegionDisksRequest project. + * ListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.project = ""; + ListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * ListRegionDisksRequest region. + * ListRegionHealthCheckServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.region = ""; + ListRegionHealthCheckServicesRequest.prototype.region = ""; /** - * ListRegionDisksRequest returnPartialSuccess. + * ListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionDisksRequest _filter. + * ListRegionHealthCheckServicesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _maxResults. + * ListRegionHealthCheckServicesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _orderBy. + * ListRegionHealthCheckServicesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _pageToken. + * ListRegionHealthCheckServicesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _returnPartialSuccess. + * ListRegionHealthCheckServicesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDisksRequest instance using the specified properties. + * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance */ - ListRegionDisksRequest.create = function create(properties) { - return new ListRegionDisksRequest(properties); + ListRegionHealthCheckServicesRequest.create = function create(properties) { + return new ListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest 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 */ - ListRegionDisksRequest.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")) @@ -272021,33 +280644,33 @@ }; /** - * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest 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 */ - ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @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.ListRegionDisksRequest} ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.decode = function decode(reader, length) { + ListRegionHealthCheckServicesRequest.decode = function decode(reader, length) { 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.ListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272088,30 +280711,30 @@ }; /** - * Decodes a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.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 ListRegionDisksRequest message. + * Verifies a ListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.verify = function verify(message) { + ListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -272150,17 +280773,17 @@ }; /** - * Creates a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest */ - ListRegionDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) + ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -272179,15 +280802,15 @@ }; /** - * Creates a plain object from a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest + * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDisksRequest.toObject = function toObject(message, options) { + ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -272228,58 +280851,58 @@ }; /** - * Converts this ListRegionDisksRequest to JSON. + * Converts this ListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionDisksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthCheckServicesRequest.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 ListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; }; - return ListRegionDisksRequest; + return ListRegionHealthCheckServicesRequest; })(); - v1.ListRegionHealthCheckServicesRequest = (function() { + v1.ListRegionHealthChecksRequest = (function() { /** - * Properties of a ListRegionHealthCheckServicesRequest. + * Properties of a ListRegionHealthChecksRequest. * @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 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 ListRegionHealthCheckServicesRequest. + * Constructs a new ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthCheckServicesRequest. - * @implements IListRegionHealthCheckServicesRequest + * @classdesc Represents a ListRegionHealthChecksRequest. + * @implements IListRegionHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set */ - function ListRegionHealthCheckServicesRequest(properties) { + function ListRegionHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -272287,141 +280910,141 @@ } /** - * ListRegionHealthCheckServicesRequest filter. + * ListRegionHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.filter = null; + ListRegionHealthChecksRequest.prototype.filter = null; /** - * ListRegionHealthCheckServicesRequest maxResults. + * ListRegionHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.maxResults = null; + ListRegionHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionHealthCheckServicesRequest orderBy. + * ListRegionHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.orderBy = null; + ListRegionHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionHealthCheckServicesRequest pageToken. + * ListRegionHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.pageToken = null; + ListRegionHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionHealthCheckServicesRequest project. + * ListRegionHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.project = ""; + ListRegionHealthChecksRequest.prototype.project = ""; /** - * ListRegionHealthCheckServicesRequest region. + * ListRegionHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.region = ""; + ListRegionHealthChecksRequest.prototype.region = ""; /** - * ListRegionHealthCheckServicesRequest returnPartialSuccess. + * ListRegionHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; + ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionHealthCheckServicesRequest _filter. + * ListRegionHealthChecksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _maxResults. + * ListRegionHealthChecksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _orderBy. + * ListRegionHealthChecksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _pageToken. + * ListRegionHealthChecksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _returnPartialSuccess. + * ListRegionHealthChecksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new ListRegionHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance */ - ListRegionHealthCheckServicesRequest.create = function create(properties) { - return new ListRegionHealthCheckServicesRequest(properties); + ListRegionHealthChecksRequest.create = function create(properties) { + return new ListRegionHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest 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 */ - ListRegionHealthCheckServicesRequest.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")) @@ -272442,33 +281065,33 @@ }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest 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 */ - ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @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.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.decode = function decode(reader, length) { + ListRegionHealthChecksRequest.decode = function decode(reader, length) { 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.ListRegionHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272509,30 +281132,30 @@ }; /** - * Decodes a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.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 ListRegionHealthCheckServicesRequest message. + * Verifies a ListRegionHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.verify = function verify(message) { + ListRegionHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -272571,17 +281194,17 @@ }; /** - * Creates a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest */ - ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) + ListRegionHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -272600,15 +281223,15 @@ }; /** - * Creates a plain object from a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + ListRegionHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -272649,58 +281272,58 @@ }; /** - * Converts this ListRegionHealthCheckServicesRequest to JSON. + * Converts this ListRegionHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthChecksRequest.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 ListRegionHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; }; - return ListRegionHealthCheckServicesRequest; + return ListRegionHealthChecksRequest; })(); - v1.ListRegionHealthChecksRequest = (function() { + v1.ListRegionInstanceGroupManagersRequest = (function() { /** - * Properties of a ListRegionHealthChecksRequest. + * Properties of a ListRegionInstanceGroupManagersRequest. * @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 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 ListRegionHealthChecksRequest. + * Constructs a new ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthChecksRequest. - * @implements IListRegionHealthChecksRequest + * @classdesc Represents a ListRegionInstanceGroupManagersRequest. + * @implements IListRegionInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set */ - function ListRegionHealthChecksRequest(properties) { + function ListRegionInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -272708,141 +281331,141 @@ } /** - * ListRegionHealthChecksRequest filter. + * ListRegionInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.filter = null; + ListRegionInstanceGroupManagersRequest.prototype.filter = null; /** - * ListRegionHealthChecksRequest maxResults. + * ListRegionInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.maxResults = null; + ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; /** - * ListRegionHealthChecksRequest orderBy. + * ListRegionInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.orderBy = null; + ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; /** - * ListRegionHealthChecksRequest pageToken. + * ListRegionInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.pageToken = null; + ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; /** - * ListRegionHealthChecksRequest project. + * ListRegionInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.project = ""; + ListRegionInstanceGroupManagersRequest.prototype.project = ""; /** - * ListRegionHealthChecksRequest region. + * ListRegionInstanceGroupManagersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.region = ""; + ListRegionInstanceGroupManagersRequest.prototype.region = ""; /** - * ListRegionHealthChecksRequest returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionHealthChecksRequest _filter. + * ListRegionInstanceGroupManagersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _maxResults. + * ListRegionInstanceGroupManagersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _orderBy. + * ListRegionInstanceGroupManagersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _pageToken. + * ListRegionInstanceGroupManagersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance */ - ListRegionHealthChecksRequest.create = function create(properties) { - return new ListRegionHealthChecksRequest(properties); + ListRegionInstanceGroupManagersRequest.create = function create(properties) { + return new ListRegionInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.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.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest 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 */ - ListRegionHealthChecksRequest.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")) @@ -272863,33 +281486,33 @@ }; /** - * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.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.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest 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 */ - ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @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.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @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 */ - ListRegionHealthChecksRequest.decode = function decode(reader, length) { + ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length) { 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.ListRegionInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272930,30 +281553,30 @@ }; /** - * Decodes a ListRegionHealthChecksRequest 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.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @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 */ - ListRegionHealthChecksRequest.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 ListRegionHealthChecksRequest message. + * Verifies a ListRegionInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @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 */ - ListRegionHealthChecksRequest.verify = function verify(message) { + ListRegionInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -272992,17 +281615,17 @@ }; /** - * Creates a ListRegionHealthChecksRequest 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.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest */ - ListRegionHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) + ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273021,15 +281644,15 @@ }; /** - * Creates a plain object from a ListRegionHealthChecksRequest 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.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273070,58 +281693,58 @@ }; /** - * Converts this ListRegionHealthChecksRequest to JSON. + * Converts this ListRegionInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupManagersRequest.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 ListRegionInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; }; - return ListRegionHealthChecksRequest; + return ListRegionInstanceGroupManagersRequest; })(); - v1.ListRegionInstanceGroupManagersRequest = (function() { + v1.ListRegionInstanceGroupsRequest = (function() { /** - * Properties of a ListRegionInstanceGroupManagersRequest. + * Properties of a ListRegionInstanceGroupsRequest. * @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 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 ListRegionInstanceGroupManagersRequest. + * Constructs a new ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupManagersRequest. - * @implements IListRegionInstanceGroupManagersRequest + * @classdesc Represents a ListRegionInstanceGroupsRequest. + * @implements IListRegionInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupManagersRequest(properties) { + function ListRegionInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273129,141 +281752,141 @@ } /** - * ListRegionInstanceGroupManagersRequest filter. + * ListRegionInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.filter = null; + ListRegionInstanceGroupsRequest.prototype.filter = null; /** - * ListRegionInstanceGroupManagersRequest maxResults. + * ListRegionInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; + ListRegionInstanceGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupManagersRequest orderBy. + * ListRegionInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; + ListRegionInstanceGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupManagersRequest pageToken. + * ListRegionInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; + ListRegionInstanceGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupManagersRequest project. + * ListRegionInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.project = ""; + ListRegionInstanceGroupsRequest.prototype.project = ""; /** - * ListRegionInstanceGroupManagersRequest region. + * ListRegionInstanceGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.region = ""; + ListRegionInstanceGroupsRequest.prototype.region = ""; /** - * ListRegionInstanceGroupManagersRequest returnPartialSuccess. + * ListRegionInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceGroupManagersRequest _filter. + * ListRegionInstanceGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _maxResults. + * ListRegionInstanceGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _orderBy. + * ListRegionInstanceGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _pageToken. + * ListRegionInstanceGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _returnPartialSuccess. + * ListRegionInstanceGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance */ - ListRegionInstanceGroupManagersRequest.create = function create(properties) { - return new ListRegionInstanceGroupManagersRequest(properties); + ListRegionInstanceGroupsRequest.create = function create(properties) { + return new ListRegionInstanceGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.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.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest 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 */ - ListRegionInstanceGroupManagersRequest.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")) @@ -273284,33 +281907,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.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.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest 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 */ - ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @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.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @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 */ - ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length) { + ListRegionInstanceGroupsRequest.decode = function decode(reader, length) { 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.ListRegionInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -273351,30 +281974,30 @@ }; /** - * Decodes a ListRegionInstanceGroupManagersRequest 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.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @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 */ - ListRegionInstanceGroupManagersRequest.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 ListRegionInstanceGroupManagersRequest message. + * Verifies a ListRegionInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @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 */ - ListRegionInstanceGroupManagersRequest.verify = function verify(message) { + ListRegionInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -273413,17 +282036,17 @@ }; /** - * Creates a ListRegionInstanceGroupManagersRequest 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.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest */ - ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) + ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273442,15 +282065,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupManagersRequest 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.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273491,58 +282114,58 @@ }; /** - * Converts this ListRegionInstanceGroupManagersRequest to JSON. + * Converts this ListRegionInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupsRequest.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 ListRegionInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; }; - return ListRegionInstanceGroupManagersRequest; + return ListRegionInstanceGroupsRequest; })(); - v1.ListRegionInstanceGroupsRequest = (function() { + v1.ListRegionInstanceTemplatesRequest = (function() { /** - * Properties of a ListRegionInstanceGroupsRequest. + * Properties of a ListRegionInstanceTemplatesRequest. * @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 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 ListRegionInstanceGroupsRequest. + * Constructs a new ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupsRequest. - * @implements IListRegionInstanceGroupsRequest + * @classdesc Represents a ListRegionInstanceTemplatesRequest. + * @implements IListRegionInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupsRequest(properties) { + function ListRegionInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273550,141 +282173,141 @@ } /** - * ListRegionInstanceGroupsRequest filter. + * ListRegionInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.filter = null; + ListRegionInstanceTemplatesRequest.prototype.filter = null; /** - * ListRegionInstanceGroupsRequest maxResults. + * ListRegionInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.maxResults = null; + ListRegionInstanceTemplatesRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupsRequest orderBy. + * ListRegionInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.orderBy = null; + ListRegionInstanceTemplatesRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupsRequest pageToken. + * ListRegionInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.pageToken = null; + ListRegionInstanceTemplatesRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupsRequest project. + * ListRegionInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.project = ""; + ListRegionInstanceTemplatesRequest.prototype.project = ""; /** - * ListRegionInstanceGroupsRequest region. + * ListRegionInstanceTemplatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.region = ""; + ListRegionInstanceTemplatesRequest.prototype.region = ""; /** - * ListRegionInstanceGroupsRequest returnPartialSuccess. + * ListRegionInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceGroupsRequest _filter. + * ListRegionInstanceTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _maxResults. + * ListRegionInstanceTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _orderBy. + * ListRegionInstanceTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _pageToken. + * ListRegionInstanceTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _returnPartialSuccess. + * ListRegionInstanceTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance */ - ListRegionInstanceGroupsRequest.create = function create(properties) { - return new ListRegionInstanceGroupsRequest(properties); + ListRegionInstanceTemplatesRequest.create = function create(properties) { + return new ListRegionInstanceTemplatesRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.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.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest 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 */ - ListRegionInstanceGroupsRequest.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")) @@ -273705,33 +282328,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.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.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest 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 */ - ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @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.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @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 */ - ListRegionInstanceGroupsRequest.decode = function decode(reader, length) { + ListRegionInstanceTemplatesRequest.decode = function decode(reader, length) { 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.ListRegionInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -273772,30 +282395,30 @@ }; /** - * Decodes a ListRegionInstanceGroupsRequest 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.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @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 */ - ListRegionInstanceGroupsRequest.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 ListRegionInstanceGroupsRequest message. + * Verifies a ListRegionInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @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 */ - ListRegionInstanceGroupsRequest.verify = function verify(message) { + ListRegionInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -273834,17 +282457,17 @@ }; /** - * Creates a ListRegionInstanceGroupsRequest 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.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest */ - ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) + ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273863,15 +282486,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupsRequest 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.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273912,58 +282535,58 @@ }; /** - * Converts this ListRegionInstanceGroupsRequest to JSON. + * Converts this ListRegionInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceTemplatesRequest.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 ListRegionInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; }; - return ListRegionInstanceGroupsRequest; + return ListRegionInstanceTemplatesRequest; })(); - v1.ListRegionInstanceTemplatesRequest = (function() { + v1.ListRegionInstantSnapshotsRequest = (function() { /** - * Properties of a ListRegionInstanceTemplatesRequest. + * Properties of a ListRegionInstantSnapshotsRequest. * @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 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 ListRegionInstanceTemplatesRequest. + * Constructs a new ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceTemplatesRequest. - * @implements IListRegionInstanceTemplatesRequest + * @classdesc Represents a ListRegionInstantSnapshotsRequest. + * @implements IListRegionInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set */ - function ListRegionInstanceTemplatesRequest(properties) { + function ListRegionInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273971,141 +282594,141 @@ } /** - * ListRegionInstanceTemplatesRequest filter. + * ListRegionInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.filter = null; + ListRegionInstantSnapshotsRequest.prototype.filter = null; /** - * ListRegionInstanceTemplatesRequest maxResults. + * ListRegionInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.maxResults = null; + ListRegionInstantSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionInstanceTemplatesRequest orderBy. + * ListRegionInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.orderBy = null; + ListRegionInstantSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionInstanceTemplatesRequest pageToken. + * ListRegionInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.pageToken = null; + ListRegionInstantSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionInstanceTemplatesRequest project. + * ListRegionInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.project = ""; + ListRegionInstantSnapshotsRequest.prototype.project = ""; /** - * ListRegionInstanceTemplatesRequest region. + * ListRegionInstantSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.region = ""; + ListRegionInstantSnapshotsRequest.prototype.region = ""; /** - * ListRegionInstanceTemplatesRequest returnPartialSuccess. + * ListRegionInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceTemplatesRequest _filter. + * ListRegionInstantSnapshotsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _maxResults. + * ListRegionInstantSnapshotsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _orderBy. + * ListRegionInstantSnapshotsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _pageToken. + * ListRegionInstantSnapshotsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _returnPartialSuccess. + * ListRegionInstantSnapshotsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance */ - ListRegionInstanceTemplatesRequest.create = function create(properties) { - return new ListRegionInstanceTemplatesRequest(properties); + ListRegionInstantSnapshotsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.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.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest 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 */ - ListRegionInstanceTemplatesRequest.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")) @@ -274126,33 +282749,33 @@ }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.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.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest 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 */ - ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @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.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @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 */ - ListRegionInstanceTemplatesRequest.decode = function decode(reader, length) { + ListRegionInstantSnapshotsRequest.decode = function decode(reader, length) { 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.ListRegionInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -274193,30 +282816,30 @@ }; /** - * Decodes a ListRegionInstanceTemplatesRequest 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.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @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 */ - ListRegionInstanceTemplatesRequest.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 ListRegionInstanceTemplatesRequest message. + * Verifies a ListRegionInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @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 */ - ListRegionInstanceTemplatesRequest.verify = function verify(message) { + ListRegionInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -274255,17 +282878,17 @@ }; /** - * Creates a ListRegionInstanceTemplatesRequest 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.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest */ - ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) + ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -274284,15 +282907,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceTemplatesRequest 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.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest + * @param {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -274333,32 +282956,32 @@ }; /** - * Converts this ListRegionInstanceTemplatesRequest to JSON. + * Converts this ListRegionInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotsRequest.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 ListRegionInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotsRequest"; }; - return ListRegionInstanceTemplatesRequest; + return ListRegionInstantSnapshotsRequest; })(); v1.ListRegionNetworkEndpointGroupsRequest = (function() { @@ -352183,6 +360806,7 @@ * Properties of a Project. * @memberof google.cloud.compute.v1 * @interface IProject + * @property {string|null} [cloudArmorTier] Project cloudArmorTier * @property {google.cloud.compute.v1.IMetadata|null} [commonInstanceMetadata] Project commonInstanceMetadata * @property {string|null} [creationTimestamp] Project creationTimestamp * @property {string|null} [defaultNetworkTier] Project defaultNetworkTier @@ -352216,6 +360840,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Project cloudArmorTier. + * @member {string|null|undefined} cloudArmorTier + * @memberof google.cloud.compute.v1.Project + * @instance + */ + Project.prototype.cloudArmorTier = null; + /** * Project commonInstanceMetadata. * @member {google.cloud.compute.v1.IMetadata|null|undefined} commonInstanceMetadata @@ -352331,6 +360963,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Project _cloudArmorTier. + * @member {"cloudArmorTier"|undefined} _cloudArmorTier + * @memberof google.cloud.compute.v1.Project + * @instance + */ + Object.defineProperty(Project.prototype, "_cloudArmorTier", { + get: $util.oneOfGetter($oneOfFields = ["cloudArmorTier"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Project _commonInstanceMetadata. * @member {"commonInstanceMetadata"|undefined} _commonInstanceMetadata @@ -352493,6 +361136,8 @@ 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.cloudArmorTier != null && Object.hasOwnProperty.call(message, "cloudArmorTier")) + writer.uint32(/* id 4427052, wireType 2 =*/35416418).string(message.cloudArmorTier); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.vmDnsSetting != null && Object.hasOwnProperty.call(message, "vmDnsSetting")) @@ -352551,6 +361196,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 4427052: { + message.cloudArmorTier = reader.string(); + break; + } case 185794117: { message.commonInstanceMetadata = $root.google.cloud.compute.v1.Metadata.decode(reader, reader.uint32()); break; @@ -352647,6 +361296,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.cloudArmorTier != null && message.hasOwnProperty("cloudArmorTier")) { + properties._cloudArmorTier = 1; + if (!$util.isString(message.cloudArmorTier)) + return "cloudArmorTier: string expected"; + } if (message.commonInstanceMetadata != null && message.hasOwnProperty("commonInstanceMetadata")) { properties._commonInstanceMetadata = 1; { @@ -352744,6 +361398,8 @@ if (object instanceof $root.google.cloud.compute.v1.Project) return object; var message = new $root.google.cloud.compute.v1.Project(); + if (object.cloudArmorTier != null) + message.cloudArmorTier = String(object.cloudArmorTier); if (object.commonInstanceMetadata != null) { if (typeof object.commonInstanceMetadata !== "object") throw TypeError(".google.cloud.compute.v1.Project.commonInstanceMetadata: object expected"); @@ -352836,6 +361492,11 @@ if (options.oneofs) object._name = "name"; } + if (message.cloudArmorTier != null && message.hasOwnProperty("cloudArmorTier")) { + object.cloudArmorTier = message.cloudArmorTier; + if (options.oneofs) + object._cloudArmorTier = "cloudArmorTier"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) @@ -352920,6 +361581,24 @@ return typeUrlPrefix + "/google.cloud.compute.v1.Project"; }; + /** + * CloudArmorTier enum. + * @name google.cloud.compute.v1.Project.CloudArmorTier + * @enum {number} + * @property {number} UNDEFINED_CLOUD_ARMOR_TIER=0 UNDEFINED_CLOUD_ARMOR_TIER value + * @property {number} CA_ENTERPRISE_ANNUAL=219921116 CA_ENTERPRISE_ANNUAL value + * @property {number} CA_ENTERPRISE_PAYGO=453530323 CA_ENTERPRISE_PAYGO value + * @property {number} CA_STANDARD=13156734 CA_STANDARD value + */ + Project.CloudArmorTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CLOUD_ARMOR_TIER"] = 0; + values[valuesById[219921116] = "CA_ENTERPRISE_ANNUAL"] = 219921116; + values[valuesById[453530323] = "CA_ENTERPRISE_PAYGO"] = 453530323; + values[valuesById[13156734] = "CA_STANDARD"] = 13156734; + return values; + })(); + /** * DefaultNetworkTier enum. * @name google.cloud.compute.v1.Project.DefaultNetworkTier @@ -353958,6 +362637,245 @@ return ProjectsListXpnHostsRequest; })(); + v1.ProjectsSetCloudArmorTierRequest = (function() { + + /** + * Properties of a ProjectsSetCloudArmorTierRequest. + * @memberof google.cloud.compute.v1 + * @interface IProjectsSetCloudArmorTierRequest + * @property {string|null} [cloudArmorTier] ProjectsSetCloudArmorTierRequest cloudArmorTier + */ + + /** + * Constructs a new ProjectsSetCloudArmorTierRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ProjectsSetCloudArmorTierRequest. + * @implements IProjectsSetCloudArmorTierRequest + * @constructor + * @param {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest=} [properties] Properties to set + */ + function ProjectsSetCloudArmorTierRequest(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]]; + } + + /** + * ProjectsSetCloudArmorTierRequest cloudArmorTier. + * @member {string|null|undefined} cloudArmorTier + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @instance + */ + ProjectsSetCloudArmorTierRequest.prototype.cloudArmorTier = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ProjectsSetCloudArmorTierRequest _cloudArmorTier. + * @member {"cloudArmorTier"|undefined} _cloudArmorTier + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @instance + */ + Object.defineProperty(ProjectsSetCloudArmorTierRequest.prototype, "_cloudArmorTier", { + get: $util.oneOfGetter($oneOfFields = ["cloudArmorTier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ProjectsSetCloudArmorTierRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest} ProjectsSetCloudArmorTierRequest instance + */ + ProjectsSetCloudArmorTierRequest.create = function create(properties) { + return new ProjectsSetCloudArmorTierRequest(properties); + }; + + /** + * Encodes the specified ProjectsSetCloudArmorTierRequest message. Does not implicitly {@link google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest} message ProjectsSetCloudArmorTierRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectsSetCloudArmorTierRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cloudArmorTier != null && Object.hasOwnProperty.call(message, "cloudArmorTier")) + writer.uint32(/* id 4427052, wireType 2 =*/35416418).string(message.cloudArmorTier); + return writer; + }; + + /** + * Encodes the specified ProjectsSetCloudArmorTierRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest} message ProjectsSetCloudArmorTierRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectsSetCloudArmorTierRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProjectsSetCloudArmorTierRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @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.ProjectsSetCloudArmorTierRequest} ProjectsSetCloudArmorTierRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectsSetCloudArmorTierRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4427052: { + message.cloudArmorTier = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProjectsSetCloudArmorTierRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest} ProjectsSetCloudArmorTierRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectsSetCloudArmorTierRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProjectsSetCloudArmorTierRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectsSetCloudArmorTierRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.cloudArmorTier != null && message.hasOwnProperty("cloudArmorTier")) { + properties._cloudArmorTier = 1; + if (!$util.isString(message.cloudArmorTier)) + return "cloudArmorTier: string expected"; + } + return null; + }; + + /** + * Creates a ProjectsSetCloudArmorTierRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest} ProjectsSetCloudArmorTierRequest + */ + ProjectsSetCloudArmorTierRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest) + return object; + var message = new $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest(); + if (object.cloudArmorTier != null) + message.cloudArmorTier = String(object.cloudArmorTier); + return message; + }; + + /** + * Creates a plain object from a ProjectsSetCloudArmorTierRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest} message ProjectsSetCloudArmorTierRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProjectsSetCloudArmorTierRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.cloudArmorTier != null && message.hasOwnProperty("cloudArmorTier")) { + object.cloudArmorTier = message.cloudArmorTier; + if (options.oneofs) + object._cloudArmorTier = "cloudArmorTier"; + } + return object; + }; + + /** + * Converts this ProjectsSetCloudArmorTierRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @instance + * @returns {Object.} JSON object + */ + ProjectsSetCloudArmorTierRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProjectsSetCloudArmorTierRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProjectsSetCloudArmorTierRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest"; + }; + + /** + * CloudArmorTier enum. + * @name google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.CloudArmorTier + * @enum {number} + * @property {number} UNDEFINED_CLOUD_ARMOR_TIER=0 UNDEFINED_CLOUD_ARMOR_TIER value + * @property {number} CA_ENTERPRISE_ANNUAL=219921116 CA_ENTERPRISE_ANNUAL value + * @property {number} CA_ENTERPRISE_PAYGO=453530323 CA_ENTERPRISE_PAYGO value + * @property {number} CA_STANDARD=13156734 CA_STANDARD value + */ + ProjectsSetCloudArmorTierRequest.CloudArmorTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CLOUD_ARMOR_TIER"] = 0; + values[valuesById[219921116] = "CA_ENTERPRISE_ANNUAL"] = 219921116; + values[valuesById[453530323] = "CA_ENTERPRISE_PAYGO"] = 453530323; + values[valuesById[13156734] = "CA_STANDARD"] = 13156734; + return values; + })(); + + return ProjectsSetCloudArmorTierRequest; + })(); + v1.ProjectsSetDefaultNetworkTierRequest = (function() { /** @@ -419388,6 +428306,280 @@ return SetCertificateMapTargetSslProxyRequest; })(); + v1.SetCloudArmorTierProjectRequest = (function() { + + /** + * Properties of a SetCloudArmorTierProjectRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetCloudArmorTierProjectRequest + * @property {string|null} [project] SetCloudArmorTierProjectRequest project + * @property {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest|null} [projectsSetCloudArmorTierRequestResource] SetCloudArmorTierProjectRequest projectsSetCloudArmorTierRequestResource + * @property {string|null} [requestId] SetCloudArmorTierProjectRequest requestId + */ + + /** + * Constructs a new SetCloudArmorTierProjectRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetCloudArmorTierProjectRequest. + * @implements ISetCloudArmorTierProjectRequest + * @constructor + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest=} [properties] Properties to set + */ + function SetCloudArmorTierProjectRequest(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]]; + } + + /** + * SetCloudArmorTierProjectRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @instance + */ + SetCloudArmorTierProjectRequest.prototype.project = ""; + + /** + * SetCloudArmorTierProjectRequest projectsSetCloudArmorTierRequestResource. + * @member {google.cloud.compute.v1.IProjectsSetCloudArmorTierRequest|null|undefined} projectsSetCloudArmorTierRequestResource + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @instance + */ + SetCloudArmorTierProjectRequest.prototype.projectsSetCloudArmorTierRequestResource = null; + + /** + * SetCloudArmorTierProjectRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @instance + */ + SetCloudArmorTierProjectRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetCloudArmorTierProjectRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @instance + */ + Object.defineProperty(SetCloudArmorTierProjectRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetCloudArmorTierProjectRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetCloudArmorTierProjectRequest} SetCloudArmorTierProjectRequest instance + */ + SetCloudArmorTierProjectRequest.create = function create(properties) { + return new SetCloudArmorTierProjectRequest(properties); + }; + + /** + * Encodes the specified SetCloudArmorTierProjectRequest message. Does not implicitly {@link google.cloud.compute.v1.SetCloudArmorTierProjectRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest} message SetCloudArmorTierProjectRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetCloudArmorTierProjectRequest.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.projectsSetCloudArmorTierRequestResource != null && Object.hasOwnProperty.call(message, "projectsSetCloudArmorTierRequestResource")) + $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.encode(message.projectsSetCloudArmorTierRequestResource, writer.uint32(/* id 77053391, wireType 2 =*/616427130).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 SetCloudArmorTierProjectRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetCloudArmorTierProjectRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest} message SetCloudArmorTierProjectRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetCloudArmorTierProjectRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetCloudArmorTierProjectRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @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.SetCloudArmorTierProjectRequest} SetCloudArmorTierProjectRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetCloudArmorTierProjectRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetCloudArmorTierProjectRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 77053391: { + message.projectsSetCloudArmorTierRequestResource = $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.decode(reader, reader.uint32()); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetCloudArmorTierProjectRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetCloudArmorTierProjectRequest} SetCloudArmorTierProjectRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetCloudArmorTierProjectRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetCloudArmorTierProjectRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetCloudArmorTierProjectRequest.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.projectsSetCloudArmorTierRequestResource != null && message.hasOwnProperty("projectsSetCloudArmorTierRequestResource")) { + var error = $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.verify(message.projectsSetCloudArmorTierRequestResource); + if (error) + return "projectsSetCloudArmorTierRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a SetCloudArmorTierProjectRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetCloudArmorTierProjectRequest} SetCloudArmorTierProjectRequest + */ + SetCloudArmorTierProjectRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetCloudArmorTierProjectRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetCloudArmorTierProjectRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.projectsSetCloudArmorTierRequestResource != null) { + if (typeof object.projectsSetCloudArmorTierRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetCloudArmorTierProjectRequest.projectsSetCloudArmorTierRequestResource: object expected"); + message.projectsSetCloudArmorTierRequestResource = $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.fromObject(object.projectsSetCloudArmorTierRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a SetCloudArmorTierProjectRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {google.cloud.compute.v1.SetCloudArmorTierProjectRequest} message SetCloudArmorTierProjectRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetCloudArmorTierProjectRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectsSetCloudArmorTierRequestResource = null; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.projectsSetCloudArmorTierRequestResource != null && message.hasOwnProperty("projectsSetCloudArmorTierRequestResource")) + object.projectsSetCloudArmorTierRequestResource = $root.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest.toObject(message.projectsSetCloudArmorTierRequestResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this SetCloudArmorTierProjectRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @instance + * @returns {Object.} JSON object + */ + SetCloudArmorTierProjectRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetCloudArmorTierProjectRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetCloudArmorTierProjectRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetCloudArmorTierProjectRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetCloudArmorTierProjectRequest"; + }; + + return SetCloudArmorTierProjectRequest; + })(); + v1.SetCommonInstanceMetadataOperationMetadata = (function() { /** @@ -423582,6 +432774,284 @@ return SetIamPolicyInstanceTemplateRequest; })(); + 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) { + 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(); + 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 = {}; + 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 SetIamPolicyInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest"; + }; + + return SetIamPolicyInstantSnapshotRequest; + })(); + v1.SetIamPolicyLicenseRequest = (function() { /** @@ -425053,30 +434523,308 @@ }; /** - * Decodes a SetIamPolicyNodeTemplateRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyNodeTemplateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} SetIamPolicyNodeTemplateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyNodeTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyNodeTemplateRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyNodeTemplateRequest.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 SetIamPolicyNodeTemplateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} SetIamPolicyNodeTemplateRequest + */ + SetIamPolicyNodeTemplateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest(); + 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.SetIamPolicyNodeTemplateRequest.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 SetIamPolicyNodeTemplateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} message SetIamPolicyNodeTemplateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyNodeTemplateRequest.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 SetIamPolicyNodeTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyNodeTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest"; + }; + + return SetIamPolicyNodeTemplateRequest; + })(); + + v1.SetIamPolicyRegionBackendServiceRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyRegionBackendServiceRequest + * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. + * @implements ISetIamPolicyRegionBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionBackendServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyRegionBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionBackendServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionBackendServiceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance + */ + SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendServiceRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) + $root.google.cloud.compute.v1.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} SetIamPolicyNodeTemplateRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyNodeTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyNodeTemplateRequest message. + * Verifies a SetIamPolicyRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyNodeTemplateRequest.verify = function verify(message) { + SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -425097,24 +434845,24 @@ }; /** - * Creates a SetIamPolicyNodeTemplateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} SetIamPolicyNodeTemplateRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest */ - SetIamPolicyNodeTemplateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest) + SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest(); + var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -425123,15 +434871,15 @@ }; /** - * Creates a plain object from a SetIamPolicyNodeTemplateRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest} message SetIamPolicyNodeTemplateRequest + * @param {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyNodeTemplateRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -425153,55 +434901,55 @@ }; /** - * Converts this SetIamPolicyNodeTemplateRequest to JSON. + * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyNodeTemplateRequest + * Gets the default type url for SetIamPolicyRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest"; }; - return SetIamPolicyNodeTemplateRequest; + return SetIamPolicyRegionBackendServiceRequest; })(); - v1.SetIamPolicyRegionBackendServiceRequest = (function() { + v1.SetIamPolicyRegionDiskRequest = (function() { /** - * Properties of a SetIamPolicyRegionBackendServiceRequest. + * Properties of a SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @interface ISetIamPolicyRegionBackendServiceRequest - * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project - * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region - * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource + * @interface ISetIamPolicyRegionDiskRequest + * @property {string|null} [project] SetIamPolicyRegionDiskRequest project + * @property {string|null} [region] SetIamPolicyRegionDiskRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource */ /** - * Constructs a new SetIamPolicyRegionBackendServiceRequest. + * Constructs a new SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. - * @implements ISetIamPolicyRegionBackendServiceRequest + * @classdesc Represents a SetIamPolicyRegionDiskRequest. + * @implements ISetIamPolicyRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set */ - function SetIamPolicyRegionBackendServiceRequest(properties) { + function SetIamPolicyRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -425209,59 +434957,59 @@ } /** - * SetIamPolicyRegionBackendServiceRequest project. + * SetIamPolicyRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + SetIamPolicyRegionDiskRequest.prototype.project = ""; /** - * SetIamPolicyRegionBackendServiceRequest region. + * SetIamPolicyRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + SetIamPolicyRegionDiskRequest.prototype.region = ""; /** - * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionBackendServiceRequest resource. + * SetIamPolicyRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + SetIamPolicyRegionDiskRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance */ - SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { - return new SetIamPolicyRegionBackendServiceRequest(properties); + SetIamPolicyRegionDiskRequest.create = function create(properties) { + return new SetIamPolicyRegionDiskRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -425276,33 +435024,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length) { + SetIamPolicyRegionDiskRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -425331,30 +435079,30 @@ }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionBackendServiceRequest message. + * Verifies a SetIamPolicyRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { + SetIamPolicyRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -425375,24 +435123,24 @@ }; /** - * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest */ - SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest) + SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -425401,15 +435149,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest + * @param {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -425431,55 +435179,55 @@ }; /** - * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. + * Converts this SetIamPolicyRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionBackendServiceRequest + * Gets the default type url for SetIamPolicyRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionDiskRequest"; }; - return SetIamPolicyRegionBackendServiceRequest; + return SetIamPolicyRegionDiskRequest; })(); - v1.SetIamPolicyRegionDiskRequest = (function() { + v1.SetIamPolicyRegionInstantSnapshotRequest = (function() { /** - * Properties of a SetIamPolicyRegionDiskRequest. + * Properties of a SetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @interface ISetIamPolicyRegionDiskRequest - * @property {string|null} [project] SetIamPolicyRegionDiskRequest project - * @property {string|null} [region] SetIamPolicyRegionDiskRequest region - * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource + * @interface ISetIamPolicyRegionInstantSnapshotRequest + * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotRequest project + * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotRequest resource */ /** - * Constructs a new SetIamPolicyRegionDiskRequest. + * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetIamPolicyRegionDiskRequest. - * @implements ISetIamPolicyRegionDiskRequest + * @classdesc Represents a SetIamPolicyRegionInstantSnapshotRequest. + * @implements ISetIamPolicyRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set */ - function SetIamPolicyRegionDiskRequest(properties) { + function SetIamPolicyRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -425487,59 +435235,59 @@ } /** - * SetIamPolicyRegionDiskRequest project. + * SetIamPolicyRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.project = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; /** - * SetIamPolicyRegionDiskRequest region. + * SetIamPolicyRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.region = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; /** - * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionInstantSnapshotRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionDiskRequest resource. + * SetIamPolicyRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.resource = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest instance */ - SetIamPolicyRegionDiskRequest.create = function create(properties) { - return new SetIamPolicyRegionDiskRequest(properties); + SetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { + return new SetIamPolicyRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @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 */ - SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { + SetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -425554,33 +435302,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * 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.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @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 */ - SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @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.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @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 */ - SetIamPolicyRegionDiskRequest.decode = function decode(reader, length) { + SetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest(); + 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(); switch (tag >>> 3) { @@ -425609,30 +435357,30 @@ }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @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 */ - SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionDiskRequest message. + * Verifies a SetIamPolicyRegionInstantSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionDiskRequest.verify = function verify(message) { + SetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -425653,24 +435401,24 @@ }; /** - * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest */ - SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest) + SetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -425679,15 +435427,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest + * @param {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -425709,32 +435457,32 @@ }; /** - * Converts this SetIamPolicyRegionDiskRequest to JSON. + * Converts this SetIamPolicyRegionInstantSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionDiskRequest + * Gets the default type url for SetIamPolicyRegionInstantSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest"; }; - return SetIamPolicyRegionDiskRequest; + return SetIamPolicyRegionInstantSnapshotRequest; })(); v1.SetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { @@ -430322,6 +440070,326 @@ return SetLabelsInstanceRequest; })(); + v1.SetLabelsInstantSnapshotRequest = (function() { + + /** + * Properties of a SetLabelsInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetLabelsInstantSnapshotRequest + * @property {string|null} [project] SetLabelsInstantSnapshotRequest project + * @property {string|null} [requestId] SetLabelsInstantSnapshotRequest requestId + * @property {string|null} [resource] SetLabelsInstantSnapshotRequest resource + * @property {string|null} [zone] SetLabelsInstantSnapshotRequest zone + * @property {google.cloud.compute.v1.IZoneSetLabelsRequest|null} [zoneSetLabelsRequestResource] SetLabelsInstantSnapshotRequest zoneSetLabelsRequestResource + */ + + /** + * Constructs a new SetLabelsInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetLabelsInstantSnapshotRequest. + * @implements ISetLabelsInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest=} [properties] Properties to set + */ + function SetLabelsInstantSnapshotRequest(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]]; + } + + /** + * SetLabelsInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + SetLabelsInstantSnapshotRequest.prototype.project = ""; + + /** + * SetLabelsInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + SetLabelsInstantSnapshotRequest.prototype.requestId = null; + + /** + * SetLabelsInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + SetLabelsInstantSnapshotRequest.prototype.resource = ""; + + /** + * SetLabelsInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + SetLabelsInstantSnapshotRequest.prototype.zone = ""; + + /** + * SetLabelsInstantSnapshotRequest zoneSetLabelsRequestResource. + * @member {google.cloud.compute.v1.IZoneSetLabelsRequest|null|undefined} zoneSetLabelsRequestResource + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + SetLabelsInstantSnapshotRequest.prototype.zoneSetLabelsRequestResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetLabelsInstantSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + */ + Object.defineProperty(SetLabelsInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetLabelsInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetLabelsInstantSnapshotRequest} SetLabelsInstantSnapshotRequest instance + */ + SetLabelsInstantSnapshotRequest.create = function create(properties) { + return new SetLabelsInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetLabelsInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest} message SetLabelsInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsInstantSnapshotRequest.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.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.zoneSetLabelsRequestResource != null && Object.hasOwnProperty.call(message, "zoneSetLabelsRequestResource")) + $root.google.cloud.compute.v1.ZoneSetLabelsRequest.encode(message.zoneSetLabelsRequestResource, writer.uint32(/* id 364950798, wireType 2 =*/2919606386).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetLabelsInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest} message SetLabelsInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLabelsInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @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.SetLabelsInstantSnapshotRequest} SetLabelsInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + case 364950798: { + message.zoneSetLabelsRequestResource = $root.google.cloud.compute.v1.ZoneSetLabelsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLabelsInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetLabelsInstantSnapshotRequest} SetLabelsInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLabelsInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetLabelsInstantSnapshotRequest.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.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.zoneSetLabelsRequestResource != null && message.hasOwnProperty("zoneSetLabelsRequestResource")) { + var error = $root.google.cloud.compute.v1.ZoneSetLabelsRequest.verify(message.zoneSetLabelsRequestResource); + if (error) + return "zoneSetLabelsRequestResource." + error; + } + return null; + }; + + /** + * Creates a SetLabelsInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetLabelsInstantSnapshotRequest} SetLabelsInstantSnapshotRequest + */ + SetLabelsInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.resource != null) + message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + if (object.zoneSetLabelsRequestResource != null) { + if (typeof object.zoneSetLabelsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetLabelsInstantSnapshotRequest.zoneSetLabelsRequestResource: object expected"); + message.zoneSetLabelsRequestResource = $root.google.cloud.compute.v1.ZoneSetLabelsRequest.fromObject(object.zoneSetLabelsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a SetLabelsInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.SetLabelsInstantSnapshotRequest} message SetLabelsInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLabelsInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + object.zoneSetLabelsRequestResource = 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.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.zoneSetLabelsRequestResource != null && message.hasOwnProperty("zoneSetLabelsRequestResource")) + object.zoneSetLabelsRequestResource = $root.google.cloud.compute.v1.ZoneSetLabelsRequest.toObject(message.zoneSetLabelsRequestResource, options); + return object; + }; + + /** + * Converts this SetLabelsInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + SetLabelsInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetLabelsInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetLabelsInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLabelsInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetLabelsInstantSnapshotRequest"; + }; + + return SetLabelsInstantSnapshotRequest; + })(); + v1.SetLabelsInterconnectAttachmentRequest = (function() { /** @@ -431217,6 +441285,326 @@ return SetLabelsRegionDiskRequest; })(); + v1.SetLabelsRegionInstantSnapshotRequest = (function() { + + /** + * Properties of a SetLabelsRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetLabelsRegionInstantSnapshotRequest + * @property {string|null} [project] SetLabelsRegionInstantSnapshotRequest project + * @property {string|null} [region] SetLabelsRegionInstantSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSetLabelsRequest|null} [regionSetLabelsRequestResource] SetLabelsRegionInstantSnapshotRequest regionSetLabelsRequestResource + * @property {string|null} [requestId] SetLabelsRegionInstantSnapshotRequest requestId + * @property {string|null} [resource] SetLabelsRegionInstantSnapshotRequest resource + */ + + /** + * Constructs a new SetLabelsRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetLabelsRegionInstantSnapshotRequest. + * @implements ISetLabelsRegionInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest=} [properties] Properties to set + */ + function SetLabelsRegionInstantSnapshotRequest(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]]; + } + + /** + * SetLabelsRegionInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + SetLabelsRegionInstantSnapshotRequest.prototype.project = ""; + + /** + * SetLabelsRegionInstantSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + SetLabelsRegionInstantSnapshotRequest.prototype.region = ""; + + /** + * SetLabelsRegionInstantSnapshotRequest regionSetLabelsRequestResource. + * @member {google.cloud.compute.v1.IRegionSetLabelsRequest|null|undefined} regionSetLabelsRequestResource + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + SetLabelsRegionInstantSnapshotRequest.prototype.regionSetLabelsRequestResource = null; + + /** + * SetLabelsRegionInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + SetLabelsRegionInstantSnapshotRequest.prototype.requestId = null; + + /** + * SetLabelsRegionInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + SetLabelsRegionInstantSnapshotRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetLabelsRegionInstantSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + */ + Object.defineProperty(SetLabelsRegionInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetLabelsRegionInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest} SetLabelsRegionInstantSnapshotRequest instance + */ + SetLabelsRegionInstantSnapshotRequest.create = function create(properties) { + return new SetLabelsRegionInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetLabelsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest} message SetLabelsRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRegionInstantSnapshotRequest.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 SetLabelsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest} message SetLabelsRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLabelsRegionInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @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.SetLabelsRegionInstantSnapshotRequest} SetLabelsRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRegionInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 SetLabelsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest} SetLabelsRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLabelsRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetLabelsRegionInstantSnapshotRequest.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 SetLabelsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest} SetLabelsRegionInstantSnapshotRequest + */ + SetLabelsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest(); + 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.SetLabelsRegionInstantSnapshotRequest.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 SetLabelsRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest} message SetLabelsRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLabelsRegionInstantSnapshotRequest.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 SetLabelsRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + SetLabelsRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetLabelsRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLabelsRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest"; + }; + + return SetLabelsRegionInstantSnapshotRequest; + })(); + v1.SetLabelsSecurityPolicyRequest = (function() { /** @@ -446144,6 +456532,9 @@ * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceDiskEncryptionKey] Snapshot sourceDiskEncryptionKey * @property {string|null} [sourceDiskForRecoveryCheckpoint] Snapshot sourceDiskForRecoveryCheckpoint * @property {string|null} [sourceDiskId] Snapshot sourceDiskId + * @property {string|null} [sourceInstantSnapshot] Snapshot sourceInstantSnapshot + * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceInstantSnapshotEncryptionKey] Snapshot sourceInstantSnapshotEncryptionKey + * @property {string|null} [sourceInstantSnapshotId] Snapshot sourceInstantSnapshotId * @property {string|null} [sourceSnapshotSchedulePolicy] Snapshot sourceSnapshotSchedulePolicy * @property {string|null} [sourceSnapshotSchedulePolicyId] Snapshot sourceSnapshotSchedulePolicyId * @property {string|null} [status] Snapshot status @@ -446388,6 +456779,30 @@ */ Snapshot.prototype.sourceDiskId = null; + /** + * Snapshot sourceInstantSnapshot. + * @member {string|null|undefined} sourceInstantSnapshot + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.sourceInstantSnapshot = null; + + /** + * Snapshot sourceInstantSnapshotEncryptionKey. + * @member {google.cloud.compute.v1.ICustomerEncryptionKey|null|undefined} sourceInstantSnapshotEncryptionKey + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.sourceInstantSnapshotEncryptionKey = null; + + /** + * Snapshot sourceInstantSnapshotId. + * @member {string|null|undefined} sourceInstantSnapshotId + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.sourceInstantSnapshotId = null; + /** * Snapshot sourceSnapshotSchedulePolicy. * @member {string|null|undefined} sourceSnapshotSchedulePolicy @@ -446692,6 +457107,39 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _sourceInstantSnapshot. + * @member {"sourceInstantSnapshot"|undefined} _sourceInstantSnapshot + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_sourceInstantSnapshot", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshot"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Snapshot _sourceInstantSnapshotEncryptionKey. + * @member {"sourceInstantSnapshotEncryptionKey"|undefined} _sourceInstantSnapshotEncryptionKey + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_sourceInstantSnapshotEncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotEncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Snapshot _sourceInstantSnapshotId. + * @member {"sourceInstantSnapshotId"|undefined} _sourceInstantSnapshotId + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_sourceInstantSnapshotId", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _sourceSnapshotSchedulePolicy. * @member {"sourceSnapshotSchedulePolicy"|undefined} _sourceSnapshotSchedulePolicy @@ -446804,8 +457252,12 @@ writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.sourceInstantSnapshot != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshot")) + 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.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")) writer.uint32(/* id 302803283, wireType 2 =*/2422426266).string(message.architecture); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) @@ -446826,6 +457278,8 @@ writer.uint32(/* id 424631719, wireType 0 =*/3397053752).int64(message.storageBytes); if (message.downloadBytes != null && Object.hasOwnProperty.call(message, "downloadBytes")) writer.uint32(/* id 435054068, wireType 0 =*/3480432544).int64(message.downloadBytes); + if (message.sourceInstantSnapshotEncryptionKey != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotEncryptionKey")) + $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceInstantSnapshotEncryptionKey, writer.uint32(/* id 436536060, wireType 2 =*/3492288482).fork()).ldelim(); if (message.sourceDisk != null && Object.hasOwnProperty.call(message, "sourceDisk")) writer.uint32(/* id 451753793, wireType 2 =*/3614030346).string(message.sourceDisk); if (message.sourceDiskId != null && Object.hasOwnProperty.call(message, "sourceDiskId")) @@ -447017,6 +457471,18 @@ message.sourceDiskId = reader.string(); break; } + case 219202054: { + message.sourceInstantSnapshot = reader.string(); + break; + } + case 436536060: { + message.sourceInstantSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); + break; + } + case 287582708: { + message.sourceInstantSnapshotId = reader.string(); + break; + } case 235756291: { message.sourceSnapshotSchedulePolicy = reader.string(); break; @@ -447231,6 +457697,24 @@ if (!$util.isString(message.sourceDiskId)) return "sourceDiskId: string expected"; } + if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { + properties._sourceInstantSnapshot = 1; + if (!$util.isString(message.sourceInstantSnapshot)) + return "sourceInstantSnapshot: string expected"; + } + if (message.sourceInstantSnapshotEncryptionKey != null && message.hasOwnProperty("sourceInstantSnapshotEncryptionKey")) { + properties._sourceInstantSnapshotEncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1.CustomerEncryptionKey.verify(message.sourceInstantSnapshotEncryptionKey); + if (error) + return "sourceInstantSnapshotEncryptionKey." + error; + } + } + if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { + properties._sourceInstantSnapshotId = 1; + if (!$util.isString(message.sourceInstantSnapshotId)) + return "sourceInstantSnapshotId: string expected"; + } if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { properties._sourceSnapshotSchedulePolicy = 1; if (!$util.isString(message.sourceSnapshotSchedulePolicy)) @@ -447396,6 +457880,15 @@ message.sourceDiskForRecoveryCheckpoint = String(object.sourceDiskForRecoveryCheckpoint); if (object.sourceDiskId != null) message.sourceDiskId = String(object.sourceDiskId); + if (object.sourceInstantSnapshot != null) + message.sourceInstantSnapshot = String(object.sourceInstantSnapshot); + if (object.sourceInstantSnapshotEncryptionKey != null) { + if (typeof object.sourceInstantSnapshotEncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1.Snapshot.sourceInstantSnapshotEncryptionKey: object expected"); + message.sourceInstantSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.sourceInstantSnapshotEncryptionKey); + } + if (object.sourceInstantSnapshotId != null) + message.sourceInstantSnapshotId = String(object.sourceInstantSnapshotId); if (object.sourceSnapshotSchedulePolicy != null) message.sourceSnapshotSchedulePolicy = String(object.sourceSnapshotSchedulePolicy); if (object.sourceSnapshotSchedulePolicyId != null) @@ -447523,11 +458016,21 @@ if (options.oneofs) object._status = "status"; } + if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { + object.sourceInstantSnapshot = message.sourceInstantSnapshot; + if (options.oneofs) + object._sourceInstantSnapshot = "sourceInstantSnapshot"; + } if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { object.sourceSnapshotSchedulePolicy = message.sourceSnapshotSchedulePolicy; if (options.oneofs) object._sourceSnapshotSchedulePolicy = "sourceSnapshotSchedulePolicy"; } + if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { + object.sourceInstantSnapshotId = message.sourceInstantSnapshotId; + if (options.oneofs) + object._sourceInstantSnapshotId = "sourceInstantSnapshotId"; + } if (message.architecture != null && message.hasOwnProperty("architecture")) { object.architecture = message.architecture; if (options.oneofs) @@ -447582,6 +458085,11 @@ if (options.oneofs) object._downloadBytes = "downloadBytes"; } + if (message.sourceInstantSnapshotEncryptionKey != null && message.hasOwnProperty("sourceInstantSnapshotEncryptionKey")) { + object.sourceInstantSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceInstantSnapshotEncryptionKey, options); + if (options.oneofs) + object._sourceInstantSnapshotEncryptionKey = "sourceInstantSnapshotEncryptionKey"; + } if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { object.sourceDisk = message.sourceDisk; if (options.oneofs) @@ -483697,6 +494205,284 @@ return TestIamPermissionsInstanceTemplateRequest; })(); + v1.TestIamPermissionsInstantSnapshotRequest = (function() { + + /** + * Properties of a TestIamPermissionsInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsInstantSnapshotRequest + * @property {string|null} [project] TestIamPermissionsInstantSnapshotRequest project + * @property {string|null} [resource] TestIamPermissionsInstantSnapshotRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstantSnapshotRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsInstantSnapshotRequest zone + */ + + /** + * Constructs a new TestIamPermissionsInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsInstantSnapshotRequest. + * @implements ITestIamPermissionsInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest=} [properties] Properties to set + */ + function TestIamPermissionsInstantSnapshotRequest(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]]; + } + + /** + * TestIamPermissionsInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @instance + */ + TestIamPermissionsInstantSnapshotRequest.prototype.project = ""; + + /** + * TestIamPermissionsInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @instance + */ + TestIamPermissionsInstantSnapshotRequest.prototype.resource = ""; + + /** + * TestIamPermissionsInstantSnapshotRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @instance + */ + TestIamPermissionsInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; + + /** + * TestIamPermissionsInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @instance + */ + TestIamPermissionsInstantSnapshotRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest} TestIamPermissionsInstantSnapshotRequest instance + */ + TestIamPermissionsInstantSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest} message TestIamPermissionsInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstantSnapshotRequest.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 TestIamPermissionsInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest} message TestIamPermissionsInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @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.TestIamPermissionsInstantSnapshotRequest} TestIamPermissionsInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstantSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 TestIamPermissionsInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest} TestIamPermissionsInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsInstantSnapshotRequest.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 TestIamPermissionsInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest} TestIamPermissionsInstantSnapshotRequest + */ + TestIamPermissionsInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest(); + 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.TestIamPermissionsInstantSnapshotRequest.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 TestIamPermissionsInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest} message TestIamPermissionsInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsInstantSnapshotRequest.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 TestIamPermissionsInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest"; + }; + + return TestIamPermissionsInstantSnapshotRequest; + })(); + v1.TestIamPermissionsLicenseCodeRequest = (function() { /** @@ -486663,6 +497449,284 @@ return TestIamPermissionsRegionDiskRequest; })(); + v1.TestIamPermissionsRegionInstantSnapshotRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionInstantSnapshotRequest. + * @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 + */ + + /** + * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotRequest. + * @implements ITestIamPermissionsRegionInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionInstantSnapshotRequest(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]]; + } + + /** + * TestIamPermissionsRegionInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @instance + */ + TestIamPermissionsRegionInstantSnapshotRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionInstantSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @instance + */ + TestIamPermissionsRegionInstantSnapshotRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @instance + */ + TestIamPermissionsRegionInstantSnapshotRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @instance + */ + TestIamPermissionsRegionInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest instance + */ + TestIamPermissionsRegionInstantSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @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 + */ + TestIamPermissionsRegionInstantSnapshotRequest.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 TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @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 + */ + TestIamPermissionsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @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.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + 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 TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + TestIamPermissionsRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionInstantSnapshotRequest message. + * @function verify + * @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 + */ + TestIamPermissionsRegionInstantSnapshotRequest.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 TestIamPermissionsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + */ + TestIamPermissionsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest(); + 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.TestIamPermissionsRegionInstantSnapshotRequest.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. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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() { /** @@ -505176,6 +516240,7 @@ * @interface IVpnGateway * @property {string|null} [creationTimestamp] VpnGateway creationTimestamp * @property {string|null} [description] VpnGateway description + * @property {string|null} [gatewayIpVersion] VpnGateway gatewayIpVersion * @property {number|Long|null} [id] VpnGateway id * @property {string|null} [kind] VpnGateway kind * @property {string|null} [labelFingerprint] VpnGateway labelFingerprint @@ -505221,6 +516286,14 @@ */ VpnGateway.prototype.description = null; + /** + * VpnGateway gatewayIpVersion. + * @member {string|null|undefined} gatewayIpVersion + * @memberof google.cloud.compute.v1.VpnGateway + * @instance + */ + VpnGateway.prototype.gatewayIpVersion = null; + /** * VpnGateway id. * @member {number|Long|null|undefined} id @@ -505326,6 +516399,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * VpnGateway _gatewayIpVersion. + * @member {"gatewayIpVersion"|undefined} _gatewayIpVersion + * @memberof google.cloud.compute.v1.VpnGateway + * @instance + */ + Object.defineProperty(VpnGateway.prototype, "_gatewayIpVersion", { + get: $util.oneOfGetter($oneOfFields = ["gatewayIpVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * VpnGateway _id. * @member {"id"|undefined} _id @@ -505446,6 +516530,8 @@ 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.gatewayIpVersion != null && Object.hasOwnProperty.call(message, "gatewayIpVersion")) + writer.uint32(/* id 65074843, wireType 2 =*/520598746).string(message.gatewayIpVersion); if (message.vpnInterfaces != null && message.vpnInterfaces.length) for (var i = 0; i < message.vpnInterfaces.length; ++i) $root.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.encode(message.vpnInterfaces[i], writer.uint32(/* id 91842181, wireType 2 =*/734737450).fork()).ldelim(); @@ -505506,6 +516592,10 @@ message.description = reader.string(); break; } + case 65074843: { + message.gatewayIpVersion = reader.string(); + break; + } case 3355: { message.id = reader.uint64(); break; @@ -505613,6 +516703,11 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.gatewayIpVersion != null && message.hasOwnProperty("gatewayIpVersion")) { + properties._gatewayIpVersion = 1; + if (!$util.isString(message.gatewayIpVersion)) + return "gatewayIpVersion: 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))) @@ -505689,6 +516784,8 @@ message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) message.description = String(object.description); + if (object.gatewayIpVersion != null) + message.gatewayIpVersion = String(object.gatewayIpVersion); if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -505772,6 +516869,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.gatewayIpVersion != null && message.hasOwnProperty("gatewayIpVersion")) { + object.gatewayIpVersion = message.gatewayIpVersion; + if (options.oneofs) + object._gatewayIpVersion = "gatewayIpVersion"; + } if (message.vpnInterfaces && message.vpnInterfaces.length) { object.vpnInterfaces = []; for (var j = 0; j < message.vpnInterfaces.length; ++j) @@ -505842,6 +516944,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.VpnGateway"; }; + /** + * GatewayIpVersion enum. + * @name google.cloud.compute.v1.VpnGateway.GatewayIpVersion + * @enum {number} + * @property {number} UNDEFINED_GATEWAY_IP_VERSION=0 UNDEFINED_GATEWAY_IP_VERSION value + * @property {number} IPV4=2254341 IPV4 value + * @property {number} IPV6=2254343 IPV6 value + */ + VpnGateway.GatewayIpVersion = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_GATEWAY_IP_VERSION"] = 0; + values[valuesById[2254341] = "IPV4"] = 2254341; + values[valuesById[2254343] = "IPV6"] = 2254343; + return values; + })(); + /** * StackType enum. * @name google.cloud.compute.v1.VpnGateway.StackType @@ -507937,6 +519055,7 @@ * @property {number|null} [id] VpnGatewayVpnGatewayInterface id * @property {string|null} [interconnectAttachment] VpnGatewayVpnGatewayInterface interconnectAttachment * @property {string|null} [ipAddress] VpnGatewayVpnGatewayInterface ipAddress + * @property {string|null} [ipv6Address] VpnGatewayVpnGatewayInterface ipv6Address */ /** @@ -507978,6 +519097,14 @@ */ VpnGatewayVpnGatewayInterface.prototype.ipAddress = null; + /** + * VpnGatewayVpnGatewayInterface ipv6Address. + * @member {string|null|undefined} ipv6Address + * @memberof google.cloud.compute.v1.VpnGatewayVpnGatewayInterface + * @instance + */ + VpnGatewayVpnGatewayInterface.prototype.ipv6Address = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -508014,6 +519141,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * VpnGatewayVpnGatewayInterface _ipv6Address. + * @member {"ipv6Address"|undefined} _ipv6Address + * @memberof google.cloud.compute.v1.VpnGatewayVpnGatewayInterface + * @instance + */ + Object.defineProperty(VpnGatewayVpnGatewayInterface.prototype, "_ipv6Address", { + get: $util.oneOfGetter($oneOfFields = ["ipv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new VpnGatewayVpnGatewayInterface instance using the specified properties. * @function create @@ -508042,6 +519180,8 @@ writer.uint32(/* id 3355, wireType 0 =*/26840).uint32(message.id); if (message.interconnectAttachment != null && Object.hasOwnProperty.call(message, "interconnectAttachment")) writer.uint32(/* id 308135284, wireType 2 =*/2465082274).string(message.interconnectAttachment); + if (message.ipv6Address != null && Object.hasOwnProperty.call(message, "ipv6Address")) + writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); return writer; @@ -508090,6 +519230,10 @@ message.ipAddress = reader.string(); break; } + case 341563804: { + message.ipv6Address = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -508141,6 +519285,11 @@ if (!$util.isString(message.ipAddress)) return "ipAddress: string expected"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + properties._ipv6Address = 1; + if (!$util.isString(message.ipv6Address)) + return "ipv6Address: string expected"; + } return null; }; @@ -508162,6 +519311,8 @@ message.interconnectAttachment = String(object.interconnectAttachment); if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.ipv6Address != null) + message.ipv6Address = String(object.ipv6Address); return message; }; @@ -508188,6 +519339,11 @@ if (options.oneofs) object._interconnectAttachment = "interconnectAttachment"; } + if (message.ipv6Address != null && message.hasOwnProperty("ipv6Address")) { + object.ipv6Address = message.ipv6Address; + if (options.oneofs) + object._ipv6Address = "ipv6Address"; + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { object.ipAddress = message.ipAddress; if (options.oneofs) @@ -525114,6 +536270,338 @@ return Instances; })(); + v1.InstantSnapshots = (function() { + + /** + * Constructs a new InstantSnapshots service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshots + * @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 InstantSnapshots(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (InstantSnapshots.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = InstantSnapshots; + + /** + * Creates new InstantSnapshots service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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 {InstantSnapshots} RPC service. Useful where requests and/or responses are streamed. + */ + InstantSnapshots.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|aggregatedList}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshotAggregatedList} [response] InstantSnapshotAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} request AggregatedListInstantSnapshotsRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.AggregatedListCallback} callback Node-style callback called with the error, if any, and InstantSnapshotAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest, $root.google.cloud.compute.v1.InstantSnapshotAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} request AggregatedListInstantSnapshotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|delete_}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} request DeleteInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} request DeleteInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|get}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshot} [response] InstantSnapshot + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest} request GetInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshot + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetInstantSnapshotRequest, $root.google.cloud.compute.v1.InstantSnapshot, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetInstantSnapshotRequest} request GetInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|getIamPolicy}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest} request GetIamPolicyInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest} request GetIamPolicyInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|insert}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest} request InsertInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertInstantSnapshotRequest} request InsertInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|list}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshotList} [response] InstantSnapshotList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest} request ListInstantSnapshotsRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.ListCallback} callback Node-style callback called with the error, if any, and InstantSnapshotList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListInstantSnapshotsRequest, $root.google.cloud.compute.v1.InstantSnapshotList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IListInstantSnapshotsRequest} request ListInstantSnapshotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|setIamPolicy}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} request SetIamPolicyInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} request SetIamPolicyInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|setLabels}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest} request SetLabelsInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.SetLabelsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.setLabels = function setLabels(request, callback) { + return this.rpcCall(setLabels, $root.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetLabels" }); + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest} request SetLabelsInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshots|testIamPermissions}. + * @memberof google.cloud.compute.v1.InstantSnapshots + * @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.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest} request TestIamPermissionsInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshots.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshots.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.InstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest} request TestIamPermissionsInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return InstantSnapshots; + })(); + v1.InterconnectAttachments = (function() { /** @@ -530031,6 +541519,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Projects|setCloudArmorTier}. + * @memberof google.cloud.compute.v1.Projects + * @typedef SetCloudArmorTierCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls SetCloudArmorTier. + * @function setCloudArmorTier + * @memberof google.cloud.compute.v1.Projects + * @instance + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest} request SetCloudArmorTierProjectRequest message or plain object + * @param {google.cloud.compute.v1.Projects.SetCloudArmorTierCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Projects.prototype.setCloudArmorTier = function setCloudArmorTier(request, callback) { + return this.rpcCall(setCloudArmorTier, $root.google.cloud.compute.v1.SetCloudArmorTierProjectRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetCloudArmorTier" }); + + /** + * Calls SetCloudArmorTier. + * @function setCloudArmorTier + * @memberof google.cloud.compute.v1.Projects + * @instance + * @param {google.cloud.compute.v1.ISetCloudArmorTierProjectRequest} request SetCloudArmorTierProjectRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Projects|setCommonInstanceMetadata}. * @memberof google.cloud.compute.v1.Projects @@ -533756,6 +545277,305 @@ return RegionInstances; })(); + v1.RegionInstantSnapshots = (function() { + + /** + * Constructs a new RegionInstantSnapshots service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionInstantSnapshots + * @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 RegionInstantSnapshots(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionInstantSnapshots.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionInstantSnapshots; + + /** + * Creates new RegionInstantSnapshots service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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 {RegionInstantSnapshots} RPC service. Useful where requests and/or responses are streamed. + */ + RegionInstantSnapshots.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|delete_}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest} request DeleteRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest} request DeleteRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|get}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshot} [response] InstantSnapshot + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest} request GetRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshot + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.InstantSnapshot, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotRequest} request GetRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|getIamPolicy}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest} request GetIamPolicyRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest} request GetIamPolicyRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|insert}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest} request InsertRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest} request InsertRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|list}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshotList} [response] InstantSnapshotList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} request ListRegionInstantSnapshotsRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.ListCallback} callback Node-style callback called with the error, if any, and InstantSnapshotList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest, $root.google.cloud.compute.v1.InstantSnapshotList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} request ListRegionInstantSnapshotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|setIamPolicy}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} request SetIamPolicyRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} request SetIamPolicyRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|setLabels}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest} request SetLabelsRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.SetLabelsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.setLabels = function setLabels(request, callback) { + return this.rpcCall(setLabels, $root.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetLabels" }); + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest} request SetLabelsRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshots|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @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.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} request TestIamPermissionsRegionInstantSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshots.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionInstantSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} request TestIamPermissionsRegionInstantSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionInstantSnapshots; + })(); + v1.RegionNetworkEndpointGroups = (function() { /** @@ -552226,6 +564046,7 @@ * @property {string|null} [docTagPrefix] Publishing docTagPrefix * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization * @property {Array.|null} [librarySettings] Publishing librarySettings + * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri */ /** @@ -552318,6 +564139,14 @@ */ Publishing.prototype.librarySettings = $util.emptyArray; + /** + * Publishing protoReferenceDocumentationUri. + * @member {string} protoReferenceDocumentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.protoReferenceDocumentationUri = ""; + /** * Creates a new Publishing instance using the specified properties. * @function create @@ -552363,6 +564192,8 @@ if (message.librarySettings != null && message.librarySettings.length) for (var i = 0; i < message.librarySettings.length; ++i) $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri); return writer; }; @@ -552439,6 +564270,10 @@ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); break; } + case 110: { + message.protoReferenceDocumentationUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -552514,6 +564349,9 @@ case 2: case 3: case 4: + case 5: + case 6: + case 7: break; } if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { @@ -552525,6 +564363,9 @@ return "librarySettings." + error; } } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + if (!$util.isString(message.protoReferenceDocumentationUri)) + return "protoReferenceDocumentationUri: string expected"; return null; }; @@ -552594,6 +564435,18 @@ case 4: message.organization = 4; break; + case "SHOPPING": + case 5: + message.organization = 5; + break; + case "GEO": + case 6: + message.organization = 6; + break; + case "GENERATIVE_AI": + case 7: + message.organization = 7; + break; } if (object.librarySettings) { if (!Array.isArray(object.librarySettings)) @@ -552605,6 +564458,8 @@ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); } } + if (object.protoReferenceDocumentationUri != null) + message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri); return message; }; @@ -552633,6 +564488,7 @@ object.githubLabel = ""; object.docTagPrefix = ""; object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; + object.protoReferenceDocumentationUri = ""; } if (message.methodSettings && message.methodSettings.length) { object.methodSettings = []; @@ -552661,6 +564517,8 @@ for (var j = 0; j < message.librarySettings.length; ++j) object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri; return object; }; @@ -553823,6 +565681,11 @@ * @memberof google.api * @interface IDotnetSettings * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common + * @property {Object.|null} [renamedServices] DotnetSettings renamedServices + * @property {Object.|null} [renamedResources] DotnetSettings renamedResources + * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources + * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases + * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures */ /** @@ -553834,6 +565697,11 @@ * @param {google.api.IDotnetSettings=} [properties] Properties to set */ function DotnetSettings(properties) { + this.renamedServices = {}; + this.renamedResources = {}; + this.ignoredResources = []; + this.forcedNamespaceAliases = []; + this.handwrittenSignatures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -553848,6 +565716,46 @@ */ DotnetSettings.prototype.common = null; + /** + * DotnetSettings renamedServices. + * @member {Object.} renamedServices + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedServices = $util.emptyObject; + + /** + * DotnetSettings renamedResources. + * @member {Object.} renamedResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedResources = $util.emptyObject; + + /** + * DotnetSettings ignoredResources. + * @member {Array.} ignoredResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.ignoredResources = $util.emptyArray; + + /** + * DotnetSettings forcedNamespaceAliases. + * @member {Array.} forcedNamespaceAliases + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray; + + /** + * DotnetSettings handwrittenSignatures. + * @member {Array.} handwrittenSignatures + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray; + /** * Creates a new DotnetSettings instance using the specified properties. * @function create @@ -553874,6 +565782,21 @@ writer = $Writer.create(); if (message.common != null && Object.hasOwnProperty.call(message, "common")) $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) + for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim(); + if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) + for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim(); + if (message.ignoredResources != null && message.ignoredResources.length) + for (var i = 0; i < message.ignoredResources.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]); + if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length) + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]); + if (message.handwrittenSignatures != null && message.handwrittenSignatures.length) + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]); return writer; }; @@ -553904,7 +565827,7 @@ DotnetSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -553912,6 +565835,70 @@ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } + case 2: { + if (message.renamedServices === $util.emptyObject) + message.renamedServices = {}; + 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.renamedServices[key] = value; + break; + } + case 3: { + if (message.renamedResources === $util.emptyObject) + message.renamedResources = {}; + 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.renamedResources[key] = value; + break; + } + case 4: { + if (!(message.ignoredResources && message.ignoredResources.length)) + message.ignoredResources = []; + message.ignoredResources.push(reader.string()); + break; + } + case 5: { + if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length)) + message.forcedNamespaceAliases = []; + message.forcedNamespaceAliases.push(reader.string()); + break; + } + case 6: { + if (!(message.handwrittenSignatures && message.handwrittenSignatures.length)) + message.handwrittenSignatures = []; + message.handwrittenSignatures.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -553952,6 +565939,43 @@ if (error) return "common." + error; } + if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) { + if (!$util.isObject(message.renamedServices)) + return "renamedServices: object expected"; + var key = Object.keys(message.renamedServices); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedServices[key[i]])) + return "renamedServices: string{k:string} expected"; + } + if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) { + if (!$util.isObject(message.renamedResources)) + return "renamedResources: object expected"; + var key = Object.keys(message.renamedResources); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedResources[key[i]])) + return "renamedResources: string{k:string} expected"; + } + if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) { + if (!Array.isArray(message.ignoredResources)) + return "ignoredResources: array expected"; + for (var i = 0; i < message.ignoredResources.length; ++i) + if (!$util.isString(message.ignoredResources[i])) + return "ignoredResources: string[] expected"; + } + if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) { + if (!Array.isArray(message.forcedNamespaceAliases)) + return "forcedNamespaceAliases: array expected"; + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + if (!$util.isString(message.forcedNamespaceAliases[i])) + return "forcedNamespaceAliases: string[] expected"; + } + if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) { + if (!Array.isArray(message.handwrittenSignatures)) + return "handwrittenSignatures: array expected"; + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + if (!$util.isString(message.handwrittenSignatures[i])) + return "handwrittenSignatures: string[] expected"; + } return null; }; @@ -553972,6 +565996,41 @@ throw TypeError(".google.api.DotnetSettings.common: object expected"); message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } + if (object.renamedServices) { + if (typeof object.renamedServices !== "object") + throw TypeError(".google.api.DotnetSettings.renamedServices: object expected"); + message.renamedServices = {}; + for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) + message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]); + } + if (object.renamedResources) { + if (typeof object.renamedResources !== "object") + throw TypeError(".google.api.DotnetSettings.renamedResources: object expected"); + message.renamedResources = {}; + for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) + message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]); + } + if (object.ignoredResources) { + if (!Array.isArray(object.ignoredResources)) + throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected"); + message.ignoredResources = []; + for (var i = 0; i < object.ignoredResources.length; ++i) + message.ignoredResources[i] = String(object.ignoredResources[i]); + } + if (object.forcedNamespaceAliases) { + if (!Array.isArray(object.forcedNamespaceAliases)) + throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected"); + message.forcedNamespaceAliases = []; + for (var i = 0; i < object.forcedNamespaceAliases.length; ++i) + message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]); + } + if (object.handwrittenSignatures) { + if (!Array.isArray(object.handwrittenSignatures)) + throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected"); + message.handwrittenSignatures = []; + for (var i = 0; i < object.handwrittenSignatures.length; ++i) + message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]); + } return message; }; @@ -553988,10 +566047,45 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.ignoredResources = []; + object.forcedNamespaceAliases = []; + object.handwrittenSignatures = []; + } + if (options.objects || options.defaults) { + object.renamedServices = {}; + object.renamedResources = {}; + } if (options.defaults) object.common = null; if (message.common != null && message.hasOwnProperty("common")) object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + var keys2; + if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) { + object.renamedServices = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]]; + } + if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) { + object.renamedResources = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]]; + } + if (message.ignoredResources && message.ignoredResources.length) { + object.ignoredResources = []; + for (var j = 0; j < message.ignoredResources.length; ++j) + object.ignoredResources[j] = message.ignoredResources[j]; + } + if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) { + object.forcedNamespaceAliases = []; + for (var j = 0; j < message.forcedNamespaceAliases.length; ++j) + object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j]; + } + if (message.handwrittenSignatures && message.handwrittenSignatures.length) { + object.handwrittenSignatures = []; + for (var j = 0; j < message.handwrittenSignatures.length; ++j) + object.handwrittenSignatures[j] = message.handwrittenSignatures[j]; + } return object; }; @@ -554448,6 +566542,7 @@ * @interface IMethodSettings * @property {string|null} [selector] MethodSettings selector * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning + * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields */ /** @@ -554459,6 +566554,7 @@ * @param {google.api.IMethodSettings=} [properties] Properties to set */ function MethodSettings(properties) { + this.autoPopulatedFields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -554481,6 +566577,14 @@ */ MethodSettings.prototype.longRunning = null; + /** + * MethodSettings autoPopulatedFields. + * @member {Array.} autoPopulatedFields + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.autoPopulatedFields = $util.emptyArray; + /** * Creates a new MethodSettings instance using the specified properties. * @function create @@ -554509,6 +566613,9 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoPopulatedFields != null && message.autoPopulatedFields.length) + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]); return writer; }; @@ -554551,6 +566658,12 @@ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); break; } + case 3: { + if (!(message.autoPopulatedFields && message.autoPopulatedFields.length)) + message.autoPopulatedFields = []; + message.autoPopulatedFields.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -554594,6 +566707,13 @@ if (error) return "longRunning." + error; } + if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) { + if (!Array.isArray(message.autoPopulatedFields)) + return "autoPopulatedFields: array expected"; + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + if (!$util.isString(message.autoPopulatedFields[i])) + return "autoPopulatedFields: string[] expected"; + } return null; }; @@ -554616,6 +566736,13 @@ throw TypeError(".google.api.MethodSettings.longRunning: object expected"); message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); } + if (object.autoPopulatedFields) { + if (!Array.isArray(object.autoPopulatedFields)) + throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected"); + message.autoPopulatedFields = []; + for (var i = 0; i < object.autoPopulatedFields.length; ++i) + message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]); + } return message; }; @@ -554632,6 +566759,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.autoPopulatedFields = []; if (options.defaults) { object.selector = ""; object.longRunning = null; @@ -554640,6 +566769,11 @@ object.selector = message.selector; if (message.longRunning != null && message.hasOwnProperty("longRunning")) object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + if (message.autoPopulatedFields && message.autoPopulatedFields.length) { + object.autoPopulatedFields = []; + for (var j = 0; j < message.autoPopulatedFields.length; ++j) + object.autoPopulatedFields[j] = message.autoPopulatedFields[j]; + } return object; }; @@ -554969,6 +567103,9 @@ * @property {number} ADS=2 ADS value * @property {number} PHOTOS=3 PHOTOS value * @property {number} STREET_VIEW=4 STREET_VIEW value + * @property {number} SHOPPING=5 SHOPPING value + * @property {number} GEO=6 GEO value + * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value */ api.ClientLibraryOrganization = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -554977,6 +567114,9 @@ values[valuesById[2] = "ADS"] = 2; values[valuesById[3] = "PHOTOS"] = 3; values[valuesById[4] = "STREET_VIEW"] = 4; + values[valuesById[5] = "SHOPPING"] = 5; + values[valuesById[6] = "GEO"] = 6; + values[valuesById[7] = "GENERATIVE_AI"] = 7; return values; })(); @@ -555034,6 +567174,7 @@ * @property {number} IMMUTABLE=5 IMMUTABLE value * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + * @property {number} IDENTIFIER=8 IDENTIFIER value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -555045,6 +567186,7 @@ values[valuesById[5] = "IMMUTABLE"] = 5; values[valuesById[6] = "UNORDERED_LIST"] = 6; values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + values[valuesById[8] = "IDENTIFIER"] = 8; return values; })(); diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index dd8431917f9..6647ec39cd0 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -34,6 +34,21 @@ } } }, + "Edition": { + "values": { + "EDITION_UNKNOWN": 0, + "EDITION_PROTO2": 998, + "EDITION_PROTO3": 999, + "EDITION_2023": 1000, + "EDITION_2024": 1001, + "EDITION_1_TEST_ONLY": 1, + "EDITION_2_TEST_ONLY": 2, + "EDITION_99997_TEST_ONLY": 99997, + "EDITION_99998_TEST_ONLY": 99998, + "EDITION_99999_TEST_ONLY": 99999, + "EDITION_MAX": 2147483647 + } + }, "FileDescriptorProto": { "fields": { "name": { @@ -98,8 +113,8 @@ "id": 12 }, "edition": { - "type": "string", - "id": 13 + "type": "Edition", + "id": 14 } } }, @@ -191,6 +206,26 @@ "rule": "repeated", "type": "UninterpretedOption", "id": 999 + }, + "declaration": { + "rule": "repeated", + "type": "Declaration", + "id": 2, + "options": { + "retention": "RETENTION_SOURCE" + } + }, + "features": { + "type": "FeatureSet", + "id": 50 + }, + "verification": { + "type": "VerificationState", + "id": 3, + "options": { + "default": "UNVERIFIED", + "retention": "RETENTION_SOURCE" + } } }, "extensions": [ @@ -198,7 +233,45 @@ 1000, 536870911 ] - ] + ], + "nested": { + "Declaration": { + "fields": { + "number": { + "type": "int32", + "id": 1 + }, + "fullName": { + "type": "string", + "id": 2 + }, + "type": { + "type": "string", + "id": 3 + }, + "reserved": { + "type": "bool", + "id": 5 + }, + "repeated": { + "type": "bool", + "id": 6 + } + }, + "reserved": [ + [ + 4, + 4 + ] + ] + }, + "VerificationState": { + "values": { + "DECLARATION": 0, + "UNVERIFIED": 1 + } + } + } }, "FieldDescriptorProto": { "fields": { @@ -273,8 +346,8 @@ "Label": { "values": { "LABEL_OPTIONAL": 1, - "LABEL_REQUIRED": 2, - "LABEL_REPEATED": 3 + "LABEL_REPEATED": 3, + "LABEL_REQUIRED": 2 } } } @@ -462,13 +535,6 @@ "default": false } }, - "phpGenericServices": { - "type": "bool", - "id": 42, - "options": { - "default": false - } - }, "deprecated": { "type": "bool", "id": 23, @@ -511,6 +577,10 @@ "type": "string", "id": 45 }, + "features": { + "type": "FeatureSet", + "id": 50 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -524,6 +594,10 @@ ] ], "reserved": [ + [ + 42, + 42 + ], [ 38, 38 @@ -573,6 +647,10 @@ "deprecated": true } }, + "features": { + "type": "FeatureSet", + "id": 12 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -667,9 +745,22 @@ "type": "OptionRetention", "id": 17 }, - "target": { + "targets": { + "rule": "repeated", "type": "OptionTargetType", - "id": 18 + "id": 19, + "options": { + "packed": false + } + }, + "editionDefaults": { + "rule": "repeated", + "type": "EditionDefault", + "id": 20 + }, + "features": { + "type": "FeatureSet", + "id": 21 }, "uninterpretedOption": { "rule": "repeated", @@ -687,6 +778,10 @@ [ 4, 4 + ], + [ + 18, + 18 ] ], "nested": { @@ -724,11 +819,27 @@ "TARGET_TYPE_SERVICE": 8, "TARGET_TYPE_METHOD": 9 } + }, + "EditionDefault": { + "fields": { + "edition": { + "type": "Edition", + "id": 3 + }, + "value": { + "type": "string", + "id": 2 + } + } } } }, "OneofOptions": { "fields": { + "features": { + "type": "FeatureSet", + "id": 1 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -762,6 +873,10 @@ "deprecated": true } }, + "features": { + "type": "FeatureSet", + "id": 7 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -790,6 +905,17 @@ "default": false } }, + "features": { + "type": "FeatureSet", + "id": 2 + }, + "debugRedact": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -805,6 +931,10 @@ }, "ServiceOptions": { "fields": { + "features": { + "type": "FeatureSet", + "id": 34 + }, "deprecated": { "type": "bool", "id": 33, @@ -841,6 +971,10 @@ "default": "IDEMPOTENCY_UNKNOWN" } }, + "features": { + "type": "FeatureSet", + "id": 35 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -912,6 +1046,166 @@ } } }, + "FeatureSet": { + "fields": { + "fieldPresence": { + "type": "FieldPresence", + "id": 1, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_2023", + "edition_defaults.value": "EXPLICIT" + } + }, + "enumType": { + "type": "EnumType", + "id": 2, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "OPEN" + } + }, + "repeatedFieldEncoding": { + "type": "RepeatedFieldEncoding", + "id": 3, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "PACKED" + } + }, + "utf8Validation": { + "type": "Utf8Validation", + "id": 4, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "VERIFY" + } + }, + "messageEncoding": { + "type": "MessageEncoding", + "id": 5, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO2", + "edition_defaults.value": "LENGTH_PREFIXED" + } + }, + "jsonFormat": { + "type": "JsonFormat", + "id": 6, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "ALLOW" + } + } + }, + "extensions": [ + [ + 1000, + 1000 + ], + [ + 1001, + 1001 + ], + [ + 9995, + 9999 + ] + ], + "reserved": [ + [ + 999, + 999 + ] + ], + "nested": { + "FieldPresence": { + "values": { + "FIELD_PRESENCE_UNKNOWN": 0, + "EXPLICIT": 1, + "IMPLICIT": 2, + "LEGACY_REQUIRED": 3 + } + }, + "EnumType": { + "values": { + "ENUM_TYPE_UNKNOWN": 0, + "OPEN": 1, + "CLOSED": 2 + } + }, + "RepeatedFieldEncoding": { + "values": { + "REPEATED_FIELD_ENCODING_UNKNOWN": 0, + "PACKED": 1, + "EXPANDED": 2 + } + }, + "Utf8Validation": { + "values": { + "UTF8_VALIDATION_UNKNOWN": 0, + "VERIFY": 2, + "NONE": 3 + } + }, + "MessageEncoding": { + "values": { + "MESSAGE_ENCODING_UNKNOWN": 0, + "LENGTH_PREFIXED": 1, + "DELIMITED": 2 + } + }, + "JsonFormat": { + "values": { + "JSON_FORMAT_UNKNOWN": 0, + "ALLOW": 1, + "LEGACY_BEST_EFFORT": 2 + } + } + } + }, + "FeatureSetDefaults": { + "fields": { + "defaults": { + "rule": "repeated", + "type": "FeatureSetEditionDefault", + "id": 1 + }, + "minimumEdition": { + "type": "Edition", + "id": 4 + }, + "maximumEdition": { + "type": "Edition", + "id": 5 + } + }, + "nested": { + "FeatureSetEditionDefault": { + "fields": { + "edition": { + "type": "Edition", + "id": 3 + }, + "features": { + "type": "FeatureSet", + "id": 2 + } + } + } + } + }, "SourceCodeInfo": { "fields": { "location": { @@ -4363,6 +4657,103 @@ } } }, + "AggregatedListInstantSnapshotsRequest": { + "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 + } + } + } + }, "AggregatedListInterconnectAttachmentsRequest": { "oneofs": { "_filter": { @@ -9135,6 +9526,11 @@ "oneof": [ "maxUtilization" ] + }, + "_preference": { + "oneof": [ + "preference" + ] } }, "fields": { @@ -9221,6 +9617,13 @@ "options": { "proto3_optional": true } + }, + "preference": { + "type": "string", + "id": 150781147, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -9231,6 +9634,14 @@ "RATE": 2508000, "UTILIZATION": 157008386 } + }, + "Preference": { + "values": { + "UNDEFINED_PREFERENCE": 0, + "DEFAULT": 115302945, + "PREFERENCE_UNSPECIFIED": 496219571, + "PREFERRED": 418847841 + } } } }, @@ -9811,6 +10222,11 @@ "selfLink" ] }, + "_serviceLbPolicy": { + "oneof": [ + "serviceLbPolicy" + ] + }, "_sessionAffinity": { "oneof": [ "sessionAffinity" @@ -10073,6 +10489,13 @@ "type": "string", "id": 133581016 }, + "serviceLbPolicy": { + "type": "string", + "id": 94848785, + "options": { + "proto3_optional": true + } + }, "sessionAffinity": { "type": "string", "id": 463888561, @@ -14051,6 +14474,47 @@ } } }, + "DeleteInstantSnapshotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshot": { + "type": "string", + "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" + } + }, + "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" + } + } + } + }, "DeleteInterconnectAttachmentRequest": { "oneofs": { "_requestId": { @@ -14980,7 +15444,7 @@ } } }, - "DeleteRegionNetworkEndpointGroupRequest": { + "DeleteRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -14989,9 +15453,9 @@ } }, "fields": { - "networkEndpointGroup": { + "instantSnapshot": { "type": "string", - "id": 433907078, + "id": 391638626, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -15021,7 +15485,7 @@ } } }, - "DeleteRegionNetworkFirewallPolicyRequest": { + "DeleteRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15030,9 +15494,9 @@ } }, "fields": { - "firewallPolicy": { + "networkEndpointGroup": { "type": "string", - "id": 498173265, + "id": 433907078, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -15062,7 +15526,7 @@ } } }, - "DeleteRegionNotificationEndpointRequest": { + "DeleteRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15071,9 +15535,9 @@ } }, "fields": { - "notificationEndpoint": { + "firewallPolicy": { "type": "string", - "id": 376807017, + "id": 498173265, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -15103,35 +15567,7 @@ } } }, - "DeleteRegionOperationRequest": { - "fields": { - "operation": { - "type": "string", - "id": 52090215, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteRegionOperationResponse": { - "fields": {} - }, - "DeleteRegionSecurityPolicyRequest": { + "DeleteRegionNotificationEndpointRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15140,88 +15576,13 @@ } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicy": { + "notificationEndpoint": { "type": "string", - "id": 171082513, + "id": 376807017, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "DeleteRegionSslCertificateRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "sslCertificate": { - "type": "string", - "id": 46443492, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteRegionSslPolicyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { "project": { "type": "string", "id": 227560217, @@ -15244,99 +15605,38 @@ "options": { "proto3_optional": true } - }, - "sslPolicy": { - "type": "string", - "id": 295190213, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "DeleteRegionTargetHttpProxyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, + "DeleteRegionOperationRequest": { "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 - } - }, - "targetHttpProxy": { + "operation": { "type": "string", - "id": 206872421, + "id": 52090215, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "DeleteRegionTargetHttpsProxyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { + }, "project": { "type": "string", "id": 227560217, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" + "(google.api.field_behavior)": "REQUIRED" } }, "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 - } - }, - "targetHttpsProxy": { - "type": "string", - "id": 52336748, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteRegionTargetTcpProxyRequest": { + "DeleteRegionOperationResponse": { + "fields": {} + }, + "DeleteRegionSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15368,16 +15668,16 @@ "proto3_optional": true } }, - "targetTcpProxy": { + "securityPolicy": { "type": "string", - "id": 503065442, + "id": 171082513, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteRegionUrlMapRequest": { + "DeleteRegionSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15409,16 +15709,16 @@ "proto3_optional": true } }, - "urlMap": { + "sslCertificate": { "type": "string", - "id": 367020684, + "id": 46443492, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteReservationRequest": { + "DeleteRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15435,31 +15735,31 @@ "(google.cloud.operation_request_field)": "project" } }, - "requestId": { + "region": { "type": "string", - "id": 37109963, + "id": 138946292, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" } }, - "reservation": { + "requestId": { "type": "string", - "id": 47530956, + "id": 37109963, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, - "zone": { + "sslPolicy": { "type": "string", - "id": 3744684, + "id": 295190213, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteResourcePolicyRequest": { + "DeleteRegionTargetHttpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15491,16 +15791,16 @@ "proto3_optional": true } }, - "resourcePolicy": { + "targetHttpProxy": { "type": "string", - "id": 159240835, + "id": 206872421, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteRouteRequest": { + "DeleteRegionTargetHttpsProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15517,6 +15817,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, @@ -15524,16 +15832,16 @@ "proto3_optional": true } }, - "route": { + "targetHttpsProxy": { "type": "string", - "id": 108704329, + "id": 52336748, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteRouterRequest": { + "DeleteRegionTargetTcpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15565,16 +15873,16 @@ "proto3_optional": true } }, - "router": { + "targetTcpProxy": { "type": "string", - "id": 148608841, + "id": 503065442, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteSecurityPolicyRequest": { + "DeleteRegionUrlMapRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15591,6 +15899,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, @@ -15598,16 +15914,16 @@ "proto3_optional": true } }, - "securityPolicy": { + "urlMap": { "type": "string", - "id": 171082513, + "id": 367020684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteServiceAttachmentRequest": { + "DeleteReservationRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15624,14 +15940,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, @@ -15639,16 +15947,24 @@ "proto3_optional": true } }, - "serviceAttachment": { + "reservation": { "type": "string", - "id": 338957549, + "id": 47530956, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } } } }, - "DeleteSignedUrlKeyBackendBucketRequest": { + "DeleteResourcePolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15657,26 +15973,20 @@ } }, "fields": { - "backendBucket": { - "type": "string", - "id": 91714037, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "keyName": { + "project": { "type": "string", - "id": 500938859, + "id": 227560217, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" } }, - "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": { @@ -15685,10 +15995,17 @@ "options": { "proto3_optional": true } + }, + "resourcePolicy": { + "type": "string", + "id": 159240835, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteSignedUrlKeyBackendServiceRequest": { + "DeleteRouteRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15697,20 +16014,6 @@ } }, "fields": { - "backendService": { - "type": "string", - "id": 306946058, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "keyName": { - "type": "string", - "id": 500938859, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -15725,10 +16028,17 @@ "options": { "proto3_optional": true } + }, + "route": { + "type": "string", + "id": 108704329, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteSnapshotRequest": { + "DeleteRouterRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15745,6 +16055,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, @@ -15752,16 +16070,16 @@ "proto3_optional": true } }, - "snapshot": { + "router": { "type": "string", - "id": 284874180, + "id": 148608841, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteSslCertificateRequest": { + "DeleteSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15785,16 +16103,16 @@ "proto3_optional": true } }, - "sslCertificate": { + "securityPolicy": { "type": "string", - "id": 46443492, + "id": 171082513, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteSslPolicyRequest": { + "DeleteServiceAttachmentRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15811,6 +16129,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, @@ -15818,16 +16144,16 @@ "proto3_optional": true } }, - "sslPolicy": { + "serviceAttachment": { "type": "string", - "id": 295190213, + "id": 338957549, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteSubnetworkRequest": { + "DeleteSignedUrlKeyBackendBucketRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15836,39 +16162,38 @@ } }, "fields": { - "project": { + "backendBucket": { "type": "string", - "id": 227560217, + "id": 91714037, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" + "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "keyName": { "type": "string", - "id": 138946292, + "id": 500938859, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" + "(google.api.field_behavior)": "REQUIRED" } }, - "requestId": { + "project": { "type": "string", - "id": 37109963, + "id": 227560217, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" } }, - "subnetwork": { + "requestId": { "type": "string", - "id": 307827694, + "id": 37109963, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } } } }, - "DeleteTargetGrpcProxyRequest": { + "DeleteSignedUrlKeyBackendServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15877,6 +16202,20 @@ } }, "fields": { + "backendService": { + "type": "string", + "id": 306946058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "keyName": { + "type": "string", + "id": 500938859, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -15891,17 +16230,10 @@ "options": { "proto3_optional": true } - }, - "targetGrpcProxy": { - "type": "string", - "id": 5020283, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "DeleteTargetHttpProxyRequest": { + "DeleteSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15925,16 +16257,16 @@ "proto3_optional": true } }, - "targetHttpProxy": { + "snapshot": { "type": "string", - "id": 206872421, + "id": 284874180, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteTargetHttpsProxyRequest": { + "DeleteSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15958,16 +16290,16 @@ "proto3_optional": true } }, - "targetHttpsProxy": { + "sslCertificate": { "type": "string", - "id": 52336748, + "id": 46443492, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteTargetInstanceRequest": { + "DeleteSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -15991,24 +16323,197 @@ "proto3_optional": true } }, - "targetInstance": { + "sslPolicy": { "type": "string", - "id": 289769347, + "id": 295190213, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } } } }, - "DeleteTargetPoolRequest": { + "DeleteSubnetworkRequest": { + "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 + } + }, + "subnetwork": { + "type": "string", + "id": 307827694, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteTargetGrpcProxyRequest": { + "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 + } + }, + "targetGrpcProxy": { + "type": "string", + "id": 5020283, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteTargetHttpProxyRequest": { + "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 + } + }, + "targetHttpProxy": { + "type": "string", + "id": 206872421, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteTargetHttpsProxyRequest": { + "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 + } + }, + "targetHttpsProxy": { + "type": "string", + "id": 52336748, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteTargetInstanceRequest": { + "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 + } + }, + "targetInstance": { + "type": "string", + "id": 289769347, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "DeleteTargetPoolRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16839,6 +17344,16 @@ "sourceImageId" ] }, + "_sourceInstantSnapshot": { + "oneof": [ + "sourceInstantSnapshot" + ] + }, + "_sourceInstantSnapshotId": { + "oneof": [ + "sourceInstantSnapshotId" + ] + }, "_sourceSnapshot": { "oneof": [ "sourceSnapshot" @@ -17128,6 +17643,20 @@ "proto3_optional": true } }, + "sourceInstantSnapshot": { + "type": "string", + "id": 219202054, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotId": { + "type": "string", + "id": 287582708, + "options": { + "proto3_optional": true + } + }, "sourceSnapshot": { "type": "string", "id": 126061928, @@ -18673,6 +19202,11 @@ "oneof": [ "ipAddress" ] + }, + "_ipv6Address": { + "oneof": [ + "ipv6Address" + ] } }, "fields": { @@ -18689,6 +19223,13 @@ "options": { "proto3_optional": true } + }, + "ipv6Address": { + "type": "string", + "id": 341563804, + "options": { + "proto3_optional": true + } } } }, @@ -21446,7 +21987,7 @@ } } }, - "GetIamPolicyLicenseRequest": { + "GetIamPolicyInstantSnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21475,10 +22016,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "GetIamPolicyMachineImageRequest": { + "GetIamPolicyLicenseRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21510,7 +22058,7 @@ } } }, - "GetIamPolicyNetworkAttachmentRequest": { + "GetIamPolicyMachineImageRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21533,13 +22081,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "resource": { "type": "string", "id": 195806222, @@ -21549,7 +22090,7 @@ } } }, - "GetIamPolicyNetworkFirewallPolicyRequest": { + "GetIamPolicyNetworkAttachmentRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21572,6 +22113,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -21581,7 +22129,7 @@ } } }, - "GetIamPolicyNodeGroupRequest": { + "GetIamPolicyNetworkFirewallPolicyRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21610,17 +22158,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "GetIamPolicyNodeTemplateRequest": { + "GetIamPolicyNodeGroupRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -21643,23 +22184,62 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "resource": { "type": "string", - "id": 138946292, + "id": 195806222, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { + "zone": { "type": "string", - "id": 195806222, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "GetIamPolicyRegionBackendServiceRequest": { + "GetIamPolicyNodeTemplateRequest": { + "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": { "oneof": [ @@ -21737,6 +22317,45 @@ } } }, + "GetIamPolicyRegionInstantSnapshotRequest": { + "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" + } + } + } + }, "GetIamPolicyRegionNetworkFirewallPolicyRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -22100,6 +22719,31 @@ } } }, + "GetInstantSnapshotRequest": { + "fields": { + "instantSnapshot": { + "type": "string", + "id": 391638626, + "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" + } + } + } + }, "GetInterconnectAttachmentRequest": { "fields": { "interconnectAttachment": { @@ -22929,6 +23573,31 @@ } } }, + "GetRegionInstantSnapshotRequest": { + "fields": { + "instantSnapshot": { + "type": "string", + "id": 391638626, + "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" + } + } + } + }, "GetRegionNetworkEndpointGroupRequest": { "fields": { "networkEndpointGroup": { @@ -27666,6 +28335,47 @@ } } }, + "InsertInstantSnapshotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, + "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" + } + } + } + }, "InsertInterconnectAttachmentRequest": { "oneofs": { "_requestId": { @@ -28575,7 +29285,7 @@ } } }, - "InsertRegionNetworkEndpointGroupRequest": { + "InsertRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28584,9 +29294,9 @@ } }, "fields": { - "networkEndpointGroupResource": { - "type": "NetworkEndpointGroup", - "id": 525788839, + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -28616,7 +29326,7 @@ } } }, - "InsertRegionNetworkFirewallPolicyRequest": { + "InsertRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28625,9 +29335,9 @@ } }, "fields": { - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "networkEndpointGroupResource": { + "type": "NetworkEndpointGroup", + "id": 525788839, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -28657,7 +29367,7 @@ } } }, - "InsertRegionNotificationEndpointRequest": { + "InsertRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28666,9 +29376,9 @@ } }, "fields": { - "notificationEndpointResource": { - "type": "NotificationEndpoint", - "id": 338459940, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -28698,68 +29408,22 @@ } } }, - "InsertRegionSecurityPolicyRequest": { + "InsertRegionNotificationEndpointRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "notificationEndpointResource": { + "type": "NotificationEndpoint", + "id": 338459940, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "validateOnly": { - "type": "bool", - "id": 242744629, - "options": { - "proto3_optional": true - } - } - } - }, - "InsertRegionSslCertificateRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { "project": { "type": "string", "id": 227560217, @@ -28782,22 +29446,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": { @@ -28824,16 +29486,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": { + "InsertRegionSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28865,16 +29534,16 @@ "proto3_optional": true } }, - "targetHttpProxyResource": { - "type": "TargetHttpProxy", - "id": 24696744, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionTargetHttpsProxyRequest": { + "InsertRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28906,16 +29575,16 @@ "proto3_optional": true } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionTargetTcpProxyRequest": { + "InsertRegionTargetHttpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28947,16 +29616,16 @@ "proto3_optional": true } }, - "targetTcpProxyResource": { - "type": "TargetTcpProxy", - "id": 145913931, + "targetHttpProxyResource": { + "type": "TargetHttpProxy", + "id": 24696744, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionUrlMapRequest": { + "InsertRegionTargetHttpsProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -28988,16 +29657,16 @@ "proto3_optional": true } }, - "urlMapResource": { - "type": "UrlMap", - "id": 168675425, + "targetHttpsProxyResource": { + "type": "TargetHttpsProxy", + "id": 433657473, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertReservationRequest": { + "InsertRegionTargetTcpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29014,6 +29683,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, @@ -29021,24 +29698,16 @@ "proto3_optional": true } }, - "reservationResource": { - "type": "Reservation", - "id": 285030177, + "targetTcpProxyResource": { + "type": "TargetTcpProxy", + "id": 145913931, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } } } }, - "InsertResourcePolicyRequest": { + "InsertRegionUrlMapRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29070,16 +29739,16 @@ "proto3_optional": true } }, - "resourcePolicyResource": { - "type": "ResourcePolicy", - "id": 76826186, + "urlMapResource": { + "type": "UrlMap", + "id": 168675425, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRouteRequest": { + "InsertReservationRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29103,16 +29772,24 @@ "proto3_optional": true } }, - "routeResource": { - "type": "Route", - "id": 225428804, + "reservationResource": { + "type": "Reservation", + "id": 285030177, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } } } }, - "InsertRouterRequest": { + "InsertResourcePolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29144,26 +29821,21 @@ "proto3_optional": true } }, - "routerResource": { - "type": "Router", - "id": 155222084, + "resourcePolicyResource": { + "type": "ResourcePolicy", + "id": 76826186, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSecurityPolicyRequest": { + "InsertRouteRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] } }, "fields": { @@ -29182,23 +29854,16 @@ "proto3_optional": true } }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "routeResource": { + "type": "Route", + "id": 225428804, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "validateOnly": { - "type": "bool", - "id": 242744629, - "options": { - "proto3_optional": true - } } } }, - "InsertServiceAttachmentRequest": { + "InsertRouterRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29230,53 +29895,25 @@ "proto3_optional": true } }, - "serviceAttachmentResource": { - "type": "ServiceAttachment", - "id": 472980256, + "routerResource": { + "type": "Router", + "id": 155222084, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSnapshotRequest": { + "InsertSecurityPolicyRequest": { "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 - } - }, - "snapshotResource": { - "type": "Snapshot", - "id": 481319977, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "InsertSslCertificateRequest": { - "oneofs": { - "_requestId": { + "_validateOnly": { "oneof": [ - "requestId" + "validateOnly" ] } }, @@ -29296,49 +29933,23 @@ "proto3_optional": true } }, - "sslCertificateResource": { - "type": "SslCertificate", - "id": 180709897, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "InsertSslPolicyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } }, - "requestId": { - "type": "string", - "id": 37109963, + "validateOnly": { + "type": "bool", + "id": 242744629, "options": { "proto3_optional": true } - }, - "sslPolicyResource": { - "type": "SslPolicy", - "id": 274891848, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "InsertSubnetworkRequest": { + "InsertServiceAttachmentRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29370,49 +29981,16 @@ "proto3_optional": true } }, - "subnetworkResource": { - "type": "Subnetwork", - "id": 42233151, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "InsertTargetGrpcProxyRequest": { - "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 - } - }, - "targetGrpcProxyResource": { - "type": "TargetGrpcProxy", - "id": 328922450, + "serviceAttachmentResource": { + "type": "ServiceAttachment", + "id": 472980256, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetHttpProxyRequest": { + "InsertSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29436,16 +30014,16 @@ "proto3_optional": true } }, - "targetHttpProxyResource": { - "type": "TargetHttpProxy", - "id": 24696744, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetHttpsProxyRequest": { + "InsertSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29469,16 +30047,16 @@ "proto3_optional": true } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetInstanceRequest": { + "InsertSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -29502,24 +30080,197 @@ "proto3_optional": true } }, - "targetInstanceResource": { - "type": "TargetInstance", - "id": 430453066, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } } } }, - "InsertTargetPoolRequest": { + "InsertSubnetworkRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "subnetworkResource": { + "type": "Subnetwork", + "id": 42233151, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetGrpcProxyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "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 + } + }, + "targetGrpcProxyResource": { + "type": "TargetGrpcProxy", + "id": 328922450, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetHttpProxyRequest": { + "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 + } + }, + "targetHttpProxyResource": { + "type": "TargetHttpProxy", + "id": 24696744, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetHttpsProxyRequest": { + "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 + } + }, + "targetHttpsProxyResource": { + "type": "TargetHttpsProxy", + "id": 433657473, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "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": [ @@ -31368,6 +32119,11 @@ }, "InstanceGroupManagerInstanceLifecyclePolicy": { "oneofs": { + "_defaultActionOnFailure": { + "oneof": [ + "defaultActionOnFailure" + ] + }, "_forceUpdateOnRepair": { "oneof": [ "forceUpdateOnRepair" @@ -31375,6 +32131,13 @@ } }, "fields": { + "defaultActionOnFailure": { + "type": "string", + "id": 61383253, + "options": { + "proto3_optional": true + } + }, "forceUpdateOnRepair": { "type": "string", "id": 356302027, @@ -31384,6 +32147,13 @@ } }, "nested": { + "DefaultActionOnFailure": { + "values": { + "UNDEFINED_DEFAULT_ACTION_ON_FAILURE": 0, + "DO_NOTHING": 451307513, + "REPAIR": 266277773 + } + }, "ForceUpdateOnRepair": { "values": { "UNDEFINED_FORCE_UPDATE_ON_REPAIR": 0, @@ -33435,6 +34205,440 @@ } } }, + "InstantSnapshot": { + "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_diskSizeGb": { + "oneof": [ + "diskSizeGb" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_labelFingerprint": { + "oneof": [ + "labelFingerprint" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_resourceStatus": { + "oneof": [ + "resourceStatus" + ] + }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, + "_satisfiesPzs": { + "oneof": [ + "satisfiesPzs" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_sourceDisk": { + "oneof": [ + "sourceDisk" + ] + }, + "_sourceDiskId": { + "oneof": [ + "sourceDiskId" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "diskSizeGb": { + "type": "int64", + "id": 316263735, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "labelFingerprint": { + "type": "string", + "id": 178124825, + "options": { + "proto3_optional": true + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 500195327 + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "resourceStatus": { + "type": "InstantSnapshotResourceStatus", + "id": 249429315, + "options": { + "proto3_optional": true + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, + "satisfiesPzs": { + "type": "bool", + "id": 480964267, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "sourceDisk": { + "type": "string", + "id": 451753793, + "options": { + "proto3_optional": true + } + }, + "sourceDiskId": { + "type": "string", + "id": 454190809, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "string", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "CREATING": 455564985, + "DELETING": 528602024, + "FAILED": 455706685, + "READY": 77848963 + } + } + } + }, + "InstantSnapshotAggregatedList": { + "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": "InstantSnapshotsScopedList", + "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 + } + } + } + }, + "InstantSnapshotList": { + "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": "InstantSnapshot", + "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 + } + } + } + }, + "InstantSnapshotResourceStatus": { + "oneofs": { + "_storageSizeBytes": { + "oneof": [ + "storageSizeBytes" + ] + } + }, + "fields": { + "storageSizeBytes": { + "type": "int64", + "id": 387548913, + "options": { + "proto3_optional": true + } + } + } + }, + "InstantSnapshotsScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "instantSnapshots": { + "rule": "repeated", + "type": "InstantSnapshot", + "id": 329637457 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "Int64RangeMatch": { "oneofs": { "_rangeEnd": { @@ -37291,7 +38495,87 @@ } } }, - "ListDisksRequest": { + "ListDisksRequest": { + "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" + } + } + } + }, + "ListErrorsInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37327,6 +38611,13 @@ "proto3_optional": true } }, + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "maxResults": { "type": "uint32", "id": 54715419, @@ -37371,7 +38662,7 @@ } } }, - "ListErrorsInstanceGroupManagersRequest": { + "ListErrorsRegionInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37442,23 +38733,96 @@ "(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 } + } + } + }, + "ListExternalVpnGatewaysRequest": { + "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" } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } } } }, - "ListErrorsRegionInstanceGroupManagersRequest": { + "ListFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37480,6 +38844,11 @@ "pageToken" ] }, + "_parentId": { + "oneof": [ + "parentId" + ] + }, "_returnPartialSuccess": { "oneof": [ "returnPartialSuccess" @@ -37494,13 +38863,152 @@ "proto3_optional": true } }, - "instanceGroupManager": { + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { "type": "string", - "id": 249363395, + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "parentId": { + "type": "string", + "id": 459714768, + "options": { + "proto3_optional": true + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListFirewallsRequest": { + "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 + } + } + } + }, + "ListForwardingRulesRequest": { + "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, @@ -37545,7 +39053,7 @@ } } }, - "ListExternalVpnGatewaysRequest": { + "ListGlobalAddressesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37618,7 +39126,7 @@ } } }, - "ListFirewallPoliciesRequest": { + "ListGlobalForwardingRulesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37640,11 +39148,6 @@ "pageToken" ] }, - "_parentId": { - "oneof": [ - "parentId" - ] - }, "_returnPartialSuccess": { "oneof": [ "returnPartialSuccess" @@ -37680,11 +39183,11 @@ "proto3_optional": true } }, - "parentId": { + "project": { "type": "string", - "id": 459714768, + "id": 227560217, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, "returnPartialSuccess": { @@ -37696,7 +39199,7 @@ } } }, - "ListFirewallsRequest": { + "ListGlobalNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37769,7 +39272,7 @@ } } }, - "ListForwardingRulesRequest": { + "ListGlobalOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37833,13 +39336,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -37849,7 +39345,7 @@ } } }, - "ListGlobalAddressesRequest": { + "ListGlobalOrganizationOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37871,6 +39367,11 @@ "pageToken" ] }, + "_parentId": { + "oneof": [ + "parentId" + ] + }, "_returnPartialSuccess": { "oneof": [ "returnPartialSuccess" @@ -37906,11 +39407,11 @@ "proto3_optional": true } }, - "project": { + "parentId": { "type": "string", - "id": 227560217, + "id": 459714768, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, "returnPartialSuccess": { @@ -37922,7 +39423,7 @@ } } }, - "ListGlobalForwardingRulesRequest": { + "ListGlobalPublicDelegatedPrefixesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -37995,7 +39496,7 @@ } } }, - "ListGlobalNetworkEndpointGroupsRequest": { + "ListHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38068,7 +39569,7 @@ } } }, - "ListGlobalOperationsRequest": { + "ListImagesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38141,7 +39642,7 @@ } } }, - "ListGlobalOrganizationOperationsRequest": { + "ListInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38163,11 +39664,6 @@ "pageToken" ] }, - "_parentId": { - "oneof": [ - "parentId" - ] - }, "_returnPartialSuccess": { "oneof": [ "returnPartialSuccess" @@ -38203,11 +39699,11 @@ "proto3_optional": true } }, - "parentId": { + "project": { "type": "string", - "id": 459714768, + "id": 227560217, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, "returnPartialSuccess": { @@ -38216,83 +39712,17 @@ "options": { "proto3_optional": true } - } - } - }, - "ListGlobalPublicDelegatedPrefixesRequest": { - "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 - } } } }, - "ListHealthChecksRequest": { + "ListInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38362,83 +39792,17 @@ "options": { "proto3_optional": true } - } - } - }, - "ListImagesRequest": { - "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 - } } } }, - "ListInstanceGroupManagersRequest": { + "ListInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38508,17 +39872,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListInstanceGroupsRequest": { + "ListInstancesInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38554,85 +39911,19 @@ "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": { + "instanceGroup": { "type": "string", - "id": 227560217, + "id": 81095253, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - }, - "zone": { - "type": "string", - "id": 3744684, + "instanceGroupsListInstancesRequestResource": { + "type": "InstanceGroupsListInstancesRequest", + "id": 476255263, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "ListInstanceTemplatesRequest": { - "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", @@ -38668,10 +39959,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListInstancesInstanceGroupsRequest": { + "ListInstancesRegionInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38714,13 +40012,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "instanceGroupsListInstancesRequestResource": { - "type": "InstanceGroupsListInstancesRequest", - "id": 476255263, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "maxResults": { "type": "uint32", "id": 54715419, @@ -38749,23 +40040,30 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, + "region": { + "type": "string", + "id": 138946292, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "zone": { - "type": "string", - "id": 3744684, + "regionInstanceGroupsListInstancesRequestResource": { + "type": "RegionInstanceGroupsListInstancesRequest", + "id": 48239828, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } } } }, - "ListInstancesRegionInstanceGroupsRequest": { + "ListInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -38801,13 +40099,6 @@ "proto3_optional": true } }, - "instanceGroup": { - "type": "string", - "id": 81095253, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "maxResults": { "type": "uint32", "id": 54715419, @@ -38836,30 +40127,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "regionInstanceGroupsListInstancesRequestResource": { - "type": "RegionInstanceGroupsListInstancesRequest", - "id": 48239828, - "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" + } } } }, - "ListInstancesRequest": { + "ListInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -42024,6 +43308,86 @@ } } }, + "ListRegionInstantSnapshotsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "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 + } + } + } + }, "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { @@ -54848,6 +56212,11 @@ }, "Project": { "oneofs": { + "_cloudArmorTier": { + "oneof": [ + "cloudArmorTier" + ] + }, "_commonInstanceMetadata": { "oneof": [ "commonInstanceMetadata" @@ -54910,6 +56279,13 @@ } }, "fields": { + "cloudArmorTier": { + "type": "string", + "id": 4427052, + "options": { + "proto3_optional": true + } + }, "commonInstanceMetadata": { "type": "Metadata", "id": 185794117, @@ -55006,6 +56382,14 @@ } }, "nested": { + "CloudArmorTier": { + "values": { + "UNDEFINED_CLOUD_ARMOR_TIER": 0, + "CA_ENTERPRISE_ANNUAL": 219921116, + "CA_ENTERPRISE_PAYGO": 453530323, + "CA_STANDARD": 13156734 + } + }, "DefaultNetworkTier": { "values": { "UNDEFINED_DEFAULT_NETWORK_TIER": 0, @@ -55122,6 +56506,34 @@ } } }, + "ProjectsSetCloudArmorTierRequest": { + "oneofs": { + "_cloudArmorTier": { + "oneof": [ + "cloudArmorTier" + ] + } + }, + "fields": { + "cloudArmorTier": { + "type": "string", + "id": 4427052, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "CloudArmorTier": { + "values": { + "UNDEFINED_CLOUD_ARMOR_TIER": 0, + "CA_ENTERPRISE_ANNUAL": 219921116, + "CA_ENTERPRISE_PAYGO": 453530323, + "CA_STANDARD": 13156734 + } + } + } + }, "ProjectsSetDefaultNetworkTierRequest": { "oneofs": { "_networkTier": { @@ -65140,6 +66552,39 @@ } } }, + "SetCloudArmorTierProjectRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "projectsSetCloudArmorTierRequestResource": { + "type": "ProjectsSetCloudArmorTierRequest", + "id": 77053391, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "SetCommonInstanceMetadataOperationMetadata": { "oneofs": { "_clientOperationId": { @@ -65617,31 +67062,63 @@ } } }, - "SetIamPolicyInstanceTemplateRequest": { - "fields": { - "globalSetPolicyRequestResource": { - "type": "GlobalSetPolicyRequest", - "id": 337048498, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, + "SetIamPolicyInstanceTemplateRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInstantSnapshotRequest": { + "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" + } + } + } + }, "SetIamPolicyLicenseRequest": { "fields": { "globalSetPolicyRequestResource": { @@ -65877,6 +67354,38 @@ } } }, + "SetIamPolicyRegionInstantSnapshotRequest": { + "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" + } + } + } + }, "SetIamPolicyRegionNetworkFirewallPolicyRequest": { "fields": { "project": { @@ -66454,6 +67963,54 @@ } } }, + "SetLabelsInstantSnapshotRequest": { + "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 + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + }, + "zoneSetLabelsRequestResource": { + "type": "ZoneSetLabelsRequest", + "id": 364950798, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetLabelsInterconnectAttachmentRequest": { "oneofs": { "_requestId": { @@ -66576,6 +68133,54 @@ } } }, + "SetLabelsRegionInstantSnapshotRequest": { + "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" + } + }, + "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, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetLabelsSecurityPolicyRequest": { "fields": { "globalSetLabelsRequestResource": { @@ -68781,6 +70386,21 @@ "sourceDiskId" ] }, + "_sourceInstantSnapshot": { + "oneof": [ + "sourceInstantSnapshot" + ] + }, + "_sourceInstantSnapshotEncryptionKey": { + "oneof": [ + "sourceInstantSnapshotEncryptionKey" + ] + }, + "_sourceInstantSnapshotId": { + "oneof": [ + "sourceInstantSnapshotId" + ] + }, "_sourceSnapshotSchedulePolicy": { "oneof": [ "sourceSnapshotSchedulePolicy" @@ -68989,6 +70609,27 @@ "proto3_optional": true } }, + "sourceInstantSnapshot": { + "type": "string", + "id": 219202054, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotEncryptionKey": { + "type": "CustomerEncryptionKey", + "id": 436536060, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotId": { + "type": "string", + "id": 287582708, + "options": { + "proto3_optional": true + } + }, "sourceSnapshotSchedulePolicy": { "type": "string", "id": 235756291, @@ -74557,6 +76198,38 @@ } } }, + "TestIamPermissionsInstantSnapshotRequest": { + "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" + } + } + } + }, "TestIamPermissionsLicenseCodeRequest": { "fields": { "project": { @@ -74881,6 +76554,38 @@ } } }, + "TestIamPermissionsRegionInstantSnapshotRequest": { + "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" + } + } + } + }, "TestIamPermissionsRegionNetworkFirewallPolicyRequest": { "fields": { "project": { @@ -77622,6 +79327,11 @@ "description" ] }, + "_gatewayIpVersion": { + "oneof": [ + "gatewayIpVersion" + ] + }, "_id": { "oneof": [ "id" @@ -77678,6 +79388,13 @@ "proto3_optional": true } }, + "gatewayIpVersion": { + "type": "string", + "id": 65074843, + "options": { + "proto3_optional": true + } + }, "id": { "type": "uint64", "id": 3355, @@ -77746,6 +79463,13 @@ } }, "nested": { + "GatewayIpVersion": { + "values": { + "UNDEFINED_GATEWAY_IP_VERSION": 0, + "IPV4": 2254341, + "IPV6": 2254343 + } + }, "StackType": { "values": { "UNDEFINED_STACK_TYPE": 0, @@ -78061,6 +79785,11 @@ "oneof": [ "ipAddress" ] + }, + "_ipv6Address": { + "oneof": [ + "ipv6Address" + ] } }, "fields": { @@ -78084,6 +79813,13 @@ "options": { "proto3_optional": true } + }, + "ipv6Address": { + "type": "string", + "id": 341563804, + "options": { + "proto3_optional": true + } } } }, @@ -84676,6 +86412,196 @@ } } }, + "InstantSnapshots": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListInstantSnapshotsRequest", + "responseType": "InstantSnapshotAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/instantSnapshots", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/instantSnapshots" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}", + "(google.api.method_signature)": "project,zone,instant_snapshot", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "Get": { + "requestType": "GetInstantSnapshotRequest", + "responseType": "InstantSnapshot", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}", + "(google.api.method_signature)": "project,zone,instant_snapshot" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyInstantSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,zone,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource" + } + ] + }, + "Insert": { + "requestType": "InsertInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots", + "(google.api.method_signature)": "project,zone,instant_snapshot_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "List": { + "requestType": "ListInstantSnapshotsRequest", + "responseType": "InstantSnapshotList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots", + "(google.api.method_signature)": "project,zone" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots" + } + }, + { + "(google.api.method_signature)": "project,zone" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyInstantSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "zone_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{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}/instantSnapshots/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,zone_set_policy_request_resource" + } + ] + }, + "SetLabels": { + "requestType": "SetLabelsInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "zone_set_labels_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels", + "(google.api.method_signature)": "project,zone,resource,zone_set_labels_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "zone_set_labels_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,zone_set_labels_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsInstantSnapshotRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshots/{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}/instantSnapshots/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" + } + ] + } + } + }, "InterconnectAttachments": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -87492,6 +89418,30 @@ } ] }, + "SetCloudArmorTier": { + "requestType": "SetCloudArmorTierProjectRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "projects_set_cloud_armor_tier_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/setCloudArmorTier", + "(google.api.method_signature)": "project,projects_set_cloud_armor_tier_request_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "projects_set_cloud_armor_tier_request_resource", + "post": "/compute/v1/projects/{project}/setCloudArmorTier" + } + }, + { + "(google.api.method_signature)": "project,projects_set_cloud_armor_tier_request_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, "SetCommonInstanceMetadata": { "requestType": "SetCommonInstanceMetadataProjectRequest", "responseType": "Operation", @@ -89728,6 +91678,178 @@ } } }, + "RegionInstantSnapshots": { + "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": "DeleteRegionInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}", + "(google.api.method_signature)": "project,region,instant_snapshot", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionInstantSnapshotRequest", + "responseType": "InstantSnapshot", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}", + "(google.api.method_signature)": "project,region,instant_snapshot" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyRegionInstantSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertRegionInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots", + "(google.api.method_signature)": "project,region,instant_snapshot_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionInstantSnapshotsRequest", + "responseType": "InstantSnapshotList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyRegionInstantSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{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}/instantSnapshots/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "SetLabels": { + "requestType": "SetLabelsRegionInstantSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_set_labels_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{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}/instantSnapshots/{resource}/setLabels" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_labels_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionInstantSnapshotRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshots/{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}/instantSnapshots/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionNetworkEndpointGroups": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -96992,6 +99114,10 @@ "rule": "repeated", "type": "ClientLibrarySettings", "id": 109 + }, + "protoReferenceDocumentationUri": { + "type": "string", + "id": 110 } } }, @@ -97049,6 +99175,31 @@ "common": { "type": "CommonLanguageSettings", "id": 1 + }, + "renamedServices": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "renamedResources": { + "keyType": "string", + "type": "string", + "id": 3 + }, + "ignoredResources": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "forcedNamespaceAliases": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "handwrittenSignatures": { + "rule": "repeated", + "type": "string", + "id": 6 } } }, @@ -97077,6 +99228,11 @@ "longRunning": { "type": "LongRunning", "id": 2 + }, + "autoPopulatedFields": { + "rule": "repeated", + "type": "string", + "id": 3 } }, "nested": { @@ -97108,7 +99264,10 @@ "CLOUD": 1, "ADS": 2, "PHOTOS": 3, - "STREET_VIEW": 4 + "STREET_VIEW": 4, + "SHOPPING": 5, + "GEO": 6, + "GENERATIVE_AI": 7 } }, "ClientLibraryDestination": { @@ -97145,7 +99304,8 @@ "INPUT_ONLY": 4, "IMMUTABLE": 5, "UNORDERED_LIST": 6, - "NON_EMPTY_DEFAULT": 7 + "NON_EMPTY_DEFAULT": 7, + "IDENTIFIER": 8 } }, "resourceReference": { diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index fc38ac74918..bb4a6d76325 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -253,6 +253,15 @@ * [Instances.update_display_device](#instances.update_display_device) * [Instances.update_network_interface](#instances.update_network_interface) * [Instances.update_shielded_instance_config](#instances.update_shielded_instance_config) + * [Instant_snapshots.aggregated_list](#instant_snapshots.aggregated_list) + * [Instant_snapshots.delete](#instant_snapshots.delete) + * [Instant_snapshots.get](#instant_snapshots.get) + * [Instant_snapshots.get_iam_policy](#instant_snapshots.get_iam_policy) + * [Instant_snapshots.insert](#instant_snapshots.insert) + * [Instant_snapshots.list](#instant_snapshots.list) + * [Instant_snapshots.set_iam_policy](#instant_snapshots.set_iam_policy) + * [Instant_snapshots.set_labels](#instant_snapshots.set_labels) + * [Instant_snapshots.test_iam_permissions](#instant_snapshots.test_iam_permissions) * [Interconnect_attachments.aggregated_list](#interconnect_attachments.aggregated_list) * [Interconnect_attachments.delete](#interconnect_attachments.delete) * [Interconnect_attachments.get](#interconnect_attachments.get) @@ -383,6 +392,7 @@ * [Projects.list_xpn_hosts](#projects.list_xpn_hosts) * [Projects.move_disk](#projects.move_disk) * [Projects.move_instance](#projects.move_instance) + * [Projects.set_cloud_armor_tier](#projects.set_cloud_armor_tier) * [Projects.set_common_instance_metadata](#projects.set_common_instance_metadata) * [Projects.set_default_network_tier](#projects.set_default_network_tier) * [Projects.set_usage_export_bucket](#projects.set_usage_export_bucket) @@ -482,6 +492,14 @@ * [Region_instance_templates.insert](#region_instance_templates.insert) * [Region_instance_templates.list](#region_instance_templates.list) * [Region_instances.bulk_insert](#region_instances.bulk_insert) + * [Region_instant_snapshots.delete](#region_instant_snapshots.delete) + * [Region_instant_snapshots.get](#region_instant_snapshots.get) + * [Region_instant_snapshots.get_iam_policy](#region_instant_snapshots.get_iam_policy) + * [Region_instant_snapshots.insert](#region_instant_snapshots.insert) + * [Region_instant_snapshots.list](#region_instant_snapshots.list) + * [Region_instant_snapshots.set_iam_policy](#region_instant_snapshots.set_iam_policy) + * [Region_instant_snapshots.set_labels](#region_instant_snapshots.set_labels) + * [Region_instant_snapshots.test_iam_permissions](#region_instant_snapshots.test_iam_permissions) * [Region_network_endpoint_groups.attach_network_endpoints](#region_network_endpoint_groups.attach_network_endpoints) * [Region_network_endpoint_groups.delete](#region_network_endpoint_groups.delete) * [Region_network_endpoint_groups.detach_network_endpoints](#region_network_endpoint_groups.detach_network_endpoints) @@ -4860,6 +4878,159 @@ __Usage:__ +### Instant_snapshots.aggregated_list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js` + + +----- + + + + +### Instant_snapshots.delete + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js` + + +----- + + + + +### Instant_snapshots.get + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js` + + +----- + + + + +### Instant_snapshots.get_iam_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js` + + +----- + + + + +### Instant_snapshots.insert + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js` + + +----- + + + + +### Instant_snapshots.list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js` + + +----- + + + + +### Instant_snapshots.set_iam_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js` + + +----- + + + + +### Instant_snapshots.set_labels + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js` + + +----- + + + + +### Instant_snapshots.test_iam_permissions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js` + + +----- + + + + ### Interconnect_attachments.aggregated_list View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js). @@ -7070,6 +7241,23 @@ __Usage:__ +### Projects.set_cloud_armor_tier + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js` + + +----- + + + + ### Projects.set_common_instance_metadata View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/projects.set_common_instance_metadata.js). @@ -8753,6 +8941,142 @@ __Usage:__ +### Region_instant_snapshots.delete + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js` + + +----- + + + + +### Region_instant_snapshots.get + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js` + + +----- + + + + +### Region_instant_snapshots.get_iam_policy + +View the [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). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js` + + +----- + + + + +### Region_instant_snapshots.insert + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js` + + +----- + + + + +### Region_instant_snapshots.list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js` + + +----- + + + + +### Region_instant_snapshots.set_iam_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js` + + +----- + + + + +### Region_instant_snapshots.set_labels + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js` + + +----- + + + + +### Region_instant_snapshots.test_iam_permissions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js` + + +----- + + + + ### Region_network_endpoint_groups.attach_network_endpoints View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.attach_network_endpoints.js). diff --git a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js index d740e21cc2b..984d657bd1a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js index 8458cf1ebec..74937131bfd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js index 4ec6c5ac8fd..5b73602ffe3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/addresses.list.js b/packages/google-cloud-compute/samples/generated/v1/addresses.list.js index 4d47e5c553d..035f55a0b4a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/addresses.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js index e856c07845c..0c3f39b274b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js index 7dee9d343f9..85996a0e717 100644 --- a/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js index 0a43c8b2e3d..0759e17f145 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js index ff062c9547a..6246967f596 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js index d4a45f3e4bd..44da99404b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.list_usable.js index 734cdd589ed..b868335787c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_services.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.list_usable.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js index e9dbc5e6151..08853547649 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js index 52afaec7985..65ad67a5214 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js index 3176992a029..a18d2183689 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/disks.list.js b/packages/google-cloud-compute/samples/generated/v1/disks.list.js index 08be869f32c..1f513fae026 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disks.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js index a515cb84c9c..3c508cf5d17 100644 --- a/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js index fefb339e521..28ded506427 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js @@ -49,7 +49,7 @@ function main() { */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js b/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js index d27faf86c79..aa0e0f29d84 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js index e25b5fb3860..31639a6182d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js index 19ac3885eda..287f0cfb932 100644 --- a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js b/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js index aa94c273567..54680b52209 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js index 0f4b2b0f0b2..b5e89e1aeed 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js index ca8c1676210..1e2cb8047d0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js index 27171142809..18b810e7942 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js @@ -53,7 +53,7 @@ function main(networkEndpointGroup, project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js index 000e4f29478..07d82f8c519 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js index b987f1cff2e..55356134969 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js index 3f1074d9da9..67fe6d05bbb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js @@ -49,7 +49,7 @@ function main() { */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js index 742f03499e5..e658cc3a577 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js index 7826d35f187..ea120ca23a0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js index 3590b999695..79f9eb94f1c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/images.list.js b/packages/google-cloud-compute/samples/generated/v1/images.list.js index 02775052931..210e922afbd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/images.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/images.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js index 00d62bddb4c..ed4bda1024e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js index 0225e4195ad..0e06aa786e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js index c12c86cf64f..7d563bfd94d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js @@ -53,7 +53,7 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js index bf5eced5400..fcc20fd6d8a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js @@ -53,7 +53,7 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js index c1fa37772d5..5e5e9840d72 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js @@ -53,7 +53,7 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js index bdc881d3417..3cf9c4c91cb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js index 729592a281d..0a17c0ec007 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js index 88463a702cc..9f7bc132b84 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js @@ -57,7 +57,7 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js index 652bf435ea6..f219c125e7b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js index 7b973304b08..f2952991c4b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js index c3700561716..43022fa8761 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.list.js b/packages/google-cloud-compute/samples/generated/v1/instances.list.js index 76841fb41ae..21e88cbf645 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js b/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js index 49af048a3d3..c2ddcad00c4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js @@ -53,7 +53,7 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js new file mode 100644 index 00000000000..71a5b5c0c88 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js @@ -0,0 +1,91 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_InstantSnapshots_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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for 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' + /** + * 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 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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + 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_InstantSnapshots_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/instant_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js new file mode 100644 index 00000000000..f36fc48b9c9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshot, project, zone) { + // [START compute_v1_generated_InstantSnapshots_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 instantSnapshot = '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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshot, + project, + zone, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_InstantSnapshots_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_snapshots.get.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js new file mode 100644 index 00000000000..31a9eb50efd --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js @@ -0,0 +1,71 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshot, project, zone) { + // [START compute_v1_generated_InstantSnapshots_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 InstantSnapshot resource to return. + */ + // const instantSnapshot = '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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshot, + project, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_InstantSnapshots_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_snapshots.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js new file mode 100644 index 00000000000..42162aa7127 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_InstantSnapshots_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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + 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_InstantSnapshots_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_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js new file mode 100644 index 00000000000..cbff91f6a72 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.insert.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotResource, project, zone) { + // [START compute_v1_generated_InstantSnapshots_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 instantSnapshotResource = {} + /** + * 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 for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotResource, + project, + zone, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_InstantSnapshots_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_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js new file mode 100644 index 00000000000..2ed0fb063d2 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.list.js @@ -0,0 +1,88 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_InstantSnapshots_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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for 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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + 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_InstantSnapshots_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_snapshots.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js new file mode 100644 index 00000000000..549086683e7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_InstantSnapshots_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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + 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_InstantSnapshots_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_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js new file mode 100644 index 00000000000..9fe12615ca7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.set_labels.js @@ -0,0 +1,80 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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, zoneSetLabelsRequestResource) { + // [START compute_v1_generated_InstantSnapshots_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' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The 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' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + /** + * The body resource for this request + */ + // const zoneSetLabelsRequestResource = {} + + // Imports the Compute library + const {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + async function callSetLabels() { + // Construct request + const request = { + project, + resource, + zone, + zoneSetLabelsRequestResource, + }; + + // Run request + const response = await computeClient.setLabels(request); + console.log(response); + } + + callSetLabels(); + // [END compute_v1_generated_InstantSnapshots_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/instant_snapshots.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js new file mode 100644 index 00000000000..c90844822b7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_InstantSnapshots_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 {InstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotsClient(); + + 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_InstantSnapshots_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/interconnect_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js index 0dabb738c6b..b5d9a53c0a5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js index 35f0b91800b..fa011063875 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js index aaa987bf15b..1d998157ee0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_remote_locations.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_remote_locations.list.js index cb72f00d4f5..5dfa673fc51 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_remote_locations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_remote_locations.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js index 0a680f3b64a..c08ff963667 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/licenses.list.js b/packages/google-cloud-compute/samples/generated/v1/licenses.list.js index 29bef0fcb08..bf18a96f629 100644 --- a/packages/google-cloud-compute/samples/generated/v1/licenses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/licenses.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js index 7656c7939a3..cab69bf4ea4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js index d326043b9db..2b3e430791a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js b/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js index b593702b7c3..9d1ddd0aa55 100644 --- a/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js index 09708932511..2f5bc9b7c56 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js index 318e1ec07f6..5093411092b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js index 1d915a0e90a..c4e29d97e3d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js index 9362c8b2bb1..0f4ed46f6e0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js index b3069a5b3a8..e46822de3e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js index 7a0928b9452..aef4300e693 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js @@ -57,7 +57,7 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestRes */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/network_firewall_policies.list.js index eef00600902..94406608620 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_firewall_policies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/networks.list.js b/packages/google-cloud-compute/samples/generated/v1/networks.list.js index 8cea465b087..1e4ccdd9b28 100644 --- a/packages/google-cloud-compute/samples/generated/v1/networks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/networks.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js b/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js index be02cdc8314..feeaefed552 100644 --- a/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js +++ b/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js @@ -66,7 +66,7 @@ function main(network, project) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js index a626937c327..42bd20d45e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js index 7a05f9cbfc8..2688410a02f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js index b71bd086853..8e6f0a2b64f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js @@ -53,7 +53,7 @@ function main(nodeGroup, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js index ad190293071..b4369dbcc80 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js index af23edbb671..1dc0194183a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js index 0f8eb7f3141..fbde986d796 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_types.list.js b/packages/google-cloud-compute/samples/generated/v1/node_types.list.js index 2c7d7cb602b..1eecd549639 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_types.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js index 54fcc72dda9..77000d7f151 100644 --- a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js index 83da508cfec..88ac1dd8259 100644 --- a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js b/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js index 34169e7381a..ebefa98556a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js +++ b/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js b/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js index 7f81726d972..64673b39dab 100644 --- a/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js +++ b/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js @@ -53,7 +53,7 @@ function main(project, projectsListXpnHostsRequestResource) { */ // const projectsListXpnHostsRequestResource = {} /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js b/packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js new file mode 100644 index 00000000000..a858abafca5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/projects.set_cloud_armor_tier.js @@ -0,0 +1,70 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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, projectsSetCloudArmorTierRequestResource) { + // [START compute_v1_generated_Projects_SetCloudArmorTier_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 body resource for this request + */ + // const projectsSetCloudArmorTierRequestResource = {} + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {ProjectsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ProjectsClient(); + + async function callSetCloudArmorTier() { + // Construct request + const request = { + project, + projectsSetCloudArmorTierRequestResource, + }; + + // Run request + const response = await computeClient.setCloudArmorTier(request); + console.log(response); + } + + callSetCloudArmorTier(); + // [END compute_v1_generated_Projects_SetCloudArmorTier_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/public_advertised_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js index dd5211bf904..6ab28026610 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js index a7a0cf54887..4f10773dfee 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js index 92c563bf054..556cfcfac8b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js index a15e3b876cc..d441496ad61 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js index 7d51e3980ee..cd72092fa8d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list_usable.js index ad3a5cb4c6c..49d878457f6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list_usable.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js index 720847a2c55..5f1d7e46eeb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js b/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js index cdb68142aa2..8d85e448253 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js index d9290f0dc60..ec6f7c8c433 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js b/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js index f6890c8e6b0..30c283fce75 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js index 677a25a8ff3..875f62ac671 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js index 8392e525b7f..5c7fb31f3d3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js index 16c9db59086..1043bf31a96 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js index 10f913c1ce9..881e655820f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js @@ -57,7 +57,7 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js index 7103acb61ea..fd60ea5b4cc 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js @@ -57,7 +57,7 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js index 6a9e26eb6ea..e4656dc00fd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js @@ -57,7 +57,7 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js index 4ee8db3ae48..3343b16e4a6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js index b66347e9983..75188550964 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js @@ -61,7 +61,7 @@ function main(instanceGroup, project, region, regionInstanceGroupsListInstancesR */ // const regionInstanceGroupsListInstancesRequestResource = {} /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js index b4e5439b0c6..68ac5c63496 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js new file mode 100644 index 00000000000..627f20b1dd3 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshot, project, region) { + // [START compute_v1_generated_RegionInstantSnapshots_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 instantSnapshot = '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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshot, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionInstantSnapshots_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_snapshots.get.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js new file mode 100644 index 00000000000..1f0d0c7587f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js @@ -0,0 +1,71 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshot, project, region) { + // [START compute_v1_generated_RegionInstantSnapshots_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 InstantSnapshot resource to return. + */ + // const instantSnapshot = '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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshot, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionInstantSnapshots_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_snapshots.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js new file mode 100644 index 00000000000..7e3a22f408a --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_RegionInstantSnapshots_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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + 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_RegionInstantSnapshots_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_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js new file mode 100644 index 00000000000..cb4244e9fb6 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.insert.js @@ -0,0 +1,75 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotResource, project, region) { + // [START compute_v1_generated_RegionInstantSnapshots_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 instantSnapshotResource = {} + /** + * 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' + + // Imports the Compute library + const {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionInstantSnapshots_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_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js new file mode 100644 index 00000000000..f4667297370 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.list.js @@ -0,0 +1,88 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_RegionInstantSnapshots_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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for 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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + 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_RegionInstantSnapshots_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_snapshots.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js new file mode 100644 index 00000000000..80fb12c9389 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_RegionInstantSnapshots_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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + 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_RegionInstantSnapshots_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_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js new file mode 100644 index 00000000000..162ebdaff9b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.set_labels.js @@ -0,0 +1,80 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_RegionInstantSnapshots_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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + 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_RegionInstantSnapshots_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_instant_snapshots.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js new file mode 100644 index 00000000000..2bacbcbd801 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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_RegionInstantSnapshots_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 {RegionInstantSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotsClient(); + + 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_RegionInstantSnapshots_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_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js index 148984a1260..629691e2fd6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list_network_endpoints.js index d21d98f6c63..b5b23cced28 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list_network_endpoints.js @@ -57,7 +57,7 @@ function main(networkEndpointGroup, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.list.js index 33a97539eb4..6500782fcf7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js index defc903d34d..920e972ae05 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js index 3c8b70031db..a64ce3ae044 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_security_policies.list.js index c0dcbbf9a00..1e9a4294a97 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_security_policies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js index a21c2a585e9..a80ab684995 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list.js index dce336e6f92..9a8a106f154 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list_available_features.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list_available_features.js index 1ad190fb93a..2e92bde3788 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list_available_features.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_policies.list_available_features.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js index ed8a253eec7..e4e4970a732 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js index d7bef508fea..3c2b6e9e311 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_tcp_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_target_tcp_proxies.list.js index ad74e7fb41b..002cca9ebf3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_tcp_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_tcp_proxies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js index 507d6970312..0bc081071b1 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js b/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js index 3c66c845c50..12869041491 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/regions.list.js b/packages/google-cloud-compute/samples/generated/v1/regions.list.js index 6473e8a74d9..e5adbe881ce 100644 --- a/packages/google-cloud-compute/samples/generated/v1/regions.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/regions.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js index 992f4fe8ca6..865a19f71b3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/reservations.list.js b/packages/google-cloud-compute/samples/generated/v1/reservations.list.js index a5e73d75f2d..69b9bfee50a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/reservations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/reservations.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js index 9c652750cea..63061af7e14 100644 --- a/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js index c008915ea15..28707244e6c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js index 17d86e61501..1e15d921fe7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js b/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js index 640b9360833..b4f3c8478e2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js @@ -57,7 +57,7 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.list.js b/packages/google-cloud-compute/samples/generated/v1/routers.list.js index f2b67a3e2a6..c1b8758d069 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/routes.list.js b/packages/google-cloud-compute/samples/generated/v1/routes.list.js index ada56c62d65..317fca4ce05 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routes.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js index eeee8dd4b45..3fd430c183e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js index 57593829e50..aecf5dc7965 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js index ce39abbe96b..c8643171ced 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js index 92992c2e834..13928859c70 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js index 8302dae0a92..6efe722ff9a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js index 6e33e0e662a..bddc15271a6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json index 87ea0c61bde..e7779bf189b 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 @@ -15,7 +15,7 @@ "regionTag": "compute_v1_generated_AcceleratorTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of accelerator types.", + "description": " Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "accelerator_types.aggregated_list.js", "language": "JAVASCRIPT", @@ -195,7 +195,7 @@ "regionTag": "compute_v1_generated_Addresses_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of addresses.", + "description": " Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "addresses.aggregated_list.js", "language": "JAVASCRIPT", @@ -591,7 +591,7 @@ "regionTag": "compute_v1_generated_Autoscalers_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of autoscalers.", + "description": " Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "autoscalers.aggregated_list.js", "language": "JAVASCRIPT", @@ -1643,7 +1643,7 @@ "regionTag": "compute_v1_generated_BackendServices_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "backend_services.aggregated_list.js", "language": "JAVASCRIPT", @@ -2479,7 +2479,7 @@ "regionTag": "compute_v1_generated_Disks_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of persistent disks.", + "description": " Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "disks.aggregated_list.js", "language": "JAVASCRIPT", @@ -3427,7 +3427,7 @@ "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of disk types.", + "description": " Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "disk_types.aggregated_list.js", "language": "JAVASCRIPT", @@ -5051,7 +5051,7 @@ "regionTag": "compute_v1_generated_ForwardingRules_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of forwarding rules.", + "description": " Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "forwarding_rules.aggregated_list.js", "language": "JAVASCRIPT", @@ -6523,7 +6523,7 @@ "regionTag": "compute_v1_generated_GlobalOperations_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all operations.", + "description": " Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "global_operations.aggregated_list.js", "language": "JAVASCRIPT", @@ -7183,7 +7183,7 @@ "regionTag": "compute_v1_generated_HealthChecks_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "health_checks.aggregated_list.js", "language": "JAVASCRIPT", @@ -8203,7 +8203,7 @@ "regionTag": "compute_v1_generated_InstanceGroupManagers_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of managed instance groups and groups them by zone.", + "description": " Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "instance_group_managers.aggregated_list.js", "language": "JAVASCRIPT", @@ -9355,7 +9355,7 @@ "regionTag": "compute_v1_generated_InstanceGroups_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of instance groups and sorts them by zone.", + "description": " Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "instance_groups.aggregated_list.js", "language": "JAVASCRIPT", @@ -9939,7 +9939,7 @@ "regionTag": "compute_v1_generated_Instances_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances.", + "description": " Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "instances.aggregated_list.js", "language": "JAVASCRIPT", @@ -12507,7 +12507,7 @@ "regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "instance_templates.aggregated_list.js", "language": "JAVASCRIPT", @@ -12915,11 +12915,507 @@ } } }, + { + "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": 83, + "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, see Deleting instantSnapshots.", + "canonical": true, + "file": "instant_snapshots.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "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": 67, + "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": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.InstantSnapshots.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.InstantSnapshotList", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.InstantSnapshots.List", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_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_snapshots.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshots.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": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_SetLabels_async", + "title": "AcceleratorTypes setLabels Sample", + "origin": "API_DEFINITION", + "description": " Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.", + "canonical": true, + "file": "instant_snapshots.set_labels.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "zone_set_labels_request_resource", + "type": ".google.cloud.compute.v1.ZoneSetLabelsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "instant_snapshots.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstantSnapshots.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": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, { "regionTag": "compute_v1_generated_InterconnectAttachments_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of interconnect attachments.", + "description": " Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "interconnect_attachments.aggregated_list.js", "language": "JAVASCRIPT", @@ -14699,7 +15195,7 @@ "regionTag": "compute_v1_generated_MachineTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of machine types.", + "description": " Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "machine_types.aggregated_list.js", "language": "JAVASCRIPT", @@ -14879,7 +15375,7 @@ "regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "network_attachments.aggregated_list.js", "language": "JAVASCRIPT", @@ -15375,7 +15871,7 @@ "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.", + "description": " Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "network_edge_security_services.aggregated_list.js", "language": "JAVASCRIPT", @@ -15663,7 +16159,7 @@ "regionTag": "compute_v1_generated_NetworkEndpointGroups_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups and sorts them by zone.", + "description": " Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "network_endpoint_groups.aggregated_list.js", "language": "JAVASCRIPT", @@ -17635,7 +18131,7 @@ "regionTag": "compute_v1_generated_NodeGroups_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.", + "description": " Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "node_groups.aggregated_list.js", "language": "JAVASCRIPT", @@ -18371,7 +18867,7 @@ "regionTag": "compute_v1_generated_NodeTemplates_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node templates.", + "description": " Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "node_templates.aggregated_list.js", "language": "JAVASCRIPT", @@ -18811,7 +19307,7 @@ "regionTag": "compute_v1_generated_NodeTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node types.", + "description": " Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "node_types.aggregated_list.js", "language": "JAVASCRIPT", @@ -18991,7 +19487,7 @@ "regionTag": "compute_v1_generated_PacketMirrorings_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of packetMirrorings.", + "description": " Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "packet_mirrorings.aggregated_list.js", "language": "JAVASCRIPT", @@ -19863,6 +20359,54 @@ } } }, + { + "regionTag": "compute_v1_generated_Projects_SetCloudArmorTier_async", + "title": "AcceleratorTypes setCloudArmorTier Sample", + "origin": "API_DEFINITION", + "description": " Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.", + "canonical": true, + "file": "projects.set_cloud_armor_tier.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetCloudArmorTier", + "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "projects_set_cloud_armor_tier_request_resource", + "type": ".google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.compute.v1.ProjectsClient" + }, + "method": { + "shortName": "SetCloudArmorTier", + "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.compute.v1.Projects" + } + } + } + }, { "regionTag": "compute_v1_generated_Projects_SetCommonInstanceMetadata_async", "title": "AcceleratorTypes setCommonInstanceMetadata Sample", @@ -20359,7 +20903,7 @@ "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.", + "description": " Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "public_delegated_prefixes.aggregated_list.js", "language": "JAVASCRIPT", @@ -21787,7 +22331,7 @@ "regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of commitments by region.", + "description": " Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "region_commitments.aggregated_list.js", "language": "JAVASCRIPT", @@ -25315,6 +25859,434 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.", + "canonical": true, + "file": "region_instant_snapshots.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", + "async": true, + "parameters": [ + { + "name": "instant_snapshot", + "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": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified InstantSnapshot resource in the specified region.", + "canonical": true, + "file": "region_instant_snapshots.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", + "async": true, + "parameters": [ + { + "name": "instant_snapshot", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.InstantSnapshot", + "client": { + "shortName": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_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_snapshots.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.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": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates an instant snapshot in the specified region.", + "canonical": true, + "file": "region_instant_snapshots.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_resource", + "type": ".google.cloud.compute.v1.InstantSnapshot" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of InstantSnapshot resources contained within the specified region.", + "canonical": true, + "file": "region_instant_snapshots.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.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.InstantSnapshotList", + "client": { + "shortName": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_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_snapshots.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.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": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetLabels_async", + "title": "AcceleratorTypes setLabels Sample", + "origin": "API_DEFINITION", + "description": " Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.", + "canonical": true, + "file": "region_instant_snapshots.set_labels.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.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": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshots_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_snapshots.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.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": "RegionInstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions", + "service": { + "shortName": "RegionInstantSnapshots", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_async", "title": "AcceleratorTypes attachNetworkEndpoints Sample", @@ -29547,7 +30519,7 @@ "regionTag": "compute_v1_generated_Reservations_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of reservations.", + "description": " Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "reservations.aggregated_list.js", "language": "JAVASCRIPT", @@ -30107,7 +31079,7 @@ "regionTag": "compute_v1_generated_ResourcePolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of resource policies.", + "description": " Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "resource_policies.aggregated_list.js", "language": "JAVASCRIPT", @@ -30607,7 +31579,7 @@ "regionTag": "compute_v1_generated_Routers_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of routers.", + "description": " Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "routers.aggregated_list.js", "language": "JAVASCRIPT", @@ -31479,7 +32451,7 @@ "regionTag": "compute_v1_generated_SecurityPolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "security_policies.aggregated_list.js", "language": "JAVASCRIPT", @@ -32071,7 +33043,7 @@ "regionTag": "compute_v1_generated_ServiceAttachments_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "service_attachments.aggregated_list.js", "language": "JAVASCRIPT", @@ -33051,7 +34023,7 @@ "regionTag": "compute_v1_generated_SslCertificates_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslCertificate resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "ssl_certificates.aggregated_list.js", "language": "JAVASCRIPT", @@ -33319,7 +34291,7 @@ "regionTag": "compute_v1_generated_SslPolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslPolicy resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "ssl_policies.aggregated_list.js", "language": "JAVASCRIPT", @@ -33699,7 +34671,7 @@ "regionTag": "compute_v1_generated_Subnetworks_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of subnetworks.", + "description": " Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "subnetworks.aggregated_list.js", "language": "JAVASCRIPT", @@ -34623,7 +35595,7 @@ "regionTag": "compute_v1_generated_TargetHttpProxies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_http_proxies.aggregated_list.js", "language": "JAVASCRIPT", @@ -34995,7 +35967,7 @@ "regionTag": "compute_v1_generated_TargetHttpsProxies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_https_proxies.aggregated_list.js", "language": "JAVASCRIPT", @@ -35575,7 +36547,7 @@ "regionTag": "compute_v1_generated_TargetInstances_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target instances.", + "description": " Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_instances.aggregated_list.js", "language": "JAVASCRIPT", @@ -36027,7 +36999,7 @@ "regionTag": "compute_v1_generated_TargetPools_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target pools.", + "description": " Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_pools.aggregated_list.js", "language": "JAVASCRIPT", @@ -37051,7 +38023,7 @@ "regionTag": "compute_v1_generated_TargetTcpProxies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_tcp_proxies.aggregated_list.js", "language": "JAVASCRIPT", @@ -37423,7 +38395,7 @@ "regionTag": "compute_v1_generated_TargetVpnGateways_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target VPN gateways.", + "description": " Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "target_vpn_gateways.aggregated_list.js", "language": "JAVASCRIPT", @@ -37763,7 +38735,7 @@ "regionTag": "compute_v1_generated_UrlMaps_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all UrlMap resources, regional and global, available to the specified project.", + "description": " Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "url_maps.aggregated_list.js", "language": "JAVASCRIPT", @@ -38235,7 +39207,7 @@ "regionTag": "compute_v1_generated_VpnGateways_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN gateways.", + "description": " Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "vpn_gateways.aggregated_list.js", "language": "JAVASCRIPT", @@ -38675,7 +39647,7 @@ "regionTag": "compute_v1_generated_VpnTunnels_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN tunnels.", + "description": " Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "vpn_tunnels.aggregated_list.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js index b0b9a6e67f4..7ed091da620 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js index f27ee4b9cf2..53b0c8c7eaa 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js index 46b5923a07b..8aad305d998 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js index 0a93b793bf3..e2b73a8db6e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js index 389e0332936..e10943f898e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js index 0e1eb571d30..b436ffb9163 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js index 6327fa82d3b..07b3da961c3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js index 56dd674629c..b925d398f0b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js index 0e5cd3dc365..3e4cb6a7501 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js index eacfc1f0963..22fef510f1a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js index a968643b8f5..0efd929616e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js index ce1e9447c63..6edb69c5f0a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js index f388d89468d..dff634e3c89 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js index 08109cc538f..d0c0157c767 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js b/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js index 4c119fa92da..c7785759bb7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js index 703c9c556bd..fdaa74a7216 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js b/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js index 651d5a07734..25470b38fa3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js index 57776e465e4..061a5d61ebf 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js index 04034898c20..6f5004f9de5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js index 6c47f5becae..53556c90bea 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js index 942cd409f56..016becd5596 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js index 5b550d240b9..7490acf49a9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js index 8c67e985b51..2773e5db33e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js index 42f97af81f5..ed892ea55c7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js index 377ae91cab4..b1df99362f5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js index 44c2df65975..e0b2392cdcb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js index 17864403b38..bd4f71bf85e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js @@ -53,7 +53,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js index 0109d31c294..8a288092c74 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js @@ -53,7 +53,7 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js index 4b5b04fdf95..6786573c538 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js @@ -49,7 +49,7 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/zones.list.js b/packages/google-cloud-compute/samples/generated/v1/zones.list.js index d2f26449dc0..6d0365250c7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zones.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/zones.list.js @@ -49,7 +49,7 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 023a1f766a7..e0c89a883eb 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -70,6 +70,8 @@ const InstancesClient = v1.InstancesClient; type InstancesClient = v1.InstancesClient; const InstanceTemplatesClient = v1.InstanceTemplatesClient; type InstanceTemplatesClient = v1.InstanceTemplatesClient; +const InstantSnapshotsClient = v1.InstantSnapshotsClient; +type InstantSnapshotsClient = v1.InstantSnapshotsClient; const InterconnectAttachmentsClient = v1.InterconnectAttachmentsClient; type InterconnectAttachmentsClient = v1.InterconnectAttachmentsClient; const InterconnectLocationsClient = v1.InterconnectLocationsClient; @@ -132,6 +134,8 @@ const RegionInstancesClient = v1.RegionInstancesClient; type RegionInstancesClient = v1.RegionInstancesClient; const RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; type RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; +const RegionInstantSnapshotsClient = v1.RegionInstantSnapshotsClient; +type RegionInstantSnapshotsClient = v1.RegionInstantSnapshotsClient; const RegionNetworkEndpointGroupsClient = v1.RegionNetworkEndpointGroupsClient; type RegionNetworkEndpointGroupsClient = v1.RegionNetworkEndpointGroupsClient; const RegionNetworkFirewallPoliciesClient = @@ -236,6 +240,7 @@ export { InstanceGroupsClient, InstancesClient, InstanceTemplatesClient, + InstantSnapshotsClient, InterconnectAttachmentsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, @@ -267,6 +272,7 @@ export { RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, + RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, @@ -332,6 +338,7 @@ export default { InstanceGroupsClient, InstancesClient, InstanceTemplatesClient, + InstantSnapshotsClient, InterconnectAttachmentsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, @@ -363,6 +370,7 @@ export default { RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, + RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, diff --git a/packages/google-cloud-compute/src/v1/accelerator_types_client.ts b/packages/google-cloud-compute/src/v1/accelerator_types_client.ts index ae869fb5fbd..de3151fc04e 100644 --- a/packages/google-cloud-compute/src/v1/accelerator_types_client.ts +++ b/packages/google-cloud-compute/src/v1/accelerator_types_client.ts @@ -471,7 +471,7 @@ export class AcceleratorTypesClient { } /** - * Retrieves an aggregated list of accelerator types. + * Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -489,7 +489,7 @@ export class AcceleratorTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -545,7 +545,7 @@ export class AcceleratorTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -645,7 +645,7 @@ export class AcceleratorTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -699,7 +699,7 @@ export class AcceleratorTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/addresses_client.ts b/packages/google-cloud-compute/src/v1/addresses_client.ts index 6fc8652496a..591ba59355a 100644 --- a/packages/google-cloud-compute/src/v1/addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/addresses_client.ts @@ -943,7 +943,7 @@ export class AddressesClient { } /** - * Retrieves an aggregated list of addresses. + * Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -961,7 +961,7 @@ export class AddressesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1019,7 +1019,7 @@ export class AddressesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1117,7 +1117,7 @@ export class AddressesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1171,7 +1171,7 @@ export class AddressesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/autoscalers_client.ts b/packages/google-cloud-compute/src/v1/autoscalers_client.ts index a7b6b8b22bd..593f99e280b 100644 --- a/packages/google-cloud-compute/src/v1/autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/autoscalers_client.ts @@ -957,7 +957,7 @@ export class AutoscalersClient { } /** - * Retrieves an aggregated list of autoscalers. + * Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -975,7 +975,7 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1031,7 +1031,7 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1129,7 +1129,7 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1183,7 +1183,7 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts index 14a48d9f9e0..05c3125f4f7 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts @@ -1640,7 +1640,7 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1735,7 +1735,7 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1786,7 +1786,7 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/backend_services_client.ts b/packages/google-cloud-compute/src/v1/backend_services_client.ts index a57ab4636e1..b4ea94a59a9 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_services_client.ts @@ -1861,7 +1861,7 @@ export class BackendServicesClient { } /** - * Retrieves the list of all BackendService resources, regional and global, available to the specified project. + * Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1879,7 +1879,7 @@ export class BackendServicesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1935,7 +1935,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2030,7 +2030,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2081,7 +2081,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2131,7 +2131,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2234,7 +2234,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2285,7 +2285,7 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/disk_types_client.ts b/packages/google-cloud-compute/src/v1/disk_types_client.ts index ceefdd13602..280c89a4d28 100644 --- a/packages/google-cloud-compute/src/v1/disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/disk_types_client.ts @@ -460,7 +460,7 @@ export class DiskTypesClient { } /** - * Retrieves an aggregated list of disk types. + * Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -478,7 +478,7 @@ export class DiskTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -534,7 +534,7 @@ export class DiskTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -632,7 +632,7 @@ export class DiskTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -686,7 +686,7 @@ export class DiskTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index a9c9f8f882f..28ef628e79b 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -2223,7 +2223,7 @@ export class DisksClient { } /** - * Retrieves an aggregated list of persistent disks. + * Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -2241,7 +2241,7 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2295,7 +2295,7 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2393,7 +2393,7 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2447,7 +2447,7 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts index a8537187b19..e0cf1357b99 100644 --- a/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts @@ -942,7 +942,7 @@ export class ExternalVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1039,7 +1039,7 @@ export class ExternalVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1090,7 +1090,7 @@ export class ExternalVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts index 41a08e8cf4e..49fedd9186a 100644 --- a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts @@ -2255,7 +2255,7 @@ export class FirewallPoliciesClient { * @param {string} request.parentId * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2346,7 +2346,7 @@ export class FirewallPoliciesClient { * @param {string} request.parentId * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2393,7 +2393,7 @@ export class FirewallPoliciesClient { * @param {string} request.parentId * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/firewalls_client.ts b/packages/google-cloud-compute/src/v1/firewalls_client.ts index c9d75134b18..4dffb0f251b 100644 --- a/packages/google-cloud-compute/src/v1/firewalls_client.ts +++ b/packages/google-cloud-compute/src/v1/firewalls_client.ts @@ -933,7 +933,7 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1028,7 +1028,7 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1079,7 +1079,7 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts index 3be21a3df73..80cdf07e775 100644 --- a/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts @@ -1097,7 +1097,7 @@ export class ForwardingRulesClient { } /** - * Retrieves an aggregated list of forwarding rules. + * Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1115,7 +1115,7 @@ export class ForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1173,7 +1173,7 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1271,7 +1271,7 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1325,7 +1325,7 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index 468c8de2ecf..55c13922a43 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -2923,6 +2923,118 @@ } } }, + "InstantSnapshots": { + "clients": { + "grpc": { + "libraryClient": "InstantSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "InstantSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "InterconnectAttachments": { "clients": { "grpc": { @@ -4514,6 +4626,11 @@ "moveInstance" ] }, + "SetCloudArmorTier": { + "methods": [ + "setCloudArmorTier" + ] + }, "SetCommonInstanceMetadata": { "methods": [ "setCommonInstanceMetadata" @@ -4588,6 +4705,11 @@ "moveInstance" ] }, + "SetCloudArmorTier": { + "methods": [ + "setCloudArmorTier" + ] + }, "SetCommonInstanceMetadata": { "methods": [ "setCommonInstanceMetadata" @@ -5839,6 +5961,104 @@ } } }, + "RegionInstantSnapshots": { + "clients": { + "grpc": { + "libraryClient": "RegionInstantSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionInstantSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionNetworkEndpointGroups": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1/global_addresses_client.ts b/packages/google-cloud-compute/src/v1/global_addresses_client.ts index a3a8c2e5fcb..c42a8735f53 100644 --- a/packages/google-cloud-compute/src/v1/global_addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/global_addresses_client.ts @@ -963,7 +963,7 @@ export class GlobalAddressesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1058,7 +1058,7 @@ export class GlobalAddressesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1109,7 +1109,7 @@ export class GlobalAddressesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts index df3db823894..74aa7bca098 100644 --- a/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts @@ -1093,7 +1093,7 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1188,7 +1188,7 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1239,7 +1239,7 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts index 5ed1f854025..fc6c80c25ea 100644 --- a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts @@ -979,7 +979,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1082,7 +1082,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1133,7 +1133,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1185,7 +1185,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1291,7 +1291,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1345,7 +1345,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/global_operations_client.ts b/packages/google-cloud-compute/src/v1/global_operations_client.ts index 158fbb5b1d7..371c67e3bf2 100644 --- a/packages/google-cloud-compute/src/v1/global_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_operations_client.ts @@ -656,7 +656,7 @@ export class GlobalOperationsClient { } /** - * Retrieves an aggregated list of all operations. + * Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -674,7 +674,7 @@ export class GlobalOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -730,7 +730,7 @@ export class GlobalOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -825,7 +825,7 @@ export class GlobalOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -876,7 +876,7 @@ export class GlobalOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts index 34668944c7f..b3ebfcd021b 100644 --- a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts @@ -579,7 +579,7 @@ export class GlobalOrganizationOperationsClient { * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -670,7 +670,7 @@ export class GlobalOrganizationOperationsClient { * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -717,7 +717,7 @@ export class GlobalOrganizationOperationsClient { * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts index ce135af405f..a3419608908 100644 --- a/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts @@ -850,7 +850,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -953,7 +953,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1004,7 +1004,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/health_checks_client.ts b/packages/google-cloud-compute/src/v1/health_checks_client.ts index b68f970ae76..d9f5f789add 100644 --- a/packages/google-cloud-compute/src/v1/health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/health_checks_client.ts @@ -950,7 +950,7 @@ export class HealthChecksClient { } /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. + * Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -968,7 +968,7 @@ export class HealthChecksClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1024,7 +1024,7 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1119,7 +1119,7 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1170,7 +1170,7 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/images_client.ts b/packages/google-cloud-compute/src/v1/images_client.ts index 00eadb1c36d..f315c5aff8d 100644 --- a/packages/google-cloud-compute/src/v1/images_client.ts +++ b/packages/google-cloud-compute/src/v1/images_client.ts @@ -1432,7 +1432,7 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1527,7 +1527,7 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1578,7 +1578,7 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 1e672199f26..068dcf00346 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -40,6 +40,7 @@ export {InstanceGroupManagersClient} from './instance_group_managers_client'; export {InstanceGroupsClient} from './instance_groups_client'; export {InstancesClient} from './instances_client'; export {InstanceTemplatesClient} from './instance_templates_client'; +export {InstantSnapshotsClient} from './instant_snapshots_client'; export {InterconnectAttachmentsClient} from './interconnect_attachments_client'; export {InterconnectLocationsClient} from './interconnect_locations_client'; export {InterconnectRemoteLocationsClient} from './interconnect_remote_locations_client'; @@ -71,6 +72,7 @@ export {RegionInstanceGroupManagersClient} from './region_instance_group_manager export {RegionInstanceGroupsClient} from './region_instance_groups_client'; export {RegionInstancesClient} from './region_instances_client'; export {RegionInstanceTemplatesClient} from './region_instance_templates_client'; +export {RegionInstantSnapshotsClient} from './region_instant_snapshots_client'; export {RegionNetworkEndpointGroupsClient} from './region_network_endpoint_groups_client'; export {RegionNetworkFirewallPoliciesClient} from './region_network_firewall_policies_client'; export {RegionNotificationEndpointsClient} from './region_notification_endpoints_client'; diff --git a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts index 425479ac813..ba53722a675 100644 --- a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts @@ -2252,7 +2252,7 @@ export class InstanceGroupManagersClient { } /** - * Retrieves the list of managed instance groups and groups them by zone. + * Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -2270,7 +2270,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2326,7 +2326,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2432,7 +2432,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2486,7 +2486,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2541,7 +2541,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] @@ -2650,7 +2650,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] @@ -2707,7 +2707,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] @@ -2763,7 +2763,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2872,7 +2872,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2929,7 +2929,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. * @param {object} [options] @@ -2985,7 +2985,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] @@ -3098,7 +3098,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] @@ -3155,7 +3155,7 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the managed instance group is located. It should conform to RFC1035. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/instance_groups_client.ts b/packages/google-cloud-compute/src/v1/instance_groups_client.ts index 0bf93948654..7086eda3976 100644 --- a/packages/google-cloud-compute/src/v1/instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_groups_client.ts @@ -1103,7 +1103,7 @@ export class InstanceGroupsClient { } /** - * Retrieves the list of instance groups and sorts them by zone. + * Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1121,7 +1121,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1177,7 +1177,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] @@ -1275,7 +1275,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] @@ -1329,7 +1329,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] @@ -1386,7 +1386,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] @@ -1497,7 +1497,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] @@ -1556,7 +1556,7 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the instance group is located. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/instance_templates_client.ts b/packages/google-cloud-compute/src/v1/instance_templates_client.ts index e0cc676c6da..5c211695de4 100644 --- a/packages/google-cloud-compute/src/v1/instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_templates_client.ts @@ -1016,7 +1016,7 @@ export class InstanceTemplatesClient { } /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1034,7 +1034,7 @@ export class InstanceTemplatesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1090,7 +1090,7 @@ export class InstanceTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1187,7 +1187,7 @@ export class InstanceTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1238,7 +1238,7 @@ export class InstanceTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 9ec5341a328..60cfacc2450 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -5759,7 +5759,7 @@ export class InstancesClient { } /** - * Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. + * Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -5777,7 +5777,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -5833,7 +5833,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -5931,7 +5931,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -5985,7 +5985,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -6040,7 +6040,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -6143,7 +6143,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -6200,7 +6200,7 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/instant_snapshots_client.ts b/packages/google-cloud-compute/src/v1/instant_snapshots_client.ts new file mode 100644 index 00000000000..528db1908ac --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshots_client.ts @@ -0,0 +1,1444 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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'); + +/** + * Client JSON configuration object, loaded from + * `src/v1/instant_snapshots_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './instant_snapshots_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The InstantSnapshots API. + * @class + * @memberof v1 + */ +export class InstantSnapshotsClient { + 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; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + instantSnapshotsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of InstantSnapshotsClient. + * + * @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://developers.google.com/identity/protocols/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 InstantSnapshotsClient({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 InstantSnapshotsClient; + if ( + opts?.universe_domain && + opts?.universeDomain && + opts?.universe_domain !== opts?.universeDomain + ) { + throw new Error( + 'Please set either universe_domain or universeDomain, but not both.' + ); + } + this._universeDomain = + opts?.universeDomain ?? opts?.universe_domain ?? '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 !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + list: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.InstantSnapshots', + 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.instantSnapshotsStub) { + return this.instantSnapshotsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.InstantSnapshots. + this.instantSnapshotsStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.InstantSnapshots' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.InstantSnapshots, + 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 instantSnapshotsStubMethods = [ + 'aggregatedList', + 'delete', + 'get', + 'getIamPolicy', + 'insert', + 'list', + 'setIamPolicy', + 'setLabels', + 'testIamPermissions', + ]; + for (const methodName of instantSnapshotsStubMethods) { + const callPromise = this.instantSnapshotsStub.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.instantSnapshotsStub; + } + + /** + * 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 !== undefined && + 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 !== undefined && + 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 InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshot + * 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_snapshots.delete.js + * region_tag:compute_v1_generated_InstantSnapshots_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + delete( + request: protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteInstantSnapshotRequest + | 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: request.instantSnapshot ?? '', + }); + this.initialize(); + return this.innerApiCalls + .delete(request, options, callback) + .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, + ]; + } + ); + } + /** + * Returns the specified InstantSnapshot resource in the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshot + * Name of the InstantSnapshot 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.InstantSnapshot|InstantSnapshot}. + * 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_snapshots.get.js + * region_tag:compute_v1_generated_InstantSnapshots_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot, + protos.google.cloud.compute.v1.IGetInstantSnapshotRequest | undefined, + {} | undefined, + ] + >; + get( + request: protos.google.cloud.compute.v1.IGetInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request: protos.google.cloud.compute.v1.IGetInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request?: protos.google.cloud.compute.v1.IGetInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot, + protos.google.cloud.compute.v1.IGetInstantSnapshotRequest | 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: request.instantSnapshot ?? '', + }); + this.initialize(); + return this.innerApiCalls.get(request, options, callback); + } + /** + * 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_snapshots.get_iam_policy.js + * region_tag:compute_v1_generated_InstantSnapshots_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest + | 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(); + return this.innerApiCalls.getIamPolicy(request, options, callback); + } + /** + * Creates an instant snapshot in the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.InstantSnapshot} request.instantSnapshotResource + * 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 + * 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_snapshots.insert.js + * region_tag:compute_v1_generated_InstantSnapshots_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertInstantSnapshotRequest + | 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(); + return this.innerApiCalls + .insert(request, options, callback) + .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, + ]; + } + ); + } + /** + * 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_snapshots.set_iam_policy.js + * region_tag:compute_v1_generated_InstantSnapshots_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest + | 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(); + return this.innerApiCalls.setIamPolicy(request, options, callback); + } + /** + * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @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.ZoneSetLabelsRequest} request.zoneSetLabelsRequestResource + * 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/instant_snapshots.set_labels.js + * region_tag:compute_v1_generated_InstantSnapshots_SetLabels_async + */ + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest + | 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 ?? '', + resource: request.resource ?? '', + }); + this.initialize(); + return this.innerApiCalls + .setLabels(request, options, callback) + .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, + ]; + } + ); + } + /** + * 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_snapshots.test_iam_permissions.js + * region_tag:compute_v1_generated_InstantSnapshots_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest + | 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(); + return this.innerApiCalls.testIamPermissions(request, options, callback); + } + + /** + * Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @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 + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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.InstantSnapshotsScopedList|InstantSnapshotsScopedList}]. 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_snapshots.aggregated_list.js + * region_tag:compute_v1_generated_InstantSnapshots_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest, + options?: CallOptions + ): AsyncIterable< + [string, protos.google.cloud.compute.v1.IInstantSnapshotsScopedList] + > { + 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(); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable< + [string, protos.google.cloud.compute.v1.IInstantSnapshotsScopedList] + >; + } + /** + * Retrieves the list of InstantSnapshot resources contained within the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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.InstantSnapshot|InstantSnapshot}. + * 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.IListInstantSnapshotsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot[], + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest | null, + protos.google.cloud.compute.v1.IInstantSnapshotList, + ] + >; + list( + request: protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + | protos.google.cloud.compute.v1.IInstantSnapshotList + | null + | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot[], + protos.google.cloud.compute.v1.IListInstantSnapshotsRequest | null, + protos.google.cloud.compute.v1.IInstantSnapshotList, + ] + > | 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(); + return this.innerApiCalls.list(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, 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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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.InstantSnapshot|InstantSnapshot} 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.IListInstantSnapshotsRequest, + 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(); + 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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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.InstantSnapshot|InstantSnapshot}. 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_snapshots.list.js + * region_tag:compute_v1_generated_InstantSnapshots_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListInstantSnapshotsRequest, + 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(); + 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.instantSnapshotsStub && !this._terminated) { + return this.instantSnapshotsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/instant_snapshots_client_config.json b/packages/google-cloud-compute/src/v1/instant_snapshots_client_config.json new file mode 100644 index 00000000000..387915a7a18 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshots_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.cloud.compute.v1.InstantSnapshots": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "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" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/instant_snapshots_proto_list.json b/packages/google-cloud-compute/src/v1/instant_snapshots_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshots_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts b/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts index da15d71624e..0348e042404 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts @@ -980,7 +980,7 @@ export class InterconnectAttachmentsClient { } /** - * Retrieves an aggregated list of interconnect attachments. + * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -998,7 +998,7 @@ export class InterconnectAttachmentsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1059,7 +1059,7 @@ export class InterconnectAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1165,7 +1165,7 @@ export class InterconnectAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1219,7 +1219,7 @@ export class InterconnectAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts b/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts index 01523074b59..dc7c7d26810 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts @@ -482,7 +482,7 @@ export class InterconnectLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -585,7 +585,7 @@ export class InterconnectLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -636,7 +636,7 @@ export class InterconnectLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/interconnect_remote_locations_client.ts b/packages/google-cloud-compute/src/v1/interconnect_remote_locations_client.ts index d6e08d71fb6..61693111387 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_remote_locations_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_remote_locations_client.ts @@ -483,7 +483,7 @@ export class InterconnectRemoteLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -586,7 +586,7 @@ export class InterconnectRemoteLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -637,7 +637,7 @@ export class InterconnectRemoteLocationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/interconnects_client.ts b/packages/google-cloud-compute/src/v1/interconnects_client.ts index a2af7ee3965..0ac6df6a273 100644 --- a/packages/google-cloud-compute/src/v1/interconnects_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnects_client.ts @@ -1157,7 +1157,7 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1252,7 +1252,7 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1303,7 +1303,7 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/licenses_client.ts b/packages/google-cloud-compute/src/v1/licenses_client.ts index a7c49b4d0f0..2c09a285688 100644 --- a/packages/google-cloud-compute/src/v1/licenses_client.ts +++ b/packages/google-cloud-compute/src/v1/licenses_client.ts @@ -993,7 +993,7 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1090,7 +1090,7 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1141,7 +1141,7 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/machine_images_client.ts b/packages/google-cloud-compute/src/v1/machine_images_client.ts index bd29ec51ab0..20d4da53538 100644 --- a/packages/google-cloud-compute/src/v1/machine_images_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_images_client.ts @@ -1021,7 +1021,7 @@ export class MachineImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1116,7 +1116,7 @@ export class MachineImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1167,7 +1167,7 @@ export class MachineImagesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/machine_types_client.ts b/packages/google-cloud-compute/src/v1/machine_types_client.ts index 0fc9484ffd8..0fc837d24d8 100644 --- a/packages/google-cloud-compute/src/v1/machine_types_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_types_client.ts @@ -462,7 +462,7 @@ export class MachineTypesClient { } /** - * Retrieves an aggregated list of machine types. + * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -480,7 +480,7 @@ export class MachineTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -536,7 +536,7 @@ export class MachineTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -634,7 +634,7 @@ export class MachineTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -688,7 +688,7 @@ export class MachineTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/network_attachments_client.ts b/packages/google-cloud-compute/src/v1/network_attachments_client.ts index 96a25fa87ca..c5636420faa 100644 --- a/packages/google-cloud-compute/src/v1/network_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/network_attachments_client.ts @@ -1160,7 +1160,7 @@ export class NetworkAttachmentsClient { } /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1178,7 +1178,7 @@ export class NetworkAttachmentsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1236,7 +1236,7 @@ export class NetworkAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1336,7 +1336,7 @@ export class NetworkAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1390,7 +1390,7 @@ export class NetworkAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts b/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts index 2f05514d308..2e6d6d5545e 100644 --- a/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts +++ b/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts @@ -852,7 +852,7 @@ export class NetworkEdgeSecurityServicesClient { } /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -870,7 +870,7 @@ export class NetworkEdgeSecurityServicesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] diff --git a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts index 4a9a591d2fa..d1a3f34647c 100644 --- a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts @@ -1089,7 +1089,7 @@ export class NetworkEndpointGroupsClient { } /** - * Retrieves the list of network endpoint groups and sorts them by zone. + * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1107,7 +1107,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1163,7 +1163,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] @@ -1269,7 +1269,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] @@ -1323,7 +1323,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] @@ -1380,7 +1380,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] @@ -1491,7 +1491,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] @@ -1550,7 +1550,7 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/network_firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/network_firewall_policies_client.ts index bc42097d92c..c5aefa450e1 100644 --- a/packages/google-cloud-compute/src/v1/network_firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/network_firewall_policies_client.ts @@ -2105,7 +2105,7 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2200,7 +2200,7 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2251,7 +2251,7 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/networks_client.ts b/packages/google-cloud-compute/src/v1/networks_client.ts index 4720b312ea8..2d37741f7b7 100644 --- a/packages/google-cloud-compute/src/v1/networks_client.ts +++ b/packages/google-cloud-compute/src/v1/networks_client.ts @@ -1412,7 +1412,7 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1507,7 +1507,7 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1558,7 +1558,7 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1617,7 +1617,7 @@ export class NetworksClient { * @param {string} request.region * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1730,7 +1730,7 @@ export class NetworksClient { * @param {string} request.region * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1791,7 +1791,7 @@ export class NetworksClient { * @param {string} request.region * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/node_groups_client.ts b/packages/google-cloud-compute/src/v1/node_groups_client.ts index 4d53515b729..cfac5fdd63d 100644 --- a/packages/google-cloud-compute/src/v1/node_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/node_groups_client.ts @@ -1636,7 +1636,7 @@ export class NodeGroupsClient { } /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1654,7 +1654,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1710,7 +1710,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1808,7 +1808,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1862,7 +1862,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1917,7 +1917,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2020,7 +2020,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -2077,7 +2077,7 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/node_templates_client.ts b/packages/google-cloud-compute/src/v1/node_templates_client.ts index c326f9e5565..cb9fc79c064 100644 --- a/packages/google-cloud-compute/src/v1/node_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/node_templates_client.ts @@ -1028,7 +1028,7 @@ export class NodeTemplatesClient { } /** - * Retrieves an aggregated list of node templates. + * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1046,7 +1046,7 @@ export class NodeTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1104,7 +1104,7 @@ export class NodeTemplatesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1202,7 +1202,7 @@ export class NodeTemplatesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1256,7 +1256,7 @@ export class NodeTemplatesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/node_types_client.ts b/packages/google-cloud-compute/src/v1/node_types_client.ts index 1a77e1f0e5a..012d87d57dc 100644 --- a/packages/google-cloud-compute/src/v1/node_types_client.ts +++ b/packages/google-cloud-compute/src/v1/node_types_client.ts @@ -460,7 +460,7 @@ export class NodeTypesClient { } /** - * Retrieves an aggregated list of node types. + * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -478,7 +478,7 @@ export class NodeTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -534,7 +534,7 @@ export class NodeTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -632,7 +632,7 @@ export class NodeTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -686,7 +686,7 @@ export class NodeTypesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts b/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts index fc005c84ae5..f3e9978bf59 100644 --- a/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts +++ b/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts @@ -950,7 +950,7 @@ export class PacketMirroringsClient { } /** - * Retrieves an aggregated list of packetMirrorings. + * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -968,7 +968,7 @@ export class PacketMirroringsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1026,7 +1026,7 @@ export class PacketMirroringsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1126,7 +1126,7 @@ export class PacketMirroringsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1180,7 +1180,7 @@ export class PacketMirroringsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/projects_client.ts b/packages/google-cloud-compute/src/v1/projects_client.ts index 1ac1c000c8e..023bc49a6a4 100644 --- a/packages/google-cloud-compute/src/v1/projects_client.ts +++ b/packages/google-cloud-compute/src/v1/projects_client.ts @@ -264,6 +264,7 @@ export class ProjectsClient { 'listXpnHosts', 'moveDisk', 'moveInstance', + 'setCloudArmorTier', 'setCommonInstanceMetadata', 'setDefaultNetworkTier', 'setUsageExportBucket', @@ -1260,6 +1261,125 @@ export class ProjectsClient { } ); } + /** + * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest} request.projectsSetCloudArmorTierRequestResource + * The body resource for this request + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@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/projects.set_cloud_armor_tier.js + * region_tag:compute_v1_generated_Projects_SetCloudArmorTier_async + */ + setCloudArmorTier( + request?: protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + setCloudArmorTier( + request: protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setCloudArmorTier( + request: protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setCloudArmorTier( + request?: protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetCloudArmorTierProjectRequest + | 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 ?? '', + }); + this.initialize(); + return this.innerApiCalls + .setCloudArmorTier(request, options, callback) + .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, + ]; + } + ); + } /** * Sets metadata common to all instances within the specified project using the data included in the request. * @@ -1634,7 +1754,7 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1737,7 +1857,7 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1788,7 +1908,7 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1840,7 +1960,7 @@ export class ProjectsClient { * @param {google.cloud.compute.v1.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1937,7 +2057,7 @@ export class ProjectsClient { * @param {google.cloud.compute.v1.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1990,7 +2110,7 @@ export class ProjectsClient { * @param {google.cloud.compute.v1.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/projects_client_config.json b/packages/google-cloud-compute/src/v1/projects_client_config.json index 9863abe9f6b..16e213aac5d 100644 --- a/packages/google-cloud-compute/src/v1/projects_client_config.json +++ b/packages/google-cloud-compute/src/v1/projects_client_config.json @@ -60,6 +60,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "SetCloudArmorTier": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SetCommonInstanceMetadata": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts b/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts index 821b18cf224..b0e0b269dd4 100644 --- a/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts @@ -1092,7 +1092,7 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1195,7 +1195,7 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1246,7 +1246,7 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts index 2753bec1e67..e4c5a8500a6 100644 --- a/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts @@ -1100,7 +1100,7 @@ export class PublicDelegatedPrefixesClient { } /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1118,7 +1118,7 @@ export class PublicDelegatedPrefixesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1179,7 +1179,7 @@ export class PublicDelegatedPrefixesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1285,7 +1285,7 @@ export class PublicDelegatedPrefixesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1339,7 +1339,7 @@ export class PublicDelegatedPrefixesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts b/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts index c93363394fc..967ccedae04 100644 --- a/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts @@ -980,7 +980,7 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1080,7 +1080,7 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1134,7 +1134,7 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts index 3ca0abcf691..6fad24474fe 100644 --- a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts @@ -1540,7 +1540,7 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1638,7 +1638,7 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1692,7 +1692,7 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1745,7 +1745,7 @@ export class RegionBackendServicesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1851,7 +1851,7 @@ export class RegionBackendServicesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1905,7 +1905,7 @@ export class RegionBackendServicesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_commitments_client.ts b/packages/google-cloud-compute/src/v1/region_commitments_client.ts index 5b13ca0fb88..33e5207f6fa 100644 --- a/packages/google-cloud-compute/src/v1/region_commitments_client.ts +++ b/packages/google-cloud-compute/src/v1/region_commitments_client.ts @@ -724,7 +724,7 @@ export class RegionCommitmentsClient { } /** - * Retrieves an aggregated list of commitments by region. + * Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -742,7 +742,7 @@ export class RegionCommitmentsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -800,7 +800,7 @@ export class RegionCommitmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -898,7 +898,7 @@ export class RegionCommitmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -952,7 +952,7 @@ export class RegionCommitmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts index ce9a5c1456e..3b6cbe33504 100644 --- a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts @@ -480,7 +480,7 @@ export class RegionDiskTypesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -578,7 +578,7 @@ export class RegionDiskTypesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -632,7 +632,7 @@ export class RegionDiskTypesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_disks_client.ts b/packages/google-cloud-compute/src/v1/region_disks_client.ts index f0b050e98f0..dfe2bdbf7a0 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disks_client.ts @@ -2284,7 +2284,7 @@ export class RegionDisksClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2382,7 +2382,7 @@ export class RegionDisksClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2436,7 +2436,7 @@ export class RegionDisksClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts index 91f99227f9a..e1b8224d1a2 100644 --- a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts @@ -864,7 +864,7 @@ export class RegionHealthCheckServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -970,7 +970,7 @@ export class RegionHealthCheckServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1024,7 +1024,7 @@ export class RegionHealthCheckServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts index b588987001c..09590c975be 100644 --- a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts @@ -982,7 +982,7 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1080,7 +1080,7 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1134,7 +1134,7 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts index be28e5af053..79d60cc1516 100644 --- a/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts @@ -2264,7 +2264,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2370,7 +2370,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2424,7 +2424,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2479,7 +2479,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2588,7 +2588,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2645,7 +2645,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2701,7 +2701,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2810,7 +2810,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2867,7 +2867,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2923,7 +2923,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -3036,7 +3036,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -3093,7 +3093,7 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts b/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts index e82b67afbae..ceeef0e8907 100644 --- a/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts @@ -615,7 +615,7 @@ export class RegionInstanceGroupsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -721,7 +721,7 @@ export class RegionInstanceGroupsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -775,7 +775,7 @@ export class RegionInstanceGroupsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -832,7 +832,7 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -943,7 +943,7 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1002,7 +1002,7 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts b/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts index 412172a5c85..2b54e93358f 100644 --- a/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/region_instance_templates_client.ts @@ -737,7 +737,7 @@ export class RegionInstanceTemplatesClient { * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -837,7 +837,7 @@ export class RegionInstanceTemplatesClient { * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -891,7 +891,7 @@ export class RegionInstanceTemplatesClient { * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_instant_snapshots_client.ts b/packages/google-cloud-compute/src/v1/region_instant_snapshots_client.ts new file mode 100644 index 00000000000..d80803a9f40 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshots_client.ts @@ -0,0 +1,1386 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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'); + +/** + * Client JSON configuration object, loaded from + * `src/v1/region_instant_snapshots_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_instant_snapshots_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionInstantSnapshots API. + * @class + * @memberof v1 + */ +export class RegionInstantSnapshotsClient { + 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; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionInstantSnapshotsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionInstantSnapshotsClient. + * + * @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://developers.google.com/identity/protocols/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 RegionInstantSnapshotsClient({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 RegionInstantSnapshotsClient; + if ( + opts?.universe_domain && + opts?.universeDomain && + opts?.universe_domain !== opts?.universeDomain + ) { + throw new Error( + 'Please set either universe_domain or universeDomain, but not both.' + ); + } + this._universeDomain = + opts?.universeDomain ?? opts?.universe_domain ?? '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 !== 'undefined' && '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.RegionInstantSnapshots', + 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.regionInstantSnapshotsStub) { + return this.regionInstantSnapshotsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionInstantSnapshots. + this.regionInstantSnapshotsStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.RegionInstantSnapshots' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionInstantSnapshots, + 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 regionInstantSnapshotsStubMethods = [ + 'delete', + 'get', + 'getIamPolicy', + 'insert', + 'list', + 'setIamPolicy', + 'setLabels', + 'testIamPermissions', + ]; + for (const methodName of regionInstantSnapshotsStubMethods) { + const callPromise = this.regionInstantSnapshotsStub.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.regionInstantSnapshotsStub; + } + + /** + * 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 !== undefined && + 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 !== undefined && + 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 InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshot + * Name of the InstantSnapshot 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_snapshots.delete.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotRequest + | 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: request.instantSnapshot ?? '', + }); + this.initialize(); + return this.innerApiCalls + .delete(request, options, callback) + .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, + ]; + } + ); + } + /** + * Returns the specified InstantSnapshot resource in the specified region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshot + * Name of the InstantSnapshot 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.InstantSnapshot|InstantSnapshot}. + * 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_snapshots.get.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot, + ( + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IInstantSnapshot, + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot, + ( + | protos.google.cloud.compute.v1.IGetRegionInstantSnapshotRequest + | 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: request.instantSnapshot ?? '', + }); + this.initialize(); + return this.innerApiCalls.get(request, options, callback); + } + /** + * 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_snapshots.get_iam_policy.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotRequest + | 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(); + return this.innerApiCalls.getIamPolicy(request, options, callback); + } + /** + * Creates an instant snapshot in the specified region. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.InstantSnapshot} request.instantSnapshotResource + * 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 {object} [options] + * Call options. See {@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_snapshots.insert.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotRequest + | 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(); + return this.innerApiCalls + .insert(request, options, callback) + .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, + ]; + } + ); + } + /** + * 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_snapshots.set_iam_policy.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest + | 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(); + return this.innerApiCalls.setIamPolicy(request, options, callback); + } + /** + * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation. + * + * @param {Object} request + * The request object that will be sent. + * @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_instant_snapshots.set_labels.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_SetLabels_async + */ + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetLabelsRegionInstantSnapshotRequest + | 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(); + return this.innerApiCalls + .setLabels(request, options, callback) + .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, + ]; + } + ); + } + /** + * 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_snapshots.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | undefined + ), + {} | undefined, + ] + >; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest + | 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(); + return this.innerApiCalls.testIamPermissions(request, options, callback); + } + + /** + * Retrieves the list of InstantSnapshot resources contained within the specified region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `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.InstantSnapshot|InstantSnapshot}. + * 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.IListRegionInstantSnapshotsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot[], + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest | null, + protos.google.cloud.compute.v1.IInstantSnapshotList, + ] + >; + list( + request: protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + | protos.google.cloud.compute.v1.IInstantSnapshotList + | null + | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + protos.google.cloud.compute.v1.IInstantSnapshotList | null | undefined, + protos.google.cloud.compute.v1.IInstantSnapshot + > + ): Promise< + [ + protos.google.cloud.compute.v1.IInstantSnapshot[], + protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest | null, + protos.google.cloud.compute.v1.IInstantSnapshotList, + ] + > | 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(); + return this.innerApiCalls.list(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, 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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `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.InstantSnapshot|InstantSnapshot} 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.IListRegionInstantSnapshotsRequest, + 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(); + 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 on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `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.InstantSnapshot|InstantSnapshot}. 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_snapshots.list.js + * region_tag:compute_v1_generated_RegionInstantSnapshots_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionInstantSnapshotsRequest, + 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(); + 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.regionInstantSnapshotsStub && !this._terminated) { + return this.regionInstantSnapshotsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/region_instant_snapshots_client_config.json b/packages/google-cloud-compute/src/v1/region_instant_snapshots_client_config.json new file mode 100644 index 00000000000..ffdd3f09c6e --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshots_client_config.json @@ -0,0 +1,58 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionInstantSnapshots": { + "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" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_instant_snapshots_proto_list.json b/packages/google-cloud-compute/src/v1/region_instant_snapshots_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshots_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts index d128c82b206..2b1ab7484ae 100644 --- a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts @@ -996,7 +996,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1102,7 +1102,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1156,7 +1156,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1211,7 +1211,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1320,7 +1320,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1377,7 +1377,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.region * The name of the region where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_network_firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/region_network_firewall_policies_client.ts index b6cb72388f8..a12ec186989 100644 --- a/packages/google-cloud-compute/src/v1/region_network_firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_network_firewall_policies_client.ts @@ -2255,7 +2255,7 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -2353,7 +2353,7 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -2407,7 +2407,7 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts index f9ac132d98b..2e30411267f 100644 --- a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts +++ b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts @@ -738,7 +738,7 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -844,7 +844,7 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -898,7 +898,7 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_operations_client.ts b/packages/google-cloud-compute/src/v1/region_operations_client.ts index 2efd7a7543b..b7ce91f3e3a 100644 --- a/packages/google-cloud-compute/src/v1/region_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/region_operations_client.ts @@ -671,7 +671,7 @@ export class RegionOperationsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -769,7 +769,7 @@ export class RegionOperationsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -823,7 +823,7 @@ export class RegionOperationsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_security_policies_client.ts b/packages/google-cloud-compute/src/v1/region_security_policies_client.ts index 7a35cec7549..36ce42c0ecb 100644 --- a/packages/google-cloud-compute/src/v1/region_security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_security_policies_client.ts @@ -1352,7 +1352,7 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1450,7 +1450,7 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1504,7 +1504,7 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts index ed4d124bd4c..81a6cb3bbb4 100644 --- a/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts @@ -737,7 +737,7 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -835,7 +835,7 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -889,7 +889,7 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_ssl_policies_client.ts b/packages/google-cloud-compute/src/v1/region_ssl_policies_client.ts index 2b07566f21a..1fd5e1aa405 100644 --- a/packages/google-cloud-compute/src/v1/region_ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_ssl_policies_client.ts @@ -731,7 +731,7 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -966,7 +966,7 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1064,7 +1064,7 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1118,7 +1118,7 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts index bee16396a86..91f5bcd03c3 100644 --- a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts @@ -863,7 +863,7 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -963,7 +963,7 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1017,7 +1017,7 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts index 31d7001ed88..502d8546d1b 100644 --- a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts @@ -1116,7 +1116,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1216,7 +1216,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1270,7 +1270,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_tcp_proxies_client.ts index 008f5f8b285..3174a15af01 100644 --- a/packages/google-cloud-compute/src/v1/region_target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_tcp_proxies_client.ts @@ -737,7 +737,7 @@ export class RegionTargetTcpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -835,7 +835,7 @@ export class RegionTargetTcpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -889,7 +889,7 @@ export class RegionTargetTcpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts index 3a12bd6eac1..c7307596365 100644 --- a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts @@ -1075,7 +1075,7 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1173,7 +1173,7 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1227,7 +1227,7 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_zones_client.ts b/packages/google-cloud-compute/src/v1/region_zones_client.ts index 2f01467605e..d016c45d908 100644 --- a/packages/google-cloud-compute/src/v1/region_zones_client.ts +++ b/packages/google-cloud-compute/src/v1/region_zones_client.ts @@ -384,7 +384,7 @@ export class RegionZonesClient { * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -482,7 +482,7 @@ export class RegionZonesClient { * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -536,7 +536,7 @@ export class RegionZonesClient { * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/regions_client.ts b/packages/google-cloud-compute/src/v1/regions_client.ts index 9cecfb7e3ec..92b672b3c7c 100644 --- a/packages/google-cloud-compute/src/v1/regions_client.ts +++ b/packages/google-cloud-compute/src/v1/regions_client.ts @@ -467,7 +467,7 @@ export class RegionsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -562,7 +562,7 @@ export class RegionsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -613,7 +613,7 @@ export class RegionsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/reservations_client.ts b/packages/google-cloud-compute/src/v1/reservations_client.ts index 77e9ae9f251..572029a529a 100644 --- a/packages/google-cloud-compute/src/v1/reservations_client.ts +++ b/packages/google-cloud-compute/src/v1/reservations_client.ts @@ -1283,7 +1283,7 @@ export class ReservationsClient { } /** - * Retrieves an aggregated list of reservations. + * Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1301,7 +1301,7 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1357,7 +1357,7 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1455,7 +1455,7 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1509,7 +1509,7 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/resource_policies_client.ts b/packages/google-cloud-compute/src/v1/resource_policies_client.ts index 9fd03c11048..c21812c0d94 100644 --- a/packages/google-cloud-compute/src/v1/resource_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/resource_policies_client.ts @@ -1162,7 +1162,7 @@ export class ResourcePoliciesClient { } /** - * Retrieves an aggregated list of resource policies. + * Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1180,7 +1180,7 @@ export class ResourcePoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1238,7 +1238,7 @@ export class ResourcePoliciesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1336,7 +1336,7 @@ export class ResourcePoliciesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1390,7 +1390,7 @@ export class ResourcePoliciesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/routers_client.ts b/packages/google-cloud-compute/src/v1/routers_client.ts index 0918f563bbd..cb98e88fdc6 100644 --- a/packages/google-cloud-compute/src/v1/routers_client.ts +++ b/packages/google-cloud-compute/src/v1/routers_client.ts @@ -1232,7 +1232,7 @@ export class RoutersClient { } /** - * Retrieves an aggregated list of routers. + * Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1250,7 +1250,7 @@ export class RoutersClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1310,7 +1310,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.router * Name of the Router resource to query for Nat Mapping information of VM endpoints. * @param {object} [options] @@ -1421,7 +1421,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.router * Name of the Router resource to query for Nat Mapping information of VM endpoints. * @param {object} [options] @@ -1480,7 +1480,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.router * Name of the Router resource to query for Nat Mapping information of VM endpoints. * @param {object} [options] @@ -1536,7 +1536,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1634,7 +1634,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1688,7 +1688,7 @@ export class RoutersClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/routes_client.ts b/packages/google-cloud-compute/src/v1/routes_client.ts index 8830d35a0e4..7e6d3873706 100644 --- a/packages/google-cloud-compute/src/v1/routes_client.ts +++ b/packages/google-cloud-compute/src/v1/routes_client.ts @@ -690,7 +690,7 @@ export class RoutesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -785,7 +785,7 @@ export class RoutesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -836,7 +836,7 @@ export class RoutesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/security_policies_client.ts b/packages/google-cloud-compute/src/v1/security_policies_client.ts index 2df2516d080..63a19a031c3 100644 --- a/packages/google-cloud-compute/src/v1/security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/security_policies_client.ts @@ -950,7 +950,7 @@ export class SecurityPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1536,7 +1536,7 @@ export class SecurityPoliciesClient { } /** - * Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. + * Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1554,7 +1554,7 @@ export class SecurityPoliciesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1610,7 +1610,7 @@ export class SecurityPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1705,7 +1705,7 @@ export class SecurityPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1756,7 +1756,7 @@ export class SecurityPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/service_attachments_client.ts b/packages/google-cloud-compute/src/v1/service_attachments_client.ts index 32d36318cfe..217edd9ca66 100644 --- a/packages/google-cloud-compute/src/v1/service_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/service_attachments_client.ts @@ -1160,7 +1160,7 @@ export class ServiceAttachmentsClient { } /** - * Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. + * Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1178,7 +1178,7 @@ export class ServiceAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1236,7 +1236,7 @@ export class ServiceAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1336,7 +1336,7 @@ export class ServiceAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1390,7 +1390,7 @@ export class ServiceAttachmentsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/snapshots_client.ts b/packages/google-cloud-compute/src/v1/snapshots_client.ts index b41314dd12d..05e93af8b73 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1/snapshots_client.ts @@ -1114,7 +1114,7 @@ export class SnapshotsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1209,7 +1209,7 @@ export class SnapshotsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1260,7 +1260,7 @@ export class SnapshotsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts index 285d914092d..ad269772795 100644 --- a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts @@ -710,7 +710,7 @@ export class SslCertificatesClient { } /** - * Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. + * Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -728,7 +728,7 @@ export class SslCertificatesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -784,7 +784,7 @@ export class SslCertificatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -879,7 +879,7 @@ export class SslCertificatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -930,7 +930,7 @@ export class SslCertificatesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts index 6fabe438c7f..231a1da3199 100644 --- a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts @@ -708,7 +708,7 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -916,7 +916,7 @@ export class SslPoliciesClient { } /** - * Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. + * Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -934,7 +934,7 @@ export class SslPoliciesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -990,7 +990,7 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1085,7 +1085,7 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1136,7 +1136,7 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/subnetworks_client.ts b/packages/google-cloud-compute/src/v1/subnetworks_client.ts index c37befabb19..5bfe280e242 100644 --- a/packages/google-cloud-compute/src/v1/subnetworks_client.ts +++ b/packages/google-cloud-compute/src/v1/subnetworks_client.ts @@ -1396,7 +1396,7 @@ export class SubnetworksClient { } /** - * Retrieves an aggregated list of subnetworks. + * Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1414,7 +1414,7 @@ export class SubnetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1472,7 +1472,7 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1570,7 +1570,7 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1624,7 +1624,7 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1675,7 +1675,7 @@ export class SubnetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1778,7 +1778,7 @@ export class SubnetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1829,7 +1829,7 @@ export class SubnetworksClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts index 97fee3bad93..3c30cd4da0b 100644 --- a/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts @@ -842,7 +842,7 @@ export class TargetGrpcProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -939,7 +939,7 @@ export class TargetGrpcProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -990,7 +990,7 @@ export class TargetGrpcProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts index 42a30b4474c..ccf07b9022c 100644 --- a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts @@ -956,7 +956,7 @@ export class TargetHttpProxiesClient { } /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. + * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -974,7 +974,7 @@ export class TargetHttpProxiesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1030,7 +1030,7 @@ export class TargetHttpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1127,7 +1127,7 @@ export class TargetHttpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1178,7 +1178,7 @@ export class TargetHttpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts index 7dd63fcac93..fdf7c587fa8 100644 --- a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts @@ -1448,7 +1448,7 @@ export class TargetHttpsProxiesClient { } /** - * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. + * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1466,7 +1466,7 @@ export class TargetHttpsProxiesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1522,7 +1522,7 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1619,7 +1619,7 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1670,7 +1670,7 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_instances_client.ts b/packages/google-cloud-compute/src/v1/target_instances_client.ts index 400dcd08893..9beca0fbb58 100644 --- a/packages/google-cloud-compute/src/v1/target_instances_client.ts +++ b/packages/google-cloud-compute/src/v1/target_instances_client.ts @@ -845,7 +845,7 @@ export class TargetInstancesClient { } /** - * Retrieves an aggregated list of target instances. + * Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -863,7 +863,7 @@ export class TargetInstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -919,7 +919,7 @@ export class TargetInstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -1017,7 +1017,7 @@ export class TargetInstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -1071,7 +1071,7 @@ export class TargetInstancesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/target_pools_client.ts b/packages/google-cloud-compute/src/v1/target_pools_client.ts index 75d0fc0177e..14325c4711b 100644 --- a/packages/google-cloud-compute/src/v1/target_pools_client.ts +++ b/packages/google-cloud-compute/src/v1/target_pools_client.ts @@ -1570,7 +1570,7 @@ export class TargetPoolsClient { } /** - * Retrieves an aggregated list of target pools. + * Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1588,7 +1588,7 @@ export class TargetPoolsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1646,7 +1646,7 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1744,7 +1744,7 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1798,7 +1798,7 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts index aa6dca304f2..efb22ee1a04 100644 --- a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts @@ -1334,7 +1334,7 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1429,7 +1429,7 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1480,7 +1480,7 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts index 03772b2220e..b693449e4f6 100644 --- a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts @@ -956,7 +956,7 @@ export class TargetTcpProxiesClient { } /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. + * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -974,7 +974,7 @@ export class TargetTcpProxiesClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1030,7 +1030,7 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1125,7 +1125,7 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1176,7 +1176,7 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts index 2c4696aa90e..02debbaecc2 100644 --- a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts @@ -845,7 +845,7 @@ export class TargetVpnGatewaysClient { } /** - * Retrieves an aggregated list of target VPN gateways. + * Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -863,7 +863,7 @@ export class TargetVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -921,7 +921,7 @@ export class TargetVpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1021,7 +1021,7 @@ export class TargetVpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1075,7 +1075,7 @@ export class TargetVpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/url_maps_client.ts b/packages/google-cloud-compute/src/v1/url_maps_client.ts index 3c418904f4b..dc1d433aff5 100644 --- a/packages/google-cloud-compute/src/v1/url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/url_maps_client.ts @@ -1135,7 +1135,7 @@ export class UrlMapsClient { } /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified project. + * Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1153,7 +1153,7 @@ export class UrlMapsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1209,7 +1209,7 @@ export class UrlMapsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1304,7 +1304,7 @@ export class UrlMapsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1355,7 +1355,7 @@ export class UrlMapsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts index bb416780686..c38b793d911 100644 --- a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts @@ -1041,7 +1041,7 @@ export class VpnGatewaysClient { } /** - * Retrieves an aggregated list of VPN gateways. + * Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -1059,7 +1059,7 @@ export class VpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -1117,7 +1117,7 @@ export class VpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1215,7 +1215,7 @@ export class VpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1269,7 +1269,7 @@ export class VpnGatewaysClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts index bfaa13193f2..48601ac2434 100644 --- a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts @@ -827,7 +827,7 @@ export class VpnTunnelsClient { } /** - * Retrieves an aggregated list of VPN tunnels. + * Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -845,7 +845,7 @@ export class VpnTunnelsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success 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] @@ -903,7 +903,7 @@ export class VpnTunnelsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -1001,7 +1001,7 @@ export class VpnTunnelsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -1055,7 +1055,7 @@ export class VpnTunnelsClient { * @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. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/zone_operations_client.ts b/packages/google-cloud-compute/src/v1/zone_operations_client.ts index 1493c6b125c..143ad8708c2 100644 --- a/packages/google-cloud-compute/src/v1/zone_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/zone_operations_client.ts @@ -669,7 +669,7 @@ export class ZoneOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] @@ -767,7 +767,7 @@ export class ZoneOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] @@ -821,7 +821,7 @@ export class ZoneOperationsClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1/zones_client.ts b/packages/google-cloud-compute/src/v1/zones_client.ts index dd35649ab33..50ef2a8b6e7 100644 --- a/packages/google-cloud-compute/src/v1/zones_client.ts +++ b/packages/google-cloud-compute/src/v1/zones_client.ts @@ -467,7 +467,7 @@ export class ZonesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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. @@ -562,7 +562,7 @@ export class ZonesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an 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} @@ -613,7 +613,7 @@ export class ZonesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js index 2679f0c9034..f1de56e9558 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js @@ -47,6 +47,7 @@ function main() { const instanceGroupsClient = new compute.InstanceGroupsClient(); const instancesClient = new compute.InstancesClient(); const instanceTemplatesClient = new compute.InstanceTemplatesClient(); + const instantSnapshotsClient = new compute.InstantSnapshotsClient(); const interconnectAttachmentsClient = new compute.InterconnectAttachmentsClient(); const interconnectLocationsClient = new compute.InterconnectLocationsClient(); @@ -87,6 +88,8 @@ function main() { const regionInstancesClient = new compute.RegionInstancesClient(); const regionInstanceTemplatesClient = new compute.RegionInstanceTemplatesClient(); + const regionInstantSnapshotsClient = + new compute.RegionInstantSnapshotsClient(); const regionNetworkEndpointGroupsClient = new compute.RegionNetworkEndpointGroupsClient(); const regionNetworkFirewallPoliciesClient = diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts index ee0a1a8be10..2b142755f71 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts @@ -41,6 +41,7 @@ import { InstanceGroupsClient, InstancesClient, InstanceTemplatesClient, + InstantSnapshotsClient, InterconnectAttachmentsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, @@ -72,6 +73,7 @@ import { RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, + RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, @@ -196,6 +198,9 @@ function doStuffWithInstancesClient(client: InstancesClient) { function doStuffWithInstanceTemplatesClient(client: InstanceTemplatesClient) { client.close(); } +function doStuffWithInstantSnapshotsClient(client: InstantSnapshotsClient) { + client.close(); +} function doStuffWithInterconnectAttachmentsClient( client: InterconnectAttachmentsClient ) { @@ -315,6 +320,11 @@ function doStuffWithRegionInstanceTemplatesClient( ) { client.close(); } +function doStuffWithRegionInstantSnapshotsClient( + client: RegionInstantSnapshotsClient +) { + client.close(); +} function doStuffWithRegionNetworkEndpointGroupsClient( client: RegionNetworkEndpointGroupsClient ) { @@ -528,6 +538,9 @@ function main() { const instanceTemplatesClient = new InstanceTemplatesClient(); doStuffWithInstanceTemplatesClient(instanceTemplatesClient); // check that the client instance can be created + const instantSnapshotsClient = new InstantSnapshotsClient(); + doStuffWithInstantSnapshotsClient(instantSnapshotsClient); + // check that the client instance can be created const interconnectAttachmentsClient = new InterconnectAttachmentsClient(); doStuffWithInterconnectAttachmentsClient(interconnectAttachmentsClient); // check that the client instance can be created @@ -630,6 +643,9 @@ function main() { const regionInstanceTemplatesClient = new RegionInstanceTemplatesClient(); doStuffWithRegionInstanceTemplatesClient(regionInstanceTemplatesClient); // check that the client instance can be created + const regionInstantSnapshotsClient = new RegionInstantSnapshotsClient(); + doStuffWithRegionInstantSnapshotsClient(regionInstantSnapshotsClient); + // check that the client instance can be created const regionNetworkEndpointGroupsClient = new RegionNetworkEndpointGroupsClient(); doStuffWithRegionNetworkEndpointGroupsClient( diff --git a/packages/google-cloud-compute/test/gapic_accelerator_types_v1.ts b/packages/google-cloud-compute/test/gapic_accelerator_types_v1.ts index 9b4f41a0104..81b85575c94 100644 --- a/packages/google-cloud-compute/test/gapic_accelerator_types_v1.ts +++ b/packages/google-cloud-compute/test/gapic_accelerator_types_v1.ts @@ -504,9 +504,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -546,9 +546,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -746,9 +746,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -802,9 +802,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -855,9 +855,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -901,9 +901,9 @@ describe('v1.AcceleratorTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_addresses_v1.ts b/packages/google-cloud-compute/test/gapic_addresses_v1.ts index 406a6c36f71..1f398520d11 100644 --- a/packages/google-cloud-compute/test/gapic_addresses_v1.ts +++ b/packages/google-cloud-compute/test/gapic_addresses_v1.ts @@ -1146,9 +1146,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1188,9 +1188,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1370,9 +1370,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1426,9 +1426,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1473,9 +1473,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1519,9 +1519,9 @@ describe('v1.AddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_addresses_v1small.ts b/packages/google-cloud-compute/test/gapic_addresses_v1small.ts index c1897b2ecd1..ebd3b87082e 100644 --- a/packages/google-cloud-compute/test/gapic_addresses_v1small.ts +++ b/packages/google-cloud-compute/test/gapic_addresses_v1small.ts @@ -653,9 +653,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -695,9 +695,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -895,9 +895,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -951,9 +951,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1004,9 +1004,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1050,9 +1050,9 @@ describe('v1small.AddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_autoscalers_v1.ts b/packages/google-cloud-compute/test/gapic_autoscalers_v1.ts index 9545944d9cd..898698fdb32 100644 --- a/packages/google-cloud-compute/test/gapic_autoscalers_v1.ts +++ b/packages/google-cloud-compute/test/gapic_autoscalers_v1.ts @@ -1106,9 +1106,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1148,9 +1148,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1330,9 +1330,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1386,9 +1386,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1433,9 +1433,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1479,9 +1479,9 @@ describe('v1.AutoscalersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); 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 5b9c9081979..0d91435d680 100644 --- a/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts +++ b/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts @@ -2075,9 +2075,9 @@ describe('v1.BackendBucketsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2126,9 +2126,9 @@ describe('v1.BackendBucketsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2174,9 +2174,9 @@ describe('v1.BackendBucketsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2215,9 +2215,9 @@ describe('v1.BackendBucketsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_backend_services_v1.ts b/packages/google-cloud-compute/test/gapic_backend_services_v1.ts index 4dfcba562cc..d97f7c9fb56 100644 --- a/packages/google-cloud-compute/test/gapic_backend_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_backend_services_v1.ts @@ -2254,9 +2254,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2296,9 +2296,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2476,9 +2476,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2527,9 +2527,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2575,9 +2575,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2616,9 +2616,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2803,9 +2803,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2854,9 +2854,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2903,9 +2903,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2945,9 +2945,9 @@ describe('v1.BackendServicesClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_disk_types_v1.ts b/packages/google-cloud-compute/test/gapic_disk_types_v1.ts index 9b71f129aea..89a05d3de7f 100644 --- a/packages/google-cloud-compute/test/gapic_disk_types_v1.ts +++ b/packages/google-cloud-compute/test/gapic_disk_types_v1.ts @@ -502,9 +502,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -544,9 +544,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -726,9 +726,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -782,9 +782,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -829,9 +829,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -875,9 +875,9 @@ describe('v1.DiskTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .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 45308940534..3d2db01b87e 100644 --- a/packages/google-cloud-compute/test/gapic_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_disks_v1.ts @@ -3001,9 +3001,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3043,9 +3043,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -3222,9 +3222,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3275,9 +3275,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3322,9 +3322,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3368,9 +3368,9 @@ describe('v1.DisksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_external_vpn_gateways_v1.ts b/packages/google-cloud-compute/test/gapic_external_vpn_gateways_v1.ts index 0ca52bc498e..325a6a87892 100644 --- a/packages/google-cloud-compute/test/gapic_external_vpn_gateways_v1.ts +++ b/packages/google-cloud-compute/test/gapic_external_vpn_gateways_v1.ts @@ -1238,9 +1238,9 @@ describe('v1.ExternalVpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1292,9 +1292,9 @@ describe('v1.ExternalVpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1343,9 +1343,9 @@ describe('v1.ExternalVpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1387,9 +1387,9 @@ describe('v1.ExternalVpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_firewalls_v1.ts b/packages/google-cloud-compute/test/gapic_firewalls_v1.ts index 66d57da8c6b..ac90af3b91f 100644 --- a/packages/google-cloud-compute/test/gapic_firewalls_v1.ts +++ b/packages/google-cloud-compute/test/gapic_firewalls_v1.ts @@ -1146,9 +1146,9 @@ describe('v1.FirewallsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1197,9 +1197,9 @@ describe('v1.FirewallsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1239,9 +1239,9 @@ describe('v1.FirewallsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1280,9 +1280,9 @@ describe('v1.FirewallsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_forwarding_rules_v1.ts b/packages/google-cloud-compute/test/gapic_forwarding_rules_v1.ts index d74f4263258..41430cd1325 100644 --- a/packages/google-cloud-compute/test/gapic_forwarding_rules_v1.ts +++ b/packages/google-cloud-compute/test/gapic_forwarding_rules_v1.ts @@ -1315,9 +1315,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1357,9 +1357,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1557,9 +1557,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1613,9 +1613,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1666,9 +1666,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1712,9 +1712,9 @@ describe('v1.ForwardingRulesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_global_addresses_v1.ts b/packages/google-cloud-compute/test/gapic_global_addresses_v1.ts index 4629f9fa65f..828d5e1278c 100644 --- a/packages/google-cloud-compute/test/gapic_global_addresses_v1.ts +++ b/packages/google-cloud-compute/test/gapic_global_addresses_v1.ts @@ -1148,9 +1148,9 @@ describe('v1.GlobalAddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1199,9 +1199,9 @@ describe('v1.GlobalAddressesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1241,9 +1241,9 @@ describe('v1.GlobalAddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1282,9 +1282,9 @@ describe('v1.GlobalAddressesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_global_forwarding_rules_v1.ts b/packages/google-cloud-compute/test/gapic_global_forwarding_rules_v1.ts index 136b9a53123..69af20d5027 100644 --- a/packages/google-cloud-compute/test/gapic_global_forwarding_rules_v1.ts +++ b/packages/google-cloud-compute/test/gapic_global_forwarding_rules_v1.ts @@ -1355,9 +1355,9 @@ describe('v1.GlobalForwardingRulesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1407,9 +1407,9 @@ describe('v1.GlobalForwardingRulesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1456,9 +1456,9 @@ describe('v1.GlobalForwardingRulesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1498,9 +1498,9 @@ describe('v1.GlobalForwardingRulesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_global_network_endpoint_groups_v1.ts b/packages/google-cloud-compute/test/gapic_global_network_endpoint_groups_v1.ts index 013e0d73abc..dbb04c9ff2a 100644 --- a/packages/google-cloud-compute/test/gapic_global_network_endpoint_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_global_network_endpoint_groups_v1.ts @@ -1291,9 +1291,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1346,9 +1346,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1398,9 +1398,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1443,9 +1443,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1668,9 +1668,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1728,9 +1728,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1786,9 +1786,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1835,9 +1835,9 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_global_operations_v1.ts b/packages/google-cloud-compute/test/gapic_global_operations_v1.ts index 88d78243e9d..d3a4b3ec006 100644 --- a/packages/google-cloud-compute/test/gapic_global_operations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_global_operations_v1.ts @@ -774,9 +774,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -816,9 +816,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -978,9 +978,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1029,9 +1029,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1071,9 +1071,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1112,9 +1112,9 @@ describe('v1.GlobalOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_global_public_delegated_prefixes_v1.ts b/packages/google-cloud-compute/test/gapic_global_public_delegated_prefixes_v1.ts index a15701c54a7..9b2d2c1d752 100644 --- a/packages/google-cloud-compute/test/gapic_global_public_delegated_prefixes_v1.ts +++ b/packages/google-cloud-compute/test/gapic_global_public_delegated_prefixes_v1.ts @@ -1108,9 +1108,9 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1163,9 +1163,9 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1215,9 +1215,9 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1260,9 +1260,9 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_health_checks_v1.ts b/packages/google-cloud-compute/test/gapic_health_checks_v1.ts index c06f9b63083..1eae7ed381b 100644 --- a/packages/google-cloud-compute/test/gapic_health_checks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_health_checks_v1.ts @@ -1048,9 +1048,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1090,9 +1090,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1252,9 +1252,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1303,9 +1303,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1345,9 +1345,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1386,9 +1386,9 @@ describe('v1.HealthChecksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_images_v1.ts b/packages/google-cloud-compute/test/gapic_images_v1.ts index ab2664d1189..8a590a137d3 100644 --- a/packages/google-cloud-compute/test/gapic_images_v1.ts +++ b/packages/google-cloud-compute/test/gapic_images_v1.ts @@ -1891,9 +1891,9 @@ describe('v1.ImagesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1939,9 +1939,9 @@ describe('v1.ImagesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1981,9 +1981,9 @@ describe('v1.ImagesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2022,9 +2022,9 @@ describe('v1.ImagesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1.ts b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1.ts index 7976dcb2d94..0c068531414 100644 --- a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1.ts @@ -2955,9 +2955,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3001,9 +3001,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -3208,9 +3208,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3266,9 +3266,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3321,9 +3321,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3369,9 +3369,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -3605,9 +3605,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3670,9 +3670,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3731,9 +3731,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3785,9 +3785,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -4017,9 +4017,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4077,9 +4077,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4137,9 +4137,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4188,9 +4188,9 @@ describe('v1.InstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_instance_groups_v1.ts b/packages/google-cloud-compute/test/gapic_instance_groups_v1.ts index 45f7927880f..9c5a4ab602b 100644 --- a/packages/google-cloud-compute/test/gapic_instance_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instance_groups_v1.ts @@ -1328,9 +1328,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1370,9 +1370,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1570,9 +1570,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1626,9 +1626,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1679,9 +1679,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1725,9 +1725,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1955,9 +1955,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2015,9 +2015,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2075,9 +2075,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2126,9 +2126,9 @@ describe('v1.InstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts b/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts index 58c8bb29d1b..7b89cd8b9ac 100644 --- a/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instance_templates_v1.ts @@ -1209,9 +1209,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1251,9 +1251,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1431,9 +1431,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1482,9 +1482,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1530,9 +1530,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1572,9 +1572,9 @@ describe('v1.InstanceTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_instances_v1.ts b/packages/google-cloud-compute/test/gapic_instances_v1.ts index 8609890df4d..e14205e0ac4 100644 --- a/packages/google-cloud-compute/test/gapic_instances_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instances_v1.ts @@ -7977,9 +7977,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8019,9 +8019,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -8201,9 +8201,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8257,9 +8257,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8304,9 +8304,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8350,9 +8350,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -8559,9 +8559,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.listReferrers.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8618,9 +8618,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.listReferrers.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8671,9 +8671,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.listReferrers.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -8721,9 +8721,9 @@ describe('v1.InstancesClient', () => { assert( (client.descriptors.page.listReferrers.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_instant_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_instant_snapshots_v1.ts new file mode 100644 index 00000000000..f10ffef2792 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_instant_snapshots_v1.ts @@ -0,0 +1,1902 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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 instantsnapshotsModule 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.InstantSnapshotsClient', () => { + 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 instantsnapshotsModule.v1.InstantSnapshotsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, 'googleapis.com'); + }); + + if ( + typeof process !== 'undefined' && + typeof process.emitWarning === 'function' + ) { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = + instantsnapshotsModule.v1.InstantSnapshotsClient.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 = + instantsnapshotsModule.v1.InstantSnapshotsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + universeDomain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + universe_domain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { + new instantsnapshotsModule.v1.InstantSnapshotsClient({ + universe_domain: 'example.com', + universeDomain: 'example.net', + }); + }); + }); + + it('has port', () => { + const port = instantsnapshotsModule.v1.InstantSnapshotsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotsStub, undefined); + await client.initialize(); + assert(client.instantSnapshotsStub); + }); + + it('has close method for the initialized client', done => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.instantSnapshotsStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotsStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_snapshot=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ); + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_snapshot=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstantSnapshot | 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instant_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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('setLabels', () => { + it('invokes setLabels without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLabels(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + it('uses async iteration with aggregatedList without error', async () => { + const client = new instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = [ + [ + 'tuple_key_1', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotsScopedList() + ), + ], + [ + 'tuple_key_2', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotsScopedList() + ), + ], + [ + 'tuple_key_3', + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotsScopedList() + ), + ], + ]; + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: Array< + [string, protos.google.cloud.compute.v1.IInstantSnapshotsScopedList] + > = []; + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest', + ['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.IInstantSnapshotsScopedList] + > = []; + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['zone'] + ); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['zone'] + ); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstantSnapshot[] | 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['zone'] + ); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + 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.InstantSnapshot[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstantSnapshot) => { + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['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.InstantSnapshot[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstantSnapshot) => { + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['zone'] + ); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstantSnapshot[] = []; + 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 instantsnapshotsModule.v1.InstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListInstantSnapshotsRequest', + ['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.IInstantSnapshot[] = []; + 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_interconnect_attachments_v1.ts b/packages/google-cloud-compute/test/gapic_interconnect_attachments_v1.ts index 11995897c20..4a384204c49 100644 --- a/packages/google-cloud-compute/test/gapic_interconnect_attachments_v1.ts +++ b/packages/google-cloud-compute/test/gapic_interconnect_attachments_v1.ts @@ -1186,9 +1186,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1232,9 +1232,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1439,9 +1439,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1497,9 +1497,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1552,9 +1552,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1600,9 +1600,9 @@ describe('v1.InterconnectAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_interconnect_locations_v1.ts b/packages/google-cloud-compute/test/gapic_interconnect_locations_v1.ts index 0cf7422fbaf..f92c63a6f2c 100644 --- a/packages/google-cloud-compute/test/gapic_interconnect_locations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_interconnect_locations_v1.ts @@ -627,9 +627,9 @@ describe('v1.InterconnectLocationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -680,9 +680,9 @@ describe('v1.InterconnectLocationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -730,9 +730,9 @@ describe('v1.InterconnectLocationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -773,9 +773,9 @@ describe('v1.InterconnectLocationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_interconnect_remote_locations_v1.ts b/packages/google-cloud-compute/test/gapic_interconnect_remote_locations_v1.ts index 975fd06847d..7b2defb312e 100644 --- a/packages/google-cloud-compute/test/gapic_interconnect_remote_locations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_interconnect_remote_locations_v1.ts @@ -657,9 +657,9 @@ describe('v1.InterconnectRemoteLocationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -714,9 +714,9 @@ describe('v1.InterconnectRemoteLocationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -766,9 +766,9 @@ describe('v1.InterconnectRemoteLocationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -811,9 +811,9 @@ describe('v1.InterconnectRemoteLocationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_interconnects_v1.ts b/packages/google-cloud-compute/test/gapic_interconnects_v1.ts index 0746e88153d..66793b43936 100644 --- a/packages/google-cloud-compute/test/gapic_interconnects_v1.ts +++ b/packages/google-cloud-compute/test/gapic_interconnects_v1.ts @@ -1466,9 +1466,9 @@ describe('v1.InterconnectsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1517,9 +1517,9 @@ describe('v1.InterconnectsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1565,9 +1565,9 @@ describe('v1.InterconnectsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1606,9 +1606,9 @@ describe('v1.InterconnectsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_licenses_v1.ts b/packages/google-cloud-compute/test/gapic_licenses_v1.ts index e4f1e6f3a15..8652c51c467 100644 --- a/packages/google-cloud-compute/test/gapic_licenses_v1.ts +++ b/packages/google-cloud-compute/test/gapic_licenses_v1.ts @@ -1307,9 +1307,9 @@ describe('v1.LicensesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1358,9 +1358,9 @@ describe('v1.LicensesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1400,9 +1400,9 @@ describe('v1.LicensesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1441,9 +1441,9 @@ describe('v1.LicensesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_machine_images_v1.ts b/packages/google-cloud-compute/test/gapic_machine_images_v1.ts index 0b02f83da41..b41223be790 100644 --- a/packages/google-cloud-compute/test/gapic_machine_images_v1.ts +++ b/packages/google-cloud-compute/test/gapic_machine_images_v1.ts @@ -1327,9 +1327,9 @@ describe('v1.MachineImagesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1378,9 +1378,9 @@ describe('v1.MachineImagesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1426,9 +1426,9 @@ describe('v1.MachineImagesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1467,9 +1467,9 @@ describe('v1.MachineImagesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_machine_types_v1.ts b/packages/google-cloud-compute/test/gapic_machine_types_v1.ts index fbf3bd65c91..01c3c411eda 100644 --- a/packages/google-cloud-compute/test/gapic_machine_types_v1.ts +++ b/packages/google-cloud-compute/test/gapic_machine_types_v1.ts @@ -504,9 +504,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -546,9 +546,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -728,9 +728,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -784,9 +784,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -831,9 +831,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -877,9 +877,9 @@ describe('v1.MachineTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts b/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts index a5728864782..831bcf550e7 100644 --- a/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts +++ b/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts @@ -1492,9 +1492,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1534,9 +1534,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1735,9 +1735,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1792,9 +1792,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1845,9 +1845,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1892,9 +1892,9 @@ describe('v1.NetworkAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_network_edge_security_services_v1.ts b/packages/google-cloud-compute/test/gapic_network_edge_security_services_v1.ts index 2543e54835c..ff101d7e9e6 100644 --- a/packages/google-cloud-compute/test/gapic_network_edge_security_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_network_edge_security_services_v1.ts @@ -1061,9 +1061,9 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1109,9 +1109,9 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_network_endpoint_groups_v1.ts b/packages/google-cloud-compute/test/gapic_network_endpoint_groups_v1.ts index f512d9f7b17..7238b919941 100644 --- a/packages/google-cloud-compute/test/gapic_network_endpoint_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_network_endpoint_groups_v1.ts @@ -1385,9 +1385,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1431,9 +1431,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1638,9 +1638,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1696,9 +1696,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1751,9 +1751,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1799,9 +1799,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2036,9 +2036,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2099,9 +2099,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2160,9 +2160,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2212,9 +2212,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_network_firewall_policies_v1.ts b/packages/google-cloud-compute/test/gapic_network_firewall_policies_v1.ts index f6cf94adcc1..6b9086d3925 100644 --- a/packages/google-cloud-compute/test/gapic_network_firewall_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_network_firewall_policies_v1.ts @@ -2739,9 +2739,9 @@ describe('v1.NetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2791,9 +2791,9 @@ describe('v1.NetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2840,9 +2840,9 @@ describe('v1.NetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2882,9 +2882,9 @@ describe('v1.NetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_networks_v1.ts b/packages/google-cloud-compute/test/gapic_networks_v1.ts index 2857d54b2e3..b5ce30dfaf4 100644 --- a/packages/google-cloud-compute/test/gapic_networks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_networks_v1.ts @@ -1757,9 +1757,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1808,9 +1808,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1850,9 +1850,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1891,9 +1891,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2101,9 +2101,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2156,9 +2156,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.listPeeringRoutes.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2211,9 +2211,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2257,9 +2257,9 @@ describe('v1.NetworksClient', () => { assert( (client.descriptors.page.listPeeringRoutes.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_node_groups_v1.ts b/packages/google-cloud-compute/test/gapic_node_groups_v1.ts index 43d7c3362ad..baf2401e0e9 100644 --- a/packages/google-cloud-compute/test/gapic_node_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_node_groups_v1.ts @@ -2174,9 +2174,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2216,9 +2216,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2398,9 +2398,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2454,9 +2454,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2501,9 +2501,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2547,9 +2547,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2771,9 +2771,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.listNodes.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2832,9 +2832,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.listNodes.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2890,9 +2890,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.listNodes.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2941,9 +2941,9 @@ describe('v1.NodeGroupsClient', () => { assert( (client.descriptors.page.listNodes.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_node_templates_v1.ts b/packages/google-cloud-compute/test/gapic_node_templates_v1.ts index 6828eb35a13..c8748ef4bf5 100644 --- a/packages/google-cloud-compute/test/gapic_node_templates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_node_templates_v1.ts @@ -1329,9 +1329,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1371,9 +1371,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1571,9 +1571,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1627,9 +1627,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1680,9 +1680,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1726,9 +1726,9 @@ describe('v1.NodeTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_node_types_v1.ts b/packages/google-cloud-compute/test/gapic_node_types_v1.ts index 96cf7da9a91..62ba87f259c 100644 --- a/packages/google-cloud-compute/test/gapic_node_types_v1.ts +++ b/packages/google-cloud-compute/test/gapic_node_types_v1.ts @@ -502,9 +502,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -544,9 +544,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -726,9 +726,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -782,9 +782,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -829,9 +829,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -875,9 +875,9 @@ describe('v1.NodeTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_packet_mirrorings_v1.ts b/packages/google-cloud-compute/test/gapic_packet_mirrorings_v1.ts index 8779077bb6a..b6839185f57 100644 --- a/packages/google-cloud-compute/test/gapic_packet_mirrorings_v1.ts +++ b/packages/google-cloud-compute/test/gapic_packet_mirrorings_v1.ts @@ -1152,9 +1152,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1194,9 +1194,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1394,9 +1394,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1450,9 +1450,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1503,9 +1503,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1549,9 +1549,9 @@ describe('v1.PacketMirroringsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_projects_v1.ts b/packages/google-cloud-compute/test/gapic_projects_v1.ts index 208cb84232a..cc5d5d7f625 100644 --- a/packages/google-cloud-compute/test/gapic_projects_v1.ts +++ b/packages/google-cloud-compute/test/gapic_projects_v1.ts @@ -1315,6 +1315,136 @@ describe('v1.ProjectsClient', () => { }); }); + describe('setCloudArmorTier', () => { + it('invokes setCloudArmorTier without error', async () => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetCloudArmorTierProjectRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetCloudArmorTierProjectRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setCloudArmorTier = stubSimpleCall(expectedResponse); + const [response] = await client.setCloudArmorTier(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = ( + client.innerApiCalls.setCloudArmorTier as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setCloudArmorTier as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setCloudArmorTier without error using callback', async () => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetCloudArmorTierProjectRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetCloudArmorTierProjectRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setCloudArmorTier = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setCloudArmorTier( + 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.setCloudArmorTier as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setCloudArmorTier as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setCloudArmorTier with error', async () => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetCloudArmorTierProjectRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetCloudArmorTierProjectRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.setCloudArmorTier = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.setCloudArmorTier(request), expectedError); + const actualRequest = ( + client.innerApiCalls.setCloudArmorTier as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setCloudArmorTier as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setCloudArmorTier with closed client', async () => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetCloudArmorTierProjectRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetCloudArmorTierProjectRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setCloudArmorTier(request), expectedError); + }); + }); + describe('setCommonInstanceMetadata', () => { it('invokes setCommonInstanceMetadata without error', async () => { const client = new projectsModule.v1.ProjectsClient({ @@ -1900,9 +2030,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.getXpnResources.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1949,9 +2079,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.getXpnResources.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1998,9 +2128,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.getXpnResources.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2038,9 +2168,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.getXpnResources.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2207,9 +2337,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.listXpnHosts.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2258,9 +2388,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.listXpnHosts.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2301,9 +2431,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.listXpnHosts.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2341,9 +2471,9 @@ describe('v1.ProjectsClient', () => { assert( (client.descriptors.page.listXpnHosts.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_public_advertised_prefixes_v1.ts b/packages/google-cloud-compute/test/gapic_public_advertised_prefixes_v1.ts index c0cca657afb..427ec52000b 100644 --- a/packages/google-cloud-compute/test/gapic_public_advertised_prefixes_v1.ts +++ b/packages/google-cloud-compute/test/gapic_public_advertised_prefixes_v1.ts @@ -1358,9 +1358,9 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1411,9 +1411,9 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1461,9 +1461,9 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1504,9 +1504,9 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_public_delegated_prefixes_v1.ts b/packages/google-cloud-compute/test/gapic_public_delegated_prefixes_v1.ts index a87861a4319..7d92e36352c 100644 --- a/packages/google-cloud-compute/test/gapic_public_delegated_prefixes_v1.ts +++ b/packages/google-cloud-compute/test/gapic_public_delegated_prefixes_v1.ts @@ -1357,9 +1357,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1403,9 +1403,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1610,9 +1610,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1668,9 +1668,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1723,9 +1723,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1771,9 +1771,9 @@ describe('v1.PublicDelegatedPrefixesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_autoscalers_v1.ts b/packages/google-cloud-compute/test/gapic_region_autoscalers_v1.ts index 92686bc494e..a341bc430c1 100644 --- a/packages/google-cloud-compute/test/gapic_region_autoscalers_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_autoscalers_v1.ts @@ -1228,9 +1228,9 @@ describe('v1.RegionAutoscalersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1284,9 +1284,9 @@ describe('v1.RegionAutoscalersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1331,9 +1331,9 @@ describe('v1.RegionAutoscalersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1377,9 +1377,9 @@ describe('v1.RegionAutoscalersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_backend_services_v1.ts b/packages/google-cloud-compute/test/gapic_region_backend_services_v1.ts index e136693bda0..c8de867da51 100644 --- a/packages/google-cloud-compute/test/gapic_region_backend_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_backend_services_v1.ts @@ -2192,9 +2192,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2249,9 +2249,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2303,9 +2303,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2350,9 +2350,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2561,9 +2561,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2618,9 +2618,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2673,9 +2673,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2721,9 +2721,9 @@ describe('v1.RegionBackendServicesClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts b/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts index 285132d78b7..c496b7f2a8e 100644 --- a/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts @@ -818,9 +818,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -860,9 +860,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1042,9 +1042,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1098,9 +1098,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1145,9 +1145,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1191,9 +1191,9 @@ describe('v1.RegionCommitmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_disk_types_v1.ts b/packages/google-cloud-compute/test/gapic_region_disk_types_v1.ts index a33a48f405f..df7910c233b 100644 --- a/packages/google-cloud-compute/test/gapic_region_disk_types_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_disk_types_v1.ts @@ -624,9 +624,9 @@ describe('v1.RegionDiskTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -680,9 +680,9 @@ describe('v1.RegionDiskTypesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -727,9 +727,9 @@ describe('v1.RegionDiskTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -773,9 +773,9 @@ describe('v1.RegionDiskTypesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); 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 7bd8d4d10d4..b575d547f41 100644 --- a/packages/google-cloud-compute/test/gapic_region_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_disks_v1.ts @@ -3118,9 +3118,9 @@ describe('v1.RegionDisksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3171,9 +3171,9 @@ describe('v1.RegionDisksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3218,9 +3218,9 @@ describe('v1.RegionDisksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3264,9 +3264,9 @@ describe('v1.RegionDisksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts index ccd6610507c..bbf3bd6d99a 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts @@ -1154,9 +1154,9 @@ describe('v1.RegionHealthCheckServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1212,9 +1212,9 @@ describe('v1.RegionHealthCheckServicesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1267,9 +1267,9 @@ describe('v1.RegionHealthCheckServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1315,9 +1315,9 @@ describe('v1.RegionHealthCheckServicesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_health_checks_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_checks_v1.ts index 921655e88cf..b766179ff9b 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_checks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_checks_v1.ts @@ -1268,9 +1268,9 @@ describe('v1.RegionHealthChecksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1324,9 +1324,9 @@ describe('v1.RegionHealthChecksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1371,9 +1371,9 @@ describe('v1.RegionHealthChecksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1417,9 +1417,9 @@ describe('v1.RegionHealthChecksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_instance_group_managers_v1.ts b/packages/google-cloud-compute/test/gapic_region_instance_group_managers_v1.ts index 2971d71da3a..431742c8219 100644 --- a/packages/google-cloud-compute/test/gapic_region_instance_group_managers_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_instance_group_managers_v1.ts @@ -3236,9 +3236,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3296,9 +3296,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3353,9 +3353,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3403,9 +3403,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -3647,9 +3647,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3714,9 +3714,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3777,9 +3777,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3833,9 +3833,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listErrors.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -4073,9 +4073,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4135,9 +4135,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4197,9 +4197,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -4250,9 +4250,9 @@ describe('v1.RegionInstanceGroupManagersClient', () => { assert( (client.descriptors.page.listManagedInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_instance_groups_v1.ts b/packages/google-cloud-compute/test/gapic_region_instance_groups_v1.ts index cbddd59fbbb..abe6fd1d9f7 100644 --- a/packages/google-cloud-compute/test/gapic_region_instance_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_instance_groups_v1.ts @@ -836,9 +836,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -893,9 +893,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -947,9 +947,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -994,9 +994,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1228,9 +1228,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1289,9 +1289,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1350,9 +1350,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1402,9 +1402,9 @@ describe('v1.RegionInstanceGroupsClient', () => { assert( (client.descriptors.page.listInstances.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts b/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts index 0ed2e2a50cb..4a904fb2af6 100644 --- a/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_instance_templates_v1.ts @@ -986,9 +986,9 @@ describe('v1.RegionInstanceTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1043,9 +1043,9 @@ describe('v1.RegionInstanceTemplatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1097,9 +1097,9 @@ describe('v1.RegionInstanceTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1145,9 +1145,9 @@ describe('v1.RegionInstanceTemplatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_instant_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_region_instant_snapshots_v1.ts new file mode 100644 index 00000000000..0361aaa7305 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_instant_snapshots_v1.ts @@ -0,0 +1,1847 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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 regioninstantsnapshotsModule 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.RegionInstantSnapshotsClient', () => { + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, 'googleapis.com'); + }); + + if ( + typeof process !== 'undefined' && + typeof process.emitWarning === 'function' + ) { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = + regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient + .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 = + regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient + .apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + universeDomain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + universe_domain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + universe_domain: 'example.com', + universeDomain: 'example.net', + }); + }); + }); + + it('has port', () => { + const port = + regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotsStub, undefined); + await client.initialize(); + assert(client.regionInstantSnapshotsStub); + }); + + it('has close method for the initialized client', done => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionInstantSnapshotsStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotsStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_snapshot=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ); + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_snapshot=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstantSnapshot | 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&instant_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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetRegionInstantSnapshotRequest', + ['instantSnapshot'] + ); + request.instantSnapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('setLabels', () => { + it('invokes setLabels without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetLabelsRegionInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLabels(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = + new regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IInstantSnapshot[] | 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + 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.InstantSnapshot[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstantSnapshot) => { + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['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.InstantSnapshot[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.InstantSnapshot) => { + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshot() + ), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstantSnapshot[] = []; + 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 regioninstantsnapshotsModule.v1.RegionInstantSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest', + ['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.IInstantSnapshot[] = []; + 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_network_endpoint_groups_v1.ts b/packages/google-cloud-compute/test/gapic_region_network_endpoint_groups_v1.ts index 13a76db4d05..80dc53e28a6 100644 --- a/packages/google-cloud-compute/test/gapic_region_network_endpoint_groups_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_network_endpoint_groups_v1.ts @@ -1411,9 +1411,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1471,9 +1471,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1528,9 +1528,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1578,9 +1578,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1823,9 +1823,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1888,9 +1888,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1951,9 +1951,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2005,9 +2005,9 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { assert( (client.descriptors.page.listNetworkEndpoints.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_network_firewall_policies_v1.ts b/packages/google-cloud-compute/test/gapic_region_network_firewall_policies_v1.ts index 974078e410b..e4e4bf72911 100644 --- a/packages/google-cloud-compute/test/gapic_region_network_firewall_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_network_firewall_policies_v1.ts @@ -3368,9 +3368,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3427,9 +3427,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3483,9 +3483,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -3532,9 +3532,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts index ba5abf6d704..0f1c34e2cc3 100644 --- a/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts @@ -1033,9 +1033,9 @@ describe('v1.RegionNotificationEndpointsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1093,9 +1093,9 @@ describe('v1.RegionNotificationEndpointsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1150,9 +1150,9 @@ describe('v1.RegionNotificationEndpointsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1200,9 +1200,9 @@ describe('v1.RegionNotificationEndpointsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_operations_v1.ts b/packages/google-cloud-compute/test/gapic_region_operations_v1.ts index 4d56258c2be..547de3fd64e 100644 --- a/packages/google-cloud-compute/test/gapic_region_operations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_operations_v1.ts @@ -954,9 +954,9 @@ describe('v1.RegionOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1010,9 +1010,9 @@ describe('v1.RegionOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1057,9 +1057,9 @@ describe('v1.RegionOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1103,9 +1103,9 @@ describe('v1.RegionOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_security_policies_v1.ts b/packages/google-cloud-compute/test/gapic_region_security_policies_v1.ts index f61275d14e5..a3fff576668 100644 --- a/packages/google-cloud-compute/test/gapic_region_security_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_security_policies_v1.ts @@ -1840,9 +1840,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1897,9 +1897,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1951,9 +1951,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1998,9 +1998,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_ssl_certificates_v1.ts b/packages/google-cloud-compute/test/gapic_region_ssl_certificates_v1.ts index e1842c03310..21ea13f0f87 100644 --- a/packages/google-cloud-compute/test/gapic_region_ssl_certificates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_ssl_certificates_v1.ts @@ -986,9 +986,9 @@ describe('v1.RegionSslCertificatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1043,9 +1043,9 @@ describe('v1.RegionSslCertificatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1097,9 +1097,9 @@ describe('v1.RegionSslCertificatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1144,9 +1144,9 @@ describe('v1.RegionSslCertificatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_ssl_policies_v1.ts b/packages/google-cloud-compute/test/gapic_region_ssl_policies_v1.ts index 8d7b089e1c6..ad8ed0e0d70 100644 --- a/packages/google-cloud-compute/test/gapic_region_ssl_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_ssl_policies_v1.ts @@ -1258,9 +1258,9 @@ describe('v1.RegionSslPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1314,9 +1314,9 @@ describe('v1.RegionSslPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1361,9 +1361,9 @@ describe('v1.RegionSslPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1407,9 +1407,9 @@ describe('v1.RegionSslPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_target_http_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_region_target_http_proxies_v1.ts index 2c40cd81b42..15190de5ad2 100644 --- a/packages/google-cloud-compute/test/gapic_region_target_http_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_target_http_proxies_v1.ts @@ -1157,9 +1157,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1214,9 +1214,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1268,9 +1268,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1315,9 +1315,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_target_https_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_region_target_https_proxies_v1.ts index eb02d63bdce..8ced5f3eacb 100644 --- a/packages/google-cloud-compute/test/gapic_region_target_https_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_target_https_proxies_v1.ts @@ -1499,9 +1499,9 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1556,9 +1556,9 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1610,9 +1610,9 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1658,9 +1658,9 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_target_tcp_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_region_target_tcp_proxies_v1.ts index 6f856c3ba93..f3c6c552574 100644 --- a/packages/google-cloud-compute/test/gapic_region_target_tcp_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_target_tcp_proxies_v1.ts @@ -986,9 +986,9 @@ describe('v1.RegionTargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1043,9 +1043,9 @@ describe('v1.RegionTargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1097,9 +1097,9 @@ describe('v1.RegionTargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1144,9 +1144,9 @@ describe('v1.RegionTargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_url_maps_v1.ts b/packages/google-cloud-compute/test/gapic_region_url_maps_v1.ts index 2b839b7e3a7..5d53a5dca1c 100644 --- a/packages/google-cloud-compute/test/gapic_region_url_maps_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_url_maps_v1.ts @@ -1432,9 +1432,9 @@ describe('v1.RegionUrlMapsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1485,9 +1485,9 @@ describe('v1.RegionUrlMapsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1532,9 +1532,9 @@ describe('v1.RegionUrlMapsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1578,9 +1578,9 @@ describe('v1.RegionUrlMapsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_region_zones_v1.ts b/packages/google-cloud-compute/test/gapic_region_zones_v1.ts index d053ac3d412..8cdb1c43cd3 100644 --- a/packages/google-cloud-compute/test/gapic_region_zones_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_zones_v1.ts @@ -456,9 +456,9 @@ describe('v1.RegionZonesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -509,9 +509,9 @@ describe('v1.RegionZonesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -556,9 +556,9 @@ describe('v1.RegionZonesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -602,9 +602,9 @@ describe('v1.RegionZonesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_regions_v1.ts b/packages/google-cloud-compute/test/gapic_regions_v1.ts index 2656eedd9f6..ecf4a486862 100644 --- a/packages/google-cloud-compute/test/gapic_regions_v1.ts +++ b/packages/google-cloud-compute/test/gapic_regions_v1.ts @@ -579,9 +579,9 @@ describe('v1.RegionsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -627,9 +627,9 @@ describe('v1.RegionsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -669,9 +669,9 @@ describe('v1.RegionsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -710,9 +710,9 @@ describe('v1.RegionsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_reservations_v1.ts b/packages/google-cloud-compute/test/gapic_reservations_v1.ts index 0913bef5cab..5da78f5026a 100644 --- a/packages/google-cloud-compute/test/gapic_reservations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_reservations_v1.ts @@ -1663,9 +1663,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1705,9 +1705,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1887,9 +1887,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1943,9 +1943,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1990,9 +1990,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2036,9 +2036,9 @@ describe('v1.ReservationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_resource_policies_v1.ts b/packages/google-cloud-compute/test/gapic_resource_policies_v1.ts index d1777acb32d..0c12a3c0bee 100644 --- a/packages/google-cloud-compute/test/gapic_resource_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_resource_policies_v1.ts @@ -1492,9 +1492,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1534,9 +1534,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1734,9 +1734,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1790,9 +1790,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1843,9 +1843,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1889,9 +1889,9 @@ describe('v1.ResourcePoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_routers_v1.ts b/packages/google-cloud-compute/test/gapic_routers_v1.ts index a2ee16bd4fa..2a5a1420a15 100644 --- a/packages/google-cloud-compute/test/gapic_routers_v1.ts +++ b/packages/google-cloud-compute/test/gapic_routers_v1.ts @@ -1653,9 +1653,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1695,9 +1695,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1925,9 +1925,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.getNatMappingInfo.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1985,9 +1985,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.getNatMappingInfo.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2045,9 +2045,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.getNatMappingInfo.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2096,9 +2096,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.getNatMappingInfo.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2275,9 +2275,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2328,9 +2328,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2375,9 +2375,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2421,9 +2421,9 @@ describe('v1.RoutersClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_routes_v1.ts b/packages/google-cloud-compute/test/gapic_routes_v1.ts index b1428148017..37dcc607b29 100644 --- a/packages/google-cloud-compute/test/gapic_routes_v1.ts +++ b/packages/google-cloud-compute/test/gapic_routes_v1.ts @@ -853,9 +853,9 @@ describe('v1.RoutesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -901,9 +901,9 @@ describe('v1.RoutesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -943,9 +943,9 @@ describe('v1.RoutesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -984,9 +984,9 @@ describe('v1.RoutesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_security_policies_v1.ts b/packages/google-cloud-compute/test/gapic_security_policies_v1.ts index bc2e069a8b1..ebcddefdfc4 100644 --- a/packages/google-cloud-compute/test/gapic_security_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_security_policies_v1.ts @@ -1776,9 +1776,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1818,9 +1818,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1998,9 +1998,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2049,9 +2049,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2097,9 +2097,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2138,9 +2138,9 @@ describe('v1.SecurityPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_service_attachments_v1.ts b/packages/google-cloud-compute/test/gapic_service_attachments_v1.ts index 9d1836b4a69..069e8ec305a 100644 --- a/packages/google-cloud-compute/test/gapic_service_attachments_v1.ts +++ b/packages/google-cloud-compute/test/gapic_service_attachments_v1.ts @@ -1492,9 +1492,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1534,9 +1534,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1735,9 +1735,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1792,9 +1792,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1845,9 +1845,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1892,9 +1892,9 @@ describe('v1.ServiceAttachmentsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts index 2295cb37f43..19c45bff181 100644 --- a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts +++ b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts @@ -1454,9 +1454,9 @@ describe('v1.SnapshotsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1505,9 +1505,9 @@ describe('v1.SnapshotsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1547,9 +1547,9 @@ describe('v1.SnapshotsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1588,9 +1588,9 @@ describe('v1.SnapshotsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_ssl_certificates_v1.ts b/packages/google-cloud-compute/test/gapic_ssl_certificates_v1.ts index fe1311ecd28..35dfd251918 100644 --- a/packages/google-cloud-compute/test/gapic_ssl_certificates_v1.ts +++ b/packages/google-cloud-compute/test/gapic_ssl_certificates_v1.ts @@ -758,9 +758,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -800,9 +800,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -980,9 +980,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1031,9 +1031,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1079,9 +1079,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1120,9 +1120,9 @@ describe('v1.SslCertificatesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_ssl_policies_v1.ts b/packages/google-cloud-compute/test/gapic_ssl_policies_v1.ts index b2633774207..b213ed41f7e 100644 --- a/packages/google-cloud-compute/test/gapic_ssl_policies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_ssl_policies_v1.ts @@ -1036,9 +1036,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1078,9 +1078,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1240,9 +1240,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1291,9 +1291,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1333,9 +1333,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1374,9 +1374,9 @@ describe('v1.SslPoliciesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_subnetworks_v1.ts b/packages/google-cloud-compute/test/gapic_subnetworks_v1.ts index e122f6cf336..d478961b602 100644 --- a/packages/google-cloud-compute/test/gapic_subnetworks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_subnetworks_v1.ts @@ -1837,9 +1837,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1879,9 +1879,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2061,9 +2061,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2117,9 +2117,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2164,9 +2164,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2210,9 +2210,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2397,9 +2397,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2448,9 +2448,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.listUsable.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2497,9 +2497,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2540,9 +2540,9 @@ describe('v1.SubnetworksClient', () => { assert( (client.descriptors.page.listUsable.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_grpc_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_grpc_proxies_v1.ts index 561210586bd..7ea3e9d9a84 100644 --- a/packages/google-cloud-compute/test/gapic_target_grpc_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_grpc_proxies_v1.ts @@ -1019,9 +1019,9 @@ describe('v1.TargetGrpcProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1070,9 +1070,9 @@ describe('v1.TargetGrpcProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1118,9 +1118,9 @@ describe('v1.TargetGrpcProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1159,9 +1159,9 @@ describe('v1.TargetGrpcProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_http_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_http_proxies_v1.ts index cc0eb9c0642..9f512d6bdd5 100644 --- a/packages/google-cloud-compute/test/gapic_target_http_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_http_proxies_v1.ts @@ -1048,9 +1048,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1090,9 +1090,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1270,9 +1270,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1321,9 +1321,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1369,9 +1369,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1410,9 +1410,9 @@ describe('v1.TargetHttpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_https_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_https_proxies_v1.ts index 30596162d2a..4c85d95450d 100644 --- a/packages/google-cloud-compute/test/gapic_target_https_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_https_proxies_v1.ts @@ -1649,9 +1649,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1691,9 +1691,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1871,9 +1871,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1922,9 +1922,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1970,9 +1970,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2012,9 +2012,9 @@ describe('v1.TargetHttpsProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_instances_v1.ts b/packages/google-cloud-compute/test/gapic_target_instances_v1.ts index 354bcb44264..d1fc2647d2d 100644 --- a/packages/google-cloud-compute/test/gapic_target_instances_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_instances_v1.ts @@ -988,9 +988,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1030,9 +1030,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1230,9 +1230,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1286,9 +1286,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1339,9 +1339,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1385,9 +1385,9 @@ describe('v1.TargetInstancesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_pools_v1.ts b/packages/google-cloud-compute/test/gapic_target_pools_v1.ts index f2ae2b41d11..939896dfcac 100644 --- a/packages/google-cloud-compute/test/gapic_target_pools_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_pools_v1.ts @@ -2000,9 +2000,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2042,9 +2042,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -2224,9 +2224,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2280,9 +2280,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2327,9 +2327,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -2373,9 +2373,9 @@ describe('v1.TargetPoolsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_ssl_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_ssl_proxies_v1.ts index 64e811e8178..8a39fd2f069 100644 --- a/packages/google-cloud-compute/test/gapic_target_ssl_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_ssl_proxies_v1.ts @@ -1627,9 +1627,9 @@ describe('v1.TargetSslProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1678,9 +1678,9 @@ describe('v1.TargetSslProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1726,9 +1726,9 @@ describe('v1.TargetSslProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1767,9 +1767,9 @@ describe('v1.TargetSslProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts index 32d9817ded6..f3b8c04d32a 100644 --- a/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts @@ -1058,9 +1058,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1100,9 +1100,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1280,9 +1280,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1331,9 +1331,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1379,9 +1379,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1420,9 +1420,9 @@ describe('v1.TargetTcpProxiesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_target_vpn_gateways_v1.ts b/packages/google-cloud-compute/test/gapic_target_vpn_gateways_v1.ts index 8f0dc7902cc..9cec2cfb6d0 100644 --- a/packages/google-cloud-compute/test/gapic_target_vpn_gateways_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_vpn_gateways_v1.ts @@ -985,9 +985,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1027,9 +1027,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1227,9 +1227,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1283,9 +1283,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1336,9 +1336,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1383,9 +1383,9 @@ describe('v1.TargetVpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_url_maps_v1.ts b/packages/google-cloud-compute/test/gapic_url_maps_v1.ts index e0abc071fd5..631ca6091c8 100644 --- a/packages/google-cloud-compute/test/gapic_url_maps_v1.ts +++ b/packages/google-cloud-compute/test/gapic_url_maps_v1.ts @@ -1343,9 +1343,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1385,9 +1385,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1544,9 +1544,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1592,9 +1592,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1634,9 +1634,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1675,9 +1675,9 @@ describe('v1.UrlMapsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_vpn_gateways_v1.ts b/packages/google-cloud-compute/test/gapic_vpn_gateways_v1.ts index 97151551783..e795a3c7d31 100644 --- a/packages/google-cloud-compute/test/gapic_vpn_gateways_v1.ts +++ b/packages/google-cloud-compute/test/gapic_vpn_gateways_v1.ts @@ -1321,9 +1321,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1363,9 +1363,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1545,9 +1545,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1601,9 +1601,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1648,9 +1648,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1694,9 +1694,9 @@ describe('v1.VpnGatewaysClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_vpn_tunnels_v1.ts b/packages/google-cloud-compute/test/gapic_vpn_tunnels_v1.ts index 227bb7bf330..d12376a0f00 100644 --- a/packages/google-cloud-compute/test/gapic_vpn_tunnels_v1.ts +++ b/packages/google-cloud-compute/test/gapic_vpn_tunnels_v1.ts @@ -983,9 +983,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1025,9 +1025,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); @@ -1207,9 +1207,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1263,9 +1263,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1310,9 +1310,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1356,9 +1356,9 @@ describe('v1.VpnTunnelsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_zone_operations_v1.ts b/packages/google-cloud-compute/test/gapic_zone_operations_v1.ts index 858e152f66e..a348e9522d5 100644 --- a/packages/google-cloud-compute/test/gapic_zone_operations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_zone_operations_v1.ts @@ -954,9 +954,9 @@ describe('v1.ZoneOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1010,9 +1010,9 @@ describe('v1.ZoneOperationsClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1057,9 +1057,9 @@ describe('v1.ZoneOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -1103,9 +1103,9 @@ describe('v1.ZoneOperationsClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); }); diff --git a/packages/google-cloud-compute/test/gapic_zones_v1.ts b/packages/google-cloud-compute/test/gapic_zones_v1.ts index 2a8434bb466..e260eb1f89d 100644 --- a/packages/google-cloud-compute/test/gapic_zones_v1.ts +++ b/packages/google-cloud-compute/test/gapic_zones_v1.ts @@ -579,9 +579,9 @@ describe('v1.ZonesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -627,9 +627,9 @@ describe('v1.ZonesClient', () => { assert( (client.descriptors.page.list.createStream as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -669,9 +669,9 @@ describe('v1.ZonesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); @@ -710,9 +710,9 @@ describe('v1.ZonesClient', () => { assert( (client.descriptors.page.list.asyncIterate as SinonStub) .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); }); });