From bd36f795214512d4295a346687255de1fbe2c602 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:06:19 +0000 Subject: [PATCH] fix: better support for fallback mode (#768) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 feat: Update Compute Engine API to revision 20220720 (#723) Source-Link: https://github.com/googleapis/googleapis/commit/60a0fa73c0dd0b0e5ace935fdaecdf2182a7bfd2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ba1df1be93f5a1aa5c647fc2f195d41b0075aa93 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmExZGYxYmU5M2Y1YTFhYTVjNjQ3ZmMyZjE5NWQ0MWIwMDc1YWE5MyJ9 --- protos/google/cloud/compute/v1/compute.proto | 340 ++- protos/protos.d.ts | 963 ++++++ protos/protos.js | 2697 +++++++++++++++++ protos/protos.json | 492 +++ .../v1/accelerator_types.aggregated_list.js | 3 + samples/generated/v1/accelerator_types.get.js | 3 + .../generated/v1/accelerator_types.list.js | 3 + .../generated/v1/addresses.aggregated_list.js | 3 + samples/generated/v1/addresses.delete.js | 3 + samples/generated/v1/addresses.get.js | 3 + samples/generated/v1/addresses.insert.js | 3 + samples/generated/v1/addresses.list.js | 3 + .../v1/autoscalers.aggregated_list.js | 3 + samples/generated/v1/autoscalers.delete.js | 3 + samples/generated/v1/autoscalers.get.js | 3 + samples/generated/v1/autoscalers.insert.js | 3 + samples/generated/v1/autoscalers.list.js | 3 + samples/generated/v1/autoscalers.patch.js | 3 + samples/generated/v1/autoscalers.update.js | 3 + .../v1/backend_buckets.add_signed_url_key.js | 3 + .../generated/v1/backend_buckets.delete.js | 3 + .../backend_buckets.delete_signed_url_key.js | 3 + samples/generated/v1/backend_buckets.get.js | 3 + .../generated/v1/backend_buckets.insert.js | 3 + samples/generated/v1/backend_buckets.list.js | 3 + samples/generated/v1/backend_buckets.patch.js | 3 + ...ackend_buckets.set_edge_security_policy.js | 3 + .../generated/v1/backend_buckets.update.js | 3 + .../v1/backend_services.add_signed_url_key.js | 3 + .../v1/backend_services.aggregated_list.js | 3 + .../generated/v1/backend_services.delete.js | 3 + .../backend_services.delete_signed_url_key.js | 3 + samples/generated/v1/backend_services.get.js | 3 + .../v1/backend_services.get_health.js | 3 + .../generated/v1/backend_services.insert.js | 3 + samples/generated/v1/backend_services.list.js | 3 + .../generated/v1/backend_services.patch.js | 3 + ...ckend_services.set_edge_security_policy.js | 3 + .../backend_services.set_security_policy.js | 3 + .../generated/v1/backend_services.update.js | 3 + .../v1/disk_types.aggregated_list.js | 3 + samples/generated/v1/disk_types.get.js | 3 + samples/generated/v1/disk_types.list.js | 3 + .../v1/disks.add_resource_policies.js | 3 + samples/generated/v1/disks.aggregated_list.js | 3 + samples/generated/v1/disks.create_snapshot.js | 3 + samples/generated/v1/disks.delete.js | 3 + samples/generated/v1/disks.get.js | 3 + samples/generated/v1/disks.get_iam_policy.js | 3 + samples/generated/v1/disks.insert.js | 3 + samples/generated/v1/disks.list.js | 3 + .../v1/disks.remove_resource_policies.js | 3 + samples/generated/v1/disks.resize.js | 3 + samples/generated/v1/disks.set_iam_policy.js | 3 + samples/generated/v1/disks.set_labels.js | 3 + .../v1/disks.test_iam_permissions.js | 3 + .../v1/external_vpn_gateways.delete.js | 3 + .../generated/v1/external_vpn_gateways.get.js | 3 + .../v1/external_vpn_gateways.insert.js | 3 + .../v1/external_vpn_gateways.list.js | 3 + .../v1/external_vpn_gateways.set_labels.js | 3 + ...ernal_vpn_gateways.test_iam_permissions.js | 3 + .../v1/firewall_policies.add_association.js | 3 + .../v1/firewall_policies.add_rule.js | 3 + .../v1/firewall_policies.clone_rules.js | 3 + .../generated/v1/firewall_policies.delete.js | 3 + samples/generated/v1/firewall_policies.get.js | 3 + .../v1/firewall_policies.get_association.js | 3 + .../v1/firewall_policies.get_iam_policy.js | 3 + .../v1/firewall_policies.get_rule.js | 3 + .../generated/v1/firewall_policies.insert.js | 3 + .../generated/v1/firewall_policies.list.js | 3 + .../v1/firewall_policies.list_associations.js | 3 + .../generated/v1/firewall_policies.move.js | 3 + .../generated/v1/firewall_policies.patch.js | 3 + .../v1/firewall_policies.patch_rule.js | 3 + .../firewall_policies.remove_association.js | 3 + .../v1/firewall_policies.remove_rule.js | 3 + .../v1/firewall_policies.set_iam_policy.js | 3 + .../firewall_policies.test_iam_permissions.js | 3 + samples/generated/v1/firewalls.delete.js | 3 + samples/generated/v1/firewalls.get.js | 3 + samples/generated/v1/firewalls.insert.js | 3 + samples/generated/v1/firewalls.list.js | 3 + samples/generated/v1/firewalls.patch.js | 3 + samples/generated/v1/firewalls.update.js | 3 + .../v1/forwarding_rules.aggregated_list.js | 3 + .../generated/v1/forwarding_rules.delete.js | 3 + samples/generated/v1/forwarding_rules.get.js | 3 + .../generated/v1/forwarding_rules.insert.js | 3 + samples/generated/v1/forwarding_rules.list.js | 3 + .../generated/v1/forwarding_rules.patch.js | 3 + .../v1/forwarding_rules.set_labels.js | 3 + .../v1/forwarding_rules.set_target.js | 3 + .../generated/v1/global_addresses.delete.js | 3 + samples/generated/v1/global_addresses.get.js | 3 + .../generated/v1/global_addresses.insert.js | 3 + samples/generated/v1/global_addresses.list.js | 3 + .../v1/global_forwarding_rules.delete.js | 3 + .../v1/global_forwarding_rules.get.js | 3 + .../v1/global_forwarding_rules.insert.js | 3 + .../v1/global_forwarding_rules.list.js | 3 + .../v1/global_forwarding_rules.patch.js | 3 + .../v1/global_forwarding_rules.set_labels.js | 3 + .../v1/global_forwarding_rules.set_target.js | 3 + ...ndpoint_groups.attach_network_endpoints.js | 3 + .../global_network_endpoint_groups.delete.js | 3 + ...ndpoint_groups.detach_network_endpoints.js | 3 + .../v1/global_network_endpoint_groups.get.js | 3 + .../global_network_endpoint_groups.insert.js | 3 + .../v1/global_network_endpoint_groups.list.js | 3 + ..._endpoint_groups.list_network_endpoints.js | 3 + .../v1/global_operations.aggregated_list.js | 3 + .../generated/v1/global_operations.delete.js | 3 + samples/generated/v1/global_operations.get.js | 3 + .../generated/v1/global_operations.list.js | 3 + .../generated/v1/global_operations.wait.js | 3 + .../global_organization_operations.delete.js | 3 + .../v1/global_organization_operations.get.js | 3 + .../v1/global_organization_operations.list.js | 3 + ...global_public_delegated_prefixes.delete.js | 3 + .../global_public_delegated_prefixes.get.js | 3 + ...global_public_delegated_prefixes.insert.js | 3 + .../global_public_delegated_prefixes.list.js | 3 + .../global_public_delegated_prefixes.patch.js | 3 + .../v1/health_checks.aggregated_list.js | 3 + samples/generated/v1/health_checks.delete.js | 3 + samples/generated/v1/health_checks.get.js | 3 + samples/generated/v1/health_checks.insert.js | 3 + samples/generated/v1/health_checks.list.js | 3 + samples/generated/v1/health_checks.patch.js | 3 + samples/generated/v1/health_checks.update.js | 3 + .../generated/v1/image_family_views.get.js | 3 + samples/generated/v1/images.delete.js | 3 + samples/generated/v1/images.deprecate.js | 3 + samples/generated/v1/images.get.js | 3 + .../generated/v1/images.get_from_family.js | 3 + samples/generated/v1/images.get_iam_policy.js | 3 + samples/generated/v1/images.insert.js | 3 + samples/generated/v1/images.list.js | 3 + samples/generated/v1/images.patch.js | 3 + samples/generated/v1/images.set_iam_policy.js | 3 + samples/generated/v1/images.set_labels.js | 3 + .../v1/images.test_iam_permissions.js | 3 + ...stance_group_managers.abandon_instances.js | 3 + ...instance_group_managers.aggregated_list.js | 3 + ...oup_managers.apply_updates_to_instances.js | 3 + ...nstance_group_managers.create_instances.js | 3 + .../v1/instance_group_managers.delete.js | 3 + ...nstance_group_managers.delete_instances.js | 3 + ...up_managers.delete_per_instance_configs.js | 3 + .../v1/instance_group_managers.get.js | 3 + .../v1/instance_group_managers.insert.js | 3 + .../v1/instance_group_managers.list.js | 3 + .../v1/instance_group_managers.list_errors.js | 3 + ...e_group_managers.list_managed_instances.js | 3 + ...roup_managers.list_per_instance_configs.js | 3 + .../v1/instance_group_managers.patch.js | 3 + ...oup_managers.patch_per_instance_configs.js | 3 + ...tance_group_managers.recreate_instances.js | 3 + .../v1/instance_group_managers.resize.js | 3 + ...ce_group_managers.set_instance_template.js | 3 + ...nstance_group_managers.set_target_pools.js | 3 + ...up_managers.update_per_instance_configs.js | 3 + .../v1/instance_groups.add_instances.js | 3 + .../v1/instance_groups.aggregated_list.js | 3 + .../generated/v1/instance_groups.delete.js | 3 + samples/generated/v1/instance_groups.get.js | 3 + .../generated/v1/instance_groups.insert.js | 3 + samples/generated/v1/instance_groups.list.js | 3 + .../v1/instance_groups.list_instances.js | 3 + .../v1/instance_groups.remove_instances.js | 3 + .../v1/instance_groups.set_named_ports.js | 3 + .../generated/v1/instance_templates.delete.js | 3 + .../generated/v1/instance_templates.get.js | 3 + .../v1/instance_templates.get_iam_policy.js | 3 + .../generated/v1/instance_templates.insert.js | 3 + .../generated/v1/instance_templates.list.js | 3 + .../v1/instance_templates.set_iam_policy.js | 3 + ...instance_templates.test_iam_permissions.js | 3 + .../v1/instances.add_access_config.js | 3 + .../v1/instances.add_resource_policies.js | 3 + .../generated/v1/instances.aggregated_list.js | 3 + samples/generated/v1/instances.attach_disk.js | 3 + samples/generated/v1/instances.bulk_insert.js | 3 + samples/generated/v1/instances.delete.js | 3 + .../v1/instances.delete_access_config.js | 3 + samples/generated/v1/instances.detach_disk.js | 3 + samples/generated/v1/instances.get.js | 3 + .../v1/instances.get_effective_firewalls.js | 3 + .../v1/instances.get_guest_attributes.js | 3 + .../generated/v1/instances.get_iam_policy.js | 3 + .../generated/v1/instances.get_screenshot.js | 3 + .../v1/instances.get_serial_port_output.js | 3 + ...nstances.get_shielded_instance_identity.js | 3 + samples/generated/v1/instances.insert.js | 3 + samples/generated/v1/instances.list.js | 3 + .../generated/v1/instances.list_referrers.js | 3 + .../v1/instances.remove_resource_policies.js | 3 + samples/generated/v1/instances.reset.js | 3 + samples/generated/v1/instances.resume.js | 3 + .../v1/instances.send_diagnostic_interrupt.js | 3 + .../v1/instances.set_deletion_protection.js | 3 + .../v1/instances.set_disk_auto_delete.js | 3 + .../generated/v1/instances.set_iam_policy.js | 3 + samples/generated/v1/instances.set_labels.js | 3 + .../v1/instances.set_machine_resources.js | 3 + .../v1/instances.set_machine_type.js | 3 + .../generated/v1/instances.set_metadata.js | 3 + .../v1/instances.set_min_cpu_platform.js | 3 + .../generated/v1/instances.set_scheduling.js | 3 + .../v1/instances.set_service_account.js | 3 + ....set_shielded_instance_integrity_policy.js | 3 + samples/generated/v1/instances.set_tags.js | 3 + .../instances.simulate_maintenance_event.js | 3 + samples/generated/v1/instances.start.js | 3 + .../v1/instances.start_with_encryption_key.js | 3 + samples/generated/v1/instances.stop.js | 3 + samples/generated/v1/instances.suspend.js | 3 + .../v1/instances.test_iam_permissions.js | 3 + samples/generated/v1/instances.update.js | 3 + .../v1/instances.update_access_config.js | 3 + .../v1/instances.update_display_device.js | 3 + .../v1/instances.update_network_interface.js | 3 + ...stances.update_shielded_instance_config.js | 3 + ...nterconnect_attachments.aggregated_list.js | 3 + .../v1/interconnect_attachments.delete.js | 3 + .../v1/interconnect_attachments.get.js | 3 + .../v1/interconnect_attachments.insert.js | 3 + .../v1/interconnect_attachments.list.js | 3 + .../v1/interconnect_attachments.patch.js | 3 + .../v1/interconnect_locations.get.js | 3 + .../v1/interconnect_locations.list.js | 3 + samples/generated/v1/interconnects.delete.js | 3 + samples/generated/v1/interconnects.get.js | 3 + .../v1/interconnects.get_diagnostics.js | 3 + samples/generated/v1/interconnects.insert.js | 3 + samples/generated/v1/interconnects.list.js | 3 + samples/generated/v1/interconnects.patch.js | 3 + samples/generated/v1/license_codes.get.js | 3 + .../v1/license_codes.test_iam_permissions.js | 3 + samples/generated/v1/licenses.delete.js | 3 + samples/generated/v1/licenses.get.js | 3 + .../generated/v1/licenses.get_iam_policy.js | 3 + samples/generated/v1/licenses.insert.js | 3 + samples/generated/v1/licenses.list.js | 3 + .../generated/v1/licenses.set_iam_policy.js | 3 + .../v1/licenses.test_iam_permissions.js | 3 + samples/generated/v1/machine_images.delete.js | 3 + samples/generated/v1/machine_images.get.js | 3 + .../v1/machine_images.get_iam_policy.js | 3 + samples/generated/v1/machine_images.insert.js | 3 + samples/generated/v1/machine_images.list.js | 3 + .../v1/machine_images.set_iam_policy.js | 3 + .../v1/machine_images.test_iam_permissions.js | 3 + .../v1/machine_types.aggregated_list.js | 3 + samples/generated/v1/machine_types.get.js | 3 + samples/generated/v1/machine_types.list.js | 3 + ..._edge_security_services.aggregated_list.js | 3 + .../network_edge_security_services.delete.js | 3 + .../v1/network_edge_security_services.get.js | 3 + .../network_edge_security_services.insert.js | 3 + .../network_edge_security_services.patch.js | 3 + ...network_endpoint_groups.aggregated_list.js | 3 + ...ndpoint_groups.attach_network_endpoints.js | 3 + .../v1/network_endpoint_groups.delete.js | 3 + ...ndpoint_groups.detach_network_endpoints.js | 3 + .../v1/network_endpoint_groups.get.js | 3 + .../v1/network_endpoint_groups.insert.js | 3 + .../v1/network_endpoint_groups.list.js | 3 + ..._endpoint_groups.list_network_endpoints.js | 3 + ...rk_endpoint_groups.test_iam_permissions.js | 3 + ...twork_firewall_policies.add_association.js | 3 + .../v1/network_firewall_policies.add_rule.js | 3 + .../network_firewall_policies.clone_rules.js | 3 + .../v1/network_firewall_policies.delete.js | 3 + .../v1/network_firewall_policies.get.js | 3 + ...twork_firewall_policies.get_association.js | 3 + ...etwork_firewall_policies.get_iam_policy.js | 3 + .../v1/network_firewall_policies.get_rule.js | 3 + .../v1/network_firewall_policies.insert.js | 3 + .../v1/network_firewall_policies.list.js | 3 + .../v1/network_firewall_policies.patch.js | 3 + .../network_firewall_policies.patch_rule.js | 3 + ...rk_firewall_policies.remove_association.js | 3 + .../network_firewall_policies.remove_rule.js | 3 + ...etwork_firewall_policies.set_iam_policy.js | 3 + ..._firewall_policies.test_iam_permissions.js | 3 + samples/generated/v1/networks.add_peering.js | 3 + samples/generated/v1/networks.delete.js | 3 + samples/generated/v1/networks.get.js | 3 + .../v1/networks.get_effective_firewalls.js | 3 + samples/generated/v1/networks.insert.js | 3 + samples/generated/v1/networks.list.js | 3 + .../v1/networks.list_peering_routes.js | 3 + samples/generated/v1/networks.patch.js | 3 + .../generated/v1/networks.remove_peering.js | 3 + .../v1/networks.switch_to_custom_mode.js | 3 + .../generated/v1/networks.update_peering.js | 3 + samples/generated/v1/node_groups.add_nodes.js | 3 + .../v1/node_groups.aggregated_list.js | 3 + samples/generated/v1/node_groups.delete.js | 3 + .../generated/v1/node_groups.delete_nodes.js | 3 + samples/generated/v1/node_groups.get.js | 3 + .../v1/node_groups.get_iam_policy.js | 3 + samples/generated/v1/node_groups.insert.js | 3 + samples/generated/v1/node_groups.list.js | 3 + .../generated/v1/node_groups.list_nodes.js | 3 + samples/generated/v1/node_groups.patch.js | 3 + .../v1/node_groups.set_iam_policy.js | 3 + .../v1/node_groups.set_node_template.js | 3 + .../v1/node_groups.test_iam_permissions.js | 3 + .../v1/node_templates.aggregated_list.js | 3 + samples/generated/v1/node_templates.delete.js | 3 + samples/generated/v1/node_templates.get.js | 3 + .../v1/node_templates.get_iam_policy.js | 3 + samples/generated/v1/node_templates.insert.js | 3 + samples/generated/v1/node_templates.list.js | 3 + .../v1/node_templates.set_iam_policy.js | 3 + .../v1/node_templates.test_iam_permissions.js | 3 + .../v1/node_types.aggregated_list.js | 3 + samples/generated/v1/node_types.get.js | 3 + samples/generated/v1/node_types.list.js | 3 + .../v1/packet_mirrorings.aggregated_list.js | 3 + .../generated/v1/packet_mirrorings.delete.js | 3 + samples/generated/v1/packet_mirrorings.get.js | 3 + .../generated/v1/packet_mirrorings.insert.js | 3 + .../generated/v1/packet_mirrorings.list.js | 3 + .../generated/v1/packet_mirrorings.patch.js | 3 + .../packet_mirrorings.test_iam_permissions.js | 3 + .../generated/v1/projects.disable_xpn_host.js | 3 + .../v1/projects.disable_xpn_resource.js | 3 + .../generated/v1/projects.enable_xpn_host.js | 3 + .../v1/projects.enable_xpn_resource.js | 3 + samples/generated/v1/projects.get.js | 3 + samples/generated/v1/projects.get_xpn_host.js | 3 + .../v1/projects.get_xpn_resources.js | 3 + .../generated/v1/projects.list_xpn_hosts.js | 3 + samples/generated/v1/projects.move_disk.js | 3 + .../generated/v1/projects.move_instance.js | 3 + .../projects.set_common_instance_metadata.js | 3 + .../v1/projects.set_default_network_tier.js | 3 + .../v1/projects.set_usage_export_bucket.js | 3 + .../v1/public_advertised_prefixes.delete.js | 3 + .../v1/public_advertised_prefixes.get.js | 3 + .../v1/public_advertised_prefixes.insert.js | 3 + .../v1/public_advertised_prefixes.list.js | 3 + .../v1/public_advertised_prefixes.patch.js | 3 + ...blic_delegated_prefixes.aggregated_list.js | 3 + .../v1/public_delegated_prefixes.delete.js | 3 + .../v1/public_delegated_prefixes.get.js | 3 + .../v1/public_delegated_prefixes.insert.js | 3 + .../v1/public_delegated_prefixes.list.js | 3 + .../v1/public_delegated_prefixes.patch.js | 3 + .../generated/v1/region_autoscalers.delete.js | 3 + .../generated/v1/region_autoscalers.get.js | 3 + .../generated/v1/region_autoscalers.insert.js | 3 + .../generated/v1/region_autoscalers.list.js | 3 + .../generated/v1/region_autoscalers.patch.js | 3 + .../generated/v1/region_autoscalers.update.js | 3 + .../v1/region_backend_services.delete.js | 3 + .../v1/region_backend_services.get.js | 3 + .../v1/region_backend_services.get_health.js | 3 + .../v1/region_backend_services.insert.js | 3 + .../v1/region_backend_services.list.js | 3 + .../v1/region_backend_services.patch.js | 3 + .../v1/region_backend_services.update.js | 3 + .../v1/region_commitments.aggregated_list.js | 3 + .../generated/v1/region_commitments.get.js | 3 + .../generated/v1/region_commitments.insert.js | 3 + .../generated/v1/region_commitments.list.js | 3 + .../generated/v1/region_commitments.update.js | 3 + samples/generated/v1/region_disk_types.get.js | 3 + .../generated/v1/region_disk_types.list.js | 3 + .../v1/region_disks.add_resource_policies.js | 3 + .../v1/region_disks.create_snapshot.js | 3 + samples/generated/v1/region_disks.delete.js | 3 + samples/generated/v1/region_disks.get.js | 3 + .../v1/region_disks.get_iam_policy.js | 3 + samples/generated/v1/region_disks.insert.js | 3 + samples/generated/v1/region_disks.list.js | 3 + .../region_disks.remove_resource_policies.js | 3 + samples/generated/v1/region_disks.resize.js | 3 + .../v1/region_disks.set_iam_policy.js | 3 + .../generated/v1/region_disks.set_labels.js | 3 + .../v1/region_disks.test_iam_permissions.js | 3 + .../v1/region_health_check_services.delete.js | 3 + .../v1/region_health_check_services.get.js | 3 + .../v1/region_health_check_services.insert.js | 3 + .../v1/region_health_check_services.list.js | 3 + .../v1/region_health_check_services.patch.js | 3 + .../v1/region_health_checks.delete.js | 3 + .../generated/v1/region_health_checks.get.js | 3 + .../v1/region_health_checks.insert.js | 3 + .../generated/v1/region_health_checks.list.js | 3 + .../v1/region_health_checks.patch.js | 3 + .../v1/region_health_checks.update.js | 3 + ...stance_group_managers.abandon_instances.js | 3 + ...oup_managers.apply_updates_to_instances.js | 3 + ...nstance_group_managers.create_instances.js | 3 + .../region_instance_group_managers.delete.js | 3 + ...nstance_group_managers.delete_instances.js | 3 + ...up_managers.delete_per_instance_configs.js | 3 + .../v1/region_instance_group_managers.get.js | 3 + .../region_instance_group_managers.insert.js | 3 + .../v1/region_instance_group_managers.list.js | 3 + ...ion_instance_group_managers.list_errors.js | 3 + ...e_group_managers.list_managed_instances.js | 3 + ...roup_managers.list_per_instance_configs.js | 3 + .../region_instance_group_managers.patch.js | 3 + ...oup_managers.patch_per_instance_configs.js | 3 + ...tance_group_managers.recreate_instances.js | 3 + .../region_instance_group_managers.resize.js | 3 + ...ce_group_managers.set_instance_template.js | 3 + ...nstance_group_managers.set_target_pools.js | 3 + ...up_managers.update_per_instance_configs.js | 3 + .../v1/region_instance_groups.get.js | 3 + .../v1/region_instance_groups.list.js | 3 + .../region_instance_groups.list_instances.js | 3 + .../region_instance_groups.set_named_ports.js | 3 + .../v1/region_instances.bulk_insert.js | 3 + .../region_network_endpoint_groups.delete.js | 3 + .../v1/region_network_endpoint_groups.get.js | 3 + .../region_network_endpoint_groups.insert.js | 3 + .../v1/region_network_endpoint_groups.list.js | 3 + ...twork_firewall_policies.add_association.js | 3 + ...gion_network_firewall_policies.add_rule.js | 3 + ...n_network_firewall_policies.clone_rules.js | 3 + ...region_network_firewall_policies.delete.js | 3 + .../region_network_firewall_policies.get.js | 3 + ...twork_firewall_policies.get_association.js | 3 + ...rewall_policies.get_effective_firewalls.js | 3 + ...etwork_firewall_policies.get_iam_policy.js | 3 + ...gion_network_firewall_policies.get_rule.js | 3 + ...region_network_firewall_policies.insert.js | 3 + .../region_network_firewall_policies.list.js | 3 + .../region_network_firewall_policies.patch.js | 3 + ...on_network_firewall_policies.patch_rule.js | 3 + ...rk_firewall_policies.remove_association.js | 3 + ...n_network_firewall_policies.remove_rule.js | 3 + ...etwork_firewall_policies.set_iam_policy.js | 3 + ..._firewall_policies.test_iam_permissions.js | 3 + .../region_notification_endpoints.delete.js | 3 + .../v1/region_notification_endpoints.get.js | 3 + .../region_notification_endpoints.insert.js | 3 + .../v1/region_notification_endpoints.list.js | 3 + .../generated/v1/region_operations.delete.js | 3 + samples/generated/v1/region_operations.get.js | 3 + .../generated/v1/region_operations.list.js | 3 + .../generated/v1/region_operations.wait.js | 3 + .../v1/region_security_policies.delete.js | 3 + .../v1/region_security_policies.get.js | 3 + .../v1/region_security_policies.insert.js | 3 + .../v1/region_security_policies.list.js | 3 + .../v1/region_security_policies.patch.js | 3 + .../v1/region_ssl_certificates.delete.js | 3 + .../v1/region_ssl_certificates.get.js | 3 + .../v1/region_ssl_certificates.insert.js | 3 + .../v1/region_ssl_certificates.list.js | 3 + .../v1/region_target_http_proxies.delete.js | 3 + .../v1/region_target_http_proxies.get.js | 3 + .../v1/region_target_http_proxies.insert.js | 3 + .../v1/region_target_http_proxies.list.js | 3 + .../region_target_http_proxies.set_url_map.js | 3 + .../v1/region_target_https_proxies.delete.js | 3 + .../v1/region_target_https_proxies.get.js | 3 + .../v1/region_target_https_proxies.insert.js | 3 + .../v1/region_target_https_proxies.list.js | 3 + .../v1/region_target_https_proxies.patch.js | 3 + ...rget_https_proxies.set_ssl_certificates.js | 3 + ...region_target_https_proxies.set_url_map.js | 3 + .../generated/v1/region_url_maps.delete.js | 3 + samples/generated/v1/region_url_maps.get.js | 3 + .../generated/v1/region_url_maps.insert.js | 3 + samples/generated/v1/region_url_maps.list.js | 3 + samples/generated/v1/region_url_maps.patch.js | 3 + .../generated/v1/region_url_maps.update.js | 3 + .../generated/v1/region_url_maps.validate.js | 3 + samples/generated/v1/regions.get.js | 3 + samples/generated/v1/regions.list.js | 3 + .../v1/reservations.aggregated_list.js | 3 + samples/generated/v1/reservations.delete.js | 3 + samples/generated/v1/reservations.get.js | 3 + .../v1/reservations.get_iam_policy.js | 3 + samples/generated/v1/reservations.insert.js | 3 + samples/generated/v1/reservations.list.js | 3 + samples/generated/v1/reservations.resize.js | 3 + .../v1/reservations.set_iam_policy.js | 3 + .../v1/reservations.test_iam_permissions.js | 3 + samples/generated/v1/reservations.update.js | 3 + .../v1/resource_policies.aggregated_list.js | 3 + .../generated/v1/resource_policies.delete.js | 3 + samples/generated/v1/resource_policies.get.js | 3 + .../v1/resource_policies.get_iam_policy.js | 3 + .../generated/v1/resource_policies.insert.js | 3 + .../generated/v1/resource_policies.list.js | 3 + .../v1/resource_policies.set_iam_policy.js | 3 + .../resource_policies.test_iam_permissions.js | 3 + .../generated/v1/routers.aggregated_list.js | 3 + samples/generated/v1/routers.delete.js | 3 + samples/generated/v1/routers.get.js | 3 + .../v1/routers.get_nat_mapping_info.js | 3 + .../generated/v1/routers.get_router_status.js | 3 + samples/generated/v1/routers.insert.js | 3 + samples/generated/v1/routers.list.js | 3 + samples/generated/v1/routers.patch.js | 3 + samples/generated/v1/routers.preview.js | 3 + samples/generated/v1/routers.update.js | 3 + samples/generated/v1/routes.delete.js | 3 + samples/generated/v1/routes.get.js | 3 + samples/generated/v1/routes.insert.js | 3 + samples/generated/v1/routes.list.js | 3 + .../v1/security_policies.add_rule.js | 3 + .../v1/security_policies.aggregated_list.js | 3 + .../generated/v1/security_policies.delete.js | 3 + samples/generated/v1/security_policies.get.js | 3 + .../v1/security_policies.get_rule.js | 3 + .../generated/v1/security_policies.insert.js | 3 + .../generated/v1/security_policies.list.js | 3 + ...cies.list_preconfigured_expression_sets.js | 3 + .../generated/v1/security_policies.patch.js | 3 + .../v1/security_policies.patch_rule.js | 3 + .../v1/security_policies.remove_rule.js | 3 + .../v1/service_attachments.aggregated_list.js | 3 + .../v1/service_attachments.delete.js | 3 + .../generated/v1/service_attachments.get.js | 3 + .../v1/service_attachments.get_iam_policy.js | 3 + .../v1/service_attachments.insert.js | 3 + .../generated/v1/service_attachments.list.js | 3 + .../generated/v1/service_attachments.patch.js | 3 + .../v1/service_attachments.set_iam_policy.js | 3 + ...ervice_attachments.test_iam_permissions.js | 3 + samples/generated/v1/snapshots.delete.js | 3 + samples/generated/v1/snapshots.get.js | 3 + .../generated/v1/snapshots.get_iam_policy.js | 3 + samples/generated/v1/snapshots.insert.js | 3 + samples/generated/v1/snapshots.list.js | 3 + .../generated/v1/snapshots.set_iam_policy.js | 3 + samples/generated/v1/snapshots.set_labels.js | 3 + .../v1/snapshots.test_iam_permissions.js | 3 + ...ppet_metadata.google.cloud.compute.v1.json | 1300 ++++---- .../v1/ssl_certificates.aggregated_list.js | 3 + .../generated/v1/ssl_certificates.delete.js | 3 + samples/generated/v1/ssl_certificates.get.js | 3 + .../generated/v1/ssl_certificates.insert.js | 3 + samples/generated/v1/ssl_certificates.list.js | 3 + samples/generated/v1/ssl_policies.delete.js | 3 + samples/generated/v1/ssl_policies.get.js | 3 + samples/generated/v1/ssl_policies.insert.js | 3 + samples/generated/v1/ssl_policies.list.js | 3 + .../ssl_policies.list_available_features.js | 3 + samples/generated/v1/ssl_policies.patch.js | 3 + .../v1/subnetworks.aggregated_list.js | 3 + samples/generated/v1/subnetworks.delete.js | 3 + .../v1/subnetworks.expand_ip_cidr_range.js | 3 + samples/generated/v1/subnetworks.get.js | 3 + .../v1/subnetworks.get_iam_policy.js | 3 + samples/generated/v1/subnetworks.insert.js | 3 + samples/generated/v1/subnetworks.list.js | 3 + .../generated/v1/subnetworks.list_usable.js | 3 + samples/generated/v1/subnetworks.patch.js | 3 + .../v1/subnetworks.set_iam_policy.js | 3 + ...ubnetworks.set_private_ip_google_access.js | 3 + .../v1/subnetworks.test_iam_permissions.js | 3 + .../v1/target_grpc_proxies.delete.js | 3 + .../generated/v1/target_grpc_proxies.get.js | 3 + .../v1/target_grpc_proxies.insert.js | 3 + .../generated/v1/target_grpc_proxies.list.js | 3 + .../generated/v1/target_grpc_proxies.patch.js | 3 + .../v1/target_http_proxies.aggregated_list.js | 3 + .../v1/target_http_proxies.delete.js | 3 + .../generated/v1/target_http_proxies.get.js | 3 + .../v1/target_http_proxies.insert.js | 3 + .../generated/v1/target_http_proxies.list.js | 3 + .../generated/v1/target_http_proxies.patch.js | 3 + .../v1/target_http_proxies.set_url_map.js | 3 + .../target_https_proxies.aggregated_list.js | 3 + .../v1/target_https_proxies.delete.js | 3 + .../generated/v1/target_https_proxies.get.js | 3 + .../v1/target_https_proxies.insert.js | 3 + .../generated/v1/target_https_proxies.list.js | 3 + .../v1/target_https_proxies.patch.js | 3 + ...arget_https_proxies.set_certificate_map.js | 3 + .../target_https_proxies.set_quic_override.js | 3 + ...rget_https_proxies.set_ssl_certificates.js | 3 + .../v1/target_https_proxies.set_ssl_policy.js | 3 + .../v1/target_https_proxies.set_url_map.js | 3 + .../v1/target_instances.aggregated_list.js | 3 + .../generated/v1/target_instances.delete.js | 3 + samples/generated/v1/target_instances.get.js | 3 + .../generated/v1/target_instances.insert.js | 3 + samples/generated/v1/target_instances.list.js | 3 + .../v1/target_pools.add_health_check.js | 3 + .../generated/v1/target_pools.add_instance.js | 3 + .../v1/target_pools.aggregated_list.js | 3 + samples/generated/v1/target_pools.delete.js | 3 + samples/generated/v1/target_pools.get.js | 3 + .../generated/v1/target_pools.get_health.js | 3 + samples/generated/v1/target_pools.insert.js | 3 + samples/generated/v1/target_pools.list.js | 3 + .../v1/target_pools.remove_health_check.js | 3 + .../v1/target_pools.remove_instance.js | 3 + .../generated/v1/target_pools.set_backup.js | 3 + .../generated/v1/target_ssl_proxies.delete.js | 3 + .../generated/v1/target_ssl_proxies.get.js | 3 + .../generated/v1/target_ssl_proxies.insert.js | 3 + .../generated/v1/target_ssl_proxies.list.js | 3 + .../target_ssl_proxies.set_backend_service.js | 3 + .../target_ssl_proxies.set_certificate_map.js | 3 + .../v1/target_ssl_proxies.set_proxy_header.js | 3 + ...target_ssl_proxies.set_ssl_certificates.js | 3 + .../v1/target_ssl_proxies.set_ssl_policy.js | 3 + .../generated/v1/target_tcp_proxies.delete.js | 3 + .../generated/v1/target_tcp_proxies.get.js | 3 + .../generated/v1/target_tcp_proxies.insert.js | 3 + .../generated/v1/target_tcp_proxies.list.js | 3 + .../target_tcp_proxies.set_backend_service.js | 3 + .../v1/target_tcp_proxies.set_proxy_header.js | 3 + .../v1/target_vpn_gateways.aggregated_list.js | 3 + .../v1/target_vpn_gateways.delete.js | 3 + .../generated/v1/target_vpn_gateways.get.js | 3 + .../v1/target_vpn_gateways.insert.js | 3 + .../generated/v1/target_vpn_gateways.list.js | 3 + .../generated/v1/url_maps.aggregated_list.js | 3 + samples/generated/v1/url_maps.delete.js | 3 + samples/generated/v1/url_maps.get.js | 3 + samples/generated/v1/url_maps.insert.js | 3 + .../generated/v1/url_maps.invalidate_cache.js | 3 + samples/generated/v1/url_maps.list.js | 3 + samples/generated/v1/url_maps.patch.js | 3 + samples/generated/v1/url_maps.update.js | 3 + samples/generated/v1/url_maps.validate.js | 3 + .../v1/vpn_gateways.aggregated_list.js | 3 + samples/generated/v1/vpn_gateways.delete.js | 3 + samples/generated/v1/vpn_gateways.get.js | 3 + .../generated/v1/vpn_gateways.get_status.js | 3 + samples/generated/v1/vpn_gateways.insert.js | 3 + samples/generated/v1/vpn_gateways.list.js | 3 + .../generated/v1/vpn_gateways.set_labels.js | 3 + .../v1/vpn_gateways.test_iam_permissions.js | 3 + .../v1/vpn_tunnels.aggregated_list.js | 3 + samples/generated/v1/vpn_tunnels.delete.js | 3 + samples/generated/v1/vpn_tunnels.get.js | 3 + samples/generated/v1/vpn_tunnels.insert.js | 3 + samples/generated/v1/vpn_tunnels.list.js | 3 + .../generated/v1/zone_operations.delete.js | 3 + samples/generated/v1/zone_operations.get.js | 3 + samples/generated/v1/zone_operations.list.js | 3 + samples/generated/v1/zone_operations.wait.js | 3 + samples/generated/v1/zones.get.js | 3 + samples/generated/v1/zones.list.js | 3 + .../v1small/addresses.aggregated_list.js | 3 + samples/generated/v1small/addresses.delete.js | 3 + samples/generated/v1small/addresses.insert.js | 3 + samples/generated/v1small/addresses.list.js | 3 + .../v1small/region_operations.get.js | 3 + .../v1small/region_operations.wait.js | 3 + ...metadata.google.cloud.compute.v1small.json | 12 +- 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 | 8 +- src/v1/backend_services_client.ts | 10 +- src/v1/disk_types_client.ts | 10 +- src/v1/disks_client.ts | 10 +- src/v1/external_vpn_gateways_client.ts | 8 +- src/v1/firewall_policies_client.ts | 8 +- src/v1/firewalls_client.ts | 8 +- src/v1/forwarding_rules_client.ts | 10 +- src/v1/global_addresses_client.ts | 8 +- src/v1/global_forwarding_rules_client.ts | 8 +- .../global_network_endpoint_groups_client.ts | 12 +- src/v1/global_operations_client.ts | 10 +- .../global_organization_operations_client.ts | 8 +- ...global_public_delegated_prefixes_client.ts | 8 +- src/v1/health_checks_client.ts | 10 +- src/v1/image_family_views_client.ts | 3 +- src/v1/images_client.ts | 8 +- src/v1/instance_group_managers_client.ts | 24 +- src/v1/instance_groups_client.ts | 14 +- src/v1/instance_templates_client.ts | 8 +- src/v1/instances_client.ts | 16 +- src/v1/interconnect_attachments_client.ts | 10 +- src/v1/interconnect_locations_client.ts | 8 +- src/v1/interconnects_client.ts | 8 +- src/v1/license_codes_client.ts | 3 +- src/v1/licenses_client.ts | 8 +- src/v1/machine_images_client.ts | 8 +- src/v1/machine_types_client.ts | 10 +- .../network_edge_security_services_client.ts | 6 +- src/v1/network_endpoint_groups_client.ts | 14 +- src/v1/network_firewall_policies_client.ts | 8 +- src/v1/networks_client.ts | 12 +- src/v1/node_groups_client.ts | 14 +- 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 | 12 +- src/v1/public_advertised_prefixes_client.ts | 8 +- src/v1/public_delegated_prefixes_client.ts | 10 +- src/v1/region_autoscalers_client.ts | 8 +- src/v1/region_backend_services_client.ts | 8 +- src/v1/region_commitments_client.ts | 10 +- src/v1/region_disk_types_client.ts | 8 +- src/v1/region_disks_client.ts | 8 +- src/v1/region_health_check_services_client.ts | 8 +- src/v1/region_health_checks_client.ts | 8 +- .../region_instance_group_managers_client.ts | 22 +- src/v1/region_instance_groups_client.ts | 12 +- src/v1/region_instances_client.ts | 3 +- .../region_network_endpoint_groups_client.ts | 8 +- ...region_network_firewall_policies_client.ts | 8 +- .../region_notification_endpoints_client.ts | 8 +- src/v1/region_operations_client.ts | 8 +- src/v1/region_security_policies_client.ts | 8 +- src/v1/region_ssl_certificates_client.ts | 8 +- src/v1/region_target_http_proxies_client.ts | 8 +- src/v1/region_target_https_proxies_client.ts | 8 +- src/v1/region_url_maps_client.ts | 8 +- src/v1/regions_client.ts | 8 +- src/v1/reservations_client.ts | 10 +- src/v1/resource_policies_client.ts | 10 +- src/v1/routers_client.ts | 14 +- src/v1/routes_client.ts | 8 +- src/v1/security_policies_client.ts | 10 +- src/v1/service_attachments_client.ts | 10 +- src/v1/snapshots_client.ts | 8 +- src/v1/ssl_certificates_client.ts | 10 +- src/v1/ssl_policies_client.ts | 8 +- src/v1/subnetworks_client.ts | 14 +- src/v1/target_grpc_proxies_client.ts | 8 +- 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 | 8 +- src/v1/target_tcp_proxies_client.ts | 8 +- 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 | 8 +- src/v1/zones_client.ts | 8 +- src/v1small/addresses_client.ts | 10 +- src/v1small/region_operations_client.ts | 3 +- test/gapic_accelerator_types_v1.ts | 160 +- test/gapic_addresses_v1.ts | 156 +- test/gapic_addresses_v1small.ts | 156 +- test/gapic_autoscalers_v1.ts | 156 +- test/gapic_backend_buckets_v1.ts | 160 +- test/gapic_backend_services_v1.ts | 160 +- test/gapic_disk_types_v1.ts | 156 +- test/gapic_disks_v1.ts | 156 +- test/gapic_external_vpn_gateways_v1.ts | 171 +- test/gapic_firewall_policies_v1.ts | 160 +- test/gapic_firewalls_v1.ts | 156 +- test/gapic_forwarding_rules_v1.ts | 160 +- test/gapic_global_addresses_v1.ts | 160 +- test/gapic_global_forwarding_rules_v1.ts | 178 +- ...gapic_global_network_endpoint_groups_v1.ts | 212 +- test/gapic_global_operations_v1.ts | 160 +- ...gapic_global_organization_operations_v1.ts | 212 +- ...pic_global_public_delegated_prefixes_v1.ts | 212 +- test/gapic_health_checks_v1.ts | 156 +- test/gapic_image_family_views_v1.ts | 160 +- test/gapic_images_v1.ts | 156 +- test/gapic_instance_group_managers_v1.ts | 178 +- test/gapic_instance_groups_v1.ts | 160 +- test/gapic_instance_templates_v1.ts | 160 +- test/gapic_instances_v1.ts | 156 +- test/gapic_interconnect_attachments_v1.ts | 182 +- test/gapic_interconnect_locations_v1.ts | 178 +- test/gapic_interconnects_v1.ts | 158 +- test/gapic_license_codes_v1.ts | 156 +- test/gapic_licenses_v1.ts | 156 +- test/gapic_machine_images_v1.ts | 158 +- test/gapic_machine_types_v1.ts | 156 +- ...gapic_network_edge_security_services_v1.ts | 212 +- test/gapic_network_endpoint_groups_v1.ts | 178 +- test/gapic_network_firewall_policies_v1.ts | 182 +- test/gapic_networks_v1.ts | 156 +- test/gapic_node_groups_v1.ts | 156 +- test/gapic_node_templates_v1.ts | 158 +- test/gapic_node_types_v1.ts | 156 +- test/gapic_packet_mirrorings_v1.ts | 160 +- test/gapic_projects_v1.ts | 156 +- test/gapic_public_advertised_prefixes_v1.ts | 182 +- test/gapic_public_delegated_prefixes_v1.ts | 182 +- test/gapic_region_autoscalers_v1.ts | 160 +- test/gapic_region_backend_services_v1.ts | 178 +- test/gapic_region_commitments_v1.ts | 160 +- test/gapic_region_disk_types_v1.ts | 160 +- test/gapic_region_disks_v1.ts | 156 +- test/gapic_region_health_check_services_v1.ts | 182 +- test/gapic_region_health_checks_v1.ts | 160 +- ...gapic_region_instance_group_managers_v1.ts | 212 +- test/gapic_region_instance_groups_v1.ts | 187 +- test/gapic_region_instances_v1.ts | 160 +- ...gapic_region_network_endpoint_groups_v1.ts | 212 +- ...pic_region_network_firewall_policies_v1.ts | 212 +- .../gapic_region_notification_endpoints_v1.ts | 212 +- test/gapic_region_operations_v1.ts | 160 +- test/gapic_region_operations_v1small.ts | 161 +- test/gapic_region_security_policies_v1.ts | 180 +- test/gapic_region_ssl_certificates_v1.ts | 178 +- test/gapic_region_target_http_proxies_v1.ts | 182 +- test/gapic_region_target_https_proxies_v1.ts | 182 +- test/gapic_region_url_maps_v1.ts | 158 +- test/gapic_regions_v1.ts | 156 +- test/gapic_reservations_v1.ts | 156 +- test/gapic_resource_policies_v1.ts | 160 +- test/gapic_routers_v1.ts | 156 +- test/gapic_routes_v1.ts | 156 +- test/gapic_security_policies_v1.ts | 160 +- test/gapic_service_attachments_v1.ts | 160 +- test/gapic_snapshots_v1.ts | 156 +- test/gapic_ssl_certificates_v1.ts | 160 +- test/gapic_ssl_policies_v1.ts | 156 +- test/gapic_subnetworks_v1.ts | 156 +- test/gapic_target_grpc_proxies_v1.ts | 160 +- test/gapic_target_http_proxies_v1.ts | 160 +- test/gapic_target_https_proxies_v1.ts | 160 +- test/gapic_target_instances_v1.ts | 160 +- test/gapic_target_pools_v1.ts | 156 +- test/gapic_target_ssl_proxies_v1.ts | 160 +- test/gapic_target_tcp_proxies_v1.ts | 160 +- test/gapic_target_vpn_gateways_v1.ts | 160 +- test/gapic_url_maps_v1.ts | 156 +- test/gapic_vpn_gateways_v1.ts | 156 +- test/gapic_vpn_tunnels_v1.ts | 156 +- test/gapic_zone_operations_v1.ts | 160 +- test/gapic_zones_v1.ts | 156 +- 832 files changed, 14861 insertions(+), 8250 deletions(-) diff --git a/protos/google/cloud/compute/v1/compute.proto b/protos/google/cloud/compute/v1/compute.proto index e1cdc9f9..0dc15662 100644 --- a/protos/google/cloud/compute/v1/compute.proto +++ b/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: 20220526 +// Source file revision: 20220720 // API name: compute // API version: v1 @@ -2020,6 +2020,22 @@ message AttachNetworkEndpointsNetworkEndpointGroupRequest { // An instance-attached disk resource. message AttachedDisk { + // [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + enum Architecture { + // A value indicating that the enum field is not set. + UNDEFINED_ARCHITECTURE = 0; + + // Default value indicating Architecture is not set. + ARCHITECTURE_UNSPECIFIED = 394750507; + + // Machines with architecture ARM64 + ARM64 = 62547450; + + // Machines with architecture X86_64 + X86_64 = 425300551; + + } + // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. enum Interface { // A value indicating that the enum field is not set. @@ -2055,6 +2071,10 @@ message AttachedDisk { } + // [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). optional bool auto_delete = 464761403; @@ -2107,6 +2127,22 @@ message AttachedDisk { // [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. message AttachedDiskInitializeParams { + // The architecture of the attached disk. Valid values are arm64 or x86_64. + 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; + + } + // Specifies which action to take on instance update with this disk. Default is to use the existing disk. enum OnUpdateAction { // A value indicating that the enum field is not set. @@ -2123,6 +2159,10 @@ message AttachedDiskInitializeParams { } + // The architecture of the attached disk. Valid values are arm64 or x86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // An optional description. Provide this property when creating the disk. optional string description = 422937596; @@ -2642,7 +2682,7 @@ message Backend { // Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION. optional float max_rate_per_instance = 17599579; - // Optional parameter to define a target capacity for the UTILIZATIONbalancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + // 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; } @@ -3564,7 +3604,7 @@ message BulkInsertInstanceResource { // The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. optional InstanceProperties instance_properties = 215355165; - // Policy for chosing target zone. + // Policy for chosing target zone. For more information, see Create VMs in bulk . optional LocationPolicy location_policy = 465689852; // The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. @@ -3755,6 +3795,8 @@ message Commitment { ACTIVE = 314733318; + CANCELLED = 41957681; + CREATING = 455564985; EXPIRED = 482489093; @@ -5922,6 +5964,22 @@ message DisableXpnResourceProjectRequest { // Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/v1/disks) * [Regional](/compute/docs/reference/rest/v1/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources. message Disk { + // The architecture of the disk. Valid values are ARM64 or X86_64. + enum Architecture { + // A value indicating that the enum field is not set. + UNDEFINED_ARCHITECTURE = 0; + + // 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 disk creation. - CREATING: Disk is provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. enum Status { // A value indicating that the enum field is not set. @@ -5944,6 +6002,10 @@ message Disk { } + // The architecture of the disk. Valid values are ARM64 or X86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; @@ -6369,11 +6431,37 @@ message Error { } +// +message ErrorDetails { + optional ErrorInfo error_info = 25251973; + + optional Help help = 3198785; + + optional LocalizedMessage localized_message = 404537155; + +} + +// Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } } +message ErrorInfo { + // The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + optional string domain = 284415172; + + // Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + map metadatas = 8514340; + + // The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + optional string reason = 138777156; + +} + // message Errors { // [Output Only] The error type identifier for this error. optional string code = 3059181; + // [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + repeated ErrorDetails error_details = 274653963; + // [Output Only] Indicates the field in the request that caused the error. This property is optional. optional string location = 290430901; @@ -6945,7 +7033,7 @@ message ForwardingRule { } - // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. enum IpVersion { // A value indicating that the enum field is not set. UNDEFINED_IP_VERSION = 0; @@ -7007,6 +7095,9 @@ message ForwardingRule { // The connection has been closed by the producer and will not serve traffic going forward. CLOSED = 380163436; + // The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + NEEDS_ATTENTION = 344491452; + // The connection is pending acceptance by the producer. PENDING = 35394935; @@ -7045,7 +7136,7 @@ message ForwardingRule { // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; - // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. // Check the IpVersion enum for the list of possible values. optional string ip_version = 294959552; @@ -9413,6 +9504,23 @@ message HealthStatusForNetworkEndpoint { } +// Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit. +message Help { + // URL(s) pointing to additional information on handling the current error. + repeated HelpLink links = 102977465; + +} + +// Describes a URL link. +message HelpLink { + // Describes what the link offers. + optional string description = 422937596; + + // The URL of the link. + optional string url = 116079; + +} + // UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. message HostRule { // An optional description of this resource. Provide this property when you create the resource. @@ -9667,6 +9775,22 @@ message HttpRouteRuleMatch { // Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images. message Image { + // The architecture of the image. Valid values are ARM64 or X86_64. + 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; + + } + // The type of the image used to create this disk. The default and only valid value is RAW. enum SourceType { // A value indicating that the enum field is not set. @@ -9695,6 +9819,10 @@ message Image { } + // The architecture of the image. Valid values are ARM64 or X86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). optional int64 archive_size_bytes = 381093450; @@ -11194,6 +11322,22 @@ message InsertVpnTunnelRequest { // Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances. message Instance { + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + enum KeyRevocationActionType { + // A value indicating that the enum field is not set. + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + + // Default value. This value is unused. + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + + // Indicates user chose no operation. + NONE = 2402104; + + // Indicates user chose to opt for VM shutdown on key revocation. + STOP = 2555906; + + } + // The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. @@ -11285,6 +11429,10 @@ message Instance { // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // Check the KeyRevocationActionType enum for the list of possible values. + optional string key_revocation_action_type = 235941474; + // [Output Only] Type of the resource. Always compute#instance for instances. optional string kind = 3292052; @@ -12177,6 +12325,22 @@ message InstanceParams { // message InstanceProperties { + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + enum KeyRevocationActionType { + // A value indicating that the enum field is not set. + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + + // Default value. This value is unused. + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + + // Indicates user chose no operation. + NONE = 2402104; + + // Indicates user chose to opt for VM shutdown on key revocation. + STOP = 2555906; + + } + // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. @@ -12211,6 +12375,10 @@ message InstanceProperties { // A list of guest accelerator cards' type and count to use for instances created from these properties. repeated AcceleratorConfig guest_accelerators = 463595119; + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // Check the KeyRevocationActionType enum for the list of possible values. + optional string key_revocation_action_type = 235941474; + // Labels to apply to instances that are created from these properties. map labels = 500195327; @@ -15901,6 +16069,16 @@ message LocalDisk { } +// Provides a localized error message that is safe to return to the user which can be attached to an RPC error. +message LocalizedMessage { + // The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + optional string locale = 513150554; + + // The localized error message in the above locale. + optional string message = 418054151; + +} + // Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region). message LocationPolicy { // Strategy for distributing VMs across zones in a region. @@ -15930,7 +16108,7 @@ message LocationPolicy { // message LocationPolicyLocation { - // Preference for a given location. + // Preference for a given location. Set to either ALLOW or DENY. enum Preference { // A value indicating that the enum field is not set. UNDEFINED_PREFERENCE = 0; @@ -15946,12 +16124,22 @@ message LocationPolicyLocation { } - // Preference for a given location. + // Constraints that the caller requires on the result distribution in this zone. + optional LocationPolicyLocationConstraints constraints = 3909174; + + // Preference for a given location. Set to either ALLOW or DENY. // Check the Preference enum for the list of possible values. optional string preference = 150781147; } +// Per-zone constraints on location policy for this zone. +message LocationPolicyLocationConstraints { + // Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + optional int32 max_count = 287620724; + +} + // This is deprecated and has no effect. Do not use. message LogConfig { // This is deprecated and has no effect. Do not use. @@ -16540,6 +16728,9 @@ message Network { // Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. . optional bool enable_ula_internal_ipv6 = 423757720; + // [Output Only] URL of the firewall policy the network is associated with. + optional string firewall_policy = 498173265; + // [Output Only] The gateway address for default routing out of the network, selected by GCP. optional string gateway_i_pv4 = 178678877; @@ -16786,7 +16977,7 @@ message NetworkEndpointGroupAppEngine { // Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: "default", "my-service". optional string service = 373540533; - // A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + // A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. optional string url_mask = 103352252; // Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: "v1", "v2". @@ -16799,7 +16990,7 @@ message NetworkEndpointGroupCloudFunction { // A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1". optional string function = 307196888; - // A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + // A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. optional string url_mask = 103352252; } @@ -20644,7 +20835,7 @@ message RegionSetPolicyRequest { // message RegionTargetHttpsProxiesSetSslCertificatesRequest { - // New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. + // New set of SslCertificate resources to associate with this TargetHttpsProxy resource. repeated string ssl_certificates = 366006543; } @@ -20957,7 +21148,7 @@ message RemoveRuleSecurityPolicyRequest { // A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow. message RequestMirrorPolicy { - // The full or partial URL to the BackendService resource being mirrored to. + // The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. optional string backend_service = 306946058; } @@ -22655,6 +22846,22 @@ message SavedAttachedDisk { // An instance-attached disk resource. message SavedDisk { + // [Output Only] The architecture of the attached disk. + 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] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. enum StorageBytesStatus { // A value indicating that the enum field is not set. @@ -22666,6 +22873,10 @@ message SavedDisk { } + // [Output Only] The architecture of the attached disk. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // [Output Only] Type of the resource. Always compute#savedDisk for attached disks. optional string kind = 3292052; @@ -22714,7 +22925,7 @@ message ScalingScheduleStatus { } -// Sets the scheduling options for an Instance. NextID: 21 +// Sets the scheduling options for an Instance. message Scheduling { // Specifies the termination action for the instance. enum InstanceTerminationAction { @@ -23398,6 +23609,9 @@ message ServiceAttachmentConnectedEndpoint { // The connection has been closed by the producer. CLOSED = 380163436; + // The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + NEEDS_ATTENTION = 344491452; + // The connection is pending acceptance by the producer. PENDING = 35394935; @@ -24959,6 +25173,33 @@ message SimulateMaintenanceEventInstanceRequest { // Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots. message Snapshot { + // [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + 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; + + } + + // Indicates the type of the snapshot. + enum SnapshotType { + // A value indicating that the enum field is not set. + UNDEFINED_SNAPSHOT_TYPE = 0; + + ARCHIVE = 506752162; + + STANDARD = 484642493; + + } + // [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. enum Status { // A value indicating that the enum field is not set. @@ -24992,12 +25233,19 @@ message Snapshot { } + // [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + // Check the Architecture enum for the list of possible values. + optional string architecture = 302803283; + // [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. optional bool auto_created = 463922264; // Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value. optional string chain_name = 68644169; + // [Output Only] Size in bytes of the snapshot at creation time. + optional int64 creation_size_bytes = 125400077; + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; @@ -25043,6 +25291,10 @@ message Snapshot { // Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. optional CustomerEncryptionKey snapshot_encryption_key = 43334526; + // Indicates the type of the snapshot. + // Check the SnapshotType enum for the list of possible values. + optional string snapshot_type = 124349653; + // The source disk used to create this snapshot. optional string source_disk = 451753793; @@ -25052,6 +25304,12 @@ 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; + // [Output Only] URL of the resource policy which created this scheduled snapshot. + optional string source_snapshot_schedule_policy = 235756291; + + // [Output Only] ID of the resource policy which created this scheduled snapshot. + optional string source_snapshot_schedule_policy_id = 70489047; + // [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -25109,6 +25367,22 @@ message SourceInstanceParams { // DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field. message SourceInstanceProperties { + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + enum KeyRevocationActionType { + // A value indicating that the enum field is not set. + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + + // Default value. This value is unused. + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + + // Indicates user chose no operation. + NONE = 2402104; + + // Indicates user chose to opt for VM shutdown on key revocation. + STOP = 2555906; + + } + // Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. optional bool can_ip_forward = 467731324; @@ -25124,6 +25398,10 @@ message SourceInstanceProperties { // A list of guest accelerator cards' type and count to use for instances created from this machine image. repeated AcceleratorConfig guest_accelerators = 463595119; + // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // Check the KeyRevocationActionType enum for the list of possible values. + optional string key_revocation_action_type = 235941474; + // Labels to apply to instances that are created from this machine image. map labels = 500195327; @@ -26272,7 +26550,7 @@ message TargetHttpsProxyList { // Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. message TargetInstance { - // NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + // Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. enum NatPolicy { // A value indicating that the enum field is not set. UNDEFINED_NAT_POLICY = 0; @@ -26300,7 +26578,7 @@ message TargetInstance { // 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; - // NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + // Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. // Check the NatPolicy enum for the list of possible values. optional string nat_policy = 509780496; @@ -28165,6 +28443,9 @@ message VmEndpointNatMappingsInterfaceNatMappings { // Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. optional int32 num_total_nat_ports = 299904384; + // Information about mappings provided by rules in this NAT. + repeated VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968; + // Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". optional string source_alias_ip_range = 440340952; @@ -28173,6 +28454,25 @@ message VmEndpointNatMappingsInterfaceNatMappings { } +// Contains information of NAT Mappings provided by a NAT Rule. +message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings { + // List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + repeated string drain_nat_ip_port_ranges = 395440577; + + // A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + repeated string nat_ip_port_ranges = 531830810; + + // Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + optional int32 num_total_drain_nat_ports = 335532793; + + // Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + optional int32 num_total_nat_ports = 299904384; + + // Rule number of the NAT Rule. + optional int32 rule_number = 535211500; + +} + // Contains a list of VmEndpointNatMappings. message VmEndpointNatMappingsList { // [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -28656,6 +28956,9 @@ message Warning { // The operation involved use of an injected kernel, which is deprecated. INJECTED_KERNELS_DEPRECATED = 417377419; + // A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; + // When deploying a deployment with a exceedingly large number of resources LARGE_DEPLOYMENT_WARNING = 481440678; @@ -28755,6 +29058,9 @@ message Warnings { // The operation involved use of an injected kernel, which is deprecated. INJECTED_KERNELS_DEPRECATED = 417377419; + // A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; + // When deploying a deployment with a exceedingly large number of resources LARGE_DEPLOYMENT_WARNING = 481440678; @@ -30565,7 +30871,7 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. + // Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesInstanceGroupManagersRequest) returns (InstanceGroupManagersListManagedInstancesResponse) { option (google.api.http) = { post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" @@ -30864,7 +31170,7 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Creates multiple instances. Count specifies the number of instances to create. + // Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. rpc BulkInsert(BulkInsertInstanceRequest) returns (Operation) { option (google.api.http) = { body: "bulk_insert_instance_resource_resource" @@ -33161,7 +33467,7 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. + // Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagersListInstancesResponse) { option (google.api.http) = { post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 3c96f344..5e1b8480 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -10529,6 +10529,9 @@ export namespace google { /** Properties of an AttachedDisk. */ interface IAttachedDisk { + /** AttachedDisk architecture */ + architecture?: (string|null); + /** AttachedDisk autoDelete */ autoDelete?: (boolean|null); @@ -10584,6 +10587,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IAttachedDisk); + /** AttachedDisk architecture. */ + public architecture?: (string|null); + /** AttachedDisk autoDelete. */ public autoDelete?: (boolean|null); @@ -10629,6 +10635,9 @@ export namespace google { /** AttachedDisk type. */ public type?: (string|null); + /** AttachedDisk _architecture. */ + public _architecture?: "architecture"; + /** AttachedDisk _autoDelete. */ public _autoDelete?: "autoDelete"; @@ -10741,6 +10750,14 @@ export namespace google { namespace AttachedDisk { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + /** Interface enum. */ enum Interface { UNDEFINED_INTERFACE = 0, @@ -10766,6 +10783,9 @@ export namespace google { /** Properties of an AttachedDiskInitializeParams. */ interface IAttachedDiskInitializeParams { + /** AttachedDiskInitializeParams architecture */ + architecture?: (string|null); + /** AttachedDiskInitializeParams description */ description?: (string|null); @@ -10815,6 +10835,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IAttachedDiskInitializeParams); + /** AttachedDiskInitializeParams architecture. */ + public architecture?: (string|null); + /** AttachedDiskInitializeParams description. */ public description?: (string|null); @@ -10854,6 +10877,9 @@ export namespace google { /** AttachedDiskInitializeParams sourceSnapshotEncryptionKey. */ public sourceSnapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** AttachedDiskInitializeParams _architecture. */ + public _architecture?: "architecture"; + /** AttachedDiskInitializeParams _description. */ public _description?: "description"; @@ -10957,6 +10983,14 @@ export namespace google { namespace AttachedDiskInitializeParams { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + /** OnUpdateAction enum. */ enum OnUpdateAction { UNDEFINED_ON_UPDATE_ACTION = 0, @@ -18114,6 +18148,7 @@ export namespace google { enum Status { UNDEFINED_STATUS = 0, ACTIVE = 314733318, + CANCELLED = 41957681, CREATING = 455564985, EXPIRED = 482489093, NOT_YET_ACTIVE = 20607337 @@ -29838,6 +29873,9 @@ export namespace google { /** Properties of a Disk. */ interface IDisk { + /** Disk architecture */ + architecture?: (string|null); + /** Disk creationTimestamp */ creationTimestamp?: (string|null); @@ -29956,6 +29994,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IDisk); + /** Disk architecture. */ + public architecture?: (string|null); + /** Disk creationTimestamp. */ public creationTimestamp?: (string|null); @@ -30064,6 +30105,9 @@ export namespace google { /** Disk zone. */ public zone?: (string|null); + /** Disk _architecture. */ + public _architecture?: "architecture"; + /** Disk _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; @@ -30224,6 +30268,14 @@ export namespace google { namespace Disk { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + /** Status enum. */ enum Status { UNDEFINED_STATUS = 0, @@ -32370,12 +32422,234 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an ErrorDetails. */ + interface IErrorDetails { + + /** ErrorDetails errorInfo */ + errorInfo?: (google.cloud.compute.v1.IErrorInfo|null); + + /** ErrorDetails help */ + help?: (google.cloud.compute.v1.IHelp|null); + + /** ErrorDetails localizedMessage */ + localizedMessage?: (google.cloud.compute.v1.ILocalizedMessage|null); + } + + /** Represents an ErrorDetails. */ + class ErrorDetails implements IErrorDetails { + + /** + * Constructs a new ErrorDetails. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IErrorDetails); + + /** ErrorDetails errorInfo. */ + public errorInfo?: (google.cloud.compute.v1.IErrorInfo|null); + + /** ErrorDetails help. */ + public help?: (google.cloud.compute.v1.IHelp|null); + + /** ErrorDetails localizedMessage. */ + public localizedMessage?: (google.cloud.compute.v1.ILocalizedMessage|null); + + /** ErrorDetails _errorInfo. */ + public _errorInfo?: "errorInfo"; + + /** ErrorDetails _help. */ + public _help?: "help"; + + /** ErrorDetails _localizedMessage. */ + public _localizedMessage?: "localizedMessage"; + + /** + * Creates a new ErrorDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorDetails instance + */ + public static create(properties?: google.cloud.compute.v1.IErrorDetails): google.cloud.compute.v1.ErrorDetails; + + /** + * Encodes the specified ErrorDetails message. Does not implicitly {@link google.cloud.compute.v1.ErrorDetails.verify|verify} messages. + * @param message ErrorDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IErrorDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ErrorDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ErrorDetails.verify|verify} messages. + * @param message ErrorDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IErrorDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorDetails + * @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.ErrorDetails; + + /** + * Decodes an ErrorDetails message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ErrorDetails + * @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.ErrorDetails; + + /** + * Verifies an ErrorDetails 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 ErrorDetails message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ErrorDetails + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ErrorDetails; + + /** + * Creates a plain object from an ErrorDetails message. Also converts values to other types if specified. + * @param message ErrorDetails + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ErrorDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ErrorDetails to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ErrorInfo. */ + interface IErrorInfo { + + /** ErrorInfo domain */ + domain?: (string|null); + + /** ErrorInfo metadatas */ + metadatas?: ({ [k: string]: string }|null); + + /** ErrorInfo reason */ + reason?: (string|null); + } + + /** Represents an ErrorInfo. */ + class ErrorInfo implements IErrorInfo { + + /** + * Constructs a new ErrorInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IErrorInfo); + + /** ErrorInfo domain. */ + public domain?: (string|null); + + /** ErrorInfo metadatas. */ + public metadatas: { [k: string]: string }; + + /** ErrorInfo reason. */ + public reason?: (string|null); + + /** ErrorInfo _domain. */ + public _domain?: "domain"; + + /** ErrorInfo _reason. */ + public _reason?: "reason"; + + /** + * Creates a new ErrorInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IErrorInfo): google.cloud.compute.v1.ErrorInfo; + + /** + * Encodes the specified ErrorInfo message. Does not implicitly {@link google.cloud.compute.v1.ErrorInfo.verify|verify} messages. + * @param message ErrorInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IErrorInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ErrorInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ErrorInfo.verify|verify} messages. + * @param message ErrorInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IErrorInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorInfo + * @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.ErrorInfo; + + /** + * Decodes an ErrorInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ErrorInfo + * @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.ErrorInfo; + + /** + * Verifies an ErrorInfo 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 ErrorInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ErrorInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ErrorInfo; + + /** + * Creates a plain object from an ErrorInfo message. Also converts values to other types if specified. + * @param message ErrorInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ErrorInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ErrorInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an Errors. */ interface IErrors { /** Errors code */ code?: (string|null); + /** Errors errorDetails */ + errorDetails?: (google.cloud.compute.v1.IErrorDetails[]|null); + /** Errors location */ location?: (string|null); @@ -32395,6 +32669,9 @@ export namespace google { /** Errors code. */ public code?: (string|null); + /** Errors errorDetails. */ + public errorDetails: google.cloud.compute.v1.IErrorDetails[]; + /** Errors location. */ public location?: (string|null); @@ -35616,6 +35893,7 @@ export namespace google { UNDEFINED_PSC_CONNECTION_STATUS = 0, ACCEPTED = 246714279, CLOSED = 380163436, + NEEDS_ATTENTION = 344491452, PENDING = 35394935, REJECTED = 174130302, STATUS_UNSPECIFIED = 42133066 @@ -52097,6 +52375,198 @@ export namespace google { } } + /** Properties of a Help. */ + interface IHelp { + + /** Help links */ + links?: (google.cloud.compute.v1.IHelpLink[]|null); + } + + /** Represents a Help. */ + class Help implements IHelp { + + /** + * Constructs a new Help. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHelp); + + /** Help links. */ + public links: google.cloud.compute.v1.IHelpLink[]; + + /** + * Creates a new Help instance using the specified properties. + * @param [properties] Properties to set + * @returns Help instance + */ + public static create(properties?: google.cloud.compute.v1.IHelp): google.cloud.compute.v1.Help; + + /** + * Encodes the specified Help message. Does not implicitly {@link google.cloud.compute.v1.Help.verify|verify} messages. + * @param message Help message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHelp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Help message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Help.verify|verify} messages. + * @param message Help message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHelp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Help message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Help + * @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.Help; + + /** + * Decodes a Help message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Help + * @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.Help; + + /** + * Verifies a Help 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 Help message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Help + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.Help; + + /** + * Creates a plain object from a Help message. Also converts values to other types if specified. + * @param message Help + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.Help, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Help to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HelpLink. */ + interface IHelpLink { + + /** HelpLink description */ + description?: (string|null); + + /** HelpLink url */ + url?: (string|null); + } + + /** Represents a HelpLink. */ + class HelpLink implements IHelpLink { + + /** + * Constructs a new HelpLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHelpLink); + + /** HelpLink description. */ + public description?: (string|null); + + /** HelpLink url. */ + public url?: (string|null); + + /** HelpLink _description. */ + public _description?: "description"; + + /** HelpLink _url. */ + public _url?: "url"; + + /** + * Creates a new HelpLink instance using the specified properties. + * @param [properties] Properties to set + * @returns HelpLink instance + */ + public static create(properties?: google.cloud.compute.v1.IHelpLink): google.cloud.compute.v1.HelpLink; + + /** + * Encodes the specified HelpLink message. Does not implicitly {@link google.cloud.compute.v1.HelpLink.verify|verify} messages. + * @param message HelpLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHelpLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HelpLink message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HelpLink.verify|verify} messages. + * @param message HelpLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHelpLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HelpLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HelpLink + * @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.HelpLink; + + /** + * Decodes a HelpLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HelpLink + * @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.HelpLink; + + /** + * Verifies a HelpLink 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 HelpLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HelpLink + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HelpLink; + + /** + * Creates a plain object from a HelpLink message. Also converts values to other types if specified. + * @param message HelpLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HelpLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HelpLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a HostRule. */ interface IHostRule { @@ -53703,6 +54173,9 @@ export namespace google { /** Properties of an Image. */ interface IImage { + /** Image architecture */ + architecture?: (string|null); + /** Image archiveSizeBytes */ archiveSizeBytes?: (number|Long|string|null); @@ -53806,6 +54279,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IImage); + /** Image architecture. */ + public architecture?: (string|null); + /** Image archiveSizeBytes. */ public archiveSizeBytes?: (number|Long|string|null); @@ -53899,6 +54375,9 @@ export namespace google { /** Image storageLocations. */ public storageLocations: string[]; + /** Image _architecture. */ + public _architecture?: "architecture"; + /** Image _archiveSizeBytes. */ public _archiveSizeBytes?: "archiveSizeBytes"; @@ -54050,6 +54529,14 @@ export namespace google { namespace Image { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + /** SourceType enum. */ enum SourceType { UNDEFINED_SOURCE_TYPE = 0, @@ -61917,6 +62404,9 @@ export namespace google { /** Instance id */ id?: (number|Long|string|null); + /** Instance keyRevocationActionType */ + keyRevocationActionType?: (string|null); + /** Instance kind */ kind?: (string|null); @@ -62053,6 +62543,9 @@ export namespace google { /** Instance id. */ public id?: (number|Long|string|null); + /** Instance keyRevocationActionType. */ + public keyRevocationActionType?: (string|null); + /** Instance kind. */ public kind?: (string|null); @@ -62173,6 +62666,9 @@ export namespace google { /** Instance _id. */ public _id?: "id"; + /** Instance _keyRevocationActionType. */ + public _keyRevocationActionType?: "keyRevocationActionType"; + /** Instance _kind. */ public _kind?: "kind"; @@ -62321,6 +62817,14 @@ export namespace google { namespace Instance { + /** KeyRevocationActionType enum. */ + enum KeyRevocationActionType { + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0, + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106, + NONE = 2402104, + STOP = 2555906 + } + /** PrivateIpv6GoogleAccess enum. */ enum PrivateIpv6GoogleAccess { UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0, @@ -67316,6 +67820,9 @@ export namespace google { /** InstanceProperties guestAccelerators */ guestAccelerators?: (google.cloud.compute.v1.IAcceleratorConfig[]|null); + /** InstanceProperties keyRevocationActionType */ + keyRevocationActionType?: (string|null); + /** InstanceProperties labels */ labels?: ({ [k: string]: string }|null); @@ -67386,6 +67893,9 @@ export namespace google { /** InstanceProperties guestAccelerators. */ public guestAccelerators: google.cloud.compute.v1.IAcceleratorConfig[]; + /** InstanceProperties keyRevocationActionType. */ + public keyRevocationActionType?: (string|null); + /** InstanceProperties labels. */ public labels: { [k: string]: string }; @@ -67440,6 +67950,9 @@ export namespace google { /** InstanceProperties _description. */ public _description?: "description"; + /** InstanceProperties _keyRevocationActionType. */ + public _keyRevocationActionType?: "keyRevocationActionType"; + /** InstanceProperties _machineType. */ public _machineType?: "machineType"; @@ -67540,6 +68053,14 @@ export namespace google { namespace InstanceProperties { + /** KeyRevocationActionType enum. */ + enum KeyRevocationActionType { + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0, + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106, + NONE = 2402104, + STOP = 2555906 + } + /** PrivateIpv6GoogleAccess enum. */ enum PrivateIpv6GoogleAccess { UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0, @@ -86995,6 +87516,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a LocalizedMessage. */ + interface ILocalizedMessage { + + /** LocalizedMessage locale */ + locale?: (string|null); + + /** LocalizedMessage message */ + message?: (string|null); + } + + /** Represents a LocalizedMessage. */ + class LocalizedMessage implements ILocalizedMessage { + + /** + * Constructs a new LocalizedMessage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ILocalizedMessage); + + /** LocalizedMessage locale. */ + public locale?: (string|null); + + /** LocalizedMessage message. */ + public message?: (string|null); + + /** LocalizedMessage _locale. */ + public _locale?: "locale"; + + /** LocalizedMessage _message. */ + public _message?: "message"; + + /** + * Creates a new LocalizedMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns LocalizedMessage instance + */ + public static create(properties?: google.cloud.compute.v1.ILocalizedMessage): google.cloud.compute.v1.LocalizedMessage; + + /** + * Encodes the specified LocalizedMessage message. Does not implicitly {@link google.cloud.compute.v1.LocalizedMessage.verify|verify} messages. + * @param message LocalizedMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ILocalizedMessage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocalizedMessage message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocalizedMessage.verify|verify} messages. + * @param message LocalizedMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ILocalizedMessage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocalizedMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocalizedMessage + * @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.LocalizedMessage; + + /** + * Decodes a LocalizedMessage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocalizedMessage + * @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.LocalizedMessage; + + /** + * Verifies a LocalizedMessage 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 LocalizedMessage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocalizedMessage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LocalizedMessage; + + /** + * Creates a plain object from a LocalizedMessage message. Also converts values to other types if specified. + * @param message LocalizedMessage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.LocalizedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocalizedMessage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a LocationPolicy. */ interface ILocationPolicy { @@ -87108,6 +87731,9 @@ export namespace google { /** Properties of a LocationPolicyLocation. */ interface ILocationPolicyLocation { + /** LocationPolicyLocation constraints */ + constraints?: (google.cloud.compute.v1.ILocationPolicyLocationConstraints|null); + /** LocationPolicyLocation preference */ preference?: (string|null); } @@ -87121,9 +87747,15 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ILocationPolicyLocation); + /** LocationPolicyLocation constraints. */ + public constraints?: (google.cloud.compute.v1.ILocationPolicyLocationConstraints|null); + /** LocationPolicyLocation preference. */ public preference?: (string|null); + /** LocationPolicyLocation _constraints. */ + public _constraints?: "constraints"; + /** LocationPolicyLocation _preference. */ public _preference?: "preference"; @@ -87209,6 +87841,99 @@ export namespace google { } } + /** Properties of a LocationPolicyLocationConstraints. */ + interface ILocationPolicyLocationConstraints { + + /** LocationPolicyLocationConstraints maxCount */ + maxCount?: (number|null); + } + + /** Represents a LocationPolicyLocationConstraints. */ + class LocationPolicyLocationConstraints implements ILocationPolicyLocationConstraints { + + /** + * Constructs a new LocationPolicyLocationConstraints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ILocationPolicyLocationConstraints); + + /** LocationPolicyLocationConstraints maxCount. */ + public maxCount?: (number|null); + + /** LocationPolicyLocationConstraints _maxCount. */ + public _maxCount?: "maxCount"; + + /** + * Creates a new LocationPolicyLocationConstraints instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationPolicyLocationConstraints instance + */ + public static create(properties?: google.cloud.compute.v1.ILocationPolicyLocationConstraints): google.cloud.compute.v1.LocationPolicyLocationConstraints; + + /** + * Encodes the specified LocationPolicyLocationConstraints message. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyLocationConstraints.verify|verify} messages. + * @param message LocationPolicyLocationConstraints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ILocationPolicyLocationConstraints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationPolicyLocationConstraints message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyLocationConstraints.verify|verify} messages. + * @param message LocationPolicyLocationConstraints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ILocationPolicyLocationConstraints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationPolicyLocationConstraints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationPolicyLocationConstraints + * @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.LocationPolicyLocationConstraints; + + /** + * Decodes a LocationPolicyLocationConstraints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationPolicyLocationConstraints + * @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.LocationPolicyLocationConstraints; + + /** + * Verifies a LocationPolicyLocationConstraints 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 LocationPolicyLocationConstraints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationPolicyLocationConstraints + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LocationPolicyLocationConstraints; + + /** + * Creates a plain object from a LocationPolicyLocationConstraints message. Also converts values to other types if specified. + * @param message LocationPolicyLocationConstraints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.LocationPolicyLocationConstraints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationPolicyLocationConstraints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a LogConfig. */ interface ILogConfig { @@ -89980,6 +90705,9 @@ export namespace google { /** Network enableUlaInternalIpv6 */ enableUlaInternalIpv6?: (boolean|null); + /** Network firewallPolicy */ + firewallPolicy?: (string|null); + /** Network gatewayIPv4 */ gatewayIPv4?: (string|null); @@ -90041,6 +90769,9 @@ export namespace google { /** Network enableUlaInternalIpv6. */ public enableUlaInternalIpv6?: (boolean|null); + /** Network firewallPolicy. */ + public firewallPolicy?: (string|null); + /** Network gatewayIPv4. */ public gatewayIPv4?: (string|null); @@ -90092,6 +90823,9 @@ export namespace google { /** Network _enableUlaInternalIpv6. */ public _enableUlaInternalIpv6?: "enableUlaInternalIpv6"; + /** Network _firewallPolicy. */ + public _firewallPolicy?: "firewallPolicy"; + /** Network _gatewayIPv4. */ public _gatewayIPv4?: "gatewayIPv4"; @@ -120447,6 +121181,9 @@ export namespace google { /** Properties of a SavedDisk. */ interface ISavedDisk { + /** SavedDisk architecture */ + architecture?: (string|null); + /** SavedDisk kind */ kind?: (string|null); @@ -120469,6 +121206,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ISavedDisk); + /** SavedDisk architecture. */ + public architecture?: (string|null); + /** SavedDisk kind. */ public kind?: (string|null); @@ -120481,6 +121221,9 @@ export namespace google { /** SavedDisk storageBytesStatus. */ public storageBytesStatus?: (string|null); + /** SavedDisk _architecture. */ + public _architecture?: "architecture"; + /** SavedDisk _kind. */ public _kind?: "kind"; @@ -120566,6 +121309,14 @@ export namespace google { namespace SavedDisk { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + /** StorageBytesStatus enum. */ enum StorageBytesStatus { UNDEFINED_STORAGE_BYTES_STATUS = 0, @@ -124649,6 +125400,7 @@ export namespace google { UNDEFINED_STATUS = 0, ACCEPTED = 246714279, CLOSED = 380163436, + NEEDS_ATTENTION = 344491452, PENDING = 35394935, REJECTED = 174130302, STATUS_UNSPECIFIED = 42133066 @@ -133510,12 +134262,18 @@ export namespace google { /** Properties of a Snapshot. */ interface ISnapshot { + /** Snapshot architecture */ + architecture?: (string|null); + /** Snapshot autoCreated */ autoCreated?: (boolean|null); /** Snapshot chainName */ chainName?: (string|null); + /** Snapshot creationSizeBytes */ + creationSizeBytes?: (number|Long|string|null); + /** Snapshot creationTimestamp */ creationTimestamp?: (string|null); @@ -133561,6 +134319,9 @@ export namespace google { /** Snapshot snapshotEncryptionKey */ snapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Snapshot snapshotType */ + snapshotType?: (string|null); + /** Snapshot sourceDisk */ sourceDisk?: (string|null); @@ -133570,6 +134331,12 @@ export namespace google { /** Snapshot sourceDiskId */ sourceDiskId?: (string|null); + /** Snapshot sourceSnapshotSchedulePolicy */ + sourceSnapshotSchedulePolicy?: (string|null); + + /** Snapshot sourceSnapshotSchedulePolicyId */ + sourceSnapshotSchedulePolicyId?: (string|null); + /** Snapshot status */ status?: (string|null); @@ -133592,12 +134359,18 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ISnapshot); + /** Snapshot architecture. */ + public architecture?: (string|null); + /** Snapshot autoCreated. */ public autoCreated?: (boolean|null); /** Snapshot chainName. */ public chainName?: (string|null); + /** Snapshot creationSizeBytes. */ + public creationSizeBytes?: (number|Long|string|null); + /** Snapshot creationTimestamp. */ public creationTimestamp?: (string|null); @@ -133643,6 +134416,9 @@ export namespace google { /** Snapshot snapshotEncryptionKey. */ public snapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Snapshot snapshotType. */ + public snapshotType?: (string|null); + /** Snapshot sourceDisk. */ public sourceDisk?: (string|null); @@ -133652,6 +134428,12 @@ export namespace google { /** Snapshot sourceDiskId. */ public sourceDiskId?: (string|null); + /** Snapshot sourceSnapshotSchedulePolicy. */ + public sourceSnapshotSchedulePolicy?: (string|null); + + /** Snapshot sourceSnapshotSchedulePolicyId. */ + public sourceSnapshotSchedulePolicyId?: (string|null); + /** Snapshot status. */ public status?: (string|null); @@ -133664,12 +134446,18 @@ export namespace google { /** Snapshot storageLocations. */ public storageLocations: string[]; + /** Snapshot _architecture. */ + public _architecture?: "architecture"; + /** Snapshot _autoCreated. */ public _autoCreated?: "autoCreated"; /** Snapshot _chainName. */ public _chainName?: "chainName"; + /** Snapshot _creationSizeBytes. */ + public _creationSizeBytes?: "creationSizeBytes"; + /** Snapshot _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; @@ -133706,6 +134494,9 @@ export namespace google { /** Snapshot _snapshotEncryptionKey. */ public _snapshotEncryptionKey?: "snapshotEncryptionKey"; + /** Snapshot _snapshotType. */ + public _snapshotType?: "snapshotType"; + /** Snapshot _sourceDisk. */ public _sourceDisk?: "sourceDisk"; @@ -133715,6 +134506,12 @@ export namespace google { /** Snapshot _sourceDiskId. */ public _sourceDiskId?: "sourceDiskId"; + /** Snapshot _sourceSnapshotSchedulePolicy. */ + public _sourceSnapshotSchedulePolicy?: "sourceSnapshotSchedulePolicy"; + + /** Snapshot _sourceSnapshotSchedulePolicyId. */ + public _sourceSnapshotSchedulePolicyId?: "sourceSnapshotSchedulePolicyId"; + /** Snapshot _status. */ public _status?: "status"; @@ -133797,6 +134594,21 @@ export namespace google { namespace Snapshot { + /** Architecture enum. */ + enum Architecture { + UNDEFINED_ARCHITECTURE = 0, + ARCHITECTURE_UNSPECIFIED = 394750507, + ARM64 = 62547450, + X86_64 = 425300551 + } + + /** SnapshotType enum. */ + enum SnapshotType { + UNDEFINED_SNAPSHOT_TYPE = 0, + ARCHIVE = 506752162, + STANDARD = 484642493 + } + /** Status enum. */ enum Status { UNDEFINED_STATUS = 0, @@ -134160,6 +134972,9 @@ export namespace google { /** SourceInstanceProperties guestAccelerators */ guestAccelerators?: (google.cloud.compute.v1.IAcceleratorConfig[]|null); + /** SourceInstanceProperties keyRevocationActionType */ + keyRevocationActionType?: (string|null); + /** SourceInstanceProperties labels */ labels?: ({ [k: string]: string }|null); @@ -134209,6 +135024,9 @@ export namespace google { /** SourceInstanceProperties guestAccelerators. */ public guestAccelerators: google.cloud.compute.v1.IAcceleratorConfig[]; + /** SourceInstanceProperties keyRevocationActionType. */ + public keyRevocationActionType?: (string|null); + /** SourceInstanceProperties labels. */ public labels: { [k: string]: string }; @@ -134242,6 +135060,9 @@ export namespace google { /** SourceInstanceProperties _description. */ public _description?: "description"; + /** SourceInstanceProperties _keyRevocationActionType. */ + public _keyRevocationActionType?: "keyRevocationActionType"; + /** SourceInstanceProperties _machineType. */ public _machineType?: "machineType"; @@ -134328,6 +135149,17 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace SourceInstanceProperties { + + /** KeyRevocationActionType enum. */ + enum KeyRevocationActionType { + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0, + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106, + NONE = 2402104, + STOP = 2555906 + } + } + /** Properties of a SslCertificate. */ interface ISslCertificate { @@ -150715,6 +151547,9 @@ export namespace google { /** VmEndpointNatMappingsInterfaceNatMappings numTotalNatPorts */ numTotalNatPorts?: (number|null); + /** VmEndpointNatMappingsInterfaceNatMappings ruleMappings */ + ruleMappings?: (google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings[]|null); + /** VmEndpointNatMappingsInterfaceNatMappings sourceAliasIpRange */ sourceAliasIpRange?: (string|null); @@ -150743,6 +151578,9 @@ export namespace google { /** VmEndpointNatMappingsInterfaceNatMappings numTotalNatPorts. */ public numTotalNatPorts?: (number|null); + /** VmEndpointNatMappingsInterfaceNatMappings ruleMappings. */ + public ruleMappings: google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings[]; + /** VmEndpointNatMappingsInterfaceNatMappings sourceAliasIpRange. */ public sourceAliasIpRange?: (string|null); @@ -150832,6 +151670,129 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. */ + interface IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings { + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings drainNatIpPortRanges */ + drainNatIpPortRanges?: (string[]|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings natIpPortRanges */ + natIpPortRanges?: (string[]|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalDrainNatPorts */ + numTotalDrainNatPorts?: (number|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalNatPorts */ + numTotalNatPorts?: (number|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings ruleNumber */ + ruleNumber?: (number|null); + } + + /** Represents a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. */ + class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings implements IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings { + + /** + * Constructs a new VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings drainNatIpPortRanges. */ + public drainNatIpPortRanges: string[]; + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings natIpPortRanges. */ + public natIpPortRanges: string[]; + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalDrainNatPorts. */ + public numTotalDrainNatPorts?: (number|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalNatPorts. */ + public numTotalNatPorts?: (number|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings ruleNumber. */ + public ruleNumber?: (number|null); + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _numTotalDrainNatPorts. */ + public _numTotalDrainNatPorts?: "numTotalDrainNatPorts"; + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _numTotalNatPorts. */ + public _numTotalNatPorts?: "numTotalNatPorts"; + + /** VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _ruleNumber. */ + public _ruleNumber?: "ruleNumber"; + + /** + * Creates a new VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings instance using the specified properties. + * @param [properties] Properties to set + * @returns VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings instance + */ + public static create(properties?: google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings): google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings; + + /** + * Encodes the specified VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message. Does not implicitly {@link google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify|verify} messages. + * @param message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify|verify} messages. + * @param message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @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.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings; + + /** + * Decodes a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @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.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings; + + /** + * Verifies a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings 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 VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings; + + /** + * Creates a plain object from a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message. Also converts values to other types if specified. + * @param message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a VmEndpointNatMappingsList. */ interface IVmEndpointNatMappingsList { @@ -153469,6 +154430,7 @@ export namespace google { EXTERNAL_API_WARNING = 175546307, FIELD_VALUE_OVERRIDEN = 329669423, INJECTED_KERNELS_DEPRECATED = 417377419, + INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606, LARGE_DEPLOYMENT_WARNING = 481440678, MISSING_TYPE_DEPENDENCY = 344505463, NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999, @@ -153611,6 +154573,7 @@ export namespace google { EXTERNAL_API_WARNING = 175546307, FIELD_VALUE_OVERRIDEN = 329669423, INJECTED_KERNELS_DEPRECATED = 417377419, + INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606, LARGE_DEPLOYMENT_WARNING = 481440678, MISSING_TYPE_DEPENDENCY = 344505463, NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999, diff --git a/protos/protos.js b/protos/protos.js index e4cf2ca6..d84bfd93 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -29290,6 +29290,7 @@ * Properties of an AttachedDisk. * @memberof google.cloud.compute.v1 * @interface IAttachedDisk + * @property {string|null} [architecture] AttachedDisk architecture * @property {boolean|null} [autoDelete] AttachedDisk autoDelete * @property {boolean|null} [boot] AttachedDisk boot * @property {string|null} [deviceName] AttachedDisk deviceName @@ -29324,6 +29325,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * AttachedDisk architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.AttachedDisk + * @instance + */ + AttachedDisk.prototype.architecture = null; + /** * AttachedDisk autoDelete. * @member {boolean|null|undefined} autoDelete @@ -29447,6 +29456,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * AttachedDisk _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.AttachedDisk + * @instance + */ + Object.defineProperty(AttachedDisk.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AttachedDisk _autoDelete. * @member {"autoDelete"|undefined} _autoDelete @@ -29637,6 +29657,8 @@ $root.google.cloud.compute.v1.InitialStateConfig.encode(message.shieldedInstanceInitialState, writer.uint32(/* id 192356867, wireType 2 =*/1538854938).fork()).ldelim(); 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.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.licenses != null && message.licenses.length) @@ -29680,6 +29702,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 302803283: + message.architecture = reader.string(); + break; case 464761403: message.autoDelete = reader.bool(); break; @@ -29765,6 +29790,11 @@ 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.autoDelete != null && message.hasOwnProperty("autoDelete")) { properties._autoDelete = 1; if (typeof message.autoDelete !== "boolean") @@ -29870,6 +29900,8 @@ if (object instanceof $root.google.cloud.compute.v1.AttachedDisk) return object; var message = new $root.google.cloud.compute.v1.AttachedDisk(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.autoDelete != null) message.autoDelete = Boolean(object.autoDelete); if (object.boot != null) @@ -30004,6 +30036,11 @@ if (options.oneofs) object._diskEncryptionKey = "diskEncryptionKey"; } + 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; @@ -30041,6 +30078,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.AttachedDisk.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 + */ + AttachedDisk.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; + })(); + /** * Interface enum. * @name google.cloud.compute.v1.AttachedDisk.Interface @@ -30098,6 +30153,7 @@ * Properties of an AttachedDiskInitializeParams. * @memberof google.cloud.compute.v1 * @interface IAttachedDiskInitializeParams + * @property {string|null} [architecture] AttachedDiskInitializeParams architecture * @property {string|null} [description] AttachedDiskInitializeParams description * @property {string|null} [diskName] AttachedDiskInitializeParams diskName * @property {number|Long|null} [diskSizeGb] AttachedDiskInitializeParams diskSizeGb @@ -30131,6 +30187,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * AttachedDiskInitializeParams architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.AttachedDiskInitializeParams + * @instance + */ + AttachedDiskInitializeParams.prototype.architecture = null; + /** * AttachedDiskInitializeParams description. * @member {string|null|undefined} description @@ -30238,6 +30302,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * AttachedDiskInitializeParams _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.AttachedDiskInitializeParams + * @instance + */ + Object.defineProperty(AttachedDiskInitializeParams.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AttachedDiskInitializeParams _description. * @member {"description"|undefined} _description @@ -30387,6 +30462,8 @@ writer.uint32(/* id 186769108, wireType 0 =*/1494152864).int64(message.provisionedIops); if (message.onUpdateAction != null && Object.hasOwnProperty.call(message, "onUpdateAction")) writer.uint32(/* id 202451980, wireType 2 =*/1619615842).string(message.onUpdateAction); + 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")) $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceSnapshotEncryptionKey, writer.uint32(/* id 303679322, wireType 2 =*/2429434578).fork()).ldelim(); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) @@ -30435,6 +30512,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 302803283: + message.architecture = reader.string(); + break; case 422937596: message.description = reader.string(); break; @@ -30533,6 +30613,11 @@ 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.description != null && message.hasOwnProperty("description")) { properties._description = 1; if (!$util.isString(message.description)) @@ -30626,6 +30711,8 @@ if (object instanceof $root.google.cloud.compute.v1.AttachedDiskInitializeParams) return object; var message = new $root.google.cloud.compute.v1.AttachedDiskInitializeParams(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.description != null) message.description = String(object.description); if (object.diskName != null) @@ -30747,6 +30834,11 @@ if (options.oneofs) object._onUpdateAction = "onUpdateAction"; } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } if (message.sourceSnapshotEncryptionKey != null && message.hasOwnProperty("sourceSnapshotEncryptionKey")) { object.sourceSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceSnapshotEncryptionKey, options); if (options.oneofs) @@ -30795,6 +30887,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.AttachedDiskInitializeParams.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 + */ + AttachedDiskInitializeParams.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; + })(); + /** * OnUpdateAction enum. * @name google.cloud.compute.v1.AttachedDiskInitializeParams.OnUpdateAction @@ -51418,6 +51528,7 @@ * @enum {number} * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} CANCELLED=41957681 CANCELLED value * @property {number} CREATING=455564985 CREATING value * @property {number} EXPIRED=482489093 EXPIRED value * @property {number} NOT_YET_ACTIVE=20607337 NOT_YET_ACTIVE value @@ -51426,6 +51537,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_STATUS"] = 0; values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[41957681] = "CANCELLED"] = 41957681; values[valuesById[455564985] = "CREATING"] = 455564985; values[valuesById[482489093] = "EXPIRED"] = 482489093; values[valuesById[20607337] = "NOT_YET_ACTIVE"] = 20607337; @@ -80267,6 +80379,7 @@ * Properties of a Disk. * @memberof google.cloud.compute.v1 * @interface IDisk + * @property {string|null} [architecture] Disk architecture * @property {string|null} [creationTimestamp] Disk creationTimestamp * @property {string|null} [description] Disk description * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [diskEncryptionKey] Disk diskEncryptionKey @@ -80327,6 +80440,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Disk architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.architecture = null; + /** * Disk creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -80618,6 +80739,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Disk _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Disk _creationTimestamp. * @member {"creationTimestamp"|undefined} _creationTimestamp @@ -81015,6 +81147,8 @@ writer.uint32(/* id 233052711, wireType 2 =*/1864421690).string(message.sourceStorageObject); 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.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")) $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceSnapshotEncryptionKey, writer.uint32(/* id 303679322, wireType 2 =*/2429434578).fork()).ldelim(); if (message.licenses != null && message.licenses.length) @@ -81077,6 +81211,9 @@ 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; @@ -81257,6 +81394,11 @@ 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)) @@ -81478,6 +81620,8 @@ if (object instanceof $root.google.cloud.compute.v1.Disk) return object; var message = new $root.google.cloud.compute.v1.Disk(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) @@ -81782,6 +81926,11 @@ if (options.oneofs) object._diskEncryptionKey = "diskEncryptionKey"; } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } if (message.sourceSnapshotEncryptionKey != null && message.hasOwnProperty("sourceSnapshotEncryptionKey")) { object.sourceSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceSnapshotEncryptionKey, options); if (options.oneofs) @@ -81868,6 +82017,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.Disk.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 + */ + Disk.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.Disk.Status @@ -87562,6 +87729,603 @@ return Error; })(); + v1.ErrorDetails = (function() { + + /** + * Properties of an ErrorDetails. + * @memberof google.cloud.compute.v1 + * @interface IErrorDetails + * @property {google.cloud.compute.v1.IErrorInfo|null} [errorInfo] ErrorDetails errorInfo + * @property {google.cloud.compute.v1.IHelp|null} [help] ErrorDetails help + * @property {google.cloud.compute.v1.ILocalizedMessage|null} [localizedMessage] ErrorDetails localizedMessage + */ + + /** + * Constructs a new ErrorDetails. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an ErrorDetails. + * @implements IErrorDetails + * @constructor + * @param {google.cloud.compute.v1.IErrorDetails=} [properties] Properties to set + */ + function ErrorDetails(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]]; + } + + /** + * ErrorDetails errorInfo. + * @member {google.cloud.compute.v1.IErrorInfo|null|undefined} errorInfo + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + ErrorDetails.prototype.errorInfo = null; + + /** + * ErrorDetails help. + * @member {google.cloud.compute.v1.IHelp|null|undefined} help + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + ErrorDetails.prototype.help = null; + + /** + * ErrorDetails localizedMessage. + * @member {google.cloud.compute.v1.ILocalizedMessage|null|undefined} localizedMessage + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + ErrorDetails.prototype.localizedMessage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ErrorDetails _errorInfo. + * @member {"errorInfo"|undefined} _errorInfo + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + Object.defineProperty(ErrorDetails.prototype, "_errorInfo", { + get: $util.oneOfGetter($oneOfFields = ["errorInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ErrorDetails _help. + * @member {"help"|undefined} _help + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + Object.defineProperty(ErrorDetails.prototype, "_help", { + get: $util.oneOfGetter($oneOfFields = ["help"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ErrorDetails _localizedMessage. + * @member {"localizedMessage"|undefined} _localizedMessage + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + */ + Object.defineProperty(ErrorDetails.prototype, "_localizedMessage", { + get: $util.oneOfGetter($oneOfFields = ["localizedMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ErrorDetails instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {google.cloud.compute.v1.IErrorDetails=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ErrorDetails} ErrorDetails instance + */ + ErrorDetails.create = function create(properties) { + return new ErrorDetails(properties); + }; + + /** + * Encodes the specified ErrorDetails message. Does not implicitly {@link google.cloud.compute.v1.ErrorDetails.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {google.cloud.compute.v1.IErrorDetails} message ErrorDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.help != null && Object.hasOwnProperty.call(message, "help")) + $root.google.cloud.compute.v1.Help.encode(message.help, writer.uint32(/* id 3198785, wireType 2 =*/25590282).fork()).ldelim(); + if (message.errorInfo != null && Object.hasOwnProperty.call(message, "errorInfo")) + $root.google.cloud.compute.v1.ErrorInfo.encode(message.errorInfo, writer.uint32(/* id 25251973, wireType 2 =*/202015786).fork()).ldelim(); + if (message.localizedMessage != null && Object.hasOwnProperty.call(message, "localizedMessage")) + $root.google.cloud.compute.v1.LocalizedMessage.encode(message.localizedMessage, writer.uint32(/* id 404537155, wireType 2 =*/3236297242).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ErrorDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ErrorDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {google.cloud.compute.v1.IErrorDetails} message ErrorDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ErrorDetails message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ErrorDetails + * @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.ErrorDetails} ErrorDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorDetails.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.ErrorDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 25251973: + message.errorInfo = $root.google.cloud.compute.v1.ErrorInfo.decode(reader, reader.uint32()); + break; + case 3198785: + message.help = $root.google.cloud.compute.v1.Help.decode(reader, reader.uint32()); + break; + case 404537155: + message.localizedMessage = $root.google.cloud.compute.v1.LocalizedMessage.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ErrorDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ErrorDetails} ErrorDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ErrorDetails message. + * @function verify + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.errorInfo != null && message.hasOwnProperty("errorInfo")) { + properties._errorInfo = 1; + { + var error = $root.google.cloud.compute.v1.ErrorInfo.verify(message.errorInfo); + if (error) + return "errorInfo." + error; + } + } + if (message.help != null && message.hasOwnProperty("help")) { + properties._help = 1; + { + var error = $root.google.cloud.compute.v1.Help.verify(message.help); + if (error) + return "help." + error; + } + } + if (message.localizedMessage != null && message.hasOwnProperty("localizedMessage")) { + properties._localizedMessage = 1; + { + var error = $root.google.cloud.compute.v1.LocalizedMessage.verify(message.localizedMessage); + if (error) + return "localizedMessage." + error; + } + } + return null; + }; + + /** + * Creates an ErrorDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ErrorDetails} ErrorDetails + */ + ErrorDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ErrorDetails) + return object; + var message = new $root.google.cloud.compute.v1.ErrorDetails(); + if (object.errorInfo != null) { + if (typeof object.errorInfo !== "object") + throw TypeError(".google.cloud.compute.v1.ErrorDetails.errorInfo: object expected"); + message.errorInfo = $root.google.cloud.compute.v1.ErrorInfo.fromObject(object.errorInfo); + } + if (object.help != null) { + if (typeof object.help !== "object") + throw TypeError(".google.cloud.compute.v1.ErrorDetails.help: object expected"); + message.help = $root.google.cloud.compute.v1.Help.fromObject(object.help); + } + if (object.localizedMessage != null) { + if (typeof object.localizedMessage !== "object") + throw TypeError(".google.cloud.compute.v1.ErrorDetails.localizedMessage: object expected"); + message.localizedMessage = $root.google.cloud.compute.v1.LocalizedMessage.fromObject(object.localizedMessage); + } + return message; + }; + + /** + * Creates a plain object from an ErrorDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ErrorDetails + * @static + * @param {google.cloud.compute.v1.ErrorDetails} message ErrorDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ErrorDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.help != null && message.hasOwnProperty("help")) { + object.help = $root.google.cloud.compute.v1.Help.toObject(message.help, options); + if (options.oneofs) + object._help = "help"; + } + if (message.errorInfo != null && message.hasOwnProperty("errorInfo")) { + object.errorInfo = $root.google.cloud.compute.v1.ErrorInfo.toObject(message.errorInfo, options); + if (options.oneofs) + object._errorInfo = "errorInfo"; + } + if (message.localizedMessage != null && message.hasOwnProperty("localizedMessage")) { + object.localizedMessage = $root.google.cloud.compute.v1.LocalizedMessage.toObject(message.localizedMessage, options); + if (options.oneofs) + object._localizedMessage = "localizedMessage"; + } + return object; + }; + + /** + * Converts this ErrorDetails to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ErrorDetails + * @instance + * @returns {Object.} JSON object + */ + ErrorDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ErrorDetails; + })(); + + v1.ErrorInfo = (function() { + + /** + * Properties of an ErrorInfo. + * @memberof google.cloud.compute.v1 + * @interface IErrorInfo + * @property {string|null} [domain] ErrorInfo domain + * @property {Object.|null} [metadatas] ErrorInfo metadatas + * @property {string|null} [reason] ErrorInfo reason + */ + + /** + * Constructs a new ErrorInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an ErrorInfo. + * @implements IErrorInfo + * @constructor + * @param {google.cloud.compute.v1.IErrorInfo=} [properties] Properties to set + */ + function ErrorInfo(properties) { + this.metadatas = {}; + 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]]; + } + + /** + * ErrorInfo domain. + * @member {string|null|undefined} domain + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + */ + ErrorInfo.prototype.domain = null; + + /** + * ErrorInfo metadatas. + * @member {Object.} metadatas + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + */ + ErrorInfo.prototype.metadatas = $util.emptyObject; + + /** + * ErrorInfo reason. + * @member {string|null|undefined} reason + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + */ + ErrorInfo.prototype.reason = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ErrorInfo _domain. + * @member {"domain"|undefined} _domain + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + */ + Object.defineProperty(ErrorInfo.prototype, "_domain", { + get: $util.oneOfGetter($oneOfFields = ["domain"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ErrorInfo _reason. + * @member {"reason"|undefined} _reason + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + */ + Object.defineProperty(ErrorInfo.prototype, "_reason", { + get: $util.oneOfGetter($oneOfFields = ["reason"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ErrorInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {google.cloud.compute.v1.IErrorInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ErrorInfo} ErrorInfo instance + */ + ErrorInfo.create = function create(properties) { + return new ErrorInfo(properties); + }; + + /** + * Encodes the specified ErrorInfo message. Does not implicitly {@link google.cloud.compute.v1.ErrorInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {google.cloud.compute.v1.IErrorInfo} message ErrorInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadatas != null && Object.hasOwnProperty.call(message, "metadatas")) + for (var keys = Object.keys(message.metadatas), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8514340, wireType 2 =*/68114722).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadatas[keys[i]]).ldelim(); + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) + writer.uint32(/* id 138777156, wireType 2 =*/1110217250).string(message.reason); + if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) + writer.uint32(/* id 284415172, wireType 2 =*/2275321378).string(message.domain); + return writer; + }; + + /** + * Encodes the specified ErrorInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ErrorInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {google.cloud.compute.v1.IErrorInfo} message ErrorInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ErrorInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ErrorInfo + * @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.ErrorInfo} ErrorInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorInfo.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.ErrorInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 284415172: + message.domain = reader.string(); + break; + case 8514340: + if (message.metadatas === $util.emptyObject) + message.metadatas = {}; + 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.metadatas[key] = value; + break; + case 138777156: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ErrorInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ErrorInfo} ErrorInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ErrorInfo message. + * @function verify + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.domain != null && message.hasOwnProperty("domain")) { + properties._domain = 1; + if (!$util.isString(message.domain)) + return "domain: string expected"; + } + if (message.metadatas != null && message.hasOwnProperty("metadatas")) { + if (!$util.isObject(message.metadatas)) + return "metadatas: object expected"; + var key = Object.keys(message.metadatas); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.metadatas[key[i]])) + return "metadatas: string{k:string} expected"; + } + if (message.reason != null && message.hasOwnProperty("reason")) { + properties._reason = 1; + if (!$util.isString(message.reason)) + return "reason: string expected"; + } + return null; + }; + + /** + * Creates an ErrorInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ErrorInfo} ErrorInfo + */ + ErrorInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ErrorInfo) + return object; + var message = new $root.google.cloud.compute.v1.ErrorInfo(); + if (object.domain != null) + message.domain = String(object.domain); + if (object.metadatas) { + if (typeof object.metadatas !== "object") + throw TypeError(".google.cloud.compute.v1.ErrorInfo.metadatas: object expected"); + message.metadatas = {}; + for (var keys = Object.keys(object.metadatas), i = 0; i < keys.length; ++i) + message.metadatas[keys[i]] = String(object.metadatas[keys[i]]); + } + if (object.reason != null) + message.reason = String(object.reason); + return message; + }; + + /** + * Creates a plain object from an ErrorInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ErrorInfo + * @static + * @param {google.cloud.compute.v1.ErrorInfo} message ErrorInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ErrorInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.metadatas = {}; + var keys2; + if (message.metadatas && (keys2 = Object.keys(message.metadatas)).length) { + object.metadatas = {}; + for (var j = 0; j < keys2.length; ++j) + object.metadatas[keys2[j]] = message.metadatas[keys2[j]]; + } + if (message.reason != null && message.hasOwnProperty("reason")) { + object.reason = message.reason; + if (options.oneofs) + object._reason = "reason"; + } + if (message.domain != null && message.hasOwnProperty("domain")) { + object.domain = message.domain; + if (options.oneofs) + object._domain = "domain"; + } + return object; + }; + + /** + * Converts this ErrorInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ErrorInfo + * @instance + * @returns {Object.} JSON object + */ + ErrorInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ErrorInfo; + })(); + v1.Errors = (function() { /** @@ -87569,6 +88333,7 @@ * @memberof google.cloud.compute.v1 * @interface IErrors * @property {string|null} [code] Errors code + * @property {Array.|null} [errorDetails] Errors errorDetails * @property {string|null} [location] Errors location * @property {string|null} [message] Errors message */ @@ -87582,6 +88347,7 @@ * @param {google.cloud.compute.v1.IErrors=} [properties] Properties to set */ function Errors(properties) { + this.errorDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87596,6 +88362,14 @@ */ Errors.prototype.code = null; + /** + * Errors errorDetails. + * @member {Array.} errorDetails + * @memberof google.cloud.compute.v1.Errors + * @instance + */ + Errors.prototype.errorDetails = $util.emptyArray; + /** * Errors location. * @member {string|null|undefined} location @@ -87674,6 +88448,9 @@ writer = $Writer.create(); if (message.code != null && Object.hasOwnProperty.call(message, "code")) writer.uint32(/* id 3059181, wireType 2 =*/24473450).string(message.code); + if (message.errorDetails != null && message.errorDetails.length) + for (var i = 0; i < message.errorDetails.length; ++i) + $root.google.cloud.compute.v1.ErrorDetails.encode(message.errorDetails[i], writer.uint32(/* id 274653963, wireType 2 =*/2197231706).fork()).ldelim(); if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 290430901, wireType 2 =*/2323447210).string(message.location); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -87715,6 +88492,11 @@ case 3059181: message.code = reader.string(); break; + case 274653963: + if (!(message.errorDetails && message.errorDetails.length)) + message.errorDetails = []; + message.errorDetails.push($root.google.cloud.compute.v1.ErrorDetails.decode(reader, reader.uint32())); + break; case 290430901: message.location = reader.string(); break; @@ -87762,6 +88544,15 @@ if (!$util.isString(message.code)) return "code: string expected"; } + if (message.errorDetails != null && message.hasOwnProperty("errorDetails")) { + if (!Array.isArray(message.errorDetails)) + return "errorDetails: array expected"; + for (var i = 0; i < message.errorDetails.length; ++i) { + var error = $root.google.cloud.compute.v1.ErrorDetails.verify(message.errorDetails[i]); + if (error) + return "errorDetails." + error; + } + } if (message.location != null && message.hasOwnProperty("location")) { properties._location = 1; if (!$util.isString(message.location)) @@ -87789,6 +88580,16 @@ var message = new $root.google.cloud.compute.v1.Errors(); if (object.code != null) message.code = String(object.code); + if (object.errorDetails) { + if (!Array.isArray(object.errorDetails)) + throw TypeError(".google.cloud.compute.v1.Errors.errorDetails: array expected"); + message.errorDetails = []; + for (var i = 0; i < object.errorDetails.length; ++i) { + if (typeof object.errorDetails[i] !== "object") + throw TypeError(".google.cloud.compute.v1.Errors.errorDetails: object expected"); + message.errorDetails[i] = $root.google.cloud.compute.v1.ErrorDetails.fromObject(object.errorDetails[i]); + } + } if (object.location != null) message.location = String(object.location); if (object.message != null) @@ -87809,11 +88610,18 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.errorDetails = []; if (message.code != null && message.hasOwnProperty("code")) { object.code = message.code; if (options.oneofs) object._code = "code"; } + if (message.errorDetails && message.errorDetails.length) { + object.errorDetails = []; + for (var j = 0; j < message.errorDetails.length; ++j) + object.errorDetails[j] = $root.google.cloud.compute.v1.ErrorDetails.toObject(message.errorDetails[j], options); + } if (message.location != null && message.hasOwnProperty("location")) { object.location = message.location; if (options.oneofs) @@ -97319,6 +98127,7 @@ * @property {number} UNDEFINED_PSC_CONNECTION_STATUS=0 UNDEFINED_PSC_CONNECTION_STATUS value * @property {number} ACCEPTED=246714279 ACCEPTED value * @property {number} CLOSED=380163436 CLOSED value + * @property {number} NEEDS_ATTENTION=344491452 NEEDS_ATTENTION value * @property {number} PENDING=35394935 PENDING value * @property {number} REJECTED=174130302 REJECTED value * @property {number} STATUS_UNSPECIFIED=42133066 STATUS_UNSPECIFIED value @@ -97328,6 +98137,7 @@ values[valuesById[0] = "UNDEFINED_PSC_CONNECTION_STATUS"] = 0; values[valuesById[246714279] = "ACCEPTED"] = 246714279; values[valuesById[380163436] = "CLOSED"] = 380163436; + values[valuesById[344491452] = "NEEDS_ATTENTION"] = 344491452; values[valuesById[35394935] = "PENDING"] = 35394935; values[valuesById[174130302] = "REJECTED"] = 174130302; values[valuesById[42133066] = "STATUS_UNSPECIFIED"] = 42133066; @@ -137024,6 +137834,456 @@ return HealthStatusForNetworkEndpoint; })(); + v1.Help = (function() { + + /** + * Properties of a Help. + * @memberof google.cloud.compute.v1 + * @interface IHelp + * @property {Array.|null} [links] Help links + */ + + /** + * Constructs a new Help. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a Help. + * @implements IHelp + * @constructor + * @param {google.cloud.compute.v1.IHelp=} [properties] Properties to set + */ + function Help(properties) { + this.links = []; + 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]]; + } + + /** + * Help links. + * @member {Array.} links + * @memberof google.cloud.compute.v1.Help + * @instance + */ + Help.prototype.links = $util.emptyArray; + + /** + * Creates a new Help instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.Help + * @static + * @param {google.cloud.compute.v1.IHelp=} [properties] Properties to set + * @returns {google.cloud.compute.v1.Help} Help instance + */ + Help.create = function create(properties) { + return new Help(properties); + }; + + /** + * Encodes the specified Help message. Does not implicitly {@link google.cloud.compute.v1.Help.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.Help + * @static + * @param {google.cloud.compute.v1.IHelp} message Help message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Help.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.links != null && message.links.length) + for (var i = 0; i < message.links.length; ++i) + $root.google.cloud.compute.v1.HelpLink.encode(message.links[i], writer.uint32(/* id 102977465, wireType 2 =*/823819722).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Help message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Help.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.Help + * @static + * @param {google.cloud.compute.v1.IHelp} message Help message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Help.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Help message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.Help + * @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.Help} Help + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Help.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.Help(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 102977465: + if (!(message.links && message.links.length)) + message.links = []; + message.links.push($root.google.cloud.compute.v1.HelpLink.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Help message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.Help + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.Help} Help + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Help.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Help message. + * @function verify + * @memberof google.cloud.compute.v1.Help + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Help.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.links != null && message.hasOwnProperty("links")) { + if (!Array.isArray(message.links)) + return "links: array expected"; + for (var i = 0; i < message.links.length; ++i) { + var error = $root.google.cloud.compute.v1.HelpLink.verify(message.links[i]); + if (error) + return "links." + error; + } + } + return null; + }; + + /** + * Creates a Help message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.Help + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.Help} Help + */ + Help.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.Help) + return object; + var message = new $root.google.cloud.compute.v1.Help(); + if (object.links) { + if (!Array.isArray(object.links)) + throw TypeError(".google.cloud.compute.v1.Help.links: array expected"); + message.links = []; + for (var i = 0; i < object.links.length; ++i) { + if (typeof object.links[i] !== "object") + throw TypeError(".google.cloud.compute.v1.Help.links: object expected"); + message.links[i] = $root.google.cloud.compute.v1.HelpLink.fromObject(object.links[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Help message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.Help + * @static + * @param {google.cloud.compute.v1.Help} message Help + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Help.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.links = []; + if (message.links && message.links.length) { + object.links = []; + for (var j = 0; j < message.links.length; ++j) + object.links[j] = $root.google.cloud.compute.v1.HelpLink.toObject(message.links[j], options); + } + return object; + }; + + /** + * Converts this Help to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.Help + * @instance + * @returns {Object.} JSON object + */ + Help.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Help; + })(); + + v1.HelpLink = (function() { + + /** + * Properties of a HelpLink. + * @memberof google.cloud.compute.v1 + * @interface IHelpLink + * @property {string|null} [description] HelpLink description + * @property {string|null} [url] HelpLink url + */ + + /** + * Constructs a new HelpLink. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HelpLink. + * @implements IHelpLink + * @constructor + * @param {google.cloud.compute.v1.IHelpLink=} [properties] Properties to set + */ + function HelpLink(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]]; + } + + /** + * HelpLink description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.HelpLink + * @instance + */ + HelpLink.prototype.description = null; + + /** + * HelpLink url. + * @member {string|null|undefined} url + * @memberof google.cloud.compute.v1.HelpLink + * @instance + */ + HelpLink.prototype.url = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HelpLink _description. + * @member {"description"|undefined} _description + * @memberof google.cloud.compute.v1.HelpLink + * @instance + */ + Object.defineProperty(HelpLink.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HelpLink _url. + * @member {"url"|undefined} _url + * @memberof google.cloud.compute.v1.HelpLink + * @instance + */ + Object.defineProperty(HelpLink.prototype, "_url", { + get: $util.oneOfGetter($oneOfFields = ["url"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HelpLink instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {google.cloud.compute.v1.IHelpLink=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HelpLink} HelpLink instance + */ + HelpLink.create = function create(properties) { + return new HelpLink(properties); + }; + + /** + * Encodes the specified HelpLink message. Does not implicitly {@link google.cloud.compute.v1.HelpLink.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {google.cloud.compute.v1.IHelpLink} message HelpLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HelpLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.url != null && Object.hasOwnProperty.call(message, "url")) + writer.uint32(/* id 116079, wireType 2 =*/928634).string(message.url); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + return writer; + }; + + /** + * Encodes the specified HelpLink message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HelpLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {google.cloud.compute.v1.IHelpLink} message HelpLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HelpLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HelpLink message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HelpLink + * @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.HelpLink} HelpLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HelpLink.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.HelpLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 422937596: + message.description = reader.string(); + break; + case 116079: + message.url = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HelpLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HelpLink} HelpLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HelpLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HelpLink message. + * @function verify + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HelpLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.url != null && message.hasOwnProperty("url")) { + properties._url = 1; + if (!$util.isString(message.url)) + return "url: string expected"; + } + return null; + }; + + /** + * Creates a HelpLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HelpLink} HelpLink + */ + HelpLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HelpLink) + return object; + var message = new $root.google.cloud.compute.v1.HelpLink(); + if (object.description != null) + message.description = String(object.description); + if (object.url != null) + message.url = String(object.url); + return message; + }; + + /** + * Creates a plain object from a HelpLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HelpLink + * @static + * @param {google.cloud.compute.v1.HelpLink} message HelpLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HelpLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.url != null && message.hasOwnProperty("url")) { + object.url = message.url; + if (options.oneofs) + object._url = "url"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + return object; + }; + + /** + * Converts this HelpLink to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HelpLink + * @instance + * @returns {Object.} JSON object + */ + HelpLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HelpLink; + })(); + v1.HostRule = (function() { /** @@ -141559,6 +142819,7 @@ * Properties of an Image. * @memberof google.cloud.compute.v1 * @interface IImage + * @property {string|null} [architecture] Image architecture * @property {number|Long|null} [archiveSizeBytes] Image archiveSizeBytes * @property {string|null} [creationTimestamp] Image creationTimestamp * @property {google.cloud.compute.v1.IDeprecationStatus|null} [deprecated] Image deprecated @@ -141612,6 +142873,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Image architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Image.prototype.architecture = null; + /** * Image archiveSizeBytes. * @member {number|Long|null|undefined} archiveSizeBytes @@ -141863,6 +143132,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Image _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Object.defineProperty(Image.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Image _archiveSizeBytes. * @member {"archiveSizeBytes"|undefined} _archiveSizeBytes @@ -142204,6 +143484,8 @@ writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); if (message.shieldedInstanceInitialState != null && Object.hasOwnProperty.call(message, "shieldedInstanceInitialState")) $root.google.cloud.compute.v1.InitialStateConfig.encode(message.shieldedInstanceInitialState, writer.uint32(/* id 192356867, wireType 2 =*/1538854938).fork()).ldelim(); + 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")) $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceSnapshotEncryptionKey, writer.uint32(/* id 303679322, wireType 2 =*/2429434578).fork()).ldelim(); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) @@ -142277,6 +143559,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 302803283: + message.architecture = reader.string(); + break; case 381093450: message.archiveSizeBytes = reader.int64(); break; @@ -142438,6 +143723,11 @@ 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.archiveSizeBytes != null && message.hasOwnProperty("archiveSizeBytes")) { properties._archiveSizeBytes = 1; if (!$util.isInteger(message.archiveSizeBytes) && !(message.archiveSizeBytes && $util.isInteger(message.archiveSizeBytes.low) && $util.isInteger(message.archiveSizeBytes.high))) @@ -142642,6 +143932,8 @@ if (object instanceof $root.google.cloud.compute.v1.Image) return object; var message = new $root.google.cloud.compute.v1.Image(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.archiveSizeBytes != null) if ($util.Long) (message.archiveSizeBytes = $util.Long.fromValue(object.archiveSizeBytes)).unsigned = false; @@ -142876,6 +144168,11 @@ if (options.oneofs) object._shieldedInstanceInitialState = "shieldedInstanceInitialState"; } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } if (message.sourceSnapshotEncryptionKey != null && message.hasOwnProperty("sourceSnapshotEncryptionKey")) { object.sourceSnapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceSnapshotEncryptionKey, options); if (options.oneofs) @@ -142987,6 +144284,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.Image.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 + */ + Image.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; + })(); + /** * SourceType enum. * @name google.cloud.compute.v1.Image.SourceType @@ -162657,6 +163972,7 @@ * @property {Array.|null} [guestAccelerators] Instance guestAccelerators * @property {string|null} [hostname] Instance hostname * @property {number|Long|null} [id] Instance id + * @property {string|null} [keyRevocationActionType] Instance keyRevocationActionType * @property {string|null} [kind] Instance kind * @property {string|null} [labelFingerprint] Instance labelFingerprint * @property {Object.|null} [labels] Instance labels @@ -162813,6 +164129,14 @@ */ Instance.prototype.id = null; + /** + * Instance keyRevocationActionType. + * @member {string|null|undefined} keyRevocationActionType + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.keyRevocationActionType = null; + /** * Instance kind. * @member {string|null|undefined} kind @@ -163169,6 +164493,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Instance _keyRevocationActionType. + * @member {"keyRevocationActionType"|undefined} _keyRevocationActionType + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Object.defineProperty(Instance.prototype, "_keyRevocationActionType", { + get: $util.oneOfGetter($oneOfFields = ["keyRevocationActionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Instance _kind. * @member {"kind"|undefined} _kind @@ -163515,6 +164850,8 @@ writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.keyRevocationActionType != null && Object.hasOwnProperty.call(message, "keyRevocationActionType")) + writer.uint32(/* id 235941474, wireType 2 =*/1887531794).string(message.keyRevocationActionType); if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) writer.uint32(/* id 237067315, wireType 2 =*/1896538522).string(message.hostname); if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) @@ -163635,6 +164972,9 @@ case 3355: message.id = reader.uint64(); break; + case 235941474: + message.keyRevocationActionType = reader.string(); + break; case 3292052: message.kind = reader.string(); break; @@ -163865,6 +165205,11 @@ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + properties._keyRevocationActionType = 1; + if (!$util.isString(message.keyRevocationActionType)) + return "keyRevocationActionType: string expected"; + } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -164123,6 +165468,8 @@ 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.keyRevocationActionType != null) + message.keyRevocationActionType = String(object.keyRevocationActionType); if (object.kind != null) message.kind = String(object.kind); if (object.labelFingerprint != null) @@ -164372,6 +165719,11 @@ if (options.oneofs) object._fingerprint = "fingerprint"; } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + object.keyRevocationActionType = message.keyRevocationActionType; + if (options.oneofs) + object._keyRevocationActionType = "keyRevocationActionType"; + } if (message.hostname != null && message.hasOwnProperty("hostname")) { object.hostname = message.hostname; if (options.oneofs) @@ -164487,6 +165839,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * KeyRevocationActionType enum. + * @name google.cloud.compute.v1.Instance.KeyRevocationActionType + * @enum {number} + * @property {number} UNDEFINED_KEY_REVOCATION_ACTION_TYPE=0 UNDEFINED_KEY_REVOCATION_ACTION_TYPE value + * @property {number} KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED=467110106 KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED value + * @property {number} NONE=2402104 NONE value + * @property {number} STOP=2555906 STOP value + */ + Instance.KeyRevocationActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_KEY_REVOCATION_ACTION_TYPE"] = 0; + values[valuesById[467110106] = "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"] = 467110106; + values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[2555906] = "STOP"] = 2555906; + return values; + })(); + /** * PrivateIpv6GoogleAccess enum. * @name google.cloud.compute.v1.Instance.PrivateIpv6GoogleAccess @@ -178106,6 +179476,7 @@ * @property {string|null} [description] InstanceProperties description * @property {Array.|null} [disks] InstanceProperties disks * @property {Array.|null} [guestAccelerators] InstanceProperties guestAccelerators + * @property {string|null} [keyRevocationActionType] InstanceProperties keyRevocationActionType * @property {Object.|null} [labels] InstanceProperties labels * @property {string|null} [machineType] InstanceProperties machineType * @property {google.cloud.compute.v1.IMetadata|null} [metadata] InstanceProperties metadata @@ -178192,6 +179563,14 @@ */ InstanceProperties.prototype.guestAccelerators = $util.emptyArray; + /** + * InstanceProperties keyRevocationActionType. + * @member {string|null|undefined} keyRevocationActionType + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + InstanceProperties.prototype.keyRevocationActionType = null; + /** * InstanceProperties labels. * @member {Object.} labels @@ -178351,6 +179730,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceProperties _keyRevocationActionType. + * @member {"keyRevocationActionType"|undefined} _keyRevocationActionType + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + Object.defineProperty(InstanceProperties.prototype, "_keyRevocationActionType", { + get: $util.oneOfGetter($oneOfFields = ["keyRevocationActionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceProperties _machineType. * @member {"machineType"|undefined} _machineType @@ -178495,6 +179885,8 @@ $root.google.cloud.compute.v1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 157850683, wireType 2 =*/1262805466).fork()).ldelim(); if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); + if (message.keyRevocationActionType != null && Object.hasOwnProperty.call(message, "keyRevocationActionType")) + writer.uint32(/* id 235941474, wireType 2 =*/1887531794).string(message.keyRevocationActionType); if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) writer.uint32(/* id 242912759, wireType 2 =*/1943302074).string(message.minCpuPlatform); if (message.serviceAccounts != null && message.serviceAccounts.length) @@ -178577,6 +179969,9 @@ message.guestAccelerators = []; message.guestAccelerators.push($root.google.cloud.compute.v1.AcceleratorConfig.decode(reader, reader.uint32())); break; + case 235941474: + message.keyRevocationActionType = reader.string(); + break; case 500195327: if (message.labels === $util.emptyObject) message.labels = {}; @@ -178743,6 +180138,11 @@ return "guestAccelerators." + error; } } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + properties._keyRevocationActionType = 1; + if (!$util.isString(message.keyRevocationActionType)) + return "keyRevocationActionType: string expected"; + } if (message.labels != null && message.hasOwnProperty("labels")) { if (!$util.isObject(message.labels)) return "labels: object expected"; @@ -178896,6 +180296,8 @@ message.guestAccelerators[i] = $root.google.cloud.compute.v1.AcceleratorConfig.fromObject(object.guestAccelerators[i]); } } + if (object.keyRevocationActionType != null) + message.keyRevocationActionType = String(object.keyRevocationActionType); if (object.labels) { if (typeof object.labels !== "object") throw TypeError(".google.cloud.compute.v1.InstanceProperties.labels: object expected"); @@ -179045,6 +180447,11 @@ if (options.oneofs) object._machineType = "machineType"; } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + object.keyRevocationActionType = message.keyRevocationActionType; + if (options.oneofs) + object._keyRevocationActionType = "keyRevocationActionType"; + } if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) { object.minCpuPlatform = message.minCpuPlatform; if (options.oneofs) @@ -179115,6 +180522,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * KeyRevocationActionType enum. + * @name google.cloud.compute.v1.InstanceProperties.KeyRevocationActionType + * @enum {number} + * @property {number} UNDEFINED_KEY_REVOCATION_ACTION_TYPE=0 UNDEFINED_KEY_REVOCATION_ACTION_TYPE value + * @property {number} KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED=467110106 KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED value + * @property {number} NONE=2402104 NONE value + * @property {number} STOP=2555906 STOP value + */ + InstanceProperties.KeyRevocationActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_KEY_REVOCATION_ACTION_TYPE"] = 0; + values[valuesById[467110106] = "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"] = 467110106; + values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[2555906] = "STOP"] = 2555906; + return values; + })(); + /** * PrivateIpv6GoogleAccess enum. * @name google.cloud.compute.v1.InstanceProperties.PrivateIpv6GoogleAccess @@ -233899,6 +235324,248 @@ return LocalDisk; })(); + v1.LocalizedMessage = (function() { + + /** + * Properties of a LocalizedMessage. + * @memberof google.cloud.compute.v1 + * @interface ILocalizedMessage + * @property {string|null} [locale] LocalizedMessage locale + * @property {string|null} [message] LocalizedMessage message + */ + + /** + * Constructs a new LocalizedMessage. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a LocalizedMessage. + * @implements ILocalizedMessage + * @constructor + * @param {google.cloud.compute.v1.ILocalizedMessage=} [properties] Properties to set + */ + function LocalizedMessage(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]]; + } + + /** + * LocalizedMessage locale. + * @member {string|null|undefined} locale + * @memberof google.cloud.compute.v1.LocalizedMessage + * @instance + */ + LocalizedMessage.prototype.locale = null; + + /** + * LocalizedMessage message. + * @member {string|null|undefined} message + * @memberof google.cloud.compute.v1.LocalizedMessage + * @instance + */ + LocalizedMessage.prototype.message = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LocalizedMessage _locale. + * @member {"locale"|undefined} _locale + * @memberof google.cloud.compute.v1.LocalizedMessage + * @instance + */ + Object.defineProperty(LocalizedMessage.prototype, "_locale", { + get: $util.oneOfGetter($oneOfFields = ["locale"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * LocalizedMessage _message. + * @member {"message"|undefined} _message + * @memberof google.cloud.compute.v1.LocalizedMessage + * @instance + */ + Object.defineProperty(LocalizedMessage.prototype, "_message", { + get: $util.oneOfGetter($oneOfFields = ["message"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocalizedMessage instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {google.cloud.compute.v1.ILocalizedMessage=} [properties] Properties to set + * @returns {google.cloud.compute.v1.LocalizedMessage} LocalizedMessage instance + */ + LocalizedMessage.create = function create(properties) { + return new LocalizedMessage(properties); + }; + + /** + * Encodes the specified LocalizedMessage message. Does not implicitly {@link google.cloud.compute.v1.LocalizedMessage.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {google.cloud.compute.v1.ILocalizedMessage} message LocalizedMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocalizedMessage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 418054151, wireType 2 =*/3344433210).string(message.message); + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) + writer.uint32(/* id 513150554, wireType 2 =*/4105204434).string(message.locale); + return writer; + }; + + /** + * Encodes the specified LocalizedMessage message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocalizedMessage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {google.cloud.compute.v1.ILocalizedMessage} message LocalizedMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocalizedMessage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocalizedMessage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.LocalizedMessage + * @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.LocalizedMessage} LocalizedMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocalizedMessage.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.LocalizedMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 513150554: + message.locale = reader.string(); + break; + case 418054151: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocalizedMessage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.LocalizedMessage} LocalizedMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocalizedMessage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocalizedMessage message. + * @function verify + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocalizedMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.locale != null && message.hasOwnProperty("locale")) { + properties._locale = 1; + if (!$util.isString(message.locale)) + return "locale: string expected"; + } + if (message.message != null && message.hasOwnProperty("message")) { + properties._message = 1; + if (!$util.isString(message.message)) + return "message: string expected"; + } + return null; + }; + + /** + * Creates a LocalizedMessage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.LocalizedMessage} LocalizedMessage + */ + LocalizedMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.LocalizedMessage) + return object; + var message = new $root.google.cloud.compute.v1.LocalizedMessage(); + if (object.locale != null) + message.locale = String(object.locale); + if (object.message != null) + message.message = String(object.message); + return message; + }; + + /** + * Creates a plain object from a LocalizedMessage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.LocalizedMessage + * @static + * @param {google.cloud.compute.v1.LocalizedMessage} message LocalizedMessage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocalizedMessage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.message != null && message.hasOwnProperty("message")) { + object.message = message.message; + if (options.oneofs) + object._message = "message"; + } + if (message.locale != null && message.hasOwnProperty("locale")) { + object.locale = message.locale; + if (options.oneofs) + object._locale = "locale"; + } + return object; + }; + + /** + * Converts this LocalizedMessage to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.LocalizedMessage + * @instance + * @returns {Object.} JSON object + */ + LocalizedMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LocalizedMessage; + })(); + v1.LocationPolicy = (function() { /** @@ -234193,6 +235860,7 @@ * Properties of a LocationPolicyLocation. * @memberof google.cloud.compute.v1 * @interface ILocationPolicyLocation + * @property {google.cloud.compute.v1.ILocationPolicyLocationConstraints|null} [constraints] LocationPolicyLocation constraints * @property {string|null} [preference] LocationPolicyLocation preference */ @@ -234211,6 +235879,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * LocationPolicyLocation constraints. + * @member {google.cloud.compute.v1.ILocationPolicyLocationConstraints|null|undefined} constraints + * @memberof google.cloud.compute.v1.LocationPolicyLocation + * @instance + */ + LocationPolicyLocation.prototype.constraints = null; + /** * LocationPolicyLocation preference. * @member {string|null|undefined} preference @@ -234222,6 +235898,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * LocationPolicyLocation _constraints. + * @member {"constraints"|undefined} _constraints + * @memberof google.cloud.compute.v1.LocationPolicyLocation + * @instance + */ + Object.defineProperty(LocationPolicyLocation.prototype, "_constraints", { + get: $util.oneOfGetter($oneOfFields = ["constraints"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * LocationPolicyLocation _preference. * @member {"preference"|undefined} _preference @@ -234257,6 +235944,8 @@ LocationPolicyLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.constraints != null && Object.hasOwnProperty.call(message, "constraints")) + $root.google.cloud.compute.v1.LocationPolicyLocationConstraints.encode(message.constraints, writer.uint32(/* id 3909174, wireType 2 =*/31273394).fork()).ldelim(); if (message.preference != null && Object.hasOwnProperty.call(message, "preference")) writer.uint32(/* id 150781147, wireType 2 =*/1206249178).string(message.preference); return writer; @@ -234293,6 +235982,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3909174: + message.constraints = $root.google.cloud.compute.v1.LocationPolicyLocationConstraints.decode(reader, reader.uint32()); + break; case 150781147: message.preference = reader.string(); break; @@ -234332,6 +236024,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.constraints != null && message.hasOwnProperty("constraints")) { + properties._constraints = 1; + { + var error = $root.google.cloud.compute.v1.LocationPolicyLocationConstraints.verify(message.constraints); + if (error) + return "constraints." + error; + } + } if (message.preference != null && message.hasOwnProperty("preference")) { properties._preference = 1; if (!$util.isString(message.preference)) @@ -234352,6 +236052,11 @@ if (object instanceof $root.google.cloud.compute.v1.LocationPolicyLocation) return object; var message = new $root.google.cloud.compute.v1.LocationPolicyLocation(); + if (object.constraints != null) { + if (typeof object.constraints !== "object") + throw TypeError(".google.cloud.compute.v1.LocationPolicyLocation.constraints: object expected"); + message.constraints = $root.google.cloud.compute.v1.LocationPolicyLocationConstraints.fromObject(object.constraints); + } if (object.preference != null) message.preference = String(object.preference); return message; @@ -234370,6 +236075,11 @@ if (!options) options = {}; var object = {}; + if (message.constraints != null && message.hasOwnProperty("constraints")) { + object.constraints = $root.google.cloud.compute.v1.LocationPolicyLocationConstraints.toObject(message.constraints, options); + if (options.oneofs) + object._constraints = "constraints"; + } if (message.preference != null && message.hasOwnProperty("preference")) { object.preference = message.preference; if (options.oneofs) @@ -234410,6 +236120,211 @@ return LocationPolicyLocation; })(); + v1.LocationPolicyLocationConstraints = (function() { + + /** + * Properties of a LocationPolicyLocationConstraints. + * @memberof google.cloud.compute.v1 + * @interface ILocationPolicyLocationConstraints + * @property {number|null} [maxCount] LocationPolicyLocationConstraints maxCount + */ + + /** + * Constructs a new LocationPolicyLocationConstraints. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a LocationPolicyLocationConstraints. + * @implements ILocationPolicyLocationConstraints + * @constructor + * @param {google.cloud.compute.v1.ILocationPolicyLocationConstraints=} [properties] Properties to set + */ + function LocationPolicyLocationConstraints(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]]; + } + + /** + * LocationPolicyLocationConstraints maxCount. + * @member {number|null|undefined} maxCount + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @instance + */ + LocationPolicyLocationConstraints.prototype.maxCount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LocationPolicyLocationConstraints _maxCount. + * @member {"maxCount"|undefined} _maxCount + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @instance + */ + Object.defineProperty(LocationPolicyLocationConstraints.prototype, "_maxCount", { + get: $util.oneOfGetter($oneOfFields = ["maxCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocationPolicyLocationConstraints instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {google.cloud.compute.v1.ILocationPolicyLocationConstraints=} [properties] Properties to set + * @returns {google.cloud.compute.v1.LocationPolicyLocationConstraints} LocationPolicyLocationConstraints instance + */ + LocationPolicyLocationConstraints.create = function create(properties) { + return new LocationPolicyLocationConstraints(properties); + }; + + /** + * Encodes the specified LocationPolicyLocationConstraints message. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyLocationConstraints.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {google.cloud.compute.v1.ILocationPolicyLocationConstraints} message LocationPolicyLocationConstraints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyLocationConstraints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) + writer.uint32(/* id 287620724, wireType 0 =*/2300965792).int32(message.maxCount); + return writer; + }; + + /** + * Encodes the specified LocationPolicyLocationConstraints message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyLocationConstraints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {google.cloud.compute.v1.ILocationPolicyLocationConstraints} message LocationPolicyLocationConstraints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyLocationConstraints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationPolicyLocationConstraints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @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.LocationPolicyLocationConstraints} LocationPolicyLocationConstraints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyLocationConstraints.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.LocationPolicyLocationConstraints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 287620724: + message.maxCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationPolicyLocationConstraints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.LocationPolicyLocationConstraints} LocationPolicyLocationConstraints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyLocationConstraints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationPolicyLocationConstraints message. + * @function verify + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationPolicyLocationConstraints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) { + properties._maxCount = 1; + if (!$util.isInteger(message.maxCount)) + return "maxCount: integer expected"; + } + return null; + }; + + /** + * Creates a LocationPolicyLocationConstraints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.LocationPolicyLocationConstraints} LocationPolicyLocationConstraints + */ + LocationPolicyLocationConstraints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.LocationPolicyLocationConstraints) + return object; + var message = new $root.google.cloud.compute.v1.LocationPolicyLocationConstraints(); + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; + return message; + }; + + /** + * Creates a plain object from a LocationPolicyLocationConstraints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @static + * @param {google.cloud.compute.v1.LocationPolicyLocationConstraints} message LocationPolicyLocationConstraints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationPolicyLocationConstraints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) { + object.maxCount = message.maxCount; + if (options.oneofs) + object._maxCount = "maxCount"; + } + return object; + }; + + /** + * Converts this LocationPolicyLocationConstraints to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.LocationPolicyLocationConstraints + * @instance + * @returns {Object.} JSON object + */ + LocationPolicyLocationConstraints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LocationPolicyLocationConstraints; + })(); + v1.LogConfig = (function() { /** @@ -242054,6 +243969,7 @@ * @property {string|null} [creationTimestamp] Network creationTimestamp * @property {string|null} [description] Network description * @property {boolean|null} [enableUlaInternalIpv6] Network enableUlaInternalIpv6 + * @property {string|null} [firewallPolicy] Network firewallPolicy * @property {string|null} [gatewayIPv4] Network gatewayIPv4 * @property {number|Long|null} [id] Network id * @property {string|null} [internalIpv6Range] Network internalIpv6Range @@ -242125,6 +244041,14 @@ */ Network.prototype.enableUlaInternalIpv6 = null; + /** + * Network firewallPolicy. + * @member {string|null|undefined} firewallPolicy + * @memberof google.cloud.compute.v1.Network + * @instance + */ + Network.prototype.firewallPolicy = null; + /** * Network gatewayIPv4. * @member {string|null|undefined} gatewayIPv4 @@ -242279,6 +244203,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Network _firewallPolicy. + * @member {"firewallPolicy"|undefined} _firewallPolicy + * @memberof google.cloud.compute.v1.Network + * @instance + */ + Object.defineProperty(Network.prototype, "_firewallPolicy", { + get: $util.oneOfGetter($oneOfFields = ["firewallPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Network _gatewayIPv4. * @member {"gatewayIPv4"|undefined} _gatewayIPv4 @@ -242447,6 +244382,8 @@ writer.uint32(/* id 423757720, wireType 0 =*/3390061760).bool(message.enableUlaInternalIpv6); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.firewallPolicy != null && Object.hasOwnProperty.call(message, "firewallPolicy")) + writer.uint32(/* id 498173265, wireType 2 =*/3985386122).string(message.firewallPolicy); if (message.routingConfig != null && Object.hasOwnProperty.call(message, "routingConfig")) $root.google.cloud.compute.v1.NetworkRoutingConfig.encode(message.routingConfig, writer.uint32(/* id 523556059, wireType 2 =*/4188448474).fork()).ldelim(); return writer; @@ -242498,6 +244435,9 @@ case 423757720: message.enableUlaInternalIpv6 = reader.bool(); break; + case 498173265: + message.firewallPolicy = reader.string(); + break; case 178678877: message.gatewayIPv4 = reader.string(); break; @@ -242599,6 +244539,11 @@ if (typeof message.enableUlaInternalIpv6 !== "boolean") return "enableUlaInternalIpv6: boolean expected"; } + if (message.firewallPolicy != null && message.hasOwnProperty("firewallPolicy")) { + properties._firewallPolicy = 1; + if (!$util.isString(message.firewallPolicy)) + return "firewallPolicy: string expected"; + } if (message.gatewayIPv4 != null && message.hasOwnProperty("gatewayIPv4")) { properties._gatewayIPv4 = 1; if (!$util.isString(message.gatewayIPv4)) @@ -242693,6 +244638,8 @@ message.description = String(object.description); if (object.enableUlaInternalIpv6 != null) message.enableUlaInternalIpv6 = Boolean(object.enableUlaInternalIpv6); + if (object.firewallPolicy != null) + message.firewallPolicy = String(object.firewallPolicy); if (object.gatewayIPv4 != null) message.gatewayIPv4 = String(object.gatewayIPv4); if (object.id != null) @@ -242843,6 +244790,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.firewallPolicy != null && message.hasOwnProperty("firewallPolicy")) { + object.firewallPolicy = message.firewallPolicy; + if (options.oneofs) + object._firewallPolicy = "firewallPolicy"; + } if (message.routingConfig != null && message.hasOwnProperty("routingConfig")) { object.routingConfig = $root.google.cloud.compute.v1.NetworkRoutingConfig.toObject(message.routingConfig, options); if (options.oneofs) @@ -326536,6 +328488,7 @@ * Properties of a SavedDisk. * @memberof google.cloud.compute.v1 * @interface ISavedDisk + * @property {string|null} [architecture] SavedDisk architecture * @property {string|null} [kind] SavedDisk kind * @property {string|null} [sourceDisk] SavedDisk sourceDisk * @property {number|Long|null} [storageBytes] SavedDisk storageBytes @@ -326557,6 +328510,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * SavedDisk architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + SavedDisk.prototype.architecture = null; + /** * SavedDisk kind. * @member {string|null|undefined} kind @@ -326592,6 +328553,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * SavedDisk _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + Object.defineProperty(SavedDisk.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SavedDisk _kind. * @member {"kind"|undefined} _kind @@ -326662,6 +328634,8 @@ writer = $Writer.create(); if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture")) + writer.uint32(/* id 302803283, wireType 2 =*/2422426266).string(message.architecture); if (message.storageBytes != null && Object.hasOwnProperty.call(message, "storageBytes")) writer.uint32(/* id 424631719, wireType 0 =*/3397053752).int64(message.storageBytes); if (message.sourceDisk != null && Object.hasOwnProperty.call(message, "sourceDisk")) @@ -326702,6 +328676,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 302803283: + message.architecture = reader.string(); + break; case 3292052: message.kind = reader.string(); break; @@ -326750,6 +328727,11 @@ 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.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -326785,6 +328767,8 @@ if (object instanceof $root.google.cloud.compute.v1.SavedDisk) return object; var message = new $root.google.cloud.compute.v1.SavedDisk(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.kind != null) message.kind = String(object.kind); if (object.sourceDisk != null) @@ -326821,6 +328805,11 @@ if (options.oneofs) object._kind = "kind"; } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { if (typeof message.storageBytes === "number") object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes; @@ -326853,6 +328842,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.SavedDisk.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 + */ + SavedDisk.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; + })(); + /** * StorageBytesStatus enum. * @name google.cloud.compute.v1.SavedDisk.StorageBytesStatus @@ -337704,6 +339711,7 @@ * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value * @property {number} ACCEPTED=246714279 ACCEPTED value * @property {number} CLOSED=380163436 CLOSED value + * @property {number} NEEDS_ATTENTION=344491452 NEEDS_ATTENTION value * @property {number} PENDING=35394935 PENDING value * @property {number} REJECTED=174130302 REJECTED value * @property {number} STATUS_UNSPECIFIED=42133066 STATUS_UNSPECIFIED value @@ -337713,6 +339721,7 @@ values[valuesById[0] = "UNDEFINED_STATUS"] = 0; values[valuesById[246714279] = "ACCEPTED"] = 246714279; values[valuesById[380163436] = "CLOSED"] = 380163436; + values[valuesById[344491452] = "NEEDS_ATTENTION"] = 344491452; values[valuesById[35394935] = "PENDING"] = 35394935; values[valuesById[174130302] = "REJECTED"] = 174130302; values[valuesById[42133066] = "STATUS_UNSPECIFIED"] = 42133066; @@ -359745,8 +361754,10 @@ * Properties of a Snapshot. * @memberof google.cloud.compute.v1 * @interface ISnapshot + * @property {string|null} [architecture] Snapshot architecture * @property {boolean|null} [autoCreated] Snapshot autoCreated * @property {string|null} [chainName] Snapshot chainName + * @property {number|Long|null} [creationSizeBytes] Snapshot creationSizeBytes * @property {string|null} [creationTimestamp] Snapshot creationTimestamp * @property {string|null} [description] Snapshot description * @property {number|Long|null} [diskSizeGb] Snapshot diskSizeGb @@ -359762,9 +361773,12 @@ * @property {boolean|null} [satisfiesPzs] Snapshot satisfiesPzs * @property {string|null} [selfLink] Snapshot selfLink * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [snapshotEncryptionKey] Snapshot snapshotEncryptionKey + * @property {string|null} [snapshotType] Snapshot snapshotType * @property {string|null} [sourceDisk] Snapshot sourceDisk * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceDiskEncryptionKey] Snapshot sourceDiskEncryptionKey * @property {string|null} [sourceDiskId] Snapshot sourceDiskId + * @property {string|null} [sourceSnapshotSchedulePolicy] Snapshot sourceSnapshotSchedulePolicy + * @property {string|null} [sourceSnapshotSchedulePolicyId] Snapshot sourceSnapshotSchedulePolicyId * @property {string|null} [status] Snapshot status * @property {number|Long|null} [storageBytes] Snapshot storageBytes * @property {string|null} [storageBytesStatus] Snapshot storageBytesStatus @@ -359790,6 +361804,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Snapshot architecture. + * @member {string|null|undefined} architecture + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.architecture = null; + /** * Snapshot autoCreated. * @member {boolean|null|undefined} autoCreated @@ -359806,6 +361828,14 @@ */ Snapshot.prototype.chainName = null; + /** + * Snapshot creationSizeBytes. + * @member {number|Long|null|undefined} creationSizeBytes + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.creationSizeBytes = null; + /** * Snapshot creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -359926,6 +361956,14 @@ */ Snapshot.prototype.snapshotEncryptionKey = null; + /** + * Snapshot snapshotType. + * @member {string|null|undefined} snapshotType + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.snapshotType = null; + /** * Snapshot sourceDisk. * @member {string|null|undefined} sourceDisk @@ -359950,6 +361988,22 @@ */ Snapshot.prototype.sourceDiskId = null; + /** + * Snapshot sourceSnapshotSchedulePolicy. + * @member {string|null|undefined} sourceSnapshotSchedulePolicy + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.sourceSnapshotSchedulePolicy = null; + + /** + * Snapshot sourceSnapshotSchedulePolicyId. + * @member {string|null|undefined} sourceSnapshotSchedulePolicyId + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.sourceSnapshotSchedulePolicyId = null; + /** * Snapshot status. * @member {string|null|undefined} status @@ -359985,6 +362039,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Snapshot _architecture. + * @member {"architecture"|undefined} _architecture + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_architecture", { + get: $util.oneOfGetter($oneOfFields = ["architecture"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _autoCreated. * @member {"autoCreated"|undefined} _autoCreated @@ -360007,6 +362072,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _creationSizeBytes. + * @member {"creationSizeBytes"|undefined} _creationSizeBytes + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_creationSizeBytes", { + get: $util.oneOfGetter($oneOfFields = ["creationSizeBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _creationTimestamp. * @member {"creationTimestamp"|undefined} _creationTimestamp @@ -360139,6 +362215,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _snapshotType. + * @member {"snapshotType"|undefined} _snapshotType + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_snapshotType", { + get: $util.oneOfGetter($oneOfFields = ["snapshotType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _sourceDisk. * @member {"sourceDisk"|undefined} _sourceDisk @@ -360172,6 +362259,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _sourceSnapshotSchedulePolicy. + * @member {"sourceSnapshotSchedulePolicy"|undefined} _sourceSnapshotSchedulePolicy + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_sourceSnapshotSchedulePolicy", { + get: $util.oneOfGetter($oneOfFields = ["sourceSnapshotSchedulePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Snapshot _sourceSnapshotSchedulePolicyId. + * @member {"sourceSnapshotSchedulePolicyId"|undefined} _sourceSnapshotSchedulePolicyId + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_sourceSnapshotSchedulePolicyId", { + get: $util.oneOfGetter($oneOfFields = ["sourceSnapshotSchedulePolicyId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _status. * @member {"status"|undefined} _status @@ -360247,10 +362356,20 @@ } if (message.chainName != null && Object.hasOwnProperty.call(message, "chainName")) writer.uint32(/* id 68644169, wireType 2 =*/549153354).string(message.chainName); + if (message.sourceSnapshotSchedulePolicyId != null && Object.hasOwnProperty.call(message, "sourceSnapshotSchedulePolicyId")) + writer.uint32(/* id 70489047, wireType 2 =*/563912378).string(message.sourceSnapshotSchedulePolicyId); + if (message.snapshotType != null && Object.hasOwnProperty.call(message, "snapshotType")) + writer.uint32(/* id 124349653, wireType 2 =*/994797226).string(message.snapshotType); + if (message.creationSizeBytes != null && Object.hasOwnProperty.call(message, "creationSizeBytes")) + writer.uint32(/* id 125400077, wireType 0 =*/1003200616).int64(message.creationSizeBytes); if (message.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.sourceSnapshotSchedulePolicy != null && Object.hasOwnProperty.call(message, "sourceSnapshotSchedulePolicy")) + writer.uint32(/* id 235756291, wireType 2 =*/1886050330).string(message.sourceSnapshotSchedulePolicy); + 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.storageLocations != null && message.storageLocations.length) @@ -360318,12 +362437,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 302803283: + message.architecture = reader.string(); + break; case 463922264: message.autoCreated = reader.bool(); break; case 68644169: message.chainName = reader.string(); break; + case 125400077: + message.creationSizeBytes = reader.int64(); + break; case 30525366: message.creationTimestamp = reader.string(); break; @@ -360397,6 +362522,9 @@ case 43334526: message.snapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); break; + case 124349653: + message.snapshotType = reader.string(); + break; case 451753793: message.sourceDisk = reader.string(); break; @@ -360406,6 +362534,12 @@ case 454190809: message.sourceDiskId = reader.string(); break; + case 235756291: + message.sourceSnapshotSchedulePolicy = reader.string(); + break; + case 70489047: + message.sourceSnapshotSchedulePolicyId = reader.string(); + break; case 181260274: message.status = reader.string(); break; @@ -360456,6 +362590,11 @@ 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.autoCreated != null && message.hasOwnProperty("autoCreated")) { properties._autoCreated = 1; if (typeof message.autoCreated !== "boolean") @@ -360466,6 +362605,11 @@ if (!$util.isString(message.chainName)) return "chainName: string expected"; } + if (message.creationSizeBytes != null && message.hasOwnProperty("creationSizeBytes")) { + properties._creationSizeBytes = 1; + if (!$util.isInteger(message.creationSizeBytes) && !(message.creationSizeBytes && $util.isInteger(message.creationSizeBytes.low) && $util.isInteger(message.creationSizeBytes.high))) + return "creationSizeBytes: integer|Long expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -360551,6 +362695,11 @@ return "snapshotEncryptionKey." + error; } } + if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { + properties._snapshotType = 1; + if (!$util.isString(message.snapshotType)) + return "snapshotType: string expected"; + } if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { properties._sourceDisk = 1; if (!$util.isString(message.sourceDisk)) @@ -360569,6 +362718,16 @@ if (!$util.isString(message.sourceDiskId)) return "sourceDiskId: string expected"; } + if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { + properties._sourceSnapshotSchedulePolicy = 1; + if (!$util.isString(message.sourceSnapshotSchedulePolicy)) + return "sourceSnapshotSchedulePolicy: string expected"; + } + if (message.sourceSnapshotSchedulePolicyId != null && message.hasOwnProperty("sourceSnapshotSchedulePolicyId")) { + properties._sourceSnapshotSchedulePolicyId = 1; + if (!$util.isString(message.sourceSnapshotSchedulePolicyId)) + return "sourceSnapshotSchedulePolicyId: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; if (!$util.isString(message.status)) @@ -360606,10 +362765,21 @@ if (object instanceof $root.google.cloud.compute.v1.Snapshot) return object; var message = new $root.google.cloud.compute.v1.Snapshot(); + if (object.architecture != null) + message.architecture = String(object.architecture); if (object.autoCreated != null) message.autoCreated = Boolean(object.autoCreated); if (object.chainName != null) message.chainName = String(object.chainName); + if (object.creationSizeBytes != null) + if ($util.Long) + (message.creationSizeBytes = $util.Long.fromValue(object.creationSizeBytes)).unsigned = false; + else if (typeof object.creationSizeBytes === "string") + message.creationSizeBytes = parseInt(object.creationSizeBytes, 10); + else if (typeof object.creationSizeBytes === "number") + message.creationSizeBytes = object.creationSizeBytes; + else if (typeof object.creationSizeBytes === "object") + message.creationSizeBytes = new $util.LongBits(object.creationSizeBytes.low >>> 0, object.creationSizeBytes.high >>> 0).toNumber(); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) @@ -360686,6 +362856,8 @@ throw TypeError(".google.cloud.compute.v1.Snapshot.snapshotEncryptionKey: object expected"); message.snapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.snapshotEncryptionKey); } + if (object.snapshotType != null) + message.snapshotType = String(object.snapshotType); if (object.sourceDisk != null) message.sourceDisk = String(object.sourceDisk); if (object.sourceDiskEncryptionKey != null) { @@ -360695,6 +362867,10 @@ } if (object.sourceDiskId != null) message.sourceDiskId = String(object.sourceDiskId); + if (object.sourceSnapshotSchedulePolicy != null) + message.sourceSnapshotSchedulePolicy = String(object.sourceSnapshotSchedulePolicy); + if (object.sourceSnapshotSchedulePolicyId != null) + message.sourceSnapshotSchedulePolicyId = String(object.sourceSnapshotSchedulePolicyId); if (object.status != null) message.status = String(object.status); if (object.storageBytes != null) @@ -360779,6 +362955,24 @@ if (options.oneofs) object._chainName = "chainName"; } + if (message.sourceSnapshotSchedulePolicyId != null && message.hasOwnProperty("sourceSnapshotSchedulePolicyId")) { + object.sourceSnapshotSchedulePolicyId = message.sourceSnapshotSchedulePolicyId; + if (options.oneofs) + object._sourceSnapshotSchedulePolicyId = "sourceSnapshotSchedulePolicyId"; + } + if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { + object.snapshotType = message.snapshotType; + if (options.oneofs) + object._snapshotType = "snapshotType"; + } + if (message.creationSizeBytes != null && message.hasOwnProperty("creationSizeBytes")) { + if (typeof message.creationSizeBytes === "number") + object.creationSizeBytes = options.longs === String ? String(message.creationSizeBytes) : message.creationSizeBytes; + else + object.creationSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.creationSizeBytes) : options.longs === Number ? new $util.LongBits(message.creationSizeBytes.low >>> 0, message.creationSizeBytes.high >>> 0).toNumber() : message.creationSizeBytes; + if (options.oneofs) + object._creationSizeBytes = "creationSizeBytes"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -360789,6 +362983,16 @@ if (options.oneofs) object._status = "status"; } + if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { + object.sourceSnapshotSchedulePolicy = message.sourceSnapshotSchedulePolicy; + if (options.oneofs) + object._sourceSnapshotSchedulePolicy = "sourceSnapshotSchedulePolicy"; + } + 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; @@ -360888,6 +363092,40 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Architecture enum. + * @name google.cloud.compute.v1.Snapshot.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 + */ + Snapshot.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; + })(); + + /** + * SnapshotType enum. + * @name google.cloud.compute.v1.Snapshot.SnapshotType + * @enum {number} + * @property {number} UNDEFINED_SNAPSHOT_TYPE=0 UNDEFINED_SNAPSHOT_TYPE value + * @property {number} ARCHIVE=506752162 ARCHIVE value + * @property {number} STANDARD=484642493 STANDARD value + */ + Snapshot.SnapshotType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SNAPSHOT_TYPE"] = 0; + values[valuesById[506752162] = "ARCHIVE"] = 506752162; + values[valuesById[484642493] = "STANDARD"] = 484642493; + return values; + })(); + /** * Status enum. * @name google.cloud.compute.v1.Snapshot.Status @@ -361799,6 +364037,7 @@ * @property {string|null} [description] SourceInstanceProperties description * @property {Array.|null} [disks] SourceInstanceProperties disks * @property {Array.|null} [guestAccelerators] SourceInstanceProperties guestAccelerators + * @property {string|null} [keyRevocationActionType] SourceInstanceProperties keyRevocationActionType * @property {Object.|null} [labels] SourceInstanceProperties labels * @property {string|null} [machineType] SourceInstanceProperties machineType * @property {google.cloud.compute.v1.IMetadata|null} [metadata] SourceInstanceProperties metadata @@ -361869,6 +364108,14 @@ */ SourceInstanceProperties.prototype.guestAccelerators = $util.emptyArray; + /** + * SourceInstanceProperties keyRevocationActionType. + * @member {string|null|undefined} keyRevocationActionType + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.keyRevocationActionType = null; + /** * SourceInstanceProperties labels. * @member {Object.} labels @@ -361969,6 +364216,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SourceInstanceProperties _keyRevocationActionType. + * @member {"keyRevocationActionType"|undefined} _keyRevocationActionType + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_keyRevocationActionType", { + get: $util.oneOfGetter($oneOfFields = ["keyRevocationActionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SourceInstanceProperties _machineType. * @member {"machineType"|undefined} _machineType @@ -362060,6 +364318,8 @@ $root.google.cloud.compute.v1.SavedAttachedDisk.encode(message.disks[i], writer.uint32(/* id 95594102, wireType 2 =*/764752818).fork()).ldelim(); if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); + if (message.keyRevocationActionType != null && Object.hasOwnProperty.call(message, "keyRevocationActionType")) + writer.uint32(/* id 235941474, wireType 2 =*/1887531794).string(message.keyRevocationActionType); if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) writer.uint32(/* id 242912759, wireType 2 =*/1943302074).string(message.minCpuPlatform); if (message.serviceAccounts != null && message.serviceAccounts.length) @@ -362132,6 +364392,9 @@ message.guestAccelerators = []; message.guestAccelerators.push($root.google.cloud.compute.v1.AcceleratorConfig.decode(reader, reader.uint32())); break; + case 235941474: + message.keyRevocationActionType = reader.string(); + break; case 500195327: if (message.labels === $util.emptyObject) message.labels = {}; @@ -362248,6 +364511,11 @@ return "guestAccelerators." + error; } } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + properties._keyRevocationActionType = 1; + if (!$util.isString(message.keyRevocationActionType)) + return "keyRevocationActionType: string expected"; + } if (message.labels != null && message.hasOwnProperty("labels")) { if (!$util.isObject(message.labels)) return "labels: object expected"; @@ -362349,6 +364617,8 @@ message.guestAccelerators[i] = $root.google.cloud.compute.v1.AcceleratorConfig.fromObject(object.guestAccelerators[i]); } } + if (object.keyRevocationActionType != null) + message.keyRevocationActionType = String(object.keyRevocationActionType); if (object.labels) { if (typeof object.labels !== "object") throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.labels: object expected"); @@ -362444,6 +364714,11 @@ if (options.oneofs) object._machineType = "machineType"; } + if (message.keyRevocationActionType != null && message.hasOwnProperty("keyRevocationActionType")) { + object.keyRevocationActionType = message.keyRevocationActionType; + if (options.oneofs) + object._keyRevocationActionType = "keyRevocationActionType"; + } if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) { object.minCpuPlatform = message.minCpuPlatform; if (options.oneofs) @@ -362499,6 +364774,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * KeyRevocationActionType enum. + * @name google.cloud.compute.v1.SourceInstanceProperties.KeyRevocationActionType + * @enum {number} + * @property {number} UNDEFINED_KEY_REVOCATION_ACTION_TYPE=0 UNDEFINED_KEY_REVOCATION_ACTION_TYPE value + * @property {number} KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED=467110106 KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED value + * @property {number} NONE=2402104 NONE value + * @property {number} STOP=2555906 STOP value + */ + SourceInstanceProperties.KeyRevocationActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_KEY_REVOCATION_ACTION_TYPE"] = 0; + values[valuesById[467110106] = "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"] = 467110106; + values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[2555906] = "STOP"] = 2555906; + return values; + })(); + return SourceInstanceProperties; })(); @@ -406721,6 +409014,7 @@ * @property {Array.|null} [natIpPortRanges] VmEndpointNatMappingsInterfaceNatMappings natIpPortRanges * @property {number|null} [numTotalDrainNatPorts] VmEndpointNatMappingsInterfaceNatMappings numTotalDrainNatPorts * @property {number|null} [numTotalNatPorts] VmEndpointNatMappingsInterfaceNatMappings numTotalNatPorts + * @property {Array.|null} [ruleMappings] VmEndpointNatMappingsInterfaceNatMappings ruleMappings * @property {string|null} [sourceAliasIpRange] VmEndpointNatMappingsInterfaceNatMappings sourceAliasIpRange * @property {string|null} [sourceVirtualIp] VmEndpointNatMappingsInterfaceNatMappings sourceVirtualIp */ @@ -406736,6 +409030,7 @@ function VmEndpointNatMappingsInterfaceNatMappings(properties) { this.drainNatIpPortRanges = []; this.natIpPortRanges = []; + this.ruleMappings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -406774,6 +409069,14 @@ */ VmEndpointNatMappingsInterfaceNatMappings.prototype.numTotalNatPorts = null; + /** + * VmEndpointNatMappingsInterfaceNatMappings ruleMappings. + * @member {Array.} ruleMappings + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappings.prototype.ruleMappings = $util.emptyArray; + /** * VmEndpointNatMappingsInterfaceNatMappings sourceAliasIpRange. * @member {string|null|undefined} sourceAliasIpRange @@ -406872,6 +409175,9 @@ writer.uint32(/* id 395440577, wireType 2 =*/3163524618).string(message.drainNatIpPortRanges[i]); if (message.sourceAliasIpRange != null && Object.hasOwnProperty.call(message, "sourceAliasIpRange")) writer.uint32(/* id 440340952, wireType 2 =*/3522727618).string(message.sourceAliasIpRange); + if (message.ruleMappings != null && message.ruleMappings.length) + for (var i = 0; i < message.ruleMappings.length; ++i) + $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.encode(message.ruleMappings[i], writer.uint32(/* id 486192968, wireType 2 =*/3889543746).fork()).ldelim(); if (message.natIpPortRanges != null && message.natIpPortRanges.length) for (var i = 0; i < message.natIpPortRanges.length; ++i) writer.uint32(/* id 531830810, wireType 2 =*/4254646482).string(message.natIpPortRanges[i]); @@ -406925,6 +409231,11 @@ case 299904384: message.numTotalNatPorts = reader.int32(); break; + case 486192968: + if (!(message.ruleMappings && message.ruleMappings.length)) + message.ruleMappings = []; + message.ruleMappings.push($root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.decode(reader, reader.uint32())); + break; case 440340952: message.sourceAliasIpRange = reader.string(); break; @@ -406991,6 +409302,15 @@ if (!$util.isInteger(message.numTotalNatPorts)) return "numTotalNatPorts: integer expected"; } + if (message.ruleMappings != null && message.hasOwnProperty("ruleMappings")) { + if (!Array.isArray(message.ruleMappings)) + return "ruleMappings: array expected"; + for (var i = 0; i < message.ruleMappings.length; ++i) { + var error = $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify(message.ruleMappings[i]); + if (error) + return "ruleMappings." + error; + } + } if (message.sourceAliasIpRange != null && message.hasOwnProperty("sourceAliasIpRange")) { properties._sourceAliasIpRange = 1; if (!$util.isString(message.sourceAliasIpRange)) @@ -407034,6 +409354,16 @@ message.numTotalDrainNatPorts = object.numTotalDrainNatPorts | 0; if (object.numTotalNatPorts != null) message.numTotalNatPorts = object.numTotalNatPorts | 0; + if (object.ruleMappings) { + if (!Array.isArray(object.ruleMappings)) + throw TypeError(".google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings.ruleMappings: array expected"); + message.ruleMappings = []; + for (var i = 0; i < object.ruleMappings.length; ++i) { + if (typeof object.ruleMappings[i] !== "object") + throw TypeError(".google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings.ruleMappings: object expected"); + message.ruleMappings[i] = $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.fromObject(object.ruleMappings[i]); + } + } if (object.sourceAliasIpRange != null) message.sourceAliasIpRange = String(object.sourceAliasIpRange); if (object.sourceVirtualIp != null) @@ -407056,6 +409386,7 @@ var object = {}; if (options.arrays || options.defaults) { object.drainNatIpPortRanges = []; + object.ruleMappings = []; object.natIpPortRanges = []; } if (message.sourceVirtualIp != null && message.hasOwnProperty("sourceVirtualIp")) { @@ -407083,6 +409414,11 @@ if (options.oneofs) object._sourceAliasIpRange = "sourceAliasIpRange"; } + if (message.ruleMappings && message.ruleMappings.length) { + object.ruleMappings = []; + for (var j = 0; j < message.ruleMappings.length; ++j) + object.ruleMappings[j] = $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.toObject(message.ruleMappings[j], options); + } if (message.natIpPortRanges && message.natIpPortRanges.length) { object.natIpPortRanges = []; for (var j = 0; j < message.natIpPortRanges.length; ++j) @@ -407105,6 +409441,363 @@ return VmEndpointNatMappingsInterfaceNatMappings; })(); + v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings = (function() { + + /** + * Properties of a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. + * @memberof google.cloud.compute.v1 + * @interface IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @property {Array.|null} [drainNatIpPortRanges] VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings drainNatIpPortRanges + * @property {Array.|null} [natIpPortRanges] VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings natIpPortRanges + * @property {number|null} [numTotalDrainNatPorts] VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalDrainNatPorts + * @property {number|null} [numTotalNatPorts] VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalNatPorts + * @property {number|null} [ruleNumber] VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings ruleNumber + */ + + /** + * Constructs a new VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings. + * @implements IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @constructor + * @param {google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings=} [properties] Properties to set + */ + function VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(properties) { + this.drainNatIpPortRanges = []; + this.natIpPortRanges = []; + 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]]; + } + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings drainNatIpPortRanges. + * @member {Array.} drainNatIpPortRanges + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.drainNatIpPortRanges = $util.emptyArray; + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings natIpPortRanges. + * @member {Array.} natIpPortRanges + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.natIpPortRanges = $util.emptyArray; + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalDrainNatPorts. + * @member {number|null|undefined} numTotalDrainNatPorts + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.numTotalDrainNatPorts = null; + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings numTotalNatPorts. + * @member {number|null|undefined} numTotalNatPorts + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.numTotalNatPorts = null; + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings ruleNumber. + * @member {number|null|undefined} ruleNumber + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.ruleNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _numTotalDrainNatPorts. + * @member {"numTotalDrainNatPorts"|undefined} _numTotalDrainNatPorts + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + Object.defineProperty(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype, "_numTotalDrainNatPorts", { + get: $util.oneOfGetter($oneOfFields = ["numTotalDrainNatPorts"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _numTotalNatPorts. + * @member {"numTotalNatPorts"|undefined} _numTotalNatPorts + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + Object.defineProperty(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype, "_numTotalNatPorts", { + get: $util.oneOfGetter($oneOfFields = ["numTotalNatPorts"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings _ruleNumber. + * @member {"ruleNumber"|undefined} _ruleNumber + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + */ + Object.defineProperty(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype, "_ruleNumber", { + get: $util.oneOfGetter($oneOfFields = ["ruleNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings instance + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.create = function create(properties) { + return new VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(properties); + }; + + /** + * Encodes the specified VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message. Does not implicitly {@link google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.numTotalNatPorts != null && Object.hasOwnProperty.call(message, "numTotalNatPorts")) + writer.uint32(/* id 299904384, wireType 0 =*/2399235072).int32(message.numTotalNatPorts); + if (message.numTotalDrainNatPorts != null && Object.hasOwnProperty.call(message, "numTotalDrainNatPorts")) + writer.uint32(/* id 335532793, wireType 0 =*/2684262344).int32(message.numTotalDrainNatPorts); + if (message.drainNatIpPortRanges != null && message.drainNatIpPortRanges.length) + for (var i = 0; i < message.drainNatIpPortRanges.length; ++i) + writer.uint32(/* id 395440577, wireType 2 =*/3163524618).string(message.drainNatIpPortRanges[i]); + if (message.natIpPortRanges != null && message.natIpPortRanges.length) + for (var i = 0; i < message.natIpPortRanges.length; ++i) + writer.uint32(/* id 531830810, wireType 2 =*/4254646482).string(message.natIpPortRanges[i]); + if (message.ruleNumber != null && Object.hasOwnProperty.call(message, "ruleNumber")) + writer.uint32(/* id 535211500, wireType 0 =*/4281692000).int32(message.ruleNumber); + return writer; + }; + + /** + * Encodes the specified VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {google.cloud.compute.v1.IVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @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.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.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.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 395440577: + if (!(message.drainNatIpPortRanges && message.drainNatIpPortRanges.length)) + message.drainNatIpPortRanges = []; + message.drainNatIpPortRanges.push(reader.string()); + break; + case 531830810: + if (!(message.natIpPortRanges && message.natIpPortRanges.length)) + message.natIpPortRanges = []; + message.natIpPortRanges.push(reader.string()); + break; + case 335532793: + message.numTotalDrainNatPorts = reader.int32(); + break; + case 299904384: + message.numTotalNatPorts = reader.int32(); + break; + case 535211500: + message.ruleNumber = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message. + * @function verify + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.drainNatIpPortRanges != null && message.hasOwnProperty("drainNatIpPortRanges")) { + if (!Array.isArray(message.drainNatIpPortRanges)) + return "drainNatIpPortRanges: array expected"; + for (var i = 0; i < message.drainNatIpPortRanges.length; ++i) + if (!$util.isString(message.drainNatIpPortRanges[i])) + return "drainNatIpPortRanges: string[] expected"; + } + if (message.natIpPortRanges != null && message.hasOwnProperty("natIpPortRanges")) { + if (!Array.isArray(message.natIpPortRanges)) + return "natIpPortRanges: array expected"; + for (var i = 0; i < message.natIpPortRanges.length; ++i) + if (!$util.isString(message.natIpPortRanges[i])) + return "natIpPortRanges: string[] expected"; + } + if (message.numTotalDrainNatPorts != null && message.hasOwnProperty("numTotalDrainNatPorts")) { + properties._numTotalDrainNatPorts = 1; + if (!$util.isInteger(message.numTotalDrainNatPorts)) + return "numTotalDrainNatPorts: integer expected"; + } + if (message.numTotalNatPorts != null && message.hasOwnProperty("numTotalNatPorts")) { + properties._numTotalNatPorts = 1; + if (!$util.isInteger(message.numTotalNatPorts)) + return "numTotalNatPorts: integer expected"; + } + if (message.ruleNumber != null && message.hasOwnProperty("ruleNumber")) { + properties._ruleNumber = 1; + if (!$util.isInteger(message.ruleNumber)) + return "ruleNumber: integer expected"; + } + return null; + }; + + /** + * Creates a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) + return object; + var message = new $root.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(); + if (object.drainNatIpPortRanges) { + if (!Array.isArray(object.drainNatIpPortRanges)) + throw TypeError(".google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.drainNatIpPortRanges: array expected"); + message.drainNatIpPortRanges = []; + for (var i = 0; i < object.drainNatIpPortRanges.length; ++i) + message.drainNatIpPortRanges[i] = String(object.drainNatIpPortRanges[i]); + } + if (object.natIpPortRanges) { + if (!Array.isArray(object.natIpPortRanges)) + throw TypeError(".google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.natIpPortRanges: array expected"); + message.natIpPortRanges = []; + for (var i = 0; i < object.natIpPortRanges.length; ++i) + message.natIpPortRanges[i] = String(object.natIpPortRanges[i]); + } + if (object.numTotalDrainNatPorts != null) + message.numTotalDrainNatPorts = object.numTotalDrainNatPorts | 0; + if (object.numTotalNatPorts != null) + message.numTotalNatPorts = object.numTotalNatPorts | 0; + if (object.ruleNumber != null) + message.ruleNumber = object.ruleNumber | 0; + return message; + }; + + /** + * Creates a plain object from a VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @static + * @param {google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings} message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.drainNatIpPortRanges = []; + object.natIpPortRanges = []; + } + if (message.numTotalNatPorts != null && message.hasOwnProperty("numTotalNatPorts")) { + object.numTotalNatPorts = message.numTotalNatPorts; + if (options.oneofs) + object._numTotalNatPorts = "numTotalNatPorts"; + } + if (message.numTotalDrainNatPorts != null && message.hasOwnProperty("numTotalDrainNatPorts")) { + object.numTotalDrainNatPorts = message.numTotalDrainNatPorts; + if (options.oneofs) + object._numTotalDrainNatPorts = "numTotalDrainNatPorts"; + } + if (message.drainNatIpPortRanges && message.drainNatIpPortRanges.length) { + object.drainNatIpPortRanges = []; + for (var j = 0; j < message.drainNatIpPortRanges.length; ++j) + object.drainNatIpPortRanges[j] = message.drainNatIpPortRanges[j]; + } + if (message.natIpPortRanges && message.natIpPortRanges.length) { + object.natIpPortRanges = []; + for (var j = 0; j < message.natIpPortRanges.length; ++j) + object.natIpPortRanges[j] = message.natIpPortRanges[j]; + } + if (message.ruleNumber != null && message.hasOwnProperty("ruleNumber")) { + object.ruleNumber = message.ruleNumber; + if (options.oneofs) + object._ruleNumber = "ruleNumber"; + } + return object; + }; + + /** + * Converts this VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + * @instance + * @returns {Object.} JSON object + */ + VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings; + })(); + v1.VmEndpointNatMappingsList = (function() { /** @@ -414491,6 +417184,7 @@ * @property {number} EXTERNAL_API_WARNING=175546307 EXTERNAL_API_WARNING value * @property {number} FIELD_VALUE_OVERRIDEN=329669423 FIELD_VALUE_OVERRIDEN value * @property {number} INJECTED_KERNELS_DEPRECATED=417377419 INJECTED_KERNELS_DEPRECATED value + * @property {number} INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB=401542606 INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB value * @property {number} LARGE_DEPLOYMENT_WARNING=481440678 LARGE_DEPLOYMENT_WARNING value * @property {number} MISSING_TYPE_DEPENDENCY=344505463 MISSING_TYPE_DEPENDENCY value * @property {number} NEXT_HOP_ADDRESS_NOT_ASSIGNED=324964999 NEXT_HOP_ADDRESS_NOT_ASSIGNED value @@ -414521,6 +417215,7 @@ values[valuesById[175546307] = "EXTERNAL_API_WARNING"] = 175546307; values[valuesById[329669423] = "FIELD_VALUE_OVERRIDEN"] = 329669423; values[valuesById[417377419] = "INJECTED_KERNELS_DEPRECATED"] = 417377419; + values[valuesById[401542606] = "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB"] = 401542606; values[valuesById[481440678] = "LARGE_DEPLOYMENT_WARNING"] = 481440678; values[valuesById[344505463] = "MISSING_TYPE_DEPENDENCY"] = 344505463; values[valuesById[324964999] = "NEXT_HOP_ADDRESS_NOT_ASSIGNED"] = 324964999; @@ -414841,6 +417536,7 @@ * @property {number} EXTERNAL_API_WARNING=175546307 EXTERNAL_API_WARNING value * @property {number} FIELD_VALUE_OVERRIDEN=329669423 FIELD_VALUE_OVERRIDEN value * @property {number} INJECTED_KERNELS_DEPRECATED=417377419 INJECTED_KERNELS_DEPRECATED value + * @property {number} INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB=401542606 INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB value * @property {number} LARGE_DEPLOYMENT_WARNING=481440678 LARGE_DEPLOYMENT_WARNING value * @property {number} MISSING_TYPE_DEPENDENCY=344505463 MISSING_TYPE_DEPENDENCY value * @property {number} NEXT_HOP_ADDRESS_NOT_ASSIGNED=324964999 NEXT_HOP_ADDRESS_NOT_ASSIGNED value @@ -414871,6 +417567,7 @@ values[valuesById[175546307] = "EXTERNAL_API_WARNING"] = 175546307; values[valuesById[329669423] = "FIELD_VALUE_OVERRIDEN"] = 329669423; values[valuesById[417377419] = "INJECTED_KERNELS_DEPRECATED"] = 417377419; + values[valuesById[401542606] = "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB"] = 401542606; values[valuesById[481440678] = "LARGE_DEPLOYMENT_WARNING"] = 481440678; values[valuesById[344505463] = "MISSING_TYPE_DEPENDENCY"] = 344505463; values[valuesById[324964999] = "NEXT_HOP_ADDRESS_NOT_ASSIGNED"] = 324964999; diff --git a/protos/protos.json b/protos/protos.json index a63d491e..914a1ede 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -5487,6 +5487,11 @@ }, "AttachedDisk": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_autoDelete": { "oneof": [ "autoDelete" @@ -5554,6 +5559,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "autoDelete": { "type": "bool", "id": 464761403, @@ -5657,6 +5669,14 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, "Interface": { "values": { "UNDEFINED_INTERFACE": 0, @@ -5682,6 +5702,11 @@ }, "AttachedDiskInitializeParams": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_description": { "oneof": [ "description" @@ -5734,6 +5759,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "description": { "type": "string", "id": 422937596, @@ -5821,6 +5853,14 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, "OnUpdateAction": { "values": { "UNDEFINED_ON_UPDATE_ACTION": 0, @@ -9598,6 +9638,7 @@ "values": { "UNDEFINED_STATUS": 0, "ACTIVE": 314733318, + "CANCELLED": 41957681, "CREATING": 455564985, "EXPIRED": 482489093, "NOT_YET_ACTIVE": 20607337 @@ -13697,6 +13738,11 @@ }, "Disk": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -13844,6 +13890,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -14084,6 +14137,14 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, "Status": { "values": { "UNDEFINED_STATUS": 0, @@ -14875,6 +14936,83 @@ } } }, + "ErrorDetails": { + "oneofs": { + "_errorInfo": { + "oneof": [ + "errorInfo" + ] + }, + "_help": { + "oneof": [ + "help" + ] + }, + "_localizedMessage": { + "oneof": [ + "localizedMessage" + ] + } + }, + "fields": { + "errorInfo": { + "type": "ErrorInfo", + "id": 25251973, + "options": { + "proto3_optional": true + } + }, + "help": { + "type": "Help", + "id": 3198785, + "options": { + "proto3_optional": true + } + }, + "localizedMessage": { + "type": "LocalizedMessage", + "id": 404537155, + "options": { + "proto3_optional": true + } + } + } + }, + "ErrorInfo": { + "oneofs": { + "_domain": { + "oneof": [ + "domain" + ] + }, + "_reason": { + "oneof": [ + "reason" + ] + } + }, + "fields": { + "domain": { + "type": "string", + "id": 284415172, + "options": { + "proto3_optional": true + } + }, + "metadatas": { + "keyType": "string", + "type": "string", + "id": 8514340 + }, + "reason": { + "type": "string", + "id": 138777156, + "options": { + "proto3_optional": true + } + } + } + }, "Errors": { "oneofs": { "_code": { @@ -14901,6 +15039,11 @@ "proto3_optional": true } }, + "errorDetails": { + "rule": "repeated", + "type": "ErrorDetails", + "id": 274653963 + }, "location": { "type": "string", "id": 290430901, @@ -16731,6 +16874,7 @@ "UNDEFINED_PSC_CONNECTION_STATUS": 0, "ACCEPTED": 246714279, "CLOSED": 380163436, + "NEEDS_ATTENTION": 344491452, "PENDING": 35394935, "REJECTED": 174130302, "STATUS_UNSPECIFIED": 42133066 @@ -21758,6 +21902,45 @@ } } }, + "Help": { + "fields": { + "links": { + "rule": "repeated", + "type": "HelpLink", + "id": 102977465 + } + } + }, + "HelpLink": { + "oneofs": { + "_description": { + "oneof": [ + "description" + ] + }, + "_url": { + "oneof": [ + "url" + ] + } + }, + "fields": { + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "url": { + "type": "string", + "id": 116079, + "options": { + "proto3_optional": true + } + } + } + }, "HostRule": { "oneofs": { "_description": { @@ -22479,6 +22662,11 @@ }, "Image": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_archiveSizeBytes": { "oneof": [ "archiveSizeBytes" @@ -22611,6 +22799,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "archiveSizeBytes": { "type": "int64", "id": 381093450, @@ -22820,6 +23015,14 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, "SourceType": { "values": { "UNDEFINED_SOURCE_TYPE": 0, @@ -25699,6 +25902,11 @@ "id" ] }, + "_keyRevocationActionType": { + "oneof": [ + "keyRevocationActionType" + ] + }, "_kind": { "oneof": [ "kind" @@ -25913,6 +26121,13 @@ "proto3_optional": true } }, + "keyRevocationActionType": { + "type": "string", + "id": 235941474, + "options": { + "proto3_optional": true + } + }, "kind": { "type": "string", "id": 3292052, @@ -26110,6 +26325,14 @@ } }, "nested": { + "KeyRevocationActionType": { + "values": { + "UNDEFINED_KEY_REVOCATION_ACTION_TYPE": 0, + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED": 467110106, + "NONE": 2402104, + "STOP": 2555906 + } + }, "PrivateIpv6GoogleAccess": { "values": { "UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS": 0, @@ -28156,6 +28379,11 @@ "description" ] }, + "_keyRevocationActionType": { + "oneof": [ + "keyRevocationActionType" + ] + }, "_machineType": { "oneof": [ "machineType" @@ -28241,6 +28469,13 @@ "type": "AcceleratorConfig", "id": 463595119 }, + "keyRevocationActionType": { + "type": "string", + "id": 235941474, + "options": { + "proto3_optional": true + } + }, "labels": { "keyType": "string", "type": "string", @@ -28331,6 +28566,14 @@ } }, "nested": { + "KeyRevocationActionType": { + "values": { + "UNDEFINED_KEY_REVOCATION_ACTION_TYPE": 0, + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED": 467110106, + "NONE": 2402104, + "STOP": 2555906 + } + }, "PrivateIpv6GoogleAccess": { "values": { "UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS": 0, @@ -38851,6 +39094,36 @@ } } }, + "LocalizedMessage": { + "oneofs": { + "_locale": { + "oneof": [ + "locale" + ] + }, + "_message": { + "oneof": [ + "message" + ] + } + }, + "fields": { + "locale": { + "type": "string", + "id": 513150554, + "options": { + "proto3_optional": true + } + }, + "message": { + "type": "string", + "id": 418054151, + "options": { + "proto3_optional": true + } + } + } + }, "LocationPolicy": { "oneofs": { "_targetShape": { @@ -38886,6 +39159,11 @@ }, "LocationPolicyLocation": { "oneofs": { + "_constraints": { + "oneof": [ + "constraints" + ] + }, "_preference": { "oneof": [ "preference" @@ -38893,6 +39171,13 @@ } }, "fields": { + "constraints": { + "type": "LocationPolicyLocationConstraints", + "id": 3909174, + "options": { + "proto3_optional": true + } + }, "preference": { "type": "string", "id": 150781147, @@ -38912,6 +39197,24 @@ } } }, + "LocationPolicyLocationConstraints": { + "oneofs": { + "_maxCount": { + "oneof": [ + "maxCount" + ] + } + }, + "fields": { + "maxCount": { + "type": "int32", + "id": 287620724, + "options": { + "proto3_optional": true + } + } + } + }, "LogConfig": { "oneofs": { "_cloudAudit": { @@ -40196,6 +40499,11 @@ "enableUlaInternalIpv6" ] }, + "_firewallPolicy": { + "oneof": [ + "firewallPolicy" + ] + }, "_gatewayIPv4": { "oneof": [ "gatewayIPv4" @@ -40283,6 +40591,13 @@ "proto3_optional": true } }, + "firewallPolicy": { + "type": "string", + "id": 498173265, + "options": { + "proto3_optional": true + } + }, "gatewayIPv4": { "type": "string", "id": 178678877, @@ -54290,6 +54605,11 @@ }, "SavedDisk": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_kind": { "oneof": [ "kind" @@ -54312,6 +54632,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "kind": { "type": "string", "id": 3292052, @@ -54342,6 +54669,14 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, "StorageBytesStatus": { "values": { "UNDEFINED_STORAGE_BYTES_STATUS": 0, @@ -56048,6 +56383,7 @@ "UNDEFINED_STATUS": 0, "ACCEPTED": 246714279, "CLOSED": 380163436, + "NEEDS_ATTENTION": 344491452, "PENDING": 35394935, "REJECTED": 174130302, "STATUS_UNSPECIFIED": 42133066 @@ -59160,6 +59496,11 @@ }, "Snapshot": { "oneofs": { + "_architecture": { + "oneof": [ + "architecture" + ] + }, "_autoCreated": { "oneof": [ "autoCreated" @@ -59170,6 +59511,11 @@ "chainName" ] }, + "_creationSizeBytes": { + "oneof": [ + "creationSizeBytes" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -59230,6 +59576,11 @@ "snapshotEncryptionKey" ] }, + "_snapshotType": { + "oneof": [ + "snapshotType" + ] + }, "_sourceDisk": { "oneof": [ "sourceDisk" @@ -59245,6 +59596,16 @@ "sourceDiskId" ] }, + "_sourceSnapshotSchedulePolicy": { + "oneof": [ + "sourceSnapshotSchedulePolicy" + ] + }, + "_sourceSnapshotSchedulePolicyId": { + "oneof": [ + "sourceSnapshotSchedulePolicyId" + ] + }, "_status": { "oneof": [ "status" @@ -59262,6 +59623,13 @@ } }, "fields": { + "architecture": { + "type": "string", + "id": 302803283, + "options": { + "proto3_optional": true + } + }, "autoCreated": { "type": "bool", "id": 463922264, @@ -59276,6 +59644,13 @@ "proto3_optional": true } }, + "creationSizeBytes": { + "type": "int64", + "id": 125400077, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -59375,6 +59750,13 @@ "proto3_optional": true } }, + "snapshotType": { + "type": "string", + "id": 124349653, + "options": { + "proto3_optional": true + } + }, "sourceDisk": { "type": "string", "id": 451753793, @@ -59396,6 +59778,20 @@ "proto3_optional": true } }, + "sourceSnapshotSchedulePolicy": { + "type": "string", + "id": 235756291, + "options": { + "proto3_optional": true + } + }, + "sourceSnapshotSchedulePolicyId": { + "type": "string", + "id": 70489047, + "options": { + "proto3_optional": true + } + }, "status": { "type": "string", "id": 181260274, @@ -59424,6 +59820,21 @@ } }, "nested": { + "Architecture": { + "values": { + "UNDEFINED_ARCHITECTURE": 0, + "ARCHITECTURE_UNSPECIFIED": 394750507, + "ARM64": 62547450, + "X86_64": 425300551 + } + }, + "SnapshotType": { + "values": { + "UNDEFINED_SNAPSHOT_TYPE": 0, + "ARCHIVE": 506752162, + "STANDARD": 484642493 + } + }, "Status": { "values": { "UNDEFINED_STATUS": 0, @@ -59570,6 +59981,11 @@ "description" ] }, + "_keyRevocationActionType": { + "oneof": [ + "keyRevocationActionType" + ] + }, "_machineType": { "oneof": [ "machineType" @@ -59628,6 +60044,13 @@ "type": "AcceleratorConfig", "id": 463595119 }, + "keyRevocationActionType": { + "type": "string", + "id": 235941474, + "options": { + "proto3_optional": true + } + }, "labels": { "keyType": "string", "type": "string", @@ -59678,6 +60101,16 @@ "proto3_optional": true } } + }, + "nested": { + "KeyRevocationActionType": { + "values": { + "UNDEFINED_KEY_REVOCATION_ACTION_TYPE": 0, + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED": 467110106, + "NONE": 2402104, + "STOP": 2555906 + } + } } }, "SslCertificate": { @@ -66703,6 +67136,11 @@ "proto3_optional": true } }, + "ruleMappings": { + "rule": "repeated", + "type": "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings", + "id": 486192968 + }, "sourceAliasIpRange": { "type": "string", "id": 440340952, @@ -66719,6 +67157,58 @@ } } }, + "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings": { + "oneofs": { + "_numTotalDrainNatPorts": { + "oneof": [ + "numTotalDrainNatPorts" + ] + }, + "_numTotalNatPorts": { + "oneof": [ + "numTotalNatPorts" + ] + }, + "_ruleNumber": { + "oneof": [ + "ruleNumber" + ] + } + }, + "fields": { + "drainNatIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 395440577 + }, + "natIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 531830810 + }, + "numTotalDrainNatPorts": { + "type": "int32", + "id": 335532793, + "options": { + "proto3_optional": true + } + }, + "numTotalNatPorts": { + "type": "int32", + "id": 299904384, + "options": { + "proto3_optional": true + } + }, + "ruleNumber": { + "type": "int32", + "id": 535211500, + "options": { + "proto3_optional": true + } + } + } + }, "VmEndpointNatMappingsList": { "oneofs": { "_id": { @@ -67914,6 +68404,7 @@ "EXTERNAL_API_WARNING": 175546307, "FIELD_VALUE_OVERRIDEN": 329669423, "INJECTED_KERNELS_DEPRECATED": 417377419, + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB": 401542606, "LARGE_DEPLOYMENT_WARNING": 481440678, "MISSING_TYPE_DEPENDENCY": 344505463, "NEXT_HOP_ADDRESS_NOT_ASSIGNED": 324964999, @@ -67982,6 +68473,7 @@ "EXTERNAL_API_WARNING": 175546307, "FIELD_VALUE_OVERRIDEN": 329669423, "INJECTED_KERNELS_DEPRECATED": 417377419, + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB": 401542606, "LARGE_DEPLOYMENT_WARNING": 481440678, "MISSING_TYPE_DEPENDENCY": 344505463, "NEXT_HOP_ADDRESS_NOT_ASSIGNED": 324964999, diff --git a/samples/generated/v1/accelerator_types.aggregated_list.js b/samples/generated/v1/accelerator_types.aggregated_list.js index 925bd41f..432e2938 100644 --- a/samples/generated/v1/accelerator_types.aggregated_list.js +++ b/samples/generated/v1/accelerator_types.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_AcceleratorTypes_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. */ /** diff --git a/samples/generated/v1/accelerator_types.get.js b/samples/generated/v1/accelerator_types.get.js index 6ddb7403..b59d497a 100644 --- a/samples/generated/v1/accelerator_types.get.js +++ b/samples/generated/v1/accelerator_types.get.js @@ -23,6 +23,9 @@ function main(acceleratorType, project, zone) { // [START compute_v1_generated_AcceleratorTypes_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. */ /** diff --git a/samples/generated/v1/accelerator_types.list.js b/samples/generated/v1/accelerator_types.list.js index 779c2f88..92c00a71 100644 --- a/samples/generated/v1/accelerator_types.list.js +++ b/samples/generated/v1/accelerator_types.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_AcceleratorTypes_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. */ /** diff --git a/samples/generated/v1/addresses.aggregated_list.js b/samples/generated/v1/addresses.aggregated_list.js index 2d2850fc..6cacafce 100644 --- a/samples/generated/v1/addresses.aggregated_list.js +++ b/samples/generated/v1/addresses.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Addresses_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. */ /** diff --git a/samples/generated/v1/addresses.delete.js b/samples/generated/v1/addresses.delete.js index b9cc52c7..4d666a66 100644 --- a/samples/generated/v1/addresses.delete.js +++ b/samples/generated/v1/addresses.delete.js @@ -23,6 +23,9 @@ function main(address, project, region) { // [START compute_v1_generated_Addresses_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. */ /** diff --git a/samples/generated/v1/addresses.get.js b/samples/generated/v1/addresses.get.js index 60d602d2..97ec4111 100644 --- a/samples/generated/v1/addresses.get.js +++ b/samples/generated/v1/addresses.get.js @@ -23,6 +23,9 @@ function main(address, project, region) { // [START compute_v1_generated_Addresses_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. */ /** diff --git a/samples/generated/v1/addresses.insert.js b/samples/generated/v1/addresses.insert.js index fabdb850..9f9b5a8a 100644 --- a/samples/generated/v1/addresses.insert.js +++ b/samples/generated/v1/addresses.insert.js @@ -23,6 +23,9 @@ function main(addressResource, project, region) { // [START compute_v1_generated_Addresses_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. */ /** diff --git a/samples/generated/v1/addresses.list.js b/samples/generated/v1/addresses.list.js index ee1c40d9..53e635fb 100644 --- a/samples/generated/v1/addresses.list.js +++ b/samples/generated/v1/addresses.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_Addresses_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. */ /** diff --git a/samples/generated/v1/autoscalers.aggregated_list.js b/samples/generated/v1/autoscalers.aggregated_list.js index a9381720..930d9bb9 100644 --- a/samples/generated/v1/autoscalers.aggregated_list.js +++ b/samples/generated/v1/autoscalers.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Autoscalers_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. */ /** diff --git a/samples/generated/v1/autoscalers.delete.js b/samples/generated/v1/autoscalers.delete.js index 476566b5..4119d960 100644 --- a/samples/generated/v1/autoscalers.delete.js +++ b/samples/generated/v1/autoscalers.delete.js @@ -23,6 +23,9 @@ function main(autoscaler, project, zone) { // [START compute_v1_generated_Autoscalers_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. */ /** diff --git a/samples/generated/v1/autoscalers.get.js b/samples/generated/v1/autoscalers.get.js index cf1e57d0..27af2bdf 100644 --- a/samples/generated/v1/autoscalers.get.js +++ b/samples/generated/v1/autoscalers.get.js @@ -23,6 +23,9 @@ function main(autoscaler, project, zone) { // [START compute_v1_generated_Autoscalers_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. */ /** diff --git a/samples/generated/v1/autoscalers.insert.js b/samples/generated/v1/autoscalers.insert.js index 80784ca6..170b73f1 100644 --- a/samples/generated/v1/autoscalers.insert.js +++ b/samples/generated/v1/autoscalers.insert.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, zone) { // [START compute_v1_generated_Autoscalers_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. */ /** diff --git a/samples/generated/v1/autoscalers.list.js b/samples/generated/v1/autoscalers.list.js index 637e8543..9520a863 100644 --- a/samples/generated/v1/autoscalers.list.js +++ b/samples/generated/v1/autoscalers.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_Autoscalers_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. */ /** diff --git a/samples/generated/v1/autoscalers.patch.js b/samples/generated/v1/autoscalers.patch.js index b12cdaa9..5ecd261b 100644 --- a/samples/generated/v1/autoscalers.patch.js +++ b/samples/generated/v1/autoscalers.patch.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, zone) { // [START compute_v1_generated_Autoscalers_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/autoscalers.update.js b/samples/generated/v1/autoscalers.update.js index 737a71d1..506f8d26 100644 --- a/samples/generated/v1/autoscalers.update.js +++ b/samples/generated/v1/autoscalers.update.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, zone) { // [START compute_v1_generated_Autoscalers_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/backend_buckets.add_signed_url_key.js b/samples/generated/v1/backend_buckets.add_signed_url_key.js index e6ea8798..8e68f941 100644 --- a/samples/generated/v1/backend_buckets.add_signed_url_key.js +++ b/samples/generated/v1/backend_buckets.add_signed_url_key.js @@ -23,6 +23,9 @@ function main(backendBucket, project, signedUrlKeyResource) { // [START compute_v1_generated_BackendBuckets_AddSignedUrlKey_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. */ /** diff --git a/samples/generated/v1/backend_buckets.delete.js b/samples/generated/v1/backend_buckets.delete.js index d2e876a8..8b68ea5e 100644 --- a/samples/generated/v1/backend_buckets.delete.js +++ b/samples/generated/v1/backend_buckets.delete.js @@ -23,6 +23,9 @@ function main(backendBucket, project) { // [START compute_v1_generated_BackendBuckets_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. */ /** diff --git a/samples/generated/v1/backend_buckets.delete_signed_url_key.js b/samples/generated/v1/backend_buckets.delete_signed_url_key.js index 900ee10a..011e5509 100644 --- a/samples/generated/v1/backend_buckets.delete_signed_url_key.js +++ b/samples/generated/v1/backend_buckets.delete_signed_url_key.js @@ -23,6 +23,9 @@ function main(backendBucket, keyName, project) { // [START compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_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. */ /** diff --git a/samples/generated/v1/backend_buckets.get.js b/samples/generated/v1/backend_buckets.get.js index ba9c4529..4e176d67 100644 --- a/samples/generated/v1/backend_buckets.get.js +++ b/samples/generated/v1/backend_buckets.get.js @@ -23,6 +23,9 @@ function main(backendBucket, project) { // [START compute_v1_generated_BackendBuckets_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. */ /** diff --git a/samples/generated/v1/backend_buckets.insert.js b/samples/generated/v1/backend_buckets.insert.js index 26ea505f..0f883d87 100644 --- a/samples/generated/v1/backend_buckets.insert.js +++ b/samples/generated/v1/backend_buckets.insert.js @@ -23,6 +23,9 @@ function main(backendBucketResource, project) { // [START compute_v1_generated_BackendBuckets_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. */ /** diff --git a/samples/generated/v1/backend_buckets.list.js b/samples/generated/v1/backend_buckets.list.js index 48df1cb2..a4677d40 100644 --- a/samples/generated/v1/backend_buckets.list.js +++ b/samples/generated/v1/backend_buckets.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_BackendBuckets_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. */ /** diff --git a/samples/generated/v1/backend_buckets.patch.js b/samples/generated/v1/backend_buckets.patch.js index 761dc9ab..cb026bc1 100644 --- a/samples/generated/v1/backend_buckets.patch.js +++ b/samples/generated/v1/backend_buckets.patch.js @@ -23,6 +23,9 @@ function main(backendBucket, backendBucketResource, project) { // [START compute_v1_generated_BackendBuckets_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/backend_buckets.set_edge_security_policy.js b/samples/generated/v1/backend_buckets.set_edge_security_policy.js index 03f6c349..e4bca303 100644 --- a/samples/generated/v1/backend_buckets.set_edge_security_policy.js +++ b/samples/generated/v1/backend_buckets.set_edge_security_policy.js @@ -23,6 +23,9 @@ function main(backendBucket, project, securityPolicyReferenceResource) { // [START compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_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. */ /** diff --git a/samples/generated/v1/backend_buckets.update.js b/samples/generated/v1/backend_buckets.update.js index c6502ca8..52d85193 100644 --- a/samples/generated/v1/backend_buckets.update.js +++ b/samples/generated/v1/backend_buckets.update.js @@ -23,6 +23,9 @@ function main(backendBucket, backendBucketResource, project) { // [START compute_v1_generated_BackendBuckets_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/backend_services.add_signed_url_key.js b/samples/generated/v1/backend_services.add_signed_url_key.js index c2ad5ac0..1f1f5025 100644 --- a/samples/generated/v1/backend_services.add_signed_url_key.js +++ b/samples/generated/v1/backend_services.add_signed_url_key.js @@ -23,6 +23,9 @@ function main(backendService, project, signedUrlKeyResource) { // [START compute_v1_generated_BackendServices_AddSignedUrlKey_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. */ /** diff --git a/samples/generated/v1/backend_services.aggregated_list.js b/samples/generated/v1/backend_services.aggregated_list.js index 85c95f5a..584de516 100644 --- a/samples/generated/v1/backend_services.aggregated_list.js +++ b/samples/generated/v1/backend_services.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_BackendServices_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. */ /** diff --git a/samples/generated/v1/backend_services.delete.js b/samples/generated/v1/backend_services.delete.js index 52e4b065..da3d188a 100644 --- a/samples/generated/v1/backend_services.delete.js +++ b/samples/generated/v1/backend_services.delete.js @@ -23,6 +23,9 @@ function main(backendService, project) { // [START compute_v1_generated_BackendServices_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. */ /** diff --git a/samples/generated/v1/backend_services.delete_signed_url_key.js b/samples/generated/v1/backend_services.delete_signed_url_key.js index 42c33aa3..17a2f323 100644 --- a/samples/generated/v1/backend_services.delete_signed_url_key.js +++ b/samples/generated/v1/backend_services.delete_signed_url_key.js @@ -23,6 +23,9 @@ function main(backendService, keyName, project) { // [START compute_v1_generated_BackendServices_DeleteSignedUrlKey_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. */ /** diff --git a/samples/generated/v1/backend_services.get.js b/samples/generated/v1/backend_services.get.js index 7fa43f8f..1a3916f9 100644 --- a/samples/generated/v1/backend_services.get.js +++ b/samples/generated/v1/backend_services.get.js @@ -23,6 +23,9 @@ function main(backendService, project) { // [START compute_v1_generated_BackendServices_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. */ /** diff --git a/samples/generated/v1/backend_services.get_health.js b/samples/generated/v1/backend_services.get_health.js index 8c2db0c7..10a81739 100644 --- a/samples/generated/v1/backend_services.get_health.js +++ b/samples/generated/v1/backend_services.get_health.js @@ -23,6 +23,9 @@ function main(backendService, project, resourceGroupReferenceResource) { // [START compute_v1_generated_BackendServices_GetHealth_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/backend_services.insert.js b/samples/generated/v1/backend_services.insert.js index 7a70e08d..3a601c79 100644 --- a/samples/generated/v1/backend_services.insert.js +++ b/samples/generated/v1/backend_services.insert.js @@ -23,6 +23,9 @@ function main(backendServiceResource, project) { // [START compute_v1_generated_BackendServices_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. */ /** diff --git a/samples/generated/v1/backend_services.list.js b/samples/generated/v1/backend_services.list.js index 5faa7d88..878a2814 100644 --- a/samples/generated/v1/backend_services.list.js +++ b/samples/generated/v1/backend_services.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_BackendServices_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. */ /** diff --git a/samples/generated/v1/backend_services.patch.js b/samples/generated/v1/backend_services.patch.js index 768c46df..ab5bc9fc 100644 --- a/samples/generated/v1/backend_services.patch.js +++ b/samples/generated/v1/backend_services.patch.js @@ -23,6 +23,9 @@ function main(backendService, backendServiceResource, project) { // [START compute_v1_generated_BackendServices_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/backend_services.set_edge_security_policy.js b/samples/generated/v1/backend_services.set_edge_security_policy.js index 278f3310..52474bb5 100644 --- a/samples/generated/v1/backend_services.set_edge_security_policy.js +++ b/samples/generated/v1/backend_services.set_edge_security_policy.js @@ -23,6 +23,9 @@ function main(backendService, project, securityPolicyReferenceResource) { // [START compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_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. */ /** diff --git a/samples/generated/v1/backend_services.set_security_policy.js b/samples/generated/v1/backend_services.set_security_policy.js index eef151fe..5f7346da 100644 --- a/samples/generated/v1/backend_services.set_security_policy.js +++ b/samples/generated/v1/backend_services.set_security_policy.js @@ -23,6 +23,9 @@ function main(backendService, project, securityPolicyReferenceResource) { // [START compute_v1_generated_BackendServices_SetSecurityPolicy_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. */ /** diff --git a/samples/generated/v1/backend_services.update.js b/samples/generated/v1/backend_services.update.js index 7b7f0147..b52ef284 100644 --- a/samples/generated/v1/backend_services.update.js +++ b/samples/generated/v1/backend_services.update.js @@ -23,6 +23,9 @@ function main(backendService, backendServiceResource, project) { // [START compute_v1_generated_BackendServices_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/disk_types.aggregated_list.js b/samples/generated/v1/disk_types.aggregated_list.js index b0b17e5c..29a1109f 100644 --- a/samples/generated/v1/disk_types.aggregated_list.js +++ b/samples/generated/v1/disk_types.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_DiskTypes_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. */ /** diff --git a/samples/generated/v1/disk_types.get.js b/samples/generated/v1/disk_types.get.js index 018226d4..be21204e 100644 --- a/samples/generated/v1/disk_types.get.js +++ b/samples/generated/v1/disk_types.get.js @@ -23,6 +23,9 @@ function main(diskType, project, zone) { // [START compute_v1_generated_DiskTypes_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. */ /** diff --git a/samples/generated/v1/disk_types.list.js b/samples/generated/v1/disk_types.list.js index 84bd8445..f4866642 100644 --- a/samples/generated/v1/disk_types.list.js +++ b/samples/generated/v1/disk_types.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_DiskTypes_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. */ /** diff --git a/samples/generated/v1/disks.add_resource_policies.js b/samples/generated/v1/disks.add_resource_policies.js index 8d54f6e6..bb0893ba 100644 --- a/samples/generated/v1/disks.add_resource_policies.js +++ b/samples/generated/v1/disks.add_resource_policies.js @@ -23,6 +23,9 @@ function main(disk, disksAddResourcePoliciesRequestResource, project, zone) { // [START compute_v1_generated_Disks_AddResourcePolicies_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. */ /** diff --git a/samples/generated/v1/disks.aggregated_list.js b/samples/generated/v1/disks.aggregated_list.js index d37d4cbc..bf3e94d0 100644 --- a/samples/generated/v1/disks.aggregated_list.js +++ b/samples/generated/v1/disks.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.create_snapshot.js b/samples/generated/v1/disks.create_snapshot.js index b180ea89..75acbcb5 100644 --- a/samples/generated/v1/disks.create_snapshot.js +++ b/samples/generated/v1/disks.create_snapshot.js @@ -23,6 +23,9 @@ function main(disk, project, snapshotResource, zone) { // [START compute_v1_generated_Disks_CreateSnapshot_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. */ /** diff --git a/samples/generated/v1/disks.delete.js b/samples/generated/v1/disks.delete.js index bea66bba..dc8b6f1a 100644 --- a/samples/generated/v1/disks.delete.js +++ b/samples/generated/v1/disks.delete.js @@ -23,6 +23,9 @@ function main(disk, project, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.get.js b/samples/generated/v1/disks.get.js index a78cc98c..fc33c865 100644 --- a/samples/generated/v1/disks.get.js +++ b/samples/generated/v1/disks.get.js @@ -23,6 +23,9 @@ function main(disk, project, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.get_iam_policy.js b/samples/generated/v1/disks.get_iam_policy.js index 2855c1b0..2e04f88c 100644 --- a/samples/generated/v1/disks.get_iam_policy.js +++ b/samples/generated/v1/disks.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.insert.js b/samples/generated/v1/disks.insert.js index 701c77b6..220f81fa 100644 --- a/samples/generated/v1/disks.insert.js +++ b/samples/generated/v1/disks.insert.js @@ -23,6 +23,9 @@ function main(diskResource, project, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.list.js b/samples/generated/v1/disks.list.js index 848cb1b3..c6d0cd57 100644 --- a/samples/generated/v1/disks.list.js +++ b/samples/generated/v1/disks.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.remove_resource_policies.js b/samples/generated/v1/disks.remove_resource_policies.js index 0a6c2adc..97d46841 100644 --- a/samples/generated/v1/disks.remove_resource_policies.js +++ b/samples/generated/v1/disks.remove_resource_policies.js @@ -23,6 +23,9 @@ function main(disk, disksRemoveResourcePoliciesRequestResource, project, zone) { // [START compute_v1_generated_Disks_RemoveResourcePolicies_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. */ /** diff --git a/samples/generated/v1/disks.resize.js b/samples/generated/v1/disks.resize.js index 6ba3ea45..71a0a713 100644 --- a/samples/generated/v1/disks.resize.js +++ b/samples/generated/v1/disks.resize.js @@ -23,6 +23,9 @@ function main(disk, disksResizeRequestResource, project, zone) { // [START compute_v1_generated_Disks_Resize_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. */ /** diff --git a/samples/generated/v1/disks.set_iam_policy.js b/samples/generated/v1/disks.set_iam_policy.js index a12df636..182904dc 100644 --- a/samples/generated/v1/disks.set_iam_policy.js +++ b/samples/generated/v1/disks.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone, zoneSetPolicyRequestResource) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.set_labels.js b/samples/generated/v1/disks.set_labels.js index 65c75604..8ffcd1a6 100644 --- a/samples/generated/v1/disks.set_labels.js +++ b/samples/generated/v1/disks.set_labels.js @@ -23,6 +23,9 @@ function main(project, resource, zone, zoneSetLabelsRequestResource) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/disks.test_iam_permissions.js b/samples/generated/v1/disks.test_iam_permissions.js index d59149e8..e081c73d 100644 --- a/samples/generated/v1/disks.test_iam_permissions.js +++ b/samples/generated/v1/disks.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource, zone) { // [START compute_v1_generated_Disks_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.delete.js b/samples/generated/v1/external_vpn_gateways.delete.js index 8ff5c59e..03193e1e 100644 --- a/samples/generated/v1/external_vpn_gateways.delete.js +++ b/samples/generated/v1/external_vpn_gateways.delete.js @@ -23,6 +23,9 @@ function main(externalVpnGateway, project) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.get.js b/samples/generated/v1/external_vpn_gateways.get.js index 5541452f..0a8d06af 100644 --- a/samples/generated/v1/external_vpn_gateways.get.js +++ b/samples/generated/v1/external_vpn_gateways.get.js @@ -23,6 +23,9 @@ function main(externalVpnGateway, project) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.insert.js b/samples/generated/v1/external_vpn_gateways.insert.js index 2e68f152..2deeccd8 100644 --- a/samples/generated/v1/external_vpn_gateways.insert.js +++ b/samples/generated/v1/external_vpn_gateways.insert.js @@ -23,6 +23,9 @@ function main(externalVpnGatewayResource, project) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.list.js b/samples/generated/v1/external_vpn_gateways.list.js index abbdcedc..104e0b5c 100644 --- a/samples/generated/v1/external_vpn_gateways.list.js +++ b/samples/generated/v1/external_vpn_gateways.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.set_labels.js b/samples/generated/v1/external_vpn_gateways.set_labels.js index a075d21a..e9a34462 100644 --- a/samples/generated/v1/external_vpn_gateways.set_labels.js +++ b/samples/generated/v1/external_vpn_gateways.set_labels.js @@ -23,6 +23,9 @@ function main(globalSetLabelsRequestResource, project, resource) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/external_vpn_gateways.test_iam_permissions.js b/samples/generated/v1/external_vpn_gateways.test_iam_permissions.js index 78aabced..8c9860ed 100644 --- a/samples/generated/v1/external_vpn_gateways.test_iam_permissions.js +++ b/samples/generated/v1/external_vpn_gateways.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_ExternalVpnGateways_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. */ /** diff --git a/samples/generated/v1/firewall_policies.add_association.js b/samples/generated/v1/firewall_policies.add_association.js index d36a227a..31f0dd44 100644 --- a/samples/generated/v1/firewall_policies.add_association.js +++ b/samples/generated/v1/firewall_policies.add_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyAssociationResource) { // [START compute_v1_generated_FirewallPolicies_AddAssociation_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. */ /** diff --git a/samples/generated/v1/firewall_policies.add_rule.js b/samples/generated/v1/firewall_policies.add_rule.js index b33c15d9..56fcbc07 100644 --- a/samples/generated/v1/firewall_policies.add_rule.js +++ b/samples/generated/v1/firewall_policies.add_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource) { // [START compute_v1_generated_FirewallPolicies_AddRule_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. */ /** diff --git a/samples/generated/v1/firewall_policies.clone_rules.js b/samples/generated/v1/firewall_policies.clone_rules.js index 287416dd..61e0150d 100644 --- a/samples/generated/v1/firewall_policies.clone_rules.js +++ b/samples/generated/v1/firewall_policies.clone_rules.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_CloneRules_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. */ /** diff --git a/samples/generated/v1/firewall_policies.delete.js b/samples/generated/v1/firewall_policies.delete.js index ab574d12..eb3717f8 100644 --- a/samples/generated/v1/firewall_policies.delete.js +++ b/samples/generated/v1/firewall_policies.delete.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.get.js b/samples/generated/v1/firewall_policies.get.js index 9c9f8301..26f6439d 100644 --- a/samples/generated/v1/firewall_policies.get.js +++ b/samples/generated/v1/firewall_policies.get.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.get_association.js b/samples/generated/v1/firewall_policies.get_association.js index 7d35ea6d..c48908fc 100644 --- a/samples/generated/v1/firewall_policies.get_association.js +++ b/samples/generated/v1/firewall_policies.get_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_GetAssociation_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. */ /** diff --git a/samples/generated/v1/firewall_policies.get_iam_policy.js b/samples/generated/v1/firewall_policies.get_iam_policy.js index 54d119ee..b288c66d 100644 --- a/samples/generated/v1/firewall_policies.get_iam_policy.js +++ b/samples/generated/v1/firewall_policies.get_iam_policy.js @@ -23,6 +23,9 @@ function main(resource) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.get_rule.js b/samples/generated/v1/firewall_policies.get_rule.js index 4a5349d6..f9d99e7c 100644 --- a/samples/generated/v1/firewall_policies.get_rule.js +++ b/samples/generated/v1/firewall_policies.get_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_GetRule_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. */ /** diff --git a/samples/generated/v1/firewall_policies.insert.js b/samples/generated/v1/firewall_policies.insert.js index f2bf4b1f..ef35ccf7 100644 --- a/samples/generated/v1/firewall_policies.insert.js +++ b/samples/generated/v1/firewall_policies.insert.js @@ -23,6 +23,9 @@ function main(firewallPolicyResource, parentId) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.list.js b/samples/generated/v1/firewall_policies.list.js index 8ee033fe..fbcfb154 100644 --- a/samples/generated/v1/firewall_policies.list.js +++ b/samples/generated/v1/firewall_policies.list.js @@ -23,6 +23,9 @@ function main() { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.list_associations.js b/samples/generated/v1/firewall_policies.list_associations.js index 6b1b7dbd..76083ed8 100644 --- a/samples/generated/v1/firewall_policies.list_associations.js +++ b/samples/generated/v1/firewall_policies.list_associations.js @@ -23,6 +23,9 @@ function main() { // [START compute_v1_generated_FirewallPolicies_ListAssociations_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. */ /** diff --git a/samples/generated/v1/firewall_policies.move.js b/samples/generated/v1/firewall_policies.move.js index 7107ac2d..6d55cdc1 100644 --- a/samples/generated/v1/firewall_policies.move.js +++ b/samples/generated/v1/firewall_policies.move.js @@ -23,6 +23,9 @@ function main(firewallPolicy, parentId) { // [START compute_v1_generated_FirewallPolicies_Move_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. */ /** diff --git a/samples/generated/v1/firewall_policies.patch.js b/samples/generated/v1/firewall_policies.patch.js index 790ff783..5159306f 100644 --- a/samples/generated/v1/firewall_policies.patch.js +++ b/samples/generated/v1/firewall_policies.patch.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyResource) { // [START compute_v1_generated_FirewallPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/firewall_policies.patch_rule.js b/samples/generated/v1/firewall_policies.patch_rule.js index 512a22aa..e4b6c33a 100644 --- a/samples/generated/v1/firewall_policies.patch_rule.js +++ b/samples/generated/v1/firewall_policies.patch_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource) { // [START compute_v1_generated_FirewallPolicies_PatchRule_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. */ /** diff --git a/samples/generated/v1/firewall_policies.remove_association.js b/samples/generated/v1/firewall_policies.remove_association.js index 2be3250b..b491b1d5 100644 --- a/samples/generated/v1/firewall_policies.remove_association.js +++ b/samples/generated/v1/firewall_policies.remove_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_RemoveAssociation_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. */ /** diff --git a/samples/generated/v1/firewall_policies.remove_rule.js b/samples/generated/v1/firewall_policies.remove_rule.js index 546010ff..17f6ad0f 100644 --- a/samples/generated/v1/firewall_policies.remove_rule.js +++ b/samples/generated/v1/firewall_policies.remove_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_RemoveRule_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. */ /** diff --git a/samples/generated/v1/firewall_policies.set_iam_policy.js b/samples/generated/v1/firewall_policies.set_iam_policy.js index 663e02f8..a716ab39 100644 --- a/samples/generated/v1/firewall_policies.set_iam_policy.js +++ b/samples/generated/v1/firewall_policies.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalOrganizationSetPolicyRequestResource, resource) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewall_policies.test_iam_permissions.js b/samples/generated/v1/firewall_policies.test_iam_permissions.js index 3581e4dd..63b67664 100644 --- a/samples/generated/v1/firewall_policies.test_iam_permissions.js +++ b/samples/generated/v1/firewall_policies.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(resource, testPermissionsRequestResource) { // [START compute_v1_generated_FirewallPolicies_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. */ /** diff --git a/samples/generated/v1/firewalls.delete.js b/samples/generated/v1/firewalls.delete.js index d49bd59a..a38b41e7 100644 --- a/samples/generated/v1/firewalls.delete.js +++ b/samples/generated/v1/firewalls.delete.js @@ -23,6 +23,9 @@ function main(firewall, project) { // [START compute_v1_generated_Firewalls_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. */ /** diff --git a/samples/generated/v1/firewalls.get.js b/samples/generated/v1/firewalls.get.js index 9682833e..4489bff5 100644 --- a/samples/generated/v1/firewalls.get.js +++ b/samples/generated/v1/firewalls.get.js @@ -23,6 +23,9 @@ function main(firewall, project) { // [START compute_v1_generated_Firewalls_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. */ /** diff --git a/samples/generated/v1/firewalls.insert.js b/samples/generated/v1/firewalls.insert.js index 53331366..a8e45e46 100644 --- a/samples/generated/v1/firewalls.insert.js +++ b/samples/generated/v1/firewalls.insert.js @@ -23,6 +23,9 @@ function main(firewallResource, project) { // [START compute_v1_generated_Firewalls_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. */ /** diff --git a/samples/generated/v1/firewalls.list.js b/samples/generated/v1/firewalls.list.js index 58627c05..22ca3ba8 100644 --- a/samples/generated/v1/firewalls.list.js +++ b/samples/generated/v1/firewalls.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Firewalls_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. */ /** diff --git a/samples/generated/v1/firewalls.patch.js b/samples/generated/v1/firewalls.patch.js index 6060b62b..3aaaf644 100644 --- a/samples/generated/v1/firewalls.patch.js +++ b/samples/generated/v1/firewalls.patch.js @@ -23,6 +23,9 @@ function main(firewall, firewallResource, project) { // [START compute_v1_generated_Firewalls_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/firewalls.update.js b/samples/generated/v1/firewalls.update.js index da1e77dd..9b81cf24 100644 --- a/samples/generated/v1/firewalls.update.js +++ b/samples/generated/v1/firewalls.update.js @@ -23,6 +23,9 @@ function main(firewall, firewallResource, project) { // [START compute_v1_generated_Firewalls_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/forwarding_rules.aggregated_list.js b/samples/generated/v1/forwarding_rules.aggregated_list.js index c54c6a92..eb76dd17 100644 --- a/samples/generated/v1/forwarding_rules.aggregated_list.js +++ b/samples/generated/v1/forwarding_rules.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.delete.js b/samples/generated/v1/forwarding_rules.delete.js index b9a007c5..81db2db4 100644 --- a/samples/generated/v1/forwarding_rules.delete.js +++ b/samples/generated/v1/forwarding_rules.delete.js @@ -23,6 +23,9 @@ function main(forwardingRule, project, region) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.get.js b/samples/generated/v1/forwarding_rules.get.js index 210409de..8b638720 100644 --- a/samples/generated/v1/forwarding_rules.get.js +++ b/samples/generated/v1/forwarding_rules.get.js @@ -23,6 +23,9 @@ function main(forwardingRule, project, region) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.insert.js b/samples/generated/v1/forwarding_rules.insert.js index 249f4c23..63a5db4a 100644 --- a/samples/generated/v1/forwarding_rules.insert.js +++ b/samples/generated/v1/forwarding_rules.insert.js @@ -23,6 +23,9 @@ function main(forwardingRuleResource, project, region) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.list.js b/samples/generated/v1/forwarding_rules.list.js index 9d734806..4d7b1cd1 100644 --- a/samples/generated/v1/forwarding_rules.list.js +++ b/samples/generated/v1/forwarding_rules.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.patch.js b/samples/generated/v1/forwarding_rules.patch.js index 7f5440c1..0c3fdf0d 100644 --- a/samples/generated/v1/forwarding_rules.patch.js +++ b/samples/generated/v1/forwarding_rules.patch.js @@ -23,6 +23,9 @@ function main(forwardingRule, forwardingRuleResource, project, region) { // [START compute_v1_generated_ForwardingRules_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/forwarding_rules.set_labels.js b/samples/generated/v1/forwarding_rules.set_labels.js index f494a039..34a5572c 100644 --- a/samples/generated/v1/forwarding_rules.set_labels.js +++ b/samples/generated/v1/forwarding_rules.set_labels.js @@ -23,6 +23,9 @@ function main(project, region, regionSetLabelsRequestResource, resource) { // [START compute_v1_generated_ForwardingRules_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. */ /** diff --git a/samples/generated/v1/forwarding_rules.set_target.js b/samples/generated/v1/forwarding_rules.set_target.js index f93c4c97..18326700 100644 --- a/samples/generated/v1/forwarding_rules.set_target.js +++ b/samples/generated/v1/forwarding_rules.set_target.js @@ -23,6 +23,9 @@ function main(forwardingRule, project, region, targetReferenceResource) { // [START compute_v1_generated_ForwardingRules_SetTarget_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. */ /** diff --git a/samples/generated/v1/global_addresses.delete.js b/samples/generated/v1/global_addresses.delete.js index afc4b546..f91b775e 100644 --- a/samples/generated/v1/global_addresses.delete.js +++ b/samples/generated/v1/global_addresses.delete.js @@ -23,6 +23,9 @@ function main(address, project) { // [START compute_v1_generated_GlobalAddresses_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. */ /** diff --git a/samples/generated/v1/global_addresses.get.js b/samples/generated/v1/global_addresses.get.js index d2e8a10b..4160cf69 100644 --- a/samples/generated/v1/global_addresses.get.js +++ b/samples/generated/v1/global_addresses.get.js @@ -23,6 +23,9 @@ function main(address, project) { // [START compute_v1_generated_GlobalAddresses_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. */ /** diff --git a/samples/generated/v1/global_addresses.insert.js b/samples/generated/v1/global_addresses.insert.js index 7ec422da..1ec59034 100644 --- a/samples/generated/v1/global_addresses.insert.js +++ b/samples/generated/v1/global_addresses.insert.js @@ -23,6 +23,9 @@ function main(addressResource, project) { // [START compute_v1_generated_GlobalAddresses_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. */ /** diff --git a/samples/generated/v1/global_addresses.list.js b/samples/generated/v1/global_addresses.list.js index 1c63a6b8..f9a95fcf 100644 --- a/samples/generated/v1/global_addresses.list.js +++ b/samples/generated/v1/global_addresses.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalAddresses_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.delete.js b/samples/generated/v1/global_forwarding_rules.delete.js index d5ac2778..d60f73a9 100644 --- a/samples/generated/v1/global_forwarding_rules.delete.js +++ b/samples/generated/v1/global_forwarding_rules.delete.js @@ -23,6 +23,9 @@ function main(forwardingRule, project) { // [START compute_v1_generated_GlobalForwardingRules_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.get.js b/samples/generated/v1/global_forwarding_rules.get.js index 864fa281..37dcf196 100644 --- a/samples/generated/v1/global_forwarding_rules.get.js +++ b/samples/generated/v1/global_forwarding_rules.get.js @@ -23,6 +23,9 @@ function main(forwardingRule, project) { // [START compute_v1_generated_GlobalForwardingRules_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.insert.js b/samples/generated/v1/global_forwarding_rules.insert.js index 7ed5af31..c5e9e568 100644 --- a/samples/generated/v1/global_forwarding_rules.insert.js +++ b/samples/generated/v1/global_forwarding_rules.insert.js @@ -23,6 +23,9 @@ function main(forwardingRuleResource, project) { // [START compute_v1_generated_GlobalForwardingRules_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.list.js b/samples/generated/v1/global_forwarding_rules.list.js index 9034822b..b1d667d3 100644 --- a/samples/generated/v1/global_forwarding_rules.list.js +++ b/samples/generated/v1/global_forwarding_rules.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalForwardingRules_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.patch.js b/samples/generated/v1/global_forwarding_rules.patch.js index 98388590..e915ffb3 100644 --- a/samples/generated/v1/global_forwarding_rules.patch.js +++ b/samples/generated/v1/global_forwarding_rules.patch.js @@ -23,6 +23,9 @@ function main(forwardingRule, forwardingRuleResource, project) { // [START compute_v1_generated_GlobalForwardingRules_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.set_labels.js b/samples/generated/v1/global_forwarding_rules.set_labels.js index c35ea6fb..b5e67342 100644 --- a/samples/generated/v1/global_forwarding_rules.set_labels.js +++ b/samples/generated/v1/global_forwarding_rules.set_labels.js @@ -23,6 +23,9 @@ function main(globalSetLabelsRequestResource, project, resource) { // [START compute_v1_generated_GlobalForwardingRules_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. */ /** diff --git a/samples/generated/v1/global_forwarding_rules.set_target.js b/samples/generated/v1/global_forwarding_rules.set_target.js index a280ac9c..fddb2d35 100644 --- a/samples/generated/v1/global_forwarding_rules.set_target.js +++ b/samples/generated/v1/global_forwarding_rules.set_target.js @@ -23,6 +23,9 @@ function main(forwardingRule, project, targetReferenceResource) { // [START compute_v1_generated_GlobalForwardingRules_SetTarget_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.attach_network_endpoints.js b/samples/generated/v1/global_network_endpoint_groups.attach_network_endpoints.js index 0b10d418..32250b3d 100644 --- a/samples/generated/v1/global_network_endpoint_groups.attach_network_endpoints.js +++ b/samples/generated/v1/global_network_endpoint_groups.attach_network_endpoints.js @@ -23,6 +23,9 @@ function main(globalNetworkEndpointGroupsAttachEndpointsRequestResource, networkEndpointGroup, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.delete.js b/samples/generated/v1/global_network_endpoint_groups.delete.js index b3ac76ff..6d8aeece 100644 --- a/samples/generated/v1/global_network_endpoint_groups.delete.js +++ b/samples/generated/v1/global_network_endpoint_groups.delete.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.detach_network_endpoints.js b/samples/generated/v1/global_network_endpoint_groups.detach_network_endpoints.js index baee0d11..38ab5a24 100644 --- a/samples/generated/v1/global_network_endpoint_groups.detach_network_endpoints.js +++ b/samples/generated/v1/global_network_endpoint_groups.detach_network_endpoints.js @@ -23,6 +23,9 @@ function main(globalNetworkEndpointGroupsDetachEndpointsRequestResource, networkEndpointGroup, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.get.js b/samples/generated/v1/global_network_endpoint_groups.get.js index a22c72bf..08572af0 100644 --- a/samples/generated/v1/global_network_endpoint_groups.get.js +++ b/samples/generated/v1/global_network_endpoint_groups.get.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.insert.js b/samples/generated/v1/global_network_endpoint_groups.insert.js index 05d78199..3efbfa5c 100644 --- a/samples/generated/v1/global_network_endpoint_groups.insert.js +++ b/samples/generated/v1/global_network_endpoint_groups.insert.js @@ -23,6 +23,9 @@ function main(networkEndpointGroupResource, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.list.js b/samples/generated/v1/global_network_endpoint_groups.list.js index a0f38959..7e607405 100644 --- a/samples/generated/v1/global_network_endpoint_groups.list.js +++ b/samples/generated/v1/global_network_endpoint_groups.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js b/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js index 8a642ff0..3b20f278 100644 --- a/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js +++ b/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project) { // [START compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/global_operations.aggregated_list.js b/samples/generated/v1/global_operations.aggregated_list.js index 89c5b008..9330b13f 100644 --- a/samples/generated/v1/global_operations.aggregated_list.js +++ b/samples/generated/v1/global_operations.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalOperations_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. */ /** diff --git a/samples/generated/v1/global_operations.delete.js b/samples/generated/v1/global_operations.delete.js index 6e3a14bf..1024220f 100644 --- a/samples/generated/v1/global_operations.delete.js +++ b/samples/generated/v1/global_operations.delete.js @@ -23,6 +23,9 @@ function main(operation, project) { // [START compute_v1_generated_GlobalOperations_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. */ /** diff --git a/samples/generated/v1/global_operations.get.js b/samples/generated/v1/global_operations.get.js index bd2df69f..70521321 100644 --- a/samples/generated/v1/global_operations.get.js +++ b/samples/generated/v1/global_operations.get.js @@ -23,6 +23,9 @@ function main(operation, project) { // [START compute_v1_generated_GlobalOperations_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. */ /** diff --git a/samples/generated/v1/global_operations.list.js b/samples/generated/v1/global_operations.list.js index d6e82532..d9f1778b 100644 --- a/samples/generated/v1/global_operations.list.js +++ b/samples/generated/v1/global_operations.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalOperations_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. */ /** diff --git a/samples/generated/v1/global_operations.wait.js b/samples/generated/v1/global_operations.wait.js index 8576d318..3db1fa70 100644 --- a/samples/generated/v1/global_operations.wait.js +++ b/samples/generated/v1/global_operations.wait.js @@ -23,6 +23,9 @@ function main(operation, project) { // [START compute_v1_generated_GlobalOperations_Wait_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. */ /** diff --git a/samples/generated/v1/global_organization_operations.delete.js b/samples/generated/v1/global_organization_operations.delete.js index 6f507336..3935d9da 100644 --- a/samples/generated/v1/global_organization_operations.delete.js +++ b/samples/generated/v1/global_organization_operations.delete.js @@ -23,6 +23,9 @@ function main(operation) { // [START compute_v1_generated_GlobalOrganizationOperations_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. */ /** diff --git a/samples/generated/v1/global_organization_operations.get.js b/samples/generated/v1/global_organization_operations.get.js index e5dafc52..98a2e79e 100644 --- a/samples/generated/v1/global_organization_operations.get.js +++ b/samples/generated/v1/global_organization_operations.get.js @@ -23,6 +23,9 @@ function main(operation) { // [START compute_v1_generated_GlobalOrganizationOperations_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. */ /** diff --git a/samples/generated/v1/global_organization_operations.list.js b/samples/generated/v1/global_organization_operations.list.js index 71587986..24d9ba51 100644 --- a/samples/generated/v1/global_organization_operations.list.js +++ b/samples/generated/v1/global_organization_operations.list.js @@ -23,6 +23,9 @@ function main() { // [START compute_v1_generated_GlobalOrganizationOperations_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. */ /** diff --git a/samples/generated/v1/global_public_delegated_prefixes.delete.js b/samples/generated/v1/global_public_delegated_prefixes.delete.js index 8f7c4353..4b816b3a 100644 --- a/samples/generated/v1/global_public_delegated_prefixes.delete.js +++ b/samples/generated/v1/global_public_delegated_prefixes.delete.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix) { // [START compute_v1_generated_GlobalPublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/global_public_delegated_prefixes.get.js b/samples/generated/v1/global_public_delegated_prefixes.get.js index 90a92fda..48b5e04d 100644 --- a/samples/generated/v1/global_public_delegated_prefixes.get.js +++ b/samples/generated/v1/global_public_delegated_prefixes.get.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix) { // [START compute_v1_generated_GlobalPublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/global_public_delegated_prefixes.insert.js b/samples/generated/v1/global_public_delegated_prefixes.insert.js index 1fa3f470..a4467135 100644 --- a/samples/generated/v1/global_public_delegated_prefixes.insert.js +++ b/samples/generated/v1/global_public_delegated_prefixes.insert.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefixResource) { // [START compute_v1_generated_GlobalPublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/global_public_delegated_prefixes.list.js b/samples/generated/v1/global_public_delegated_prefixes.list.js index cacff6f8..d09f3b0d 100644 --- a/samples/generated/v1/global_public_delegated_prefixes.list.js +++ b/samples/generated/v1/global_public_delegated_prefixes.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_GlobalPublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/global_public_delegated_prefixes.patch.js b/samples/generated/v1/global_public_delegated_prefixes.patch.js index dc39b275..f2e2e634 100644 --- a/samples/generated/v1/global_public_delegated_prefixes.patch.js +++ b/samples/generated/v1/global_public_delegated_prefixes.patch.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource) { // [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/health_checks.aggregated_list.js b/samples/generated/v1/health_checks.aggregated_list.js index 2adb6702..50cb57a8 100644 --- a/samples/generated/v1/health_checks.aggregated_list.js +++ b/samples/generated/v1/health_checks.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_HealthChecks_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. */ /** diff --git a/samples/generated/v1/health_checks.delete.js b/samples/generated/v1/health_checks.delete.js index 59719206..a9e61c1c 100644 --- a/samples/generated/v1/health_checks.delete.js +++ b/samples/generated/v1/health_checks.delete.js @@ -23,6 +23,9 @@ function main(healthCheck, project) { // [START compute_v1_generated_HealthChecks_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. */ /** diff --git a/samples/generated/v1/health_checks.get.js b/samples/generated/v1/health_checks.get.js index e851f6ea..9f799981 100644 --- a/samples/generated/v1/health_checks.get.js +++ b/samples/generated/v1/health_checks.get.js @@ -23,6 +23,9 @@ function main(healthCheck, project) { // [START compute_v1_generated_HealthChecks_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. */ /** diff --git a/samples/generated/v1/health_checks.insert.js b/samples/generated/v1/health_checks.insert.js index 8cfa402a..6a8e3b45 100644 --- a/samples/generated/v1/health_checks.insert.js +++ b/samples/generated/v1/health_checks.insert.js @@ -23,6 +23,9 @@ function main(healthCheckResource, project) { // [START compute_v1_generated_HealthChecks_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. */ /** diff --git a/samples/generated/v1/health_checks.list.js b/samples/generated/v1/health_checks.list.js index f2a5d845..4b2c33f7 100644 --- a/samples/generated/v1/health_checks.list.js +++ b/samples/generated/v1/health_checks.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_HealthChecks_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. */ /** diff --git a/samples/generated/v1/health_checks.patch.js b/samples/generated/v1/health_checks.patch.js index 11d70e9f..3ba85ffc 100644 --- a/samples/generated/v1/health_checks.patch.js +++ b/samples/generated/v1/health_checks.patch.js @@ -23,6 +23,9 @@ function main(healthCheck, healthCheckResource, project) { // [START compute_v1_generated_HealthChecks_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/health_checks.update.js b/samples/generated/v1/health_checks.update.js index cdf436b4..5f5c1ac8 100644 --- a/samples/generated/v1/health_checks.update.js +++ b/samples/generated/v1/health_checks.update.js @@ -23,6 +23,9 @@ function main(healthCheck, healthCheckResource, project) { // [START compute_v1_generated_HealthChecks_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/image_family_views.get.js b/samples/generated/v1/image_family_views.get.js index f9c4b524..38e65a8d 100644 --- a/samples/generated/v1/image_family_views.get.js +++ b/samples/generated/v1/image_family_views.get.js @@ -23,6 +23,9 @@ function main(family, project, zone) { // [START compute_v1_generated_ImageFamilyViews_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. */ /** diff --git a/samples/generated/v1/images.delete.js b/samples/generated/v1/images.delete.js index 108e2b38..d9d93fe9 100644 --- a/samples/generated/v1/images.delete.js +++ b/samples/generated/v1/images.delete.js @@ -23,6 +23,9 @@ function main(image, project) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.deprecate.js b/samples/generated/v1/images.deprecate.js index 3b6d8473..c3414733 100644 --- a/samples/generated/v1/images.deprecate.js +++ b/samples/generated/v1/images.deprecate.js @@ -23,6 +23,9 @@ function main(deprecationStatusResource, image, project) { // [START compute_v1_generated_Images_Deprecate_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. */ /** diff --git a/samples/generated/v1/images.get.js b/samples/generated/v1/images.get.js index b08dea29..f11d3318 100644 --- a/samples/generated/v1/images.get.js +++ b/samples/generated/v1/images.get.js @@ -23,6 +23,9 @@ function main(image, project) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.get_from_family.js b/samples/generated/v1/images.get_from_family.js index 5d9d28c3..b8e0c654 100644 --- a/samples/generated/v1/images.get_from_family.js +++ b/samples/generated/v1/images.get_from_family.js @@ -23,6 +23,9 @@ function main(family, project) { // [START compute_v1_generated_Images_GetFromFamily_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. */ /** diff --git a/samples/generated/v1/images.get_iam_policy.js b/samples/generated/v1/images.get_iam_policy.js index bbead597..ac6a22fa 100644 --- a/samples/generated/v1/images.get_iam_policy.js +++ b/samples/generated/v1/images.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.insert.js b/samples/generated/v1/images.insert.js index 27a2ef1e..8f17b3d1 100644 --- a/samples/generated/v1/images.insert.js +++ b/samples/generated/v1/images.insert.js @@ -23,6 +23,9 @@ function main(imageResource, project) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.list.js b/samples/generated/v1/images.list.js index f30861a6..49dcefe5 100644 --- a/samples/generated/v1/images.list.js +++ b/samples/generated/v1/images.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.patch.js b/samples/generated/v1/images.patch.js index a31bf675..653c6b67 100644 --- a/samples/generated/v1/images.patch.js +++ b/samples/generated/v1/images.patch.js @@ -23,6 +23,9 @@ function main(image, imageResource, project) { // [START compute_v1_generated_Images_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/images.set_iam_policy.js b/samples/generated/v1/images.set_iam_policy.js index d3b1decb..9fba81b0 100644 --- a/samples/generated/v1/images.set_iam_policy.js +++ b/samples/generated/v1/images.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.set_labels.js b/samples/generated/v1/images.set_labels.js index cc62019b..c94e459d 100644 --- a/samples/generated/v1/images.set_labels.js +++ b/samples/generated/v1/images.set_labels.js @@ -23,6 +23,9 @@ function main(globalSetLabelsRequestResource, project, resource) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/images.test_iam_permissions.js b/samples/generated/v1/images.test_iam_permissions.js index edbe39b8..83631780 100644 --- a/samples/generated/v1/images.test_iam_permissions.js +++ b/samples/generated/v1/images.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_Images_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.abandon_instances.js b/samples/generated/v1/instance_group_managers.abandon_instances.js index 7c3fcb74..41c5e959 100644 --- a/samples/generated/v1/instance_group_managers.abandon_instances.js +++ b/samples/generated/v1/instance_group_managers.abandon_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_AbandonInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.aggregated_list.js b/samples/generated/v1/instance_group_managers.aggregated_list.js index 39a4c6bd..7d3f0081 100644 --- a/samples/generated/v1/instance_group_managers.aggregated_list.js +++ b/samples/generated/v1/instance_group_managers.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_InstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.apply_updates_to_instances.js b/samples/generated/v1/instance_group_managers.apply_updates_to_instances.js index 58b1c4ce..4903eebd 100644 --- a/samples/generated/v1/instance_group_managers.apply_updates_to_instances.js +++ b/samples/generated/v1/instance_group_managers.apply_updates_to_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersApplyUpdatesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.create_instances.js b/samples/generated/v1/instance_group_managers.create_instances.js index a54c85bd..39481c7c 100644 --- a/samples/generated/v1/instance_group_managers.create_instances.js +++ b/samples/generated/v1/instance_group_managers.create_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersCreateInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_CreateInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.delete.js b/samples/generated/v1/instance_group_managers.delete.js index b4dade98..07277be9 100644 --- a/samples/generated/v1/instance_group_managers.delete.js +++ b/samples/generated/v1/instance_group_managers.delete.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.delete_instances.js b/samples/generated/v1/instance_group_managers.delete_instances.js index 89fc7b34..77171d2b 100644 --- a/samples/generated/v1/instance_group_managers.delete_instances.js +++ b/samples/generated/v1/instance_group_managers.delete_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_DeleteInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.delete_per_instance_configs.js b/samples/generated/v1/instance_group_managers.delete_per_instance_configs.js index 48cb1f84..e4a8283d 100644 --- a/samples/generated/v1/instance_group_managers.delete_per_instance_configs.js +++ b/samples/generated/v1/instance_group_managers.delete_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersDeletePerInstanceConfigsReqResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.get.js b/samples/generated/v1/instance_group_managers.get.js index 2c07359d..9ce4e814 100644 --- a/samples/generated/v1/instance_group_managers.get.js +++ b/samples/generated/v1/instance_group_managers.get.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.insert.js b/samples/generated/v1/instance_group_managers.insert.js index 0f9ee4a0..e495db09 100644 --- a/samples/generated/v1/instance_group_managers.insert.js +++ b/samples/generated/v1/instance_group_managers.insert.js @@ -23,6 +23,9 @@ function main(instanceGroupManagerResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.list.js b/samples/generated/v1/instance_group_managers.list.js index 40718445..d94d72e8 100644 --- a/samples/generated/v1/instance_group_managers.list.js +++ b/samples/generated/v1/instance_group_managers.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_InstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.list_errors.js b/samples/generated/v1/instance_group_managers.list_errors.js index 98ed2d50..bbb706e4 100644 --- a/samples/generated/v1/instance_group_managers.list_errors.js +++ b/samples/generated/v1/instance_group_managers.list_errors.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_ListErrors_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.list_managed_instances.js b/samples/generated/v1/instance_group_managers.list_managed_instances.js index 89dce9b4..9069498e 100644 --- a/samples/generated/v1/instance_group_managers.list_managed_instances.js +++ b/samples/generated/v1/instance_group_managers.list_managed_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_ListManagedInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.list_per_instance_configs.js b/samples/generated/v1/instance_group_managers.list_per_instance_configs.js index a094da56..1b384607 100644 --- a/samples/generated/v1/instance_group_managers.list_per_instance_configs.js +++ b/samples/generated/v1/instance_group_managers.list_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.patch.js b/samples/generated/v1/instance_group_managers.patch.js index 0863c8ad..4d9e768b 100644 --- a/samples/generated/v1/instance_group_managers.patch.js +++ b/samples/generated/v1/instance_group_managers.patch.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/instance_group_managers.patch_per_instance_configs.js b/samples/generated/v1/instance_group_managers.patch_per_instance_configs.js index dc073951..f2e34fdb 100644 --- a/samples/generated/v1/instance_group_managers.patch_per_instance_configs.js +++ b/samples/generated/v1/instance_group_managers.patch_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersPatchPerInstanceConfigsReqResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.recreate_instances.js b/samples/generated/v1/instance_group_managers.recreate_instances.js index 13aa072c..ce8dee9f 100644 --- a/samples/generated/v1/instance_group_managers.recreate_instances.js +++ b/samples/generated/v1/instance_group_managers.recreate_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_RecreateInstances_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.resize.js b/samples/generated/v1/instance_group_managers.resize.js index c9cbdb42..8ed88099 100644 --- a/samples/generated/v1/instance_group_managers.resize.js +++ b/samples/generated/v1/instance_group_managers.resize.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, size, zone) { // [START compute_v1_generated_InstanceGroupManagers_Resize_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.set_instance_template.js b/samples/generated/v1/instance_group_managers.set_instance_template.js index 1e476827..dedece71 100644 --- a/samples/generated/v1/instance_group_managers.set_instance_template.js +++ b/samples/generated/v1/instance_group_managers.set_instance_template.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.set_target_pools.js b/samples/generated/v1/instance_group_managers.set_target_pools.js index b84f0e75..8993aed6 100644 --- a/samples/generated/v1/instance_group_managers.set_target_pools.js +++ b/samples/generated/v1/instance_group_managers.set_target_pools.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_SetTargetPools_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. */ /** diff --git a/samples/generated/v1/instance_group_managers.update_per_instance_configs.js b/samples/generated/v1/instance_group_managers.update_per_instance_configs.js index ad7188a7..47f7e8cb 100644 --- a/samples/generated/v1/instance_group_managers.update_per_instance_configs.js +++ b/samples/generated/v1/instance_group_managers.update_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagersUpdatePerInstanceConfigsReqResource, project, zone) { // [START compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/instance_groups.add_instances.js b/samples/generated/v1/instance_groups.add_instances.js index 1fa0234e..85132691 100644 --- a/samples/generated/v1/instance_groups.add_instances.js +++ b/samples/generated/v1/instance_groups.add_instances.js @@ -23,6 +23,9 @@ function main(instanceGroup, instanceGroupsAddInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroups_AddInstances_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. */ /** diff --git a/samples/generated/v1/instance_groups.aggregated_list.js b/samples/generated/v1/instance_groups.aggregated_list.js index 5cfb5765..6c8765c1 100644 --- a/samples/generated/v1/instance_groups.aggregated_list.js +++ b/samples/generated/v1/instance_groups.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_InstanceGroups_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. */ /** diff --git a/samples/generated/v1/instance_groups.delete.js b/samples/generated/v1/instance_groups.delete.js index d0769a5a..bc205859 100644 --- a/samples/generated/v1/instance_groups.delete.js +++ b/samples/generated/v1/instance_groups.delete.js @@ -23,6 +23,9 @@ function main(instanceGroup, project, zone) { // [START compute_v1_generated_InstanceGroups_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. */ /** diff --git a/samples/generated/v1/instance_groups.get.js b/samples/generated/v1/instance_groups.get.js index bd1f4d61..001ba447 100644 --- a/samples/generated/v1/instance_groups.get.js +++ b/samples/generated/v1/instance_groups.get.js @@ -23,6 +23,9 @@ function main(instanceGroup, project, zone) { // [START compute_v1_generated_InstanceGroups_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. */ /** diff --git a/samples/generated/v1/instance_groups.insert.js b/samples/generated/v1/instance_groups.insert.js index 57c7af66..b35f9dd4 100644 --- a/samples/generated/v1/instance_groups.insert.js +++ b/samples/generated/v1/instance_groups.insert.js @@ -23,6 +23,9 @@ function main(instanceGroupResource, project, zone) { // [START compute_v1_generated_InstanceGroups_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. */ /** diff --git a/samples/generated/v1/instance_groups.list.js b/samples/generated/v1/instance_groups.list.js index 90b3ec57..010cb3af 100644 --- a/samples/generated/v1/instance_groups.list.js +++ b/samples/generated/v1/instance_groups.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_InstanceGroups_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. */ /** diff --git a/samples/generated/v1/instance_groups.list_instances.js b/samples/generated/v1/instance_groups.list_instances.js index 782ec5ca..2e1f4db8 100644 --- a/samples/generated/v1/instance_groups.list_instances.js +++ b/samples/generated/v1/instance_groups.list_instances.js @@ -23,6 +23,9 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroups_ListInstances_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. */ /** diff --git a/samples/generated/v1/instance_groups.remove_instances.js b/samples/generated/v1/instance_groups.remove_instances.js index ee1acae6..9fb9a520 100644 --- a/samples/generated/v1/instance_groups.remove_instances.js +++ b/samples/generated/v1/instance_groups.remove_instances.js @@ -23,6 +23,9 @@ function main(instanceGroup, instanceGroupsRemoveInstancesRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroups_RemoveInstances_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. */ /** diff --git a/samples/generated/v1/instance_groups.set_named_ports.js b/samples/generated/v1/instance_groups.set_named_ports.js index 321f441f..0051ddba 100644 --- a/samples/generated/v1/instance_groups.set_named_ports.js +++ b/samples/generated/v1/instance_groups.set_named_ports.js @@ -23,6 +23,9 @@ function main(instanceGroup, instanceGroupsSetNamedPortsRequestResource, project, zone) { // [START compute_v1_generated_InstanceGroups_SetNamedPorts_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. */ /** diff --git a/samples/generated/v1/instance_templates.delete.js b/samples/generated/v1/instance_templates.delete.js index fca87e48..214da9e2 100644 --- a/samples/generated/v1/instance_templates.delete.js +++ b/samples/generated/v1/instance_templates.delete.js @@ -23,6 +23,9 @@ function main(instanceTemplate, project) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.get.js b/samples/generated/v1/instance_templates.get.js index d79d3fa3..5a34409e 100644 --- a/samples/generated/v1/instance_templates.get.js +++ b/samples/generated/v1/instance_templates.get.js @@ -23,6 +23,9 @@ function main(instanceTemplate, project) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.get_iam_policy.js b/samples/generated/v1/instance_templates.get_iam_policy.js index 5d107e3f..eb314dd2 100644 --- a/samples/generated/v1/instance_templates.get_iam_policy.js +++ b/samples/generated/v1/instance_templates.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.insert.js b/samples/generated/v1/instance_templates.insert.js index 965a482e..71e74616 100644 --- a/samples/generated/v1/instance_templates.insert.js +++ b/samples/generated/v1/instance_templates.insert.js @@ -23,6 +23,9 @@ function main(instanceTemplateResource, project) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.list.js b/samples/generated/v1/instance_templates.list.js index 6d4ab69b..91e892b1 100644 --- a/samples/generated/v1/instance_templates.list.js +++ b/samples/generated/v1/instance_templates.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.set_iam_policy.js b/samples/generated/v1/instance_templates.set_iam_policy.js index 351791b3..ea7b0b3d 100644 --- a/samples/generated/v1/instance_templates.set_iam_policy.js +++ b/samples/generated/v1/instance_templates.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instance_templates.test_iam_permissions.js b/samples/generated/v1/instance_templates.test_iam_permissions.js index f0b2c7bb..abc3b907 100644 --- a/samples/generated/v1/instance_templates.test_iam_permissions.js +++ b/samples/generated/v1/instance_templates.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_InstanceTemplates_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. */ /** diff --git a/samples/generated/v1/instances.add_access_config.js b/samples/generated/v1/instances.add_access_config.js index 9606f47f..2d79ae30 100644 --- a/samples/generated/v1/instances.add_access_config.js +++ b/samples/generated/v1/instances.add_access_config.js @@ -23,6 +23,9 @@ function main(accessConfigResource, instance, networkInterface, project, zone) { // [START compute_v1_generated_Instances_AddAccessConfig_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. */ /** diff --git a/samples/generated/v1/instances.add_resource_policies.js b/samples/generated/v1/instances.add_resource_policies.js index a5b2f5ec..65ac6bf6 100644 --- a/samples/generated/v1/instances.add_resource_policies.js +++ b/samples/generated/v1/instances.add_resource_policies.js @@ -23,6 +23,9 @@ function main(instance, instancesAddResourcePoliciesRequestResource, project, zone) { // [START compute_v1_generated_Instances_AddResourcePolicies_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. */ /** diff --git a/samples/generated/v1/instances.aggregated_list.js b/samples/generated/v1/instances.aggregated_list.js index 3b42aa6e..a708e462 100644 --- a/samples/generated/v1/instances.aggregated_list.js +++ b/samples/generated/v1/instances.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.attach_disk.js b/samples/generated/v1/instances.attach_disk.js index a7142198..75a3a0dc 100644 --- a/samples/generated/v1/instances.attach_disk.js +++ b/samples/generated/v1/instances.attach_disk.js @@ -23,6 +23,9 @@ function main(attachedDiskResource, instance, project, zone) { // [START compute_v1_generated_Instances_AttachDisk_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. */ /** diff --git a/samples/generated/v1/instances.bulk_insert.js b/samples/generated/v1/instances.bulk_insert.js index a8f79fd0..ef38a152 100644 --- a/samples/generated/v1/instances.bulk_insert.js +++ b/samples/generated/v1/instances.bulk_insert.js @@ -23,6 +23,9 @@ function main(bulkInsertInstanceResourceResource, project, zone) { // [START compute_v1_generated_Instances_BulkInsert_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. */ /** diff --git a/samples/generated/v1/instances.delete.js b/samples/generated/v1/instances.delete.js index 83500853..58df1e10 100644 --- a/samples/generated/v1/instances.delete.js +++ b/samples/generated/v1/instances.delete.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.delete_access_config.js b/samples/generated/v1/instances.delete_access_config.js index 306d685e..1126411f 100644 --- a/samples/generated/v1/instances.delete_access_config.js +++ b/samples/generated/v1/instances.delete_access_config.js @@ -23,6 +23,9 @@ function main(accessConfig, instance, networkInterface, project, zone) { // [START compute_v1_generated_Instances_DeleteAccessConfig_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. */ /** diff --git a/samples/generated/v1/instances.detach_disk.js b/samples/generated/v1/instances.detach_disk.js index 24d4a168..b23b19f4 100644 --- a/samples/generated/v1/instances.detach_disk.js +++ b/samples/generated/v1/instances.detach_disk.js @@ -23,6 +23,9 @@ function main(deviceName, instance, project, zone) { // [START compute_v1_generated_Instances_DetachDisk_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. */ /** diff --git a/samples/generated/v1/instances.get.js b/samples/generated/v1/instances.get.js index f6de4918..8e183e40 100644 --- a/samples/generated/v1/instances.get.js +++ b/samples/generated/v1/instances.get.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.get_effective_firewalls.js b/samples/generated/v1/instances.get_effective_firewalls.js index 569a3596..11526133 100644 --- a/samples/generated/v1/instances.get_effective_firewalls.js +++ b/samples/generated/v1/instances.get_effective_firewalls.js @@ -23,6 +23,9 @@ function main(instance, networkInterface, project, zone) { // [START compute_v1_generated_Instances_GetEffectiveFirewalls_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. */ /** diff --git a/samples/generated/v1/instances.get_guest_attributes.js b/samples/generated/v1/instances.get_guest_attributes.js index 7e8cc0f3..15f23628 100644 --- a/samples/generated/v1/instances.get_guest_attributes.js +++ b/samples/generated/v1/instances.get_guest_attributes.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_GetGuestAttributes_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. */ /** diff --git a/samples/generated/v1/instances.get_iam_policy.js b/samples/generated/v1/instances.get_iam_policy.js index 7b203df2..87f2955c 100644 --- a/samples/generated/v1/instances.get_iam_policy.js +++ b/samples/generated/v1/instances.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.get_screenshot.js b/samples/generated/v1/instances.get_screenshot.js index 1b9cb978..a7f65dc2 100644 --- a/samples/generated/v1/instances.get_screenshot.js +++ b/samples/generated/v1/instances.get_screenshot.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_GetScreenshot_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. */ /** diff --git a/samples/generated/v1/instances.get_serial_port_output.js b/samples/generated/v1/instances.get_serial_port_output.js index 911a22b8..09e1c6f7 100644 --- a/samples/generated/v1/instances.get_serial_port_output.js +++ b/samples/generated/v1/instances.get_serial_port_output.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_GetSerialPortOutput_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. */ /** diff --git a/samples/generated/v1/instances.get_shielded_instance_identity.js b/samples/generated/v1/instances.get_shielded_instance_identity.js index b72a8b84..02a3c4d2 100644 --- a/samples/generated/v1/instances.get_shielded_instance_identity.js +++ b/samples/generated/v1/instances.get_shielded_instance_identity.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_GetShieldedInstanceIdentity_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. */ /** diff --git a/samples/generated/v1/instances.insert.js b/samples/generated/v1/instances.insert.js index 44865ccc..adf7eb85 100644 --- a/samples/generated/v1/instances.insert.js +++ b/samples/generated/v1/instances.insert.js @@ -23,6 +23,9 @@ function main(instanceResource, project, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.list.js b/samples/generated/v1/instances.list.js index 6b101d7b..1078dbdd 100644 --- a/samples/generated/v1/instances.list.js +++ b/samples/generated/v1/instances.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.list_referrers.js b/samples/generated/v1/instances.list_referrers.js index bdd4a35d..c3e4ebac 100644 --- a/samples/generated/v1/instances.list_referrers.js +++ b/samples/generated/v1/instances.list_referrers.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_ListReferrers_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. */ /** diff --git a/samples/generated/v1/instances.remove_resource_policies.js b/samples/generated/v1/instances.remove_resource_policies.js index 6803271e..d8f67112 100644 --- a/samples/generated/v1/instances.remove_resource_policies.js +++ b/samples/generated/v1/instances.remove_resource_policies.js @@ -23,6 +23,9 @@ function main(instance, instancesRemoveResourcePoliciesRequestResource, project, zone) { // [START compute_v1_generated_Instances_RemoveResourcePolicies_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. */ /** diff --git a/samples/generated/v1/instances.reset.js b/samples/generated/v1/instances.reset.js index 0ddf1163..0d8dfe33 100644 --- a/samples/generated/v1/instances.reset.js +++ b/samples/generated/v1/instances.reset.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_Reset_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. */ /** diff --git a/samples/generated/v1/instances.resume.js b/samples/generated/v1/instances.resume.js index 6924b429..2bea96de 100644 --- a/samples/generated/v1/instances.resume.js +++ b/samples/generated/v1/instances.resume.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_Resume_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. */ /** diff --git a/samples/generated/v1/instances.send_diagnostic_interrupt.js b/samples/generated/v1/instances.send_diagnostic_interrupt.js index 29740d43..0eab5683 100644 --- a/samples/generated/v1/instances.send_diagnostic_interrupt.js +++ b/samples/generated/v1/instances.send_diagnostic_interrupt.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_SendDiagnosticInterrupt_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. */ /** diff --git a/samples/generated/v1/instances.set_deletion_protection.js b/samples/generated/v1/instances.set_deletion_protection.js index bfdb33f6..eec991fd 100644 --- a/samples/generated/v1/instances.set_deletion_protection.js +++ b/samples/generated/v1/instances.set_deletion_protection.js @@ -23,6 +23,9 @@ function main(project, resource, zone) { // [START compute_v1_generated_Instances_SetDeletionProtection_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. */ /** diff --git a/samples/generated/v1/instances.set_disk_auto_delete.js b/samples/generated/v1/instances.set_disk_auto_delete.js index bf1c6734..e734f47c 100644 --- a/samples/generated/v1/instances.set_disk_auto_delete.js +++ b/samples/generated/v1/instances.set_disk_auto_delete.js @@ -23,6 +23,9 @@ function main(autoDelete, deviceName, instance, project, zone) { // [START compute_v1_generated_Instances_SetDiskAutoDelete_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. */ /** diff --git a/samples/generated/v1/instances.set_iam_policy.js b/samples/generated/v1/instances.set_iam_policy.js index a53105c3..04949523 100644 --- a/samples/generated/v1/instances.set_iam_policy.js +++ b/samples/generated/v1/instances.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone, zoneSetPolicyRequestResource) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.set_labels.js b/samples/generated/v1/instances.set_labels.js index bcfb0aca..55269ad9 100644 --- a/samples/generated/v1/instances.set_labels.js +++ b/samples/generated/v1/instances.set_labels.js @@ -23,6 +23,9 @@ function main(instance, instancesSetLabelsRequestResource, project, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.set_machine_resources.js b/samples/generated/v1/instances.set_machine_resources.js index e50b686b..de27ce7d 100644 --- a/samples/generated/v1/instances.set_machine_resources.js +++ b/samples/generated/v1/instances.set_machine_resources.js @@ -23,6 +23,9 @@ function main(instance, instancesSetMachineResourcesRequestResource, project, zone) { // [START compute_v1_generated_Instances_SetMachineResources_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. */ /** diff --git a/samples/generated/v1/instances.set_machine_type.js b/samples/generated/v1/instances.set_machine_type.js index 7e5b613b..7ec4ce77 100644 --- a/samples/generated/v1/instances.set_machine_type.js +++ b/samples/generated/v1/instances.set_machine_type.js @@ -23,6 +23,9 @@ function main(instance, instancesSetMachineTypeRequestResource, project, zone) { // [START compute_v1_generated_Instances_SetMachineType_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. */ /** diff --git a/samples/generated/v1/instances.set_metadata.js b/samples/generated/v1/instances.set_metadata.js index 70e107bb..12e335b2 100644 --- a/samples/generated/v1/instances.set_metadata.js +++ b/samples/generated/v1/instances.set_metadata.js @@ -23,6 +23,9 @@ function main(instance, metadataResource, project, zone) { // [START compute_v1_generated_Instances_SetMetadata_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. */ /** diff --git a/samples/generated/v1/instances.set_min_cpu_platform.js b/samples/generated/v1/instances.set_min_cpu_platform.js index e3602c70..e0fe8e6d 100644 --- a/samples/generated/v1/instances.set_min_cpu_platform.js +++ b/samples/generated/v1/instances.set_min_cpu_platform.js @@ -23,6 +23,9 @@ function main(instance, instancesSetMinCpuPlatformRequestResource, project, zone) { // [START compute_v1_generated_Instances_SetMinCpuPlatform_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. */ /** diff --git a/samples/generated/v1/instances.set_scheduling.js b/samples/generated/v1/instances.set_scheduling.js index f8f2ee8c..ab8afb79 100644 --- a/samples/generated/v1/instances.set_scheduling.js +++ b/samples/generated/v1/instances.set_scheduling.js @@ -23,6 +23,9 @@ function main(instance, project, schedulingResource, zone) { // [START compute_v1_generated_Instances_SetScheduling_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. */ /** diff --git a/samples/generated/v1/instances.set_service_account.js b/samples/generated/v1/instances.set_service_account.js index 2a7fd751..81d91755 100644 --- a/samples/generated/v1/instances.set_service_account.js +++ b/samples/generated/v1/instances.set_service_account.js @@ -23,6 +23,9 @@ function main(instance, instancesSetServiceAccountRequestResource, project, zone) { // [START compute_v1_generated_Instances_SetServiceAccount_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. */ /** diff --git a/samples/generated/v1/instances.set_shielded_instance_integrity_policy.js b/samples/generated/v1/instances.set_shielded_instance_integrity_policy.js index 9f0e1ee0..ec1e6992 100644 --- a/samples/generated/v1/instances.set_shielded_instance_integrity_policy.js +++ b/samples/generated/v1/instances.set_shielded_instance_integrity_policy.js @@ -23,6 +23,9 @@ function main(instance, project, shieldedInstanceIntegrityPolicyResource, zone) { // [START compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_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. */ /** diff --git a/samples/generated/v1/instances.set_tags.js b/samples/generated/v1/instances.set_tags.js index 08d3c176..7de6d1a3 100644 --- a/samples/generated/v1/instances.set_tags.js +++ b/samples/generated/v1/instances.set_tags.js @@ -23,6 +23,9 @@ function main(instance, project, tagsResource, zone) { // [START compute_v1_generated_Instances_SetTags_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. */ /** diff --git a/samples/generated/v1/instances.simulate_maintenance_event.js b/samples/generated/v1/instances.simulate_maintenance_event.js index 4aca3834..ba00de69 100644 --- a/samples/generated/v1/instances.simulate_maintenance_event.js +++ b/samples/generated/v1/instances.simulate_maintenance_event.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_SimulateMaintenanceEvent_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. */ /** diff --git a/samples/generated/v1/instances.start.js b/samples/generated/v1/instances.start.js index 4a6ee821..b8dd3677 100644 --- a/samples/generated/v1/instances.start.js +++ b/samples/generated/v1/instances.start.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_Start_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. */ /** diff --git a/samples/generated/v1/instances.start_with_encryption_key.js b/samples/generated/v1/instances.start_with_encryption_key.js index 18b7061a..f8e943c8 100644 --- a/samples/generated/v1/instances.start_with_encryption_key.js +++ b/samples/generated/v1/instances.start_with_encryption_key.js @@ -23,6 +23,9 @@ function main(instance, instancesStartWithEncryptionKeyRequestResource, project, zone) { // [START compute_v1_generated_Instances_StartWithEncryptionKey_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. */ /** diff --git a/samples/generated/v1/instances.stop.js b/samples/generated/v1/instances.stop.js index 125eb6df..a9b69bef 100644 --- a/samples/generated/v1/instances.stop.js +++ b/samples/generated/v1/instances.stop.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_Stop_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. */ /** diff --git a/samples/generated/v1/instances.suspend.js b/samples/generated/v1/instances.suspend.js index 027107e8..b34b73f3 100644 --- a/samples/generated/v1/instances.suspend.js +++ b/samples/generated/v1/instances.suspend.js @@ -23,6 +23,9 @@ function main(instance, project, zone) { // [START compute_v1_generated_Instances_Suspend_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. */ /** diff --git a/samples/generated/v1/instances.test_iam_permissions.js b/samples/generated/v1/instances.test_iam_permissions.js index f383aa2e..440fc1bb 100644 --- a/samples/generated/v1/instances.test_iam_permissions.js +++ b/samples/generated/v1/instances.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource, zone) { // [START compute_v1_generated_Instances_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. */ /** diff --git a/samples/generated/v1/instances.update.js b/samples/generated/v1/instances.update.js index 19ef6202..f8ec0002 100644 --- a/samples/generated/v1/instances.update.js +++ b/samples/generated/v1/instances.update.js @@ -23,6 +23,9 @@ function main(instance, instanceResource, project, zone) { // [START compute_v1_generated_Instances_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/instances.update_access_config.js b/samples/generated/v1/instances.update_access_config.js index f31d5fd5..111d5258 100644 --- a/samples/generated/v1/instances.update_access_config.js +++ b/samples/generated/v1/instances.update_access_config.js @@ -23,6 +23,9 @@ function main(accessConfigResource, instance, networkInterface, project, zone) { // [START compute_v1_generated_Instances_UpdateAccessConfig_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. */ /** diff --git a/samples/generated/v1/instances.update_display_device.js b/samples/generated/v1/instances.update_display_device.js index 371718fc..1955486b 100644 --- a/samples/generated/v1/instances.update_display_device.js +++ b/samples/generated/v1/instances.update_display_device.js @@ -23,6 +23,9 @@ function main(displayDeviceResource, instance, project, zone) { // [START compute_v1_generated_Instances_UpdateDisplayDevice_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. */ /** diff --git a/samples/generated/v1/instances.update_network_interface.js b/samples/generated/v1/instances.update_network_interface.js index af11a3a4..77518444 100644 --- a/samples/generated/v1/instances.update_network_interface.js +++ b/samples/generated/v1/instances.update_network_interface.js @@ -23,6 +23,9 @@ function main(instance, networkInterface, networkInterfaceResource, project, zone) { // [START compute_v1_generated_Instances_UpdateNetworkInterface_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. */ /** diff --git a/samples/generated/v1/instances.update_shielded_instance_config.js b/samples/generated/v1/instances.update_shielded_instance_config.js index fa367fb7..98fc3592 100644 --- a/samples/generated/v1/instances.update_shielded_instance_config.js +++ b/samples/generated/v1/instances.update_shielded_instance_config.js @@ -23,6 +23,9 @@ function main(instance, project, shieldedInstanceConfigResource, zone) { // [START compute_v1_generated_Instances_UpdateShieldedInstanceConfig_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.aggregated_list.js b/samples/generated/v1/interconnect_attachments.aggregated_list.js index 0a742bbe..f810e2b7 100644 --- a/samples/generated/v1/interconnect_attachments.aggregated_list.js +++ b/samples/generated/v1/interconnect_attachments.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_InterconnectAttachments_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.delete.js b/samples/generated/v1/interconnect_attachments.delete.js index 292f3320..f98278d5 100644 --- a/samples/generated/v1/interconnect_attachments.delete.js +++ b/samples/generated/v1/interconnect_attachments.delete.js @@ -23,6 +23,9 @@ function main(interconnectAttachment, project, region) { // [START compute_v1_generated_InterconnectAttachments_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.get.js b/samples/generated/v1/interconnect_attachments.get.js index ba993d49..e918d5c3 100644 --- a/samples/generated/v1/interconnect_attachments.get.js +++ b/samples/generated/v1/interconnect_attachments.get.js @@ -23,6 +23,9 @@ function main(interconnectAttachment, project, region) { // [START compute_v1_generated_InterconnectAttachments_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.insert.js b/samples/generated/v1/interconnect_attachments.insert.js index 7032a825..67cbd570 100644 --- a/samples/generated/v1/interconnect_attachments.insert.js +++ b/samples/generated/v1/interconnect_attachments.insert.js @@ -23,6 +23,9 @@ function main(interconnectAttachmentResource, project, region) { // [START compute_v1_generated_InterconnectAttachments_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.list.js b/samples/generated/v1/interconnect_attachments.list.js index b6b04d01..6da79683 100644 --- a/samples/generated/v1/interconnect_attachments.list.js +++ b/samples/generated/v1/interconnect_attachments.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_InterconnectAttachments_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. */ /** diff --git a/samples/generated/v1/interconnect_attachments.patch.js b/samples/generated/v1/interconnect_attachments.patch.js index 281a93e1..22466c7e 100644 --- a/samples/generated/v1/interconnect_attachments.patch.js +++ b/samples/generated/v1/interconnect_attachments.patch.js @@ -23,6 +23,9 @@ function main(interconnectAttachment, interconnectAttachmentResource, project, region) { // [START compute_v1_generated_InterconnectAttachments_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/interconnect_locations.get.js b/samples/generated/v1/interconnect_locations.get.js index 9dc1884e..db582354 100644 --- a/samples/generated/v1/interconnect_locations.get.js +++ b/samples/generated/v1/interconnect_locations.get.js @@ -23,6 +23,9 @@ function main(interconnectLocation, project) { // [START compute_v1_generated_InterconnectLocations_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. */ /** diff --git a/samples/generated/v1/interconnect_locations.list.js b/samples/generated/v1/interconnect_locations.list.js index 19019024..6760ecb0 100644 --- a/samples/generated/v1/interconnect_locations.list.js +++ b/samples/generated/v1/interconnect_locations.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_InterconnectLocations_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. */ /** diff --git a/samples/generated/v1/interconnects.delete.js b/samples/generated/v1/interconnects.delete.js index f4a439e9..07315136 100644 --- a/samples/generated/v1/interconnects.delete.js +++ b/samples/generated/v1/interconnects.delete.js @@ -23,6 +23,9 @@ function main(interconnect, project) { // [START compute_v1_generated_Interconnects_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. */ /** diff --git a/samples/generated/v1/interconnects.get.js b/samples/generated/v1/interconnects.get.js index fa28821f..f0a25265 100644 --- a/samples/generated/v1/interconnects.get.js +++ b/samples/generated/v1/interconnects.get.js @@ -23,6 +23,9 @@ function main(interconnect, project) { // [START compute_v1_generated_Interconnects_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. */ /** diff --git a/samples/generated/v1/interconnects.get_diagnostics.js b/samples/generated/v1/interconnects.get_diagnostics.js index 5d6c925b..4eec351e 100644 --- a/samples/generated/v1/interconnects.get_diagnostics.js +++ b/samples/generated/v1/interconnects.get_diagnostics.js @@ -23,6 +23,9 @@ function main(interconnect, project) { // [START compute_v1_generated_Interconnects_GetDiagnostics_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. */ /** diff --git a/samples/generated/v1/interconnects.insert.js b/samples/generated/v1/interconnects.insert.js index c72d1dbf..c466e9c8 100644 --- a/samples/generated/v1/interconnects.insert.js +++ b/samples/generated/v1/interconnects.insert.js @@ -23,6 +23,9 @@ function main(interconnectResource, project) { // [START compute_v1_generated_Interconnects_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. */ /** diff --git a/samples/generated/v1/interconnects.list.js b/samples/generated/v1/interconnects.list.js index a2cc63ba..e3fd8081 100644 --- a/samples/generated/v1/interconnects.list.js +++ b/samples/generated/v1/interconnects.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Interconnects_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. */ /** diff --git a/samples/generated/v1/interconnects.patch.js b/samples/generated/v1/interconnects.patch.js index a2d33909..f5da08e9 100644 --- a/samples/generated/v1/interconnects.patch.js +++ b/samples/generated/v1/interconnects.patch.js @@ -23,6 +23,9 @@ function main(interconnect, interconnectResource, project) { // [START compute_v1_generated_Interconnects_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/license_codes.get.js b/samples/generated/v1/license_codes.get.js index ffe15557..06ad516b 100644 --- a/samples/generated/v1/license_codes.get.js +++ b/samples/generated/v1/license_codes.get.js @@ -23,6 +23,9 @@ function main(licenseCode, project) { // [START compute_v1_generated_LicenseCodes_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. */ /** diff --git a/samples/generated/v1/license_codes.test_iam_permissions.js b/samples/generated/v1/license_codes.test_iam_permissions.js index 62c22cfc..ba2bfe76 100644 --- a/samples/generated/v1/license_codes.test_iam_permissions.js +++ b/samples/generated/v1/license_codes.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_LicenseCodes_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. */ /** diff --git a/samples/generated/v1/licenses.delete.js b/samples/generated/v1/licenses.delete.js index 0d785679..b5ed0aff 100644 --- a/samples/generated/v1/licenses.delete.js +++ b/samples/generated/v1/licenses.delete.js @@ -23,6 +23,9 @@ function main(license, project) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.get.js b/samples/generated/v1/licenses.get.js index c61bdb42..9f72ae7b 100644 --- a/samples/generated/v1/licenses.get.js +++ b/samples/generated/v1/licenses.get.js @@ -23,6 +23,9 @@ function main(license, project) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.get_iam_policy.js b/samples/generated/v1/licenses.get_iam_policy.js index 389ef998..0954697d 100644 --- a/samples/generated/v1/licenses.get_iam_policy.js +++ b/samples/generated/v1/licenses.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.insert.js b/samples/generated/v1/licenses.insert.js index f117bba1..9d9020e9 100644 --- a/samples/generated/v1/licenses.insert.js +++ b/samples/generated/v1/licenses.insert.js @@ -23,6 +23,9 @@ function main(licenseResource, project) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.list.js b/samples/generated/v1/licenses.list.js index b42a47a6..c2854233 100644 --- a/samples/generated/v1/licenses.list.js +++ b/samples/generated/v1/licenses.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.set_iam_policy.js b/samples/generated/v1/licenses.set_iam_policy.js index f9d743dc..21b3c98f 100644 --- a/samples/generated/v1/licenses.set_iam_policy.js +++ b/samples/generated/v1/licenses.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/licenses.test_iam_permissions.js b/samples/generated/v1/licenses.test_iam_permissions.js index 812647a7..f43e5c07 100644 --- a/samples/generated/v1/licenses.test_iam_permissions.js +++ b/samples/generated/v1/licenses.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_Licenses_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. */ /** diff --git a/samples/generated/v1/machine_images.delete.js b/samples/generated/v1/machine_images.delete.js index e8b5c81b..a965f501 100644 --- a/samples/generated/v1/machine_images.delete.js +++ b/samples/generated/v1/machine_images.delete.js @@ -23,6 +23,9 @@ function main(machineImage, project) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.get.js b/samples/generated/v1/machine_images.get.js index ac70243a..a899197b 100644 --- a/samples/generated/v1/machine_images.get.js +++ b/samples/generated/v1/machine_images.get.js @@ -23,6 +23,9 @@ function main(machineImage, project) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.get_iam_policy.js b/samples/generated/v1/machine_images.get_iam_policy.js index 05cb282c..9594ae64 100644 --- a/samples/generated/v1/machine_images.get_iam_policy.js +++ b/samples/generated/v1/machine_images.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.insert.js b/samples/generated/v1/machine_images.insert.js index b0db6017..9eb66138 100644 --- a/samples/generated/v1/machine_images.insert.js +++ b/samples/generated/v1/machine_images.insert.js @@ -23,6 +23,9 @@ function main(machineImageResource, project) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.list.js b/samples/generated/v1/machine_images.list.js index 051551e9..2f1b68ad 100644 --- a/samples/generated/v1/machine_images.list.js +++ b/samples/generated/v1/machine_images.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.set_iam_policy.js b/samples/generated/v1/machine_images.set_iam_policy.js index 4fcf3325..91b5978e 100644 --- a/samples/generated/v1/machine_images.set_iam_policy.js +++ b/samples/generated/v1/machine_images.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_images.test_iam_permissions.js b/samples/generated/v1/machine_images.test_iam_permissions.js index 691b5cd9..b17f9311 100644 --- a/samples/generated/v1/machine_images.test_iam_permissions.js +++ b/samples/generated/v1/machine_images.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_MachineImages_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. */ /** diff --git a/samples/generated/v1/machine_types.aggregated_list.js b/samples/generated/v1/machine_types.aggregated_list.js index 8ac19b4c..18c8c444 100644 --- a/samples/generated/v1/machine_types.aggregated_list.js +++ b/samples/generated/v1/machine_types.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_MachineTypes_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. */ /** diff --git a/samples/generated/v1/machine_types.get.js b/samples/generated/v1/machine_types.get.js index 99c1767f..8e365b3a 100644 --- a/samples/generated/v1/machine_types.get.js +++ b/samples/generated/v1/machine_types.get.js @@ -23,6 +23,9 @@ function main(machineType, project, zone) { // [START compute_v1_generated_MachineTypes_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. */ /** diff --git a/samples/generated/v1/machine_types.list.js b/samples/generated/v1/machine_types.list.js index 86e21ed5..2cb90ffa 100644 --- a/samples/generated/v1/machine_types.list.js +++ b/samples/generated/v1/machine_types.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_MachineTypes_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. */ /** diff --git a/samples/generated/v1/network_edge_security_services.aggregated_list.js b/samples/generated/v1/network_edge_security_services.aggregated_list.js index a782636d..90d4b950 100644 --- a/samples/generated/v1/network_edge_security_services.aggregated_list.js +++ b/samples/generated/v1/network_edge_security_services.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NetworkEdgeSecurityServices_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. */ /** diff --git a/samples/generated/v1/network_edge_security_services.delete.js b/samples/generated/v1/network_edge_security_services.delete.js index dc8ad0f5..1d96ce36 100644 --- a/samples/generated/v1/network_edge_security_services.delete.js +++ b/samples/generated/v1/network_edge_security_services.delete.js @@ -23,6 +23,9 @@ function main(networkEdgeSecurityService, project, region) { // [START compute_v1_generated_NetworkEdgeSecurityServices_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. */ /** diff --git a/samples/generated/v1/network_edge_security_services.get.js b/samples/generated/v1/network_edge_security_services.get.js index 0c3276ab..3e74379e 100644 --- a/samples/generated/v1/network_edge_security_services.get.js +++ b/samples/generated/v1/network_edge_security_services.get.js @@ -23,6 +23,9 @@ function main(networkEdgeSecurityService, project, region) { // [START compute_v1_generated_NetworkEdgeSecurityServices_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. */ /** diff --git a/samples/generated/v1/network_edge_security_services.insert.js b/samples/generated/v1/network_edge_security_services.insert.js index 97719622..5820554d 100644 --- a/samples/generated/v1/network_edge_security_services.insert.js +++ b/samples/generated/v1/network_edge_security_services.insert.js @@ -23,6 +23,9 @@ function main(networkEdgeSecurityServiceResource, project, region) { // [START compute_v1_generated_NetworkEdgeSecurityServices_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. */ /** diff --git a/samples/generated/v1/network_edge_security_services.patch.js b/samples/generated/v1/network_edge_security_services.patch.js index e1481204..3502ee04 100644 --- a/samples/generated/v1/network_edge_security_services.patch.js +++ b/samples/generated/v1/network_edge_security_services.patch.js @@ -23,6 +23,9 @@ function main(networkEdgeSecurityService, networkEdgeSecurityServiceResource, project, region) { // [START compute_v1_generated_NetworkEdgeSecurityServices_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.aggregated_list.js b/samples/generated/v1/network_endpoint_groups.aggregated_list.js index a8718663..b830995c 100644 --- a/samples/generated/v1/network_endpoint_groups.aggregated_list.js +++ b/samples/generated/v1/network_endpoint_groups.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.attach_network_endpoints.js b/samples/generated/v1/network_endpoint_groups.attach_network_endpoints.js index 878c79c1..3554c3d6 100644 --- a/samples/generated/v1/network_endpoint_groups.attach_network_endpoints.js +++ b/samples/generated/v1/network_endpoint_groups.attach_network_endpoints.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, networkEndpointGroupsAttachEndpointsRequestResource, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.delete.js b/samples/generated/v1/network_endpoint_groups.delete.js index ee8dd189..dbf2d152 100644 --- a/samples/generated/v1/network_endpoint_groups.delete.js +++ b/samples/generated/v1/network_endpoint_groups.delete.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.detach_network_endpoints.js b/samples/generated/v1/network_endpoint_groups.detach_network_endpoints.js index 771a8c0e..cdf61b08 100644 --- a/samples/generated/v1/network_endpoint_groups.detach_network_endpoints.js +++ b/samples/generated/v1/network_endpoint_groups.detach_network_endpoints.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, networkEndpointGroupsDetachEndpointsRequestResource, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.get.js b/samples/generated/v1/network_endpoint_groups.get.js index 24c85e4f..7a9b0c52 100644 --- a/samples/generated/v1/network_endpoint_groups.get.js +++ b/samples/generated/v1/network_endpoint_groups.get.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.insert.js b/samples/generated/v1/network_endpoint_groups.insert.js index 8078024d..f1c390e1 100644 --- a/samples/generated/v1/network_endpoint_groups.insert.js +++ b/samples/generated/v1/network_endpoint_groups.insert.js @@ -23,6 +23,9 @@ function main(networkEndpointGroupResource, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.list.js b/samples/generated/v1/network_endpoint_groups.list.js index cf4b9074..bc585543 100644 --- a/samples/generated/v1/network_endpoint_groups.list.js +++ b/samples/generated/v1/network_endpoint_groups.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js b/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js index ea41bd50..259f9c84 100644 --- a/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js +++ b/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestResource, project, zone) { // [START compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_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. */ /** diff --git a/samples/generated/v1/network_endpoint_groups.test_iam_permissions.js b/samples/generated/v1/network_endpoint_groups.test_iam_permissions.js index b3f77fc2..038d4134 100644 --- a/samples/generated/v1/network_endpoint_groups.test_iam_permissions.js +++ b/samples/generated/v1/network_endpoint_groups.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource, zone) { // [START compute_v1_generated_NetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.add_association.js b/samples/generated/v1/network_firewall_policies.add_association.js index d0f2a026..7c46a45d 100644 --- a/samples/generated/v1/network_firewall_policies.add_association.js +++ b/samples/generated/v1/network_firewall_policies.add_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project) { // [START compute_v1_generated_NetworkFirewallPolicies_AddAssociation_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.add_rule.js b/samples/generated/v1/network_firewall_policies.add_rule.js index d6aac628..e0f7d0ca 100644 --- a/samples/generated/v1/network_firewall_policies.add_rule.js +++ b/samples/generated/v1/network_firewall_policies.add_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { // [START compute_v1_generated_NetworkFirewallPolicies_AddRule_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.clone_rules.js b/samples/generated/v1/network_firewall_policies.clone_rules.js index 385f85b5..ae4daad7 100644 --- a/samples/generated/v1/network_firewall_policies.clone_rules.js +++ b/samples/generated/v1/network_firewall_policies.clone_rules.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_CloneRules_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.delete.js b/samples/generated/v1/network_firewall_policies.delete.js index b18926ca..79302d33 100644 --- a/samples/generated/v1/network_firewall_policies.delete.js +++ b/samples/generated/v1/network_firewall_policies.delete.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.get.js b/samples/generated/v1/network_firewall_policies.get.js index a14702e5..c53f44a3 100644 --- a/samples/generated/v1/network_firewall_policies.get.js +++ b/samples/generated/v1/network_firewall_policies.get.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.get_association.js b/samples/generated/v1/network_firewall_policies.get_association.js index 52dd005f..dcba8d79 100644 --- a/samples/generated/v1/network_firewall_policies.get_association.js +++ b/samples/generated/v1/network_firewall_policies.get_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_GetAssociation_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.get_iam_policy.js b/samples/generated/v1/network_firewall_policies.get_iam_policy.js index f09e3e6d..94df5276 100644 --- a/samples/generated/v1/network_firewall_policies.get_iam_policy.js +++ b/samples/generated/v1/network_firewall_policies.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.get_rule.js b/samples/generated/v1/network_firewall_policies.get_rule.js index 1a3c5975..1197a73b 100644 --- a/samples/generated/v1/network_firewall_policies.get_rule.js +++ b/samples/generated/v1/network_firewall_policies.get_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_GetRule_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.insert.js b/samples/generated/v1/network_firewall_policies.insert.js index 07e04aa6..727bd88f 100644 --- a/samples/generated/v1/network_firewall_policies.insert.js +++ b/samples/generated/v1/network_firewall_policies.insert.js @@ -23,6 +23,9 @@ function main(firewallPolicyResource, project) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.list.js b/samples/generated/v1/network_firewall_policies.list.js index 97f70c71..3494ae61 100644 --- a/samples/generated/v1/network_firewall_policies.list.js +++ b/samples/generated/v1/network_firewall_policies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.patch.js b/samples/generated/v1/network_firewall_policies.patch.js index 90fd0724..d05e7514 100644 --- a/samples/generated/v1/network_firewall_policies.patch.js +++ b/samples/generated/v1/network_firewall_policies.patch.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyResource, project) { // [START compute_v1_generated_NetworkFirewallPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/network_firewall_policies.patch_rule.js b/samples/generated/v1/network_firewall_policies.patch_rule.js index 3441ae7e..4b362263 100644 --- a/samples/generated/v1/network_firewall_policies.patch_rule.js +++ b/samples/generated/v1/network_firewall_policies.patch_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { // [START compute_v1_generated_NetworkFirewallPolicies_PatchRule_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.remove_association.js b/samples/generated/v1/network_firewall_policies.remove_association.js index 8e499e9a..fa580784 100644 --- a/samples/generated/v1/network_firewall_policies.remove_association.js +++ b/samples/generated/v1/network_firewall_policies.remove_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.remove_rule.js b/samples/generated/v1/network_firewall_policies.remove_rule.js index 69911dd2..855b7935 100644 --- a/samples/generated/v1/network_firewall_policies.remove_rule.js +++ b/samples/generated/v1/network_firewall_policies.remove_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project) { // [START compute_v1_generated_NetworkFirewallPolicies_RemoveRule_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.set_iam_policy.js b/samples/generated/v1/network_firewall_policies.set_iam_policy.js index 2e4cf53a..4f9965db 100644 --- a/samples/generated/v1/network_firewall_policies.set_iam_policy.js +++ b/samples/generated/v1/network_firewall_policies.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/network_firewall_policies.test_iam_permissions.js b/samples/generated/v1/network_firewall_policies.test_iam_permissions.js index e8876ec8..4a4b9637 100644 --- a/samples/generated/v1/network_firewall_policies.test_iam_permissions.js +++ b/samples/generated/v1/network_firewall_policies.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_NetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/networks.add_peering.js b/samples/generated/v1/networks.add_peering.js index 547ca589..9fa4bdd9 100644 --- a/samples/generated/v1/networks.add_peering.js +++ b/samples/generated/v1/networks.add_peering.js @@ -23,6 +23,9 @@ function main(network, networksAddPeeringRequestResource, project) { // [START compute_v1_generated_Networks_AddPeering_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. */ /** diff --git a/samples/generated/v1/networks.delete.js b/samples/generated/v1/networks.delete.js index 7203b644..26312df2 100644 --- a/samples/generated/v1/networks.delete.js +++ b/samples/generated/v1/networks.delete.js @@ -23,6 +23,9 @@ function main(network, project) { // [START compute_v1_generated_Networks_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. */ /** diff --git a/samples/generated/v1/networks.get.js b/samples/generated/v1/networks.get.js index 4b3f1485..30ad66b1 100644 --- a/samples/generated/v1/networks.get.js +++ b/samples/generated/v1/networks.get.js @@ -23,6 +23,9 @@ function main(network, project) { // [START compute_v1_generated_Networks_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. */ /** diff --git a/samples/generated/v1/networks.get_effective_firewalls.js b/samples/generated/v1/networks.get_effective_firewalls.js index 347ad73f..e9f4bc81 100644 --- a/samples/generated/v1/networks.get_effective_firewalls.js +++ b/samples/generated/v1/networks.get_effective_firewalls.js @@ -23,6 +23,9 @@ function main(network, project) { // [START compute_v1_generated_Networks_GetEffectiveFirewalls_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. */ /** diff --git a/samples/generated/v1/networks.insert.js b/samples/generated/v1/networks.insert.js index 4cfe9e5d..4bb81fde 100644 --- a/samples/generated/v1/networks.insert.js +++ b/samples/generated/v1/networks.insert.js @@ -23,6 +23,9 @@ function main(networkResource, project) { // [START compute_v1_generated_Networks_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. */ /** diff --git a/samples/generated/v1/networks.list.js b/samples/generated/v1/networks.list.js index 70119057..a57c5e98 100644 --- a/samples/generated/v1/networks.list.js +++ b/samples/generated/v1/networks.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Networks_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. */ /** diff --git a/samples/generated/v1/networks.list_peering_routes.js b/samples/generated/v1/networks.list_peering_routes.js index 73ba9501..b64f911e 100644 --- a/samples/generated/v1/networks.list_peering_routes.js +++ b/samples/generated/v1/networks.list_peering_routes.js @@ -23,6 +23,9 @@ function main(network, project) { // [START compute_v1_generated_Networks_ListPeeringRoutes_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. */ /** diff --git a/samples/generated/v1/networks.patch.js b/samples/generated/v1/networks.patch.js index 8a4d4e12..afc620bc 100644 --- a/samples/generated/v1/networks.patch.js +++ b/samples/generated/v1/networks.patch.js @@ -23,6 +23,9 @@ function main(network, networkResource, project) { // [START compute_v1_generated_Networks_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/networks.remove_peering.js b/samples/generated/v1/networks.remove_peering.js index 21668315..db4ed9fa 100644 --- a/samples/generated/v1/networks.remove_peering.js +++ b/samples/generated/v1/networks.remove_peering.js @@ -23,6 +23,9 @@ function main(network, networksRemovePeeringRequestResource, project) { // [START compute_v1_generated_Networks_RemovePeering_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. */ /** diff --git a/samples/generated/v1/networks.switch_to_custom_mode.js b/samples/generated/v1/networks.switch_to_custom_mode.js index 006e79d1..6ded1f9d 100644 --- a/samples/generated/v1/networks.switch_to_custom_mode.js +++ b/samples/generated/v1/networks.switch_to_custom_mode.js @@ -23,6 +23,9 @@ function main(network, project) { // [START compute_v1_generated_Networks_SwitchToCustomMode_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. */ /** diff --git a/samples/generated/v1/networks.update_peering.js b/samples/generated/v1/networks.update_peering.js index 95fe00e7..3cd9e74b 100644 --- a/samples/generated/v1/networks.update_peering.js +++ b/samples/generated/v1/networks.update_peering.js @@ -23,6 +23,9 @@ function main(network, networksUpdatePeeringRequestResource, project) { // [START compute_v1_generated_Networks_UpdatePeering_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. */ /** diff --git a/samples/generated/v1/node_groups.add_nodes.js b/samples/generated/v1/node_groups.add_nodes.js index f6cee61d..7b768340 100644 --- a/samples/generated/v1/node_groups.add_nodes.js +++ b/samples/generated/v1/node_groups.add_nodes.js @@ -23,6 +23,9 @@ function main(nodeGroup, nodeGroupsAddNodesRequestResource, project, zone) { // [START compute_v1_generated_NodeGroups_AddNodes_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. */ /** diff --git a/samples/generated/v1/node_groups.aggregated_list.js b/samples/generated/v1/node_groups.aggregated_list.js index 2e5c8034..1731b71e 100644 --- a/samples/generated/v1/node_groups.aggregated_list.js +++ b/samples/generated/v1/node_groups.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.delete.js b/samples/generated/v1/node_groups.delete.js index 0b67c84a..7fb05a90 100644 --- a/samples/generated/v1/node_groups.delete.js +++ b/samples/generated/v1/node_groups.delete.js @@ -23,6 +23,9 @@ function main(nodeGroup, project, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.delete_nodes.js b/samples/generated/v1/node_groups.delete_nodes.js index 00ad30e6..8a24081e 100644 --- a/samples/generated/v1/node_groups.delete_nodes.js +++ b/samples/generated/v1/node_groups.delete_nodes.js @@ -23,6 +23,9 @@ function main(nodeGroup, nodeGroupsDeleteNodesRequestResource, project, zone) { // [START compute_v1_generated_NodeGroups_DeleteNodes_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. */ /** diff --git a/samples/generated/v1/node_groups.get.js b/samples/generated/v1/node_groups.get.js index 1bc96f38..b2a18c43 100644 --- a/samples/generated/v1/node_groups.get.js +++ b/samples/generated/v1/node_groups.get.js @@ -23,6 +23,9 @@ function main(nodeGroup, project, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.get_iam_policy.js b/samples/generated/v1/node_groups.get_iam_policy.js index e84ac245..0b6536e8 100644 --- a/samples/generated/v1/node_groups.get_iam_policy.js +++ b/samples/generated/v1/node_groups.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.insert.js b/samples/generated/v1/node_groups.insert.js index 80120f97..adcc53d7 100644 --- a/samples/generated/v1/node_groups.insert.js +++ b/samples/generated/v1/node_groups.insert.js @@ -23,6 +23,9 @@ function main(initialNodeCount, nodeGroupResource, project, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.list.js b/samples/generated/v1/node_groups.list.js index c920de32..a7d0ac34 100644 --- a/samples/generated/v1/node_groups.list.js +++ b/samples/generated/v1/node_groups.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.list_nodes.js b/samples/generated/v1/node_groups.list_nodes.js index 7ba2e1fe..9d01c312 100644 --- a/samples/generated/v1/node_groups.list_nodes.js +++ b/samples/generated/v1/node_groups.list_nodes.js @@ -23,6 +23,9 @@ function main(nodeGroup, project, zone) { // [START compute_v1_generated_NodeGroups_ListNodes_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. */ /** diff --git a/samples/generated/v1/node_groups.patch.js b/samples/generated/v1/node_groups.patch.js index d12ac032..7750003f 100644 --- a/samples/generated/v1/node_groups.patch.js +++ b/samples/generated/v1/node_groups.patch.js @@ -23,6 +23,9 @@ function main(nodeGroup, nodeGroupResource, project, zone) { // [START compute_v1_generated_NodeGroups_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/node_groups.set_iam_policy.js b/samples/generated/v1/node_groups.set_iam_policy.js index bbe3a421..78baae85 100644 --- a/samples/generated/v1/node_groups.set_iam_policy.js +++ b/samples/generated/v1/node_groups.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone, zoneSetPolicyRequestResource) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_groups.set_node_template.js b/samples/generated/v1/node_groups.set_node_template.js index 3ebf5e1c..19dadb2a 100644 --- a/samples/generated/v1/node_groups.set_node_template.js +++ b/samples/generated/v1/node_groups.set_node_template.js @@ -23,6 +23,9 @@ function main(nodeGroup, nodeGroupsSetNodeTemplateRequestResource, project, zone) { // [START compute_v1_generated_NodeGroups_SetNodeTemplate_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. */ /** diff --git a/samples/generated/v1/node_groups.test_iam_permissions.js b/samples/generated/v1/node_groups.test_iam_permissions.js index 4132dbf1..bfeafe92 100644 --- a/samples/generated/v1/node_groups.test_iam_permissions.js +++ b/samples/generated/v1/node_groups.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource, zone) { // [START compute_v1_generated_NodeGroups_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. */ /** diff --git a/samples/generated/v1/node_templates.aggregated_list.js b/samples/generated/v1/node_templates.aggregated_list.js index 6d52ac0b..392079df 100644 --- a/samples/generated/v1/node_templates.aggregated_list.js +++ b/samples/generated/v1/node_templates.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.delete.js b/samples/generated/v1/node_templates.delete.js index ffe9157d..0f2ab7ce 100644 --- a/samples/generated/v1/node_templates.delete.js +++ b/samples/generated/v1/node_templates.delete.js @@ -23,6 +23,9 @@ function main(nodeTemplate, project, region) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.get.js b/samples/generated/v1/node_templates.get.js index 4062388f..4c252e33 100644 --- a/samples/generated/v1/node_templates.get.js +++ b/samples/generated/v1/node_templates.get.js @@ -23,6 +23,9 @@ function main(nodeTemplate, project, region) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.get_iam_policy.js b/samples/generated/v1/node_templates.get_iam_policy.js index 476edeaf..8c02cd8c 100644 --- a/samples/generated/v1/node_templates.get_iam_policy.js +++ b/samples/generated/v1/node_templates.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.insert.js b/samples/generated/v1/node_templates.insert.js index 333d5edf..d7acf399 100644 --- a/samples/generated/v1/node_templates.insert.js +++ b/samples/generated/v1/node_templates.insert.js @@ -23,6 +23,9 @@ function main(nodeTemplateResource, project, region) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.list.js b/samples/generated/v1/node_templates.list.js index e4d18d25..d2a0bb49 100644 --- a/samples/generated/v1/node_templates.list.js +++ b/samples/generated/v1/node_templates.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.set_iam_policy.js b/samples/generated/v1/node_templates.set_iam_policy.js index 0e56efbb..34f7b919 100644 --- a/samples/generated/v1/node_templates.set_iam_policy.js +++ b/samples/generated/v1/node_templates.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_templates.test_iam_permissions.js b/samples/generated/v1/node_templates.test_iam_permissions.js index 7db8dd88..da96d657 100644 --- a/samples/generated/v1/node_templates.test_iam_permissions.js +++ b/samples/generated/v1/node_templates.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_NodeTemplates_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. */ /** diff --git a/samples/generated/v1/node_types.aggregated_list.js b/samples/generated/v1/node_types.aggregated_list.js index d978eae8..4d2e0c26 100644 --- a/samples/generated/v1/node_types.aggregated_list.js +++ b/samples/generated/v1/node_types.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_NodeTypes_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. */ /** diff --git a/samples/generated/v1/node_types.get.js b/samples/generated/v1/node_types.get.js index 2f2be35e..e79f5607 100644 --- a/samples/generated/v1/node_types.get.js +++ b/samples/generated/v1/node_types.get.js @@ -23,6 +23,9 @@ function main(nodeType, project, zone) { // [START compute_v1_generated_NodeTypes_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. */ /** diff --git a/samples/generated/v1/node_types.list.js b/samples/generated/v1/node_types.list.js index b545f0f1..321a0c4e 100644 --- a/samples/generated/v1/node_types.list.js +++ b/samples/generated/v1/node_types.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_NodeTypes_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.aggregated_list.js b/samples/generated/v1/packet_mirrorings.aggregated_list.js index dc131f13..419eb25d 100644 --- a/samples/generated/v1/packet_mirrorings.aggregated_list.js +++ b/samples/generated/v1/packet_mirrorings.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.delete.js b/samples/generated/v1/packet_mirrorings.delete.js index 39373fb2..a9dc3b61 100644 --- a/samples/generated/v1/packet_mirrorings.delete.js +++ b/samples/generated/v1/packet_mirrorings.delete.js @@ -23,6 +23,9 @@ function main(packetMirroring, project, region) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.get.js b/samples/generated/v1/packet_mirrorings.get.js index 6f5c7570..f0294c3e 100644 --- a/samples/generated/v1/packet_mirrorings.get.js +++ b/samples/generated/v1/packet_mirrorings.get.js @@ -23,6 +23,9 @@ function main(packetMirroring, project, region) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.insert.js b/samples/generated/v1/packet_mirrorings.insert.js index 68602529..f4f65201 100644 --- a/samples/generated/v1/packet_mirrorings.insert.js +++ b/samples/generated/v1/packet_mirrorings.insert.js @@ -23,6 +23,9 @@ function main(packetMirroringResource, project, region) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.list.js b/samples/generated/v1/packet_mirrorings.list.js index 7df16c77..d96eff9c 100644 --- a/samples/generated/v1/packet_mirrorings.list.js +++ b/samples/generated/v1/packet_mirrorings.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/packet_mirrorings.patch.js b/samples/generated/v1/packet_mirrorings.patch.js index 7485203e..78658327 100644 --- a/samples/generated/v1/packet_mirrorings.patch.js +++ b/samples/generated/v1/packet_mirrorings.patch.js @@ -23,6 +23,9 @@ function main(packetMirroring, packetMirroringResource, project, region) { // [START compute_v1_generated_PacketMirrorings_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/packet_mirrorings.test_iam_permissions.js b/samples/generated/v1/packet_mirrorings.test_iam_permissions.js index 5b6f1731..c7f7f67d 100644 --- a/samples/generated/v1/packet_mirrorings.test_iam_permissions.js +++ b/samples/generated/v1/packet_mirrorings.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_PacketMirrorings_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. */ /** diff --git a/samples/generated/v1/projects.disable_xpn_host.js b/samples/generated/v1/projects.disable_xpn_host.js index 4b7b0933..6b2fbabe 100644 --- a/samples/generated/v1/projects.disable_xpn_host.js +++ b/samples/generated/v1/projects.disable_xpn_host.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Projects_DisableXpnHost_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. */ /** diff --git a/samples/generated/v1/projects.disable_xpn_resource.js b/samples/generated/v1/projects.disable_xpn_resource.js index 3cb9e050..f494f5c5 100644 --- a/samples/generated/v1/projects.disable_xpn_resource.js +++ b/samples/generated/v1/projects.disable_xpn_resource.js @@ -23,6 +23,9 @@ function main(project, projectsDisableXpnResourceRequestResource) { // [START compute_v1_generated_Projects_DisableXpnResource_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. */ /** diff --git a/samples/generated/v1/projects.enable_xpn_host.js b/samples/generated/v1/projects.enable_xpn_host.js index fcb348bc..f04b8d01 100644 --- a/samples/generated/v1/projects.enable_xpn_host.js +++ b/samples/generated/v1/projects.enable_xpn_host.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Projects_EnableXpnHost_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. */ /** diff --git a/samples/generated/v1/projects.enable_xpn_resource.js b/samples/generated/v1/projects.enable_xpn_resource.js index 6df97236..2cb77a76 100644 --- a/samples/generated/v1/projects.enable_xpn_resource.js +++ b/samples/generated/v1/projects.enable_xpn_resource.js @@ -23,6 +23,9 @@ function main(project, projectsEnableXpnResourceRequestResource) { // [START compute_v1_generated_Projects_EnableXpnResource_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. */ /** diff --git a/samples/generated/v1/projects.get.js b/samples/generated/v1/projects.get.js index f04f7571..fac50fad 100644 --- a/samples/generated/v1/projects.get.js +++ b/samples/generated/v1/projects.get.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Projects_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. */ /** diff --git a/samples/generated/v1/projects.get_xpn_host.js b/samples/generated/v1/projects.get_xpn_host.js index 48361332..29713a0b 100644 --- a/samples/generated/v1/projects.get_xpn_host.js +++ b/samples/generated/v1/projects.get_xpn_host.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Projects_GetXpnHost_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. */ /** diff --git a/samples/generated/v1/projects.get_xpn_resources.js b/samples/generated/v1/projects.get_xpn_resources.js index a0546ba8..01678f1f 100644 --- a/samples/generated/v1/projects.get_xpn_resources.js +++ b/samples/generated/v1/projects.get_xpn_resources.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Projects_GetXpnResources_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. */ /** diff --git a/samples/generated/v1/projects.list_xpn_hosts.js b/samples/generated/v1/projects.list_xpn_hosts.js index c987699f..86ed02ed 100644 --- a/samples/generated/v1/projects.list_xpn_hosts.js +++ b/samples/generated/v1/projects.list_xpn_hosts.js @@ -23,6 +23,9 @@ function main(project, projectsListXpnHostsRequestResource) { // [START compute_v1_generated_Projects_ListXpnHosts_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. */ /** diff --git a/samples/generated/v1/projects.move_disk.js b/samples/generated/v1/projects.move_disk.js index 92dd2765..b4b59805 100644 --- a/samples/generated/v1/projects.move_disk.js +++ b/samples/generated/v1/projects.move_disk.js @@ -23,6 +23,9 @@ function main(diskMoveRequestResource, project) { // [START compute_v1_generated_Projects_MoveDisk_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. */ /** diff --git a/samples/generated/v1/projects.move_instance.js b/samples/generated/v1/projects.move_instance.js index c85640cc..7bbf088e 100644 --- a/samples/generated/v1/projects.move_instance.js +++ b/samples/generated/v1/projects.move_instance.js @@ -23,6 +23,9 @@ function main(instanceMoveRequestResource, project) { // [START compute_v1_generated_Projects_MoveInstance_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. */ /** diff --git a/samples/generated/v1/projects.set_common_instance_metadata.js b/samples/generated/v1/projects.set_common_instance_metadata.js index 1d59162c..35fb5064 100644 --- a/samples/generated/v1/projects.set_common_instance_metadata.js +++ b/samples/generated/v1/projects.set_common_instance_metadata.js @@ -23,6 +23,9 @@ function main(metadataResource, project) { // [START compute_v1_generated_Projects_SetCommonInstanceMetadata_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. */ /** diff --git a/samples/generated/v1/projects.set_default_network_tier.js b/samples/generated/v1/projects.set_default_network_tier.js index aa9b1666..f3605b9b 100644 --- a/samples/generated/v1/projects.set_default_network_tier.js +++ b/samples/generated/v1/projects.set_default_network_tier.js @@ -23,6 +23,9 @@ function main(project, projectsSetDefaultNetworkTierRequestResource) { // [START compute_v1_generated_Projects_SetDefaultNetworkTier_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. */ /** diff --git a/samples/generated/v1/projects.set_usage_export_bucket.js b/samples/generated/v1/projects.set_usage_export_bucket.js index 06edf023..922d3395 100644 --- a/samples/generated/v1/projects.set_usage_export_bucket.js +++ b/samples/generated/v1/projects.set_usage_export_bucket.js @@ -23,6 +23,9 @@ function main(project, usageExportLocationResource) { // [START compute_v1_generated_Projects_SetUsageExportBucket_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. */ /** diff --git a/samples/generated/v1/public_advertised_prefixes.delete.js b/samples/generated/v1/public_advertised_prefixes.delete.js index e87298db..cb0cbb28 100644 --- a/samples/generated/v1/public_advertised_prefixes.delete.js +++ b/samples/generated/v1/public_advertised_prefixes.delete.js @@ -23,6 +23,9 @@ function main(project, publicAdvertisedPrefix) { // [START compute_v1_generated_PublicAdvertisedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_advertised_prefixes.get.js b/samples/generated/v1/public_advertised_prefixes.get.js index e3725887..43c2607c 100644 --- a/samples/generated/v1/public_advertised_prefixes.get.js +++ b/samples/generated/v1/public_advertised_prefixes.get.js @@ -23,6 +23,9 @@ function main(project, publicAdvertisedPrefix) { // [START compute_v1_generated_PublicAdvertisedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_advertised_prefixes.insert.js b/samples/generated/v1/public_advertised_prefixes.insert.js index ff0b6c33..196e328d 100644 --- a/samples/generated/v1/public_advertised_prefixes.insert.js +++ b/samples/generated/v1/public_advertised_prefixes.insert.js @@ -23,6 +23,9 @@ function main(project, publicAdvertisedPrefixResource) { // [START compute_v1_generated_PublicAdvertisedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_advertised_prefixes.list.js b/samples/generated/v1/public_advertised_prefixes.list.js index ad2bc2a5..e9790071 100644 --- a/samples/generated/v1/public_advertised_prefixes.list.js +++ b/samples/generated/v1/public_advertised_prefixes.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_PublicAdvertisedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_advertised_prefixes.patch.js b/samples/generated/v1/public_advertised_prefixes.patch.js index f0cef9bf..ed7bf576 100644 --- a/samples/generated/v1/public_advertised_prefixes.patch.js +++ b/samples/generated/v1/public_advertised_prefixes.patch.js @@ -23,6 +23,9 @@ function main(project, publicAdvertisedPrefix, publicAdvertisedPrefixResource) { // [START compute_v1_generated_PublicAdvertisedPrefixes_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.aggregated_list.js b/samples/generated/v1/public_delegated_prefixes.aggregated_list.js index 8b252845..6deaddc4 100644 --- a/samples/generated/v1/public_delegated_prefixes.aggregated_list.js +++ b/samples/generated/v1/public_delegated_prefixes.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_PublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.delete.js b/samples/generated/v1/public_delegated_prefixes.delete.js index ad01e582..04b59561 100644 --- a/samples/generated/v1/public_delegated_prefixes.delete.js +++ b/samples/generated/v1/public_delegated_prefixes.delete.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix, region) { // [START compute_v1_generated_PublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.get.js b/samples/generated/v1/public_delegated_prefixes.get.js index 2096ed29..18436101 100644 --- a/samples/generated/v1/public_delegated_prefixes.get.js +++ b/samples/generated/v1/public_delegated_prefixes.get.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix, region) { // [START compute_v1_generated_PublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.insert.js b/samples/generated/v1/public_delegated_prefixes.insert.js index 3e24591c..b3adf5ad 100644 --- a/samples/generated/v1/public_delegated_prefixes.insert.js +++ b/samples/generated/v1/public_delegated_prefixes.insert.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefixResource, region) { // [START compute_v1_generated_PublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.list.js b/samples/generated/v1/public_delegated_prefixes.list.js index b96f9876..ac8a5dce 100644 --- a/samples/generated/v1/public_delegated_prefixes.list.js +++ b/samples/generated/v1/public_delegated_prefixes.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_PublicDelegatedPrefixes_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. */ /** diff --git a/samples/generated/v1/public_delegated_prefixes.patch.js b/samples/generated/v1/public_delegated_prefixes.patch.js index 39cd9823..cb47fabe 100644 --- a/samples/generated/v1/public_delegated_prefixes.patch.js +++ b/samples/generated/v1/public_delegated_prefixes.patch.js @@ -23,6 +23,9 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource, region) { // [START compute_v1_generated_PublicDelegatedPrefixes_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_autoscalers.delete.js b/samples/generated/v1/region_autoscalers.delete.js index 76733998..51d027cc 100644 --- a/samples/generated/v1/region_autoscalers.delete.js +++ b/samples/generated/v1/region_autoscalers.delete.js @@ -23,6 +23,9 @@ function main(autoscaler, project, region) { // [START compute_v1_generated_RegionAutoscalers_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. */ /** diff --git a/samples/generated/v1/region_autoscalers.get.js b/samples/generated/v1/region_autoscalers.get.js index 4648f41c..8f3112fa 100644 --- a/samples/generated/v1/region_autoscalers.get.js +++ b/samples/generated/v1/region_autoscalers.get.js @@ -23,6 +23,9 @@ function main(autoscaler, project, region) { // [START compute_v1_generated_RegionAutoscalers_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. */ /** diff --git a/samples/generated/v1/region_autoscalers.insert.js b/samples/generated/v1/region_autoscalers.insert.js index 4d360e79..6ef5095c 100644 --- a/samples/generated/v1/region_autoscalers.insert.js +++ b/samples/generated/v1/region_autoscalers.insert.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, region) { // [START compute_v1_generated_RegionAutoscalers_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. */ /** diff --git a/samples/generated/v1/region_autoscalers.list.js b/samples/generated/v1/region_autoscalers.list.js index 304ef8b0..6a28901b 100644 --- a/samples/generated/v1/region_autoscalers.list.js +++ b/samples/generated/v1/region_autoscalers.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionAutoscalers_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. */ /** diff --git a/samples/generated/v1/region_autoscalers.patch.js b/samples/generated/v1/region_autoscalers.patch.js index 01b522a1..b426a1cf 100644 --- a/samples/generated/v1/region_autoscalers.patch.js +++ b/samples/generated/v1/region_autoscalers.patch.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, region) { // [START compute_v1_generated_RegionAutoscalers_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_autoscalers.update.js b/samples/generated/v1/region_autoscalers.update.js index 3c9537bb..9782f580 100644 --- a/samples/generated/v1/region_autoscalers.update.js +++ b/samples/generated/v1/region_autoscalers.update.js @@ -23,6 +23,9 @@ function main(autoscalerResource, project, region) { // [START compute_v1_generated_RegionAutoscalers_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_backend_services.delete.js b/samples/generated/v1/region_backend_services.delete.js index 165fd101..6200f27f 100644 --- a/samples/generated/v1/region_backend_services.delete.js +++ b/samples/generated/v1/region_backend_services.delete.js @@ -23,6 +23,9 @@ function main(backendService, project, region) { // [START compute_v1_generated_RegionBackendServices_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. */ /** diff --git a/samples/generated/v1/region_backend_services.get.js b/samples/generated/v1/region_backend_services.get.js index 886bef8c..de1bae6f 100644 --- a/samples/generated/v1/region_backend_services.get.js +++ b/samples/generated/v1/region_backend_services.get.js @@ -23,6 +23,9 @@ function main(backendService, project, region) { // [START compute_v1_generated_RegionBackendServices_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. */ /** diff --git a/samples/generated/v1/region_backend_services.get_health.js b/samples/generated/v1/region_backend_services.get_health.js index 047b8dc2..1e78bb75 100644 --- a/samples/generated/v1/region_backend_services.get_health.js +++ b/samples/generated/v1/region_backend_services.get_health.js @@ -23,6 +23,9 @@ function main(backendService, project, region, resourceGroupReferenceResource) { // [START compute_v1_generated_RegionBackendServices_GetHealth_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_backend_services.insert.js b/samples/generated/v1/region_backend_services.insert.js index cf37654e..a085ae5d 100644 --- a/samples/generated/v1/region_backend_services.insert.js +++ b/samples/generated/v1/region_backend_services.insert.js @@ -23,6 +23,9 @@ function main(backendServiceResource, project, region) { // [START compute_v1_generated_RegionBackendServices_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. */ /** diff --git a/samples/generated/v1/region_backend_services.list.js b/samples/generated/v1/region_backend_services.list.js index 84a412f9..638f48e2 100644 --- a/samples/generated/v1/region_backend_services.list.js +++ b/samples/generated/v1/region_backend_services.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionBackendServices_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. */ /** diff --git a/samples/generated/v1/region_backend_services.patch.js b/samples/generated/v1/region_backend_services.patch.js index 2aa977b1..0a223ab5 100644 --- a/samples/generated/v1/region_backend_services.patch.js +++ b/samples/generated/v1/region_backend_services.patch.js @@ -23,6 +23,9 @@ function main(backendService, backendServiceResource, project, region) { // [START compute_v1_generated_RegionBackendServices_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_backend_services.update.js b/samples/generated/v1/region_backend_services.update.js index 2c148349..ee8d831f 100644 --- a/samples/generated/v1/region_backend_services.update.js +++ b/samples/generated/v1/region_backend_services.update.js @@ -23,6 +23,9 @@ function main(backendService, backendServiceResource, project, region) { // [START compute_v1_generated_RegionBackendServices_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_commitments.aggregated_list.js b/samples/generated/v1/region_commitments.aggregated_list.js index 151cc2a2..5c7e8529 100644 --- a/samples/generated/v1/region_commitments.aggregated_list.js +++ b/samples/generated/v1/region_commitments.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_RegionCommitments_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. */ /** diff --git a/samples/generated/v1/region_commitments.get.js b/samples/generated/v1/region_commitments.get.js index 893b370a..e0ffea7e 100644 --- a/samples/generated/v1/region_commitments.get.js +++ b/samples/generated/v1/region_commitments.get.js @@ -23,6 +23,9 @@ function main(commitment, project, region) { // [START compute_v1_generated_RegionCommitments_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. */ /** diff --git a/samples/generated/v1/region_commitments.insert.js b/samples/generated/v1/region_commitments.insert.js index fc5484a4..1808634f 100644 --- a/samples/generated/v1/region_commitments.insert.js +++ b/samples/generated/v1/region_commitments.insert.js @@ -23,6 +23,9 @@ function main(commitmentResource, project, region) { // [START compute_v1_generated_RegionCommitments_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. */ /** diff --git a/samples/generated/v1/region_commitments.list.js b/samples/generated/v1/region_commitments.list.js index 3f355d95..826a5bb2 100644 --- a/samples/generated/v1/region_commitments.list.js +++ b/samples/generated/v1/region_commitments.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionCommitments_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. */ /** diff --git a/samples/generated/v1/region_commitments.update.js b/samples/generated/v1/region_commitments.update.js index 438ac799..9ba0382c 100644 --- a/samples/generated/v1/region_commitments.update.js +++ b/samples/generated/v1/region_commitments.update.js @@ -23,6 +23,9 @@ function main(commitment, commitmentResource, project, region) { // [START compute_v1_generated_RegionCommitments_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_disk_types.get.js b/samples/generated/v1/region_disk_types.get.js index bd5283cf..86681312 100644 --- a/samples/generated/v1/region_disk_types.get.js +++ b/samples/generated/v1/region_disk_types.get.js @@ -23,6 +23,9 @@ function main(diskType, project, region) { // [START compute_v1_generated_RegionDiskTypes_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. */ /** diff --git a/samples/generated/v1/region_disk_types.list.js b/samples/generated/v1/region_disk_types.list.js index 8c416544..b509a149 100644 --- a/samples/generated/v1/region_disk_types.list.js +++ b/samples/generated/v1/region_disk_types.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionDiskTypes_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. */ /** diff --git a/samples/generated/v1/region_disks.add_resource_policies.js b/samples/generated/v1/region_disks.add_resource_policies.js index 84c05e78..2f168751 100644 --- a/samples/generated/v1/region_disks.add_resource_policies.js +++ b/samples/generated/v1/region_disks.add_resource_policies.js @@ -23,6 +23,9 @@ function main(disk, project, region, regionDisksAddResourcePoliciesRequestResource) { // [START compute_v1_generated_RegionDisks_AddResourcePolicies_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. */ /** diff --git a/samples/generated/v1/region_disks.create_snapshot.js b/samples/generated/v1/region_disks.create_snapshot.js index a3bbffdb..cb9261a8 100644 --- a/samples/generated/v1/region_disks.create_snapshot.js +++ b/samples/generated/v1/region_disks.create_snapshot.js @@ -23,6 +23,9 @@ function main(disk, project, region, snapshotResource) { // [START compute_v1_generated_RegionDisks_CreateSnapshot_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. */ /** diff --git a/samples/generated/v1/region_disks.delete.js b/samples/generated/v1/region_disks.delete.js index 0ae76e80..2f517d34 100644 --- a/samples/generated/v1/region_disks.delete.js +++ b/samples/generated/v1/region_disks.delete.js @@ -23,6 +23,9 @@ function main(disk, project, region) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.get.js b/samples/generated/v1/region_disks.get.js index 2816c718..ea9cab72 100644 --- a/samples/generated/v1/region_disks.get.js +++ b/samples/generated/v1/region_disks.get.js @@ -23,6 +23,9 @@ function main(disk, project, region) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.get_iam_policy.js b/samples/generated/v1/region_disks.get_iam_policy.js index 6f901466..97410cdd 100644 --- a/samples/generated/v1/region_disks.get_iam_policy.js +++ b/samples/generated/v1/region_disks.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.insert.js b/samples/generated/v1/region_disks.insert.js index b963b09a..26b58a00 100644 --- a/samples/generated/v1/region_disks.insert.js +++ b/samples/generated/v1/region_disks.insert.js @@ -23,6 +23,9 @@ function main(diskResource, project, region) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.list.js b/samples/generated/v1/region_disks.list.js index 4da2dbc3..5cdb8eb2 100644 --- a/samples/generated/v1/region_disks.list.js +++ b/samples/generated/v1/region_disks.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.remove_resource_policies.js b/samples/generated/v1/region_disks.remove_resource_policies.js index 775780ff..82fd7bfd 100644 --- a/samples/generated/v1/region_disks.remove_resource_policies.js +++ b/samples/generated/v1/region_disks.remove_resource_policies.js @@ -23,6 +23,9 @@ function main(disk, project, region, regionDisksRemoveResourcePoliciesRequestResource) { // [START compute_v1_generated_RegionDisks_RemoveResourcePolicies_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. */ /** diff --git a/samples/generated/v1/region_disks.resize.js b/samples/generated/v1/region_disks.resize.js index af9d9d6c..359d681e 100644 --- a/samples/generated/v1/region_disks.resize.js +++ b/samples/generated/v1/region_disks.resize.js @@ -23,6 +23,9 @@ function main(disk, project, region, regionDisksResizeRequestResource) { // [START compute_v1_generated_RegionDisks_Resize_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. */ /** diff --git a/samples/generated/v1/region_disks.set_iam_policy.js b/samples/generated/v1/region_disks.set_iam_policy.js index cacf12a2..0145ada1 100644 --- a/samples/generated/v1/region_disks.set_iam_policy.js +++ b/samples/generated/v1/region_disks.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.set_labels.js b/samples/generated/v1/region_disks.set_labels.js index cc75ef89..58bf6815 100644 --- a/samples/generated/v1/region_disks.set_labels.js +++ b/samples/generated/v1/region_disks.set_labels.js @@ -23,6 +23,9 @@ function main(project, region, regionSetLabelsRequestResource, resource) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_disks.test_iam_permissions.js b/samples/generated/v1/region_disks.test_iam_permissions.js index e39a4869..31640a1f 100644 --- a/samples/generated/v1/region_disks.test_iam_permissions.js +++ b/samples/generated/v1/region_disks.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_RegionDisks_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. */ /** diff --git a/samples/generated/v1/region_health_check_services.delete.js b/samples/generated/v1/region_health_check_services.delete.js index 1ce6c4b8..38cfc108 100644 --- a/samples/generated/v1/region_health_check_services.delete.js +++ b/samples/generated/v1/region_health_check_services.delete.js @@ -23,6 +23,9 @@ function main(healthCheckService, project, region) { // [START compute_v1_generated_RegionHealthCheckServices_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. */ /** diff --git a/samples/generated/v1/region_health_check_services.get.js b/samples/generated/v1/region_health_check_services.get.js index 7e1bd794..6d865391 100644 --- a/samples/generated/v1/region_health_check_services.get.js +++ b/samples/generated/v1/region_health_check_services.get.js @@ -23,6 +23,9 @@ function main(healthCheckService, project, region) { // [START compute_v1_generated_RegionHealthCheckServices_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. */ /** diff --git a/samples/generated/v1/region_health_check_services.insert.js b/samples/generated/v1/region_health_check_services.insert.js index 60f2bb0a..a70eb263 100644 --- a/samples/generated/v1/region_health_check_services.insert.js +++ b/samples/generated/v1/region_health_check_services.insert.js @@ -23,6 +23,9 @@ function main(healthCheckServiceResource, project, region) { // [START compute_v1_generated_RegionHealthCheckServices_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. */ /** diff --git a/samples/generated/v1/region_health_check_services.list.js b/samples/generated/v1/region_health_check_services.list.js index 4c130e64..ab07b2a4 100644 --- a/samples/generated/v1/region_health_check_services.list.js +++ b/samples/generated/v1/region_health_check_services.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionHealthCheckServices_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. */ /** diff --git a/samples/generated/v1/region_health_check_services.patch.js b/samples/generated/v1/region_health_check_services.patch.js index cdee84d0..d42d0c77 100644 --- a/samples/generated/v1/region_health_check_services.patch.js +++ b/samples/generated/v1/region_health_check_services.patch.js @@ -23,6 +23,9 @@ function main(healthCheckService, healthCheckServiceResource, project, region) { // [START compute_v1_generated_RegionHealthCheckServices_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_health_checks.delete.js b/samples/generated/v1/region_health_checks.delete.js index 489ced47..1c6af6d7 100644 --- a/samples/generated/v1/region_health_checks.delete.js +++ b/samples/generated/v1/region_health_checks.delete.js @@ -23,6 +23,9 @@ function main(healthCheck, project, region) { // [START compute_v1_generated_RegionHealthChecks_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. */ /** diff --git a/samples/generated/v1/region_health_checks.get.js b/samples/generated/v1/region_health_checks.get.js index b20daa81..85459e15 100644 --- a/samples/generated/v1/region_health_checks.get.js +++ b/samples/generated/v1/region_health_checks.get.js @@ -23,6 +23,9 @@ function main(healthCheck, project, region) { // [START compute_v1_generated_RegionHealthChecks_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. */ /** diff --git a/samples/generated/v1/region_health_checks.insert.js b/samples/generated/v1/region_health_checks.insert.js index 6605b8ce..3731e83a 100644 --- a/samples/generated/v1/region_health_checks.insert.js +++ b/samples/generated/v1/region_health_checks.insert.js @@ -23,6 +23,9 @@ function main(healthCheckResource, project, region) { // [START compute_v1_generated_RegionHealthChecks_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. */ /** diff --git a/samples/generated/v1/region_health_checks.list.js b/samples/generated/v1/region_health_checks.list.js index e8a25dae..01d4741d 100644 --- a/samples/generated/v1/region_health_checks.list.js +++ b/samples/generated/v1/region_health_checks.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionHealthChecks_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. */ /** diff --git a/samples/generated/v1/region_health_checks.patch.js b/samples/generated/v1/region_health_checks.patch.js index 7ff56325..c0bda0de 100644 --- a/samples/generated/v1/region_health_checks.patch.js +++ b/samples/generated/v1/region_health_checks.patch.js @@ -23,6 +23,9 @@ function main(healthCheck, healthCheckResource, project, region) { // [START compute_v1_generated_RegionHealthChecks_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_health_checks.update.js b/samples/generated/v1/region_health_checks.update.js index e6134b25..f14b1766 100644 --- a/samples/generated/v1/region_health_checks.update.js +++ b/samples/generated/v1/region_health_checks.update.js @@ -23,6 +23,9 @@ function main(healthCheck, healthCheckResource, project, region) { // [START compute_v1_generated_RegionHealthChecks_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.abandon_instances.js b/samples/generated/v1/region_instance_group_managers.abandon_instances.js index ee909725..48195a1a 100644 --- a/samples/generated/v1/region_instance_group_managers.abandon_instances.js +++ b/samples/generated/v1/region_instance_group_managers.abandon_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersAbandonInstancesRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js b/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js index 3ed7f49e..83440b5b 100644 --- a/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js +++ b/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersApplyUpdatesRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.create_instances.js b/samples/generated/v1/region_instance_group_managers.create_instances.js index ea09c8dc..d3db12e7 100644 --- a/samples/generated/v1/region_instance_group_managers.create_instances.js +++ b/samples/generated/v1/region_instance_group_managers.create_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersCreateInstancesRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.delete.js b/samples/generated/v1/region_instance_group_managers.delete.js index b850df99..c1435372 100644 --- a/samples/generated/v1/region_instance_group_managers.delete.js +++ b/samples/generated/v1/region_instance_group_managers.delete.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.delete_instances.js b/samples/generated/v1/region_instance_group_managers.delete_instances.js index ddfd716b..293ab13e 100644 --- a/samples/generated/v1/region_instance_group_managers.delete_instances.js +++ b/samples/generated/v1/region_instance_group_managers.delete_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersDeleteInstancesRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.delete_per_instance_configs.js b/samples/generated/v1/region_instance_group_managers.delete_per_instance_configs.js index 4b97cbe0..d0e663f1 100644 --- a/samples/generated/v1/region_instance_group_managers.delete_per_instance_configs.js +++ b/samples/generated/v1/region_instance_group_managers.delete_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerDeleteInstanceConfigReqResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.get.js b/samples/generated/v1/region_instance_group_managers.get.js index 3764096f..d127081b 100644 --- a/samples/generated/v1/region_instance_group_managers.get.js +++ b/samples/generated/v1/region_instance_group_managers.get.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.insert.js b/samples/generated/v1/region_instance_group_managers.insert.js index 42f08395..c3c202ff 100644 --- a/samples/generated/v1/region_instance_group_managers.insert.js +++ b/samples/generated/v1/region_instance_group_managers.insert.js @@ -23,6 +23,9 @@ function main(instanceGroupManagerResource, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.list.js b/samples/generated/v1/region_instance_group_managers.list.js index 6d3349bd..f39c9cb4 100644 --- a/samples/generated/v1/region_instance_group_managers.list.js +++ b/samples/generated/v1/region_instance_group_managers.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.list_errors.js b/samples/generated/v1/region_instance_group_managers.list_errors.js index bc5bb21e..44e520e0 100644 --- a/samples/generated/v1/region_instance_group_managers.list_errors.js +++ b/samples/generated/v1/region_instance_group_managers.list_errors.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_ListErrors_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.list_managed_instances.js b/samples/generated/v1/region_instance_group_managers.list_managed_instances.js index 824197c3..886d8dad 100644 --- a/samples/generated/v1/region_instance_group_managers.list_managed_instances.js +++ b/samples/generated/v1/region_instance_group_managers.list_managed_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js b/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js index 71f8ebdf..b0a480b7 100644 --- a/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js +++ b/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.patch.js b/samples/generated/v1/region_instance_group_managers.patch.js index 46b90f36..8f6414e5 100644 --- a/samples/generated/v1/region_instance_group_managers.patch.js +++ b/samples/generated/v1/region_instance_group_managers.patch.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, region) { // [START compute_v1_generated_RegionInstanceGroupManagers_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.patch_per_instance_configs.js b/samples/generated/v1/region_instance_group_managers.patch_per_instance_configs.js index 465e0c9d..155bad03 100644 --- a/samples/generated/v1/region_instance_group_managers.patch_per_instance_configs.js +++ b/samples/generated/v1/region_instance_group_managers.patch_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerPatchInstanceConfigReqResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.recreate_instances.js b/samples/generated/v1/region_instance_group_managers.recreate_instances.js index d49fe21c..a3b02599 100644 --- a/samples/generated/v1/region_instance_group_managers.recreate_instances.js +++ b/samples/generated/v1/region_instance_group_managers.recreate_instances.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersRecreateRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.resize.js b/samples/generated/v1/region_instance_group_managers.resize.js index d04ea867..52f4bd4a 100644 --- a/samples/generated/v1/region_instance_group_managers.resize.js +++ b/samples/generated/v1/region_instance_group_managers.resize.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, size) { // [START compute_v1_generated_RegionInstanceGroupManagers_Resize_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.set_instance_template.js b/samples/generated/v1/region_instance_group_managers.set_instance_template.js index ed061cc6..5ea23f22 100644 --- a/samples/generated/v1/region_instance_group_managers.set_instance_template.js +++ b/samples/generated/v1/region_instance_group_managers.set_instance_template.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersSetTemplateRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.set_target_pools.js b/samples/generated/v1/region_instance_group_managers.set_target_pools.js index 87b3bf58..12bc7606 100644 --- a/samples/generated/v1/region_instance_group_managers.set_target_pools.js +++ b/samples/generated/v1/region_instance_group_managers.set_target_pools.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagersSetTargetPoolsRequestResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_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. */ /** diff --git a/samples/generated/v1/region_instance_group_managers.update_per_instance_configs.js b/samples/generated/v1/region_instance_group_managers.update_per_instance_configs.js index 1f14be23..7a048016 100644 --- a/samples/generated/v1/region_instance_group_managers.update_per_instance_configs.js +++ b/samples/generated/v1/region_instance_group_managers.update_per_instance_configs.js @@ -23,6 +23,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerUpdateInstanceConfigReqResource) { // [START compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_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. */ /** diff --git a/samples/generated/v1/region_instance_groups.get.js b/samples/generated/v1/region_instance_groups.get.js index 6bf2e81d..9db60fc2 100644 --- a/samples/generated/v1/region_instance_groups.get.js +++ b/samples/generated/v1/region_instance_groups.get.js @@ -23,6 +23,9 @@ function main(instanceGroup, project, region) { // [START compute_v1_generated_RegionInstanceGroups_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. */ /** diff --git a/samples/generated/v1/region_instance_groups.list.js b/samples/generated/v1/region_instance_groups.list.js index c2ca8139..e94954cf 100644 --- a/samples/generated/v1/region_instance_groups.list.js +++ b/samples/generated/v1/region_instance_groups.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionInstanceGroups_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. */ /** diff --git a/samples/generated/v1/region_instance_groups.list_instances.js b/samples/generated/v1/region_instance_groups.list_instances.js index 42e813f0..51a212f4 100644 --- a/samples/generated/v1/region_instance_groups.list_instances.js +++ b/samples/generated/v1/region_instance_groups.list_instances.js @@ -23,6 +23,9 @@ function main(instanceGroup, project, region, regionInstanceGroupsListInstancesRequestResource) { // [START compute_v1_generated_RegionInstanceGroups_ListInstances_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. */ /** diff --git a/samples/generated/v1/region_instance_groups.set_named_ports.js b/samples/generated/v1/region_instance_groups.set_named_ports.js index 78d05878..b11af134 100644 --- a/samples/generated/v1/region_instance_groups.set_named_ports.js +++ b/samples/generated/v1/region_instance_groups.set_named_ports.js @@ -23,6 +23,9 @@ function main(instanceGroup, project, region, regionInstanceGroupsSetNamedPortsRequestResource) { // [START compute_v1_generated_RegionInstanceGroups_SetNamedPorts_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. */ /** diff --git a/samples/generated/v1/region_instances.bulk_insert.js b/samples/generated/v1/region_instances.bulk_insert.js index 727017a1..aae86602 100644 --- a/samples/generated/v1/region_instances.bulk_insert.js +++ b/samples/generated/v1/region_instances.bulk_insert.js @@ -23,6 +23,9 @@ function main(bulkInsertInstanceResourceResource, project, region) { // [START compute_v1_generated_RegionInstances_BulkInsert_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. */ /** diff --git a/samples/generated/v1/region_network_endpoint_groups.delete.js b/samples/generated/v1/region_network_endpoint_groups.delete.js index 59fa82a7..3a55292b 100644 --- a/samples/generated/v1/region_network_endpoint_groups.delete.js +++ b/samples/generated/v1/region_network_endpoint_groups.delete.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project, region) { // [START compute_v1_generated_RegionNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/region_network_endpoint_groups.get.js b/samples/generated/v1/region_network_endpoint_groups.get.js index 08d8794d..bcf22826 100644 --- a/samples/generated/v1/region_network_endpoint_groups.get.js +++ b/samples/generated/v1/region_network_endpoint_groups.get.js @@ -23,6 +23,9 @@ function main(networkEndpointGroup, project, region) { // [START compute_v1_generated_RegionNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/region_network_endpoint_groups.insert.js b/samples/generated/v1/region_network_endpoint_groups.insert.js index c0a82573..eba76747 100644 --- a/samples/generated/v1/region_network_endpoint_groups.insert.js +++ b/samples/generated/v1/region_network_endpoint_groups.insert.js @@ -23,6 +23,9 @@ function main(networkEndpointGroupResource, project, region) { // [START compute_v1_generated_RegionNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/region_network_endpoint_groups.list.js b/samples/generated/v1/region_network_endpoint_groups.list.js index a39e9129..59de964c 100644 --- a/samples/generated/v1/region_network_endpoint_groups.list.js +++ b/samples/generated/v1/region_network_endpoint_groups.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionNetworkEndpointGroups_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.add_association.js b/samples/generated/v1/region_network_firewall_policies.add_association.js index c948c388..854429e3 100644 --- a/samples/generated/v1/region_network_firewall_policies.add_association.js +++ b/samples/generated/v1/region_network_firewall_policies.add_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.add_rule.js b/samples/generated/v1/region_network_firewall_policies.add_rule.js index 7a7432c9..f4eae4cc 100644 --- a/samples/generated/v1/region_network_firewall_policies.add_rule.js +++ b/samples/generated/v1/region_network_firewall_policies.add_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.clone_rules.js b/samples/generated/v1/region_network_firewall_policies.clone_rules.js index 7d1987df..bb2d055a 100644 --- a/samples/generated/v1/region_network_firewall_policies.clone_rules.js +++ b/samples/generated/v1/region_network_firewall_policies.clone_rules.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.delete.js b/samples/generated/v1/region_network_firewall_policies.delete.js index 8a9ee4d2..472db7dc 100644 --- a/samples/generated/v1/region_network_firewall_policies.delete.js +++ b/samples/generated/v1/region_network_firewall_policies.delete.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.get.js b/samples/generated/v1/region_network_firewall_policies.get.js index 6692c283..e9b5783d 100644 --- a/samples/generated/v1/region_network_firewall_policies.get.js +++ b/samples/generated/v1/region_network_firewall_policies.get.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.get_association.js b/samples/generated/v1/region_network_firewall_policies.get_association.js index e82c0c6b..7d36d156 100644 --- a/samples/generated/v1/region_network_firewall_policies.get_association.js +++ b/samples/generated/v1/region_network_firewall_policies.get_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.get_effective_firewalls.js b/samples/generated/v1/region_network_firewall_policies.get_effective_firewalls.js index 44c59779..7021e676 100644 --- a/samples/generated/v1/region_network_firewall_policies.get_effective_firewalls.js +++ b/samples/generated/v1/region_network_firewall_policies.get_effective_firewalls.js @@ -23,6 +23,9 @@ function main(network, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.get_iam_policy.js b/samples/generated/v1/region_network_firewall_policies.get_iam_policy.js index 2edcffa6..1554dd98 100644 --- a/samples/generated/v1/region_network_firewall_policies.get_iam_policy.js +++ b/samples/generated/v1/region_network_firewall_policies.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.get_rule.js b/samples/generated/v1/region_network_firewall_policies.get_rule.js index a9172d67..cacc4e21 100644 --- a/samples/generated/v1/region_network_firewall_policies.get_rule.js +++ b/samples/generated/v1/region_network_firewall_policies.get_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.insert.js b/samples/generated/v1/region_network_firewall_policies.insert.js index dff4ba07..12a193e4 100644 --- a/samples/generated/v1/region_network_firewall_policies.insert.js +++ b/samples/generated/v1/region_network_firewall_policies.insert.js @@ -23,6 +23,9 @@ function main(firewallPolicyResource, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.list.js b/samples/generated/v1/region_network_firewall_policies.list.js index 1f78e403..73499aa2 100644 --- a/samples/generated/v1/region_network_firewall_policies.list.js +++ b/samples/generated/v1/region_network_firewall_policies.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.patch.js b/samples/generated/v1/region_network_firewall_policies.patch.js index 8cee248d..3627daa7 100644 --- a/samples/generated/v1/region_network_firewall_policies.patch.js +++ b/samples/generated/v1/region_network_firewall_policies.patch.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyResource, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.patch_rule.js b/samples/generated/v1/region_network_firewall_policies.patch_rule.js index 0a21e7cf..a7dba92d 100644 --- a/samples/generated/v1/region_network_firewall_policies.patch_rule.js +++ b/samples/generated/v1/region_network_firewall_policies.patch_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, firewallPolicyRuleResource, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.remove_association.js b/samples/generated/v1/region_network_firewall_policies.remove_association.js index c9642237..e94ce5e1 100644 --- a/samples/generated/v1/region_network_firewall_policies.remove_association.js +++ b/samples/generated/v1/region_network_firewall_policies.remove_association.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.remove_rule.js b/samples/generated/v1/region_network_firewall_policies.remove_rule.js index f87ca5f4..4c47e04a 100644 --- a/samples/generated/v1/region_network_firewall_policies.remove_rule.js +++ b/samples/generated/v1/region_network_firewall_policies.remove_rule.js @@ -23,6 +23,9 @@ function main(firewallPolicy, project, region) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.set_iam_policy.js b/samples/generated/v1/region_network_firewall_policies.set_iam_policy.js index a3ba3b3c..e796f39e 100644 --- a/samples/generated/v1/region_network_firewall_policies.set_iam_policy.js +++ b/samples/generated/v1/region_network_firewall_policies.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_network_firewall_policies.test_iam_permissions.js b/samples/generated/v1/region_network_firewall_policies.test_iam_permissions.js index 9e2c9b68..ae707416 100644 --- a/samples/generated/v1/region_network_firewall_policies.test_iam_permissions.js +++ b/samples/generated/v1/region_network_firewall_policies.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_RegionNetworkFirewallPolicies_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. */ /** diff --git a/samples/generated/v1/region_notification_endpoints.delete.js b/samples/generated/v1/region_notification_endpoints.delete.js index 0226b29b..1e76d2f8 100644 --- a/samples/generated/v1/region_notification_endpoints.delete.js +++ b/samples/generated/v1/region_notification_endpoints.delete.js @@ -23,6 +23,9 @@ function main(notificationEndpoint, project, region) { // [START compute_v1_generated_RegionNotificationEndpoints_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. */ /** diff --git a/samples/generated/v1/region_notification_endpoints.get.js b/samples/generated/v1/region_notification_endpoints.get.js index ef604901..f4f14732 100644 --- a/samples/generated/v1/region_notification_endpoints.get.js +++ b/samples/generated/v1/region_notification_endpoints.get.js @@ -23,6 +23,9 @@ function main(notificationEndpoint, project, region) { // [START compute_v1_generated_RegionNotificationEndpoints_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. */ /** diff --git a/samples/generated/v1/region_notification_endpoints.insert.js b/samples/generated/v1/region_notification_endpoints.insert.js index 898723c7..248410d7 100644 --- a/samples/generated/v1/region_notification_endpoints.insert.js +++ b/samples/generated/v1/region_notification_endpoints.insert.js @@ -23,6 +23,9 @@ function main(notificationEndpointResource, project, region) { // [START compute_v1_generated_RegionNotificationEndpoints_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. */ /** diff --git a/samples/generated/v1/region_notification_endpoints.list.js b/samples/generated/v1/region_notification_endpoints.list.js index 8ca17b64..c909d02c 100644 --- a/samples/generated/v1/region_notification_endpoints.list.js +++ b/samples/generated/v1/region_notification_endpoints.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionNotificationEndpoints_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. */ /** diff --git a/samples/generated/v1/region_operations.delete.js b/samples/generated/v1/region_operations.delete.js index a782ef05..c92be91e 100644 --- a/samples/generated/v1/region_operations.delete.js +++ b/samples/generated/v1/region_operations.delete.js @@ -23,6 +23,9 @@ function main(operation, project, region) { // [START compute_v1_generated_RegionOperations_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. */ /** diff --git a/samples/generated/v1/region_operations.get.js b/samples/generated/v1/region_operations.get.js index 8157d193..f42f6c47 100644 --- a/samples/generated/v1/region_operations.get.js +++ b/samples/generated/v1/region_operations.get.js @@ -23,6 +23,9 @@ function main(operation, project, region) { // [START compute_v1_generated_RegionOperations_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. */ /** diff --git a/samples/generated/v1/region_operations.list.js b/samples/generated/v1/region_operations.list.js index db3caa97..b4010c61 100644 --- a/samples/generated/v1/region_operations.list.js +++ b/samples/generated/v1/region_operations.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionOperations_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. */ /** diff --git a/samples/generated/v1/region_operations.wait.js b/samples/generated/v1/region_operations.wait.js index 018bfe46..3c5c4710 100644 --- a/samples/generated/v1/region_operations.wait.js +++ b/samples/generated/v1/region_operations.wait.js @@ -23,6 +23,9 @@ function main(operation, project, region) { // [START compute_v1_generated_RegionOperations_Wait_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. */ /** diff --git a/samples/generated/v1/region_security_policies.delete.js b/samples/generated/v1/region_security_policies.delete.js index c37c250d..820880fc 100644 --- a/samples/generated/v1/region_security_policies.delete.js +++ b/samples/generated/v1/region_security_policies.delete.js @@ -23,6 +23,9 @@ function main(project, region, securityPolicy) { // [START compute_v1_generated_RegionSecurityPolicies_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. */ /** diff --git a/samples/generated/v1/region_security_policies.get.js b/samples/generated/v1/region_security_policies.get.js index 2375f023..b420df20 100644 --- a/samples/generated/v1/region_security_policies.get.js +++ b/samples/generated/v1/region_security_policies.get.js @@ -23,6 +23,9 @@ function main(project, region, securityPolicy) { // [START compute_v1_generated_RegionSecurityPolicies_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. */ /** diff --git a/samples/generated/v1/region_security_policies.insert.js b/samples/generated/v1/region_security_policies.insert.js index 11da88d7..92bbf8e5 100644 --- a/samples/generated/v1/region_security_policies.insert.js +++ b/samples/generated/v1/region_security_policies.insert.js @@ -23,6 +23,9 @@ function main(project, region, securityPolicyResource) { // [START compute_v1_generated_RegionSecurityPolicies_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. */ /** diff --git a/samples/generated/v1/region_security_policies.list.js b/samples/generated/v1/region_security_policies.list.js index dbba442f..a8cc061e 100644 --- a/samples/generated/v1/region_security_policies.list.js +++ b/samples/generated/v1/region_security_policies.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionSecurityPolicies_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. */ /** diff --git a/samples/generated/v1/region_security_policies.patch.js b/samples/generated/v1/region_security_policies.patch.js index 0819f42f..8fb47083 100644 --- a/samples/generated/v1/region_security_policies.patch.js +++ b/samples/generated/v1/region_security_policies.patch.js @@ -23,6 +23,9 @@ function main(project, region, securityPolicy, securityPolicyResource) { // [START compute_v1_generated_RegionSecurityPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_ssl_certificates.delete.js b/samples/generated/v1/region_ssl_certificates.delete.js index be669800..1f8f75c7 100644 --- a/samples/generated/v1/region_ssl_certificates.delete.js +++ b/samples/generated/v1/region_ssl_certificates.delete.js @@ -23,6 +23,9 @@ function main(project, region, sslCertificate) { // [START compute_v1_generated_RegionSslCertificates_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. */ /** diff --git a/samples/generated/v1/region_ssl_certificates.get.js b/samples/generated/v1/region_ssl_certificates.get.js index 65401df4..2153da94 100644 --- a/samples/generated/v1/region_ssl_certificates.get.js +++ b/samples/generated/v1/region_ssl_certificates.get.js @@ -23,6 +23,9 @@ function main(project, region, sslCertificate) { // [START compute_v1_generated_RegionSslCertificates_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. */ /** diff --git a/samples/generated/v1/region_ssl_certificates.insert.js b/samples/generated/v1/region_ssl_certificates.insert.js index ecde1eed..1c86ca86 100644 --- a/samples/generated/v1/region_ssl_certificates.insert.js +++ b/samples/generated/v1/region_ssl_certificates.insert.js @@ -23,6 +23,9 @@ function main(project, region, sslCertificateResource) { // [START compute_v1_generated_RegionSslCertificates_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. */ /** diff --git a/samples/generated/v1/region_ssl_certificates.list.js b/samples/generated/v1/region_ssl_certificates.list.js index 250fcedb..65075a54 100644 --- a/samples/generated/v1/region_ssl_certificates.list.js +++ b/samples/generated/v1/region_ssl_certificates.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionSslCertificates_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. */ /** diff --git a/samples/generated/v1/region_target_http_proxies.delete.js b/samples/generated/v1/region_target_http_proxies.delete.js index 6f1782f4..f4218588 100644 --- a/samples/generated/v1/region_target_http_proxies.delete.js +++ b/samples/generated/v1/region_target_http_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpProxy) { // [START compute_v1_generated_RegionTargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/region_target_http_proxies.get.js b/samples/generated/v1/region_target_http_proxies.get.js index 26e518e5..beeb4534 100644 --- a/samples/generated/v1/region_target_http_proxies.get.js +++ b/samples/generated/v1/region_target_http_proxies.get.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpProxy) { // [START compute_v1_generated_RegionTargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/region_target_http_proxies.insert.js b/samples/generated/v1/region_target_http_proxies.insert.js index e7b595be..67c15d77 100644 --- a/samples/generated/v1/region_target_http_proxies.insert.js +++ b/samples/generated/v1/region_target_http_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpProxyResource) { // [START compute_v1_generated_RegionTargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/region_target_http_proxies.list.js b/samples/generated/v1/region_target_http_proxies.list.js index 84666d3a..edb67fc9 100644 --- a/samples/generated/v1/region_target_http_proxies.list.js +++ b/samples/generated/v1/region_target_http_proxies.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionTargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/region_target_http_proxies.set_url_map.js b/samples/generated/v1/region_target_http_proxies.set_url_map.js index 0560322f..e76483cf 100644 --- a/samples/generated/v1/region_target_http_proxies.set_url_map.js +++ b/samples/generated/v1/region_target_http_proxies.set_url_map.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpProxy, urlMapReferenceResource) { // [START compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.delete.js b/samples/generated/v1/region_target_https_proxies.delete.js index cbc6c75c..910c6d2d 100644 --- a/samples/generated/v1/region_target_https_proxies.delete.js +++ b/samples/generated/v1/region_target_https_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpsProxy) { // [START compute_v1_generated_RegionTargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.get.js b/samples/generated/v1/region_target_https_proxies.get.js index 1525ba71..a65ec157 100644 --- a/samples/generated/v1/region_target_https_proxies.get.js +++ b/samples/generated/v1/region_target_https_proxies.get.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpsProxy) { // [START compute_v1_generated_RegionTargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.insert.js b/samples/generated/v1/region_target_https_proxies.insert.js index 92e90ccd..71d0400d 100644 --- a/samples/generated/v1/region_target_https_proxies.insert.js +++ b/samples/generated/v1/region_target_https_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpsProxyResource) { // [START compute_v1_generated_RegionTargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.list.js b/samples/generated/v1/region_target_https_proxies.list.js index 89ad6ef4..8c7aebe3 100644 --- a/samples/generated/v1/region_target_https_proxies.list.js +++ b/samples/generated/v1/region_target_https_proxies.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionTargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.patch.js b/samples/generated/v1/region_target_https_proxies.patch.js index c07358f9..c38cdd88 100644 --- a/samples/generated/v1/region_target_https_proxies.patch.js +++ b/samples/generated/v1/region_target_https_proxies.patch.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpsProxy, targetHttpsProxyResource) { // [START compute_v1_generated_RegionTargetHttpsProxies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js b/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js index fe7f615c..d2221681 100644 --- a/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js +++ b/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js @@ -23,6 +23,9 @@ function main(project, region, regionTargetHttpsProxiesSetSslCertificatesRequestResource, targetHttpsProxy) { // [START compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_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. */ /** diff --git a/samples/generated/v1/region_target_https_proxies.set_url_map.js b/samples/generated/v1/region_target_https_proxies.set_url_map.js index 3177c5e9..6b0f7c8f 100644 --- a/samples/generated/v1/region_target_https_proxies.set_url_map.js +++ b/samples/generated/v1/region_target_https_proxies.set_url_map.js @@ -23,6 +23,9 @@ function main(project, region, targetHttpsProxy, urlMapReferenceResource) { // [START compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_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. */ /** diff --git a/samples/generated/v1/region_url_maps.delete.js b/samples/generated/v1/region_url_maps.delete.js index 96f3fd96..11b69a62 100644 --- a/samples/generated/v1/region_url_maps.delete.js +++ b/samples/generated/v1/region_url_maps.delete.js @@ -23,6 +23,9 @@ function main(project, region, urlMap) { // [START compute_v1_generated_RegionUrlMaps_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. */ /** diff --git a/samples/generated/v1/region_url_maps.get.js b/samples/generated/v1/region_url_maps.get.js index cae8a93f..4af90dc7 100644 --- a/samples/generated/v1/region_url_maps.get.js +++ b/samples/generated/v1/region_url_maps.get.js @@ -23,6 +23,9 @@ function main(project, region, urlMap) { // [START compute_v1_generated_RegionUrlMaps_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. */ /** diff --git a/samples/generated/v1/region_url_maps.insert.js b/samples/generated/v1/region_url_maps.insert.js index 4b6d0f68..13ee264c 100644 --- a/samples/generated/v1/region_url_maps.insert.js +++ b/samples/generated/v1/region_url_maps.insert.js @@ -23,6 +23,9 @@ function main(project, region, urlMapResource) { // [START compute_v1_generated_RegionUrlMaps_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. */ /** diff --git a/samples/generated/v1/region_url_maps.list.js b/samples/generated/v1/region_url_maps.list.js index 39e91cdd..cbe45662 100644 --- a/samples/generated/v1/region_url_maps.list.js +++ b/samples/generated/v1/region_url_maps.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_RegionUrlMaps_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. */ /** diff --git a/samples/generated/v1/region_url_maps.patch.js b/samples/generated/v1/region_url_maps.patch.js index c59a2f33..85b3ad4d 100644 --- a/samples/generated/v1/region_url_maps.patch.js +++ b/samples/generated/v1/region_url_maps.patch.js @@ -23,6 +23,9 @@ function main(project, region, urlMap, urlMapResource) { // [START compute_v1_generated_RegionUrlMaps_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_url_maps.update.js b/samples/generated/v1/region_url_maps.update.js index 17efe28e..73ccf774 100644 --- a/samples/generated/v1/region_url_maps.update.js +++ b/samples/generated/v1/region_url_maps.update.js @@ -23,6 +23,9 @@ function main(project, region, urlMap, urlMapResource) { // [START compute_v1_generated_RegionUrlMaps_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/region_url_maps.validate.js b/samples/generated/v1/region_url_maps.validate.js index 76f207aa..501e50e1 100644 --- a/samples/generated/v1/region_url_maps.validate.js +++ b/samples/generated/v1/region_url_maps.validate.js @@ -23,6 +23,9 @@ function main(project, region, regionUrlMapsValidateRequestResource, urlMap) { // [START compute_v1_generated_RegionUrlMaps_Validate_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. */ /** diff --git a/samples/generated/v1/regions.get.js b/samples/generated/v1/regions.get.js index c88ccbfb..1ca8d2eb 100644 --- a/samples/generated/v1/regions.get.js +++ b/samples/generated/v1/regions.get.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_Regions_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. */ /** diff --git a/samples/generated/v1/regions.list.js b/samples/generated/v1/regions.list.js index 073d3f8e..e0b16f25 100644 --- a/samples/generated/v1/regions.list.js +++ b/samples/generated/v1/regions.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Regions_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. */ /** diff --git a/samples/generated/v1/reservations.aggregated_list.js b/samples/generated/v1/reservations.aggregated_list.js index 4c1cf3db..df206e21 100644 --- a/samples/generated/v1/reservations.aggregated_list.js +++ b/samples/generated/v1/reservations.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.delete.js b/samples/generated/v1/reservations.delete.js index 185c36b1..77af8111 100644 --- a/samples/generated/v1/reservations.delete.js +++ b/samples/generated/v1/reservations.delete.js @@ -23,6 +23,9 @@ function main(project, reservation, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.get.js b/samples/generated/v1/reservations.get.js index 936812c7..f69f009a 100644 --- a/samples/generated/v1/reservations.get.js +++ b/samples/generated/v1/reservations.get.js @@ -23,6 +23,9 @@ function main(project, reservation, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.get_iam_policy.js b/samples/generated/v1/reservations.get_iam_policy.js index 28e17efe..974d6c24 100644 --- a/samples/generated/v1/reservations.get_iam_policy.js +++ b/samples/generated/v1/reservations.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.insert.js b/samples/generated/v1/reservations.insert.js index 103a94d4..383f7eb0 100644 --- a/samples/generated/v1/reservations.insert.js +++ b/samples/generated/v1/reservations.insert.js @@ -23,6 +23,9 @@ function main(project, reservationResource, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.list.js b/samples/generated/v1/reservations.list.js index fb477a7a..ddc3c12d 100644 --- a/samples/generated/v1/reservations.list.js +++ b/samples/generated/v1/reservations.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.resize.js b/samples/generated/v1/reservations.resize.js index 66200837..121a65bc 100644 --- a/samples/generated/v1/reservations.resize.js +++ b/samples/generated/v1/reservations.resize.js @@ -23,6 +23,9 @@ function main(project, reservation, reservationsResizeRequestResource, zone) { // [START compute_v1_generated_Reservations_Resize_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. */ /** diff --git a/samples/generated/v1/reservations.set_iam_policy.js b/samples/generated/v1/reservations.set_iam_policy.js index f1065dbd..3ba0ba57 100644 --- a/samples/generated/v1/reservations.set_iam_policy.js +++ b/samples/generated/v1/reservations.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource, zone, zoneSetPolicyRequestResource) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.test_iam_permissions.js b/samples/generated/v1/reservations.test_iam_permissions.js index a8c27115..45cdfec5 100644 --- a/samples/generated/v1/reservations.test_iam_permissions.js +++ b/samples/generated/v1/reservations.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource, zone) { // [START compute_v1_generated_Reservations_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. */ /** diff --git a/samples/generated/v1/reservations.update.js b/samples/generated/v1/reservations.update.js index 8a1c8132..03c7a910 100644 --- a/samples/generated/v1/reservations.update.js +++ b/samples/generated/v1/reservations.update.js @@ -23,6 +23,9 @@ function main(project, reservation, reservationResource, zone) { // [START compute_v1_generated_Reservations_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/resource_policies.aggregated_list.js b/samples/generated/v1/resource_policies.aggregated_list.js index 7eb5a54e..46b01a04 100644 --- a/samples/generated/v1/resource_policies.aggregated_list.js +++ b/samples/generated/v1/resource_policies.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.delete.js b/samples/generated/v1/resource_policies.delete.js index 0b640e71..ea0253d8 100644 --- a/samples/generated/v1/resource_policies.delete.js +++ b/samples/generated/v1/resource_policies.delete.js @@ -23,6 +23,9 @@ function main(project, region, resourcePolicy) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.get.js b/samples/generated/v1/resource_policies.get.js index 154a5da1..4cbb3cc9 100644 --- a/samples/generated/v1/resource_policies.get.js +++ b/samples/generated/v1/resource_policies.get.js @@ -23,6 +23,9 @@ function main(project, region, resourcePolicy) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.get_iam_policy.js b/samples/generated/v1/resource_policies.get_iam_policy.js index 50a19faf..5d35c2ee 100644 --- a/samples/generated/v1/resource_policies.get_iam_policy.js +++ b/samples/generated/v1/resource_policies.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.insert.js b/samples/generated/v1/resource_policies.insert.js index 6fece804..a7108c1c 100644 --- a/samples/generated/v1/resource_policies.insert.js +++ b/samples/generated/v1/resource_policies.insert.js @@ -23,6 +23,9 @@ function main(project, region, resourcePolicyResource) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.list.js b/samples/generated/v1/resource_policies.list.js index 263c678f..9701632f 100644 --- a/samples/generated/v1/resource_policies.list.js +++ b/samples/generated/v1/resource_policies.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.set_iam_policy.js b/samples/generated/v1/resource_policies.set_iam_policy.js index 04a053a2..d9d2267d 100644 --- a/samples/generated/v1/resource_policies.set_iam_policy.js +++ b/samples/generated/v1/resource_policies.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/resource_policies.test_iam_permissions.js b/samples/generated/v1/resource_policies.test_iam_permissions.js index 3dfb9b97..f8f8c761 100644 --- a/samples/generated/v1/resource_policies.test_iam_permissions.js +++ b/samples/generated/v1/resource_policies.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_ResourcePolicies_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. */ /** diff --git a/samples/generated/v1/routers.aggregated_list.js b/samples/generated/v1/routers.aggregated_list.js index 0ce72f1b..e40a34bc 100644 --- a/samples/generated/v1/routers.aggregated_list.js +++ b/samples/generated/v1/routers.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Routers_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. */ /** diff --git a/samples/generated/v1/routers.delete.js b/samples/generated/v1/routers.delete.js index 099bcc57..586f2f78 100644 --- a/samples/generated/v1/routers.delete.js +++ b/samples/generated/v1/routers.delete.js @@ -23,6 +23,9 @@ function main(project, region, router) { // [START compute_v1_generated_Routers_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. */ /** diff --git a/samples/generated/v1/routers.get.js b/samples/generated/v1/routers.get.js index 4985c7c4..45e81845 100644 --- a/samples/generated/v1/routers.get.js +++ b/samples/generated/v1/routers.get.js @@ -23,6 +23,9 @@ function main(project, region, router) { // [START compute_v1_generated_Routers_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. */ /** diff --git a/samples/generated/v1/routers.get_nat_mapping_info.js b/samples/generated/v1/routers.get_nat_mapping_info.js index 60e0b72a..4af703d3 100644 --- a/samples/generated/v1/routers.get_nat_mapping_info.js +++ b/samples/generated/v1/routers.get_nat_mapping_info.js @@ -23,6 +23,9 @@ function main(project, region, router) { // [START compute_v1_generated_Routers_GetNatMappingInfo_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. */ /** diff --git a/samples/generated/v1/routers.get_router_status.js b/samples/generated/v1/routers.get_router_status.js index 1d2b8d28..b5f5d104 100644 --- a/samples/generated/v1/routers.get_router_status.js +++ b/samples/generated/v1/routers.get_router_status.js @@ -23,6 +23,9 @@ function main(project, region, router) { // [START compute_v1_generated_Routers_GetRouterStatus_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. */ /** diff --git a/samples/generated/v1/routers.insert.js b/samples/generated/v1/routers.insert.js index db9d9e46..755e4e51 100644 --- a/samples/generated/v1/routers.insert.js +++ b/samples/generated/v1/routers.insert.js @@ -23,6 +23,9 @@ function main(project, region, routerResource) { // [START compute_v1_generated_Routers_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. */ /** diff --git a/samples/generated/v1/routers.list.js b/samples/generated/v1/routers.list.js index a61192c4..26b4b541 100644 --- a/samples/generated/v1/routers.list.js +++ b/samples/generated/v1/routers.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_Routers_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. */ /** diff --git a/samples/generated/v1/routers.patch.js b/samples/generated/v1/routers.patch.js index 5012ed5b..ee7ec905 100644 --- a/samples/generated/v1/routers.patch.js +++ b/samples/generated/v1/routers.patch.js @@ -23,6 +23,9 @@ function main(project, region, router, routerResource) { // [START compute_v1_generated_Routers_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/routers.preview.js b/samples/generated/v1/routers.preview.js index 5e24f881..efe8b44c 100644 --- a/samples/generated/v1/routers.preview.js +++ b/samples/generated/v1/routers.preview.js @@ -23,6 +23,9 @@ function main(project, region, router, routerResource) { // [START compute_v1_generated_Routers_Preview_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. */ /** diff --git a/samples/generated/v1/routers.update.js b/samples/generated/v1/routers.update.js index b6a5f389..3289349f 100644 --- a/samples/generated/v1/routers.update.js +++ b/samples/generated/v1/routers.update.js @@ -23,6 +23,9 @@ function main(project, region, router, routerResource) { // [START compute_v1_generated_Routers_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/routes.delete.js b/samples/generated/v1/routes.delete.js index ad4a7b9d..198323a7 100644 --- a/samples/generated/v1/routes.delete.js +++ b/samples/generated/v1/routes.delete.js @@ -23,6 +23,9 @@ function main(project, route) { // [START compute_v1_generated_Routes_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. */ /** diff --git a/samples/generated/v1/routes.get.js b/samples/generated/v1/routes.get.js index 478e6c6b..90e6ce02 100644 --- a/samples/generated/v1/routes.get.js +++ b/samples/generated/v1/routes.get.js @@ -23,6 +23,9 @@ function main(project, route) { // [START compute_v1_generated_Routes_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. */ /** diff --git a/samples/generated/v1/routes.insert.js b/samples/generated/v1/routes.insert.js index c079e1fd..80c64969 100644 --- a/samples/generated/v1/routes.insert.js +++ b/samples/generated/v1/routes.insert.js @@ -23,6 +23,9 @@ function main(project, routeResource) { // [START compute_v1_generated_Routes_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. */ /** diff --git a/samples/generated/v1/routes.list.js b/samples/generated/v1/routes.list.js index 4300079f..72fc772d 100644 --- a/samples/generated/v1/routes.list.js +++ b/samples/generated/v1/routes.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Routes_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. */ /** diff --git a/samples/generated/v1/security_policies.add_rule.js b/samples/generated/v1/security_policies.add_rule.js index 1affd951..39d2770b 100644 --- a/samples/generated/v1/security_policies.add_rule.js +++ b/samples/generated/v1/security_policies.add_rule.js @@ -23,6 +23,9 @@ function main(project, securityPolicy, securityPolicyRuleResource) { // [START compute_v1_generated_SecurityPolicies_AddRule_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. */ /** diff --git a/samples/generated/v1/security_policies.aggregated_list.js b/samples/generated/v1/security_policies.aggregated_list.js index 74577a89..68ec3f6a 100644 --- a/samples/generated/v1/security_policies.aggregated_list.js +++ b/samples/generated/v1/security_policies.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SecurityPolicies_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. */ /** diff --git a/samples/generated/v1/security_policies.delete.js b/samples/generated/v1/security_policies.delete.js index a743c2d9..459731a4 100644 --- a/samples/generated/v1/security_policies.delete.js +++ b/samples/generated/v1/security_policies.delete.js @@ -23,6 +23,9 @@ function main(project, securityPolicy) { // [START compute_v1_generated_SecurityPolicies_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. */ /** diff --git a/samples/generated/v1/security_policies.get.js b/samples/generated/v1/security_policies.get.js index b76a8dfa..5d222fb0 100644 --- a/samples/generated/v1/security_policies.get.js +++ b/samples/generated/v1/security_policies.get.js @@ -23,6 +23,9 @@ function main(project, securityPolicy) { // [START compute_v1_generated_SecurityPolicies_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. */ /** diff --git a/samples/generated/v1/security_policies.get_rule.js b/samples/generated/v1/security_policies.get_rule.js index 336aadfb..7411f124 100644 --- a/samples/generated/v1/security_policies.get_rule.js +++ b/samples/generated/v1/security_policies.get_rule.js @@ -23,6 +23,9 @@ function main(project, securityPolicy) { // [START compute_v1_generated_SecurityPolicies_GetRule_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. */ /** diff --git a/samples/generated/v1/security_policies.insert.js b/samples/generated/v1/security_policies.insert.js index f3c8dcc8..410ac591 100644 --- a/samples/generated/v1/security_policies.insert.js +++ b/samples/generated/v1/security_policies.insert.js @@ -23,6 +23,9 @@ function main(project, securityPolicyResource) { // [START compute_v1_generated_SecurityPolicies_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. */ /** diff --git a/samples/generated/v1/security_policies.list.js b/samples/generated/v1/security_policies.list.js index e0bb9a94..843a9f8a 100644 --- a/samples/generated/v1/security_policies.list.js +++ b/samples/generated/v1/security_policies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SecurityPolicies_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. */ /** diff --git a/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js b/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js index 3f07e5f3..cd4f5b1d 100644 --- a/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js +++ b/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_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. */ /** diff --git a/samples/generated/v1/security_policies.patch.js b/samples/generated/v1/security_policies.patch.js index 7b7b290b..5098cb54 100644 --- a/samples/generated/v1/security_policies.patch.js +++ b/samples/generated/v1/security_policies.patch.js @@ -23,6 +23,9 @@ function main(project, securityPolicy, securityPolicyResource) { // [START compute_v1_generated_SecurityPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/security_policies.patch_rule.js b/samples/generated/v1/security_policies.patch_rule.js index a988d790..fb16f345 100644 --- a/samples/generated/v1/security_policies.patch_rule.js +++ b/samples/generated/v1/security_policies.patch_rule.js @@ -23,6 +23,9 @@ function main(project, securityPolicy, securityPolicyRuleResource) { // [START compute_v1_generated_SecurityPolicies_PatchRule_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. */ /** diff --git a/samples/generated/v1/security_policies.remove_rule.js b/samples/generated/v1/security_policies.remove_rule.js index 7c26a857..1b511a2b 100644 --- a/samples/generated/v1/security_policies.remove_rule.js +++ b/samples/generated/v1/security_policies.remove_rule.js @@ -23,6 +23,9 @@ function main(project, securityPolicy) { // [START compute_v1_generated_SecurityPolicies_RemoveRule_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. */ /** diff --git a/samples/generated/v1/service_attachments.aggregated_list.js b/samples/generated/v1/service_attachments.aggregated_list.js index 8e5747ed..5114706c 100644 --- a/samples/generated/v1/service_attachments.aggregated_list.js +++ b/samples/generated/v1/service_attachments.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.delete.js b/samples/generated/v1/service_attachments.delete.js index 0f0da4cd..28fff602 100644 --- a/samples/generated/v1/service_attachments.delete.js +++ b/samples/generated/v1/service_attachments.delete.js @@ -23,6 +23,9 @@ function main(project, region, serviceAttachment) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.get.js b/samples/generated/v1/service_attachments.get.js index 7b66b047..e89fd1b5 100644 --- a/samples/generated/v1/service_attachments.get.js +++ b/samples/generated/v1/service_attachments.get.js @@ -23,6 +23,9 @@ function main(project, region, serviceAttachment) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.get_iam_policy.js b/samples/generated/v1/service_attachments.get_iam_policy.js index 3d4ee89c..bdbd2ba6 100644 --- a/samples/generated/v1/service_attachments.get_iam_policy.js +++ b/samples/generated/v1/service_attachments.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.insert.js b/samples/generated/v1/service_attachments.insert.js index a2f7fdc8..7056e169 100644 --- a/samples/generated/v1/service_attachments.insert.js +++ b/samples/generated/v1/service_attachments.insert.js @@ -23,6 +23,9 @@ function main(project, region, serviceAttachmentResource) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.list.js b/samples/generated/v1/service_attachments.list.js index 542d9fad..a248908a 100644 --- a/samples/generated/v1/service_attachments.list.js +++ b/samples/generated/v1/service_attachments.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.patch.js b/samples/generated/v1/service_attachments.patch.js index e9806e04..c362ba01 100644 --- a/samples/generated/v1/service_attachments.patch.js +++ b/samples/generated/v1/service_attachments.patch.js @@ -23,6 +23,9 @@ function main(project, region, serviceAttachment, serviceAttachmentResource) { // [START compute_v1_generated_ServiceAttachments_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/service_attachments.set_iam_policy.js b/samples/generated/v1/service_attachments.set_iam_policy.js index 4ceb4ca7..1311dfc0 100644 --- a/samples/generated/v1/service_attachments.set_iam_policy.js +++ b/samples/generated/v1/service_attachments.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/service_attachments.test_iam_permissions.js b/samples/generated/v1/service_attachments.test_iam_permissions.js index c9e7234a..c26e37b2 100644 --- a/samples/generated/v1/service_attachments.test_iam_permissions.js +++ b/samples/generated/v1/service_attachments.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_ServiceAttachments_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. */ /** diff --git a/samples/generated/v1/snapshots.delete.js b/samples/generated/v1/snapshots.delete.js index 2df24d41..5aeb8964 100644 --- a/samples/generated/v1/snapshots.delete.js +++ b/samples/generated/v1/snapshots.delete.js @@ -23,6 +23,9 @@ function main(project, snapshot) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.get.js b/samples/generated/v1/snapshots.get.js index 8f44001a..3b011d98 100644 --- a/samples/generated/v1/snapshots.get.js +++ b/samples/generated/v1/snapshots.get.js @@ -23,6 +23,9 @@ function main(project, snapshot) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.get_iam_policy.js b/samples/generated/v1/snapshots.get_iam_policy.js index be564560..b01a5c0e 100644 --- a/samples/generated/v1/snapshots.get_iam_policy.js +++ b/samples/generated/v1/snapshots.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, resource) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.insert.js b/samples/generated/v1/snapshots.insert.js index 88a05aca..ce860658 100644 --- a/samples/generated/v1/snapshots.insert.js +++ b/samples/generated/v1/snapshots.insert.js @@ -23,6 +23,9 @@ function main(project, snapshotResource) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.list.js b/samples/generated/v1/snapshots.list.js index cfc78d37..258a7a83 100644 --- a/samples/generated/v1/snapshots.list.js +++ b/samples/generated/v1/snapshots.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.set_iam_policy.js b/samples/generated/v1/snapshots.set_iam_policy.js index caed2c08..29af0b01 100644 --- a/samples/generated/v1/snapshots.set_iam_policy.js +++ b/samples/generated/v1/snapshots.set_iam_policy.js @@ -23,6 +23,9 @@ function main(globalSetPolicyRequestResource, project, resource) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.set_labels.js b/samples/generated/v1/snapshots.set_labels.js index fd201080..50bc5de3 100644 --- a/samples/generated/v1/snapshots.set_labels.js +++ b/samples/generated/v1/snapshots.set_labels.js @@ -23,6 +23,9 @@ function main(globalSetLabelsRequestResource, project, resource) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snapshots.test_iam_permissions.js b/samples/generated/v1/snapshots.test_iam_permissions.js index 8546e01b..bdbd2e82 100644 --- a/samples/generated/v1/snapshots.test_iam_permissions.js +++ b/samples/generated/v1/snapshots.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, resource, testPermissionsRequestResource) { // [START compute_v1_generated_Snapshots_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. */ /** diff --git a/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json b/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json index 3e4a88d1..ccacf8a0 100644 --- a/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json +++ b/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -86,7 +86,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -134,7 +134,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -198,7 +198,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -262,7 +262,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -314,7 +314,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -362,7 +362,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -478,7 +478,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -542,7 +542,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -594,7 +594,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -642,7 +642,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -694,7 +694,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -758,7 +758,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -814,7 +814,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -870,7 +870,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -922,7 +922,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -970,7 +970,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1022,7 +1022,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1066,7 +1066,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1114,7 +1114,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -1174,7 +1174,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1226,7 +1226,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1278,7 +1278,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1330,7 +1330,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1382,7 +1382,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -1446,7 +1446,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1494,7 +1494,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1546,7 +1546,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1590,7 +1590,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1638,7 +1638,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1686,7 +1686,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -1746,7 +1746,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1798,7 +1798,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1850,7 +1850,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1902,7 +1902,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1954,7 +1954,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2010,7 +2010,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2074,7 +2074,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -2134,7 +2134,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -2186,7 +2186,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2234,7 +2234,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -2286,7 +2286,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -2342,7 +2342,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2406,7 +2406,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2462,7 +2462,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2518,7 +2518,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2570,7 +2570,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2626,7 +2626,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2678,7 +2678,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2742,7 +2742,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2790,7 +2790,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2854,7 +2854,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -2902,7 +2902,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2946,7 +2946,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -2994,7 +2994,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -3054,7 +3054,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -3102,7 +3102,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -3150,7 +3150,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -3202,7 +3202,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -3250,7 +3250,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3298,7 +3298,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -3342,7 +3342,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -3382,7 +3382,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -3426,7 +3426,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -3470,7 +3470,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -3514,7 +3514,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -3562,7 +3562,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -3622,7 +3622,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -3662,7 +3662,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -3710,7 +3710,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -3758,7 +3758,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -3810,7 +3810,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3858,7 +3858,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3906,7 +3906,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -3950,7 +3950,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -3994,7 +3994,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4042,7 +4042,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -4086,7 +4086,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4134,7 +4134,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -4194,7 +4194,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4246,7 +4246,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4298,7 +4298,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -4362,7 +4362,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4414,7 +4414,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -4462,7 +4462,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4514,7 +4514,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -4578,7 +4578,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4634,7 +4634,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4690,7 +4690,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4746,7 +4746,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4794,7 +4794,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -4838,7 +4838,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4886,7 +4886,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -4946,7 +4946,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4994,7 +4994,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -5038,7 +5038,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5086,7 +5086,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -5146,7 +5146,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -5198,7 +5198,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -5246,7 +5246,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -5298,7 +5298,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -5350,7 +5350,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5398,7 +5398,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -5450,7 +5450,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -5494,7 +5494,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5542,7 +5542,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -5602,7 +5602,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -5666,7 +5666,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -5730,7 +5730,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -5774,7 +5774,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -5818,7 +5818,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -5878,7 +5878,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -5922,7 +5922,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -5966,7 +5966,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -6010,7 +6010,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -6070,7 +6070,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6118,7 +6118,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -6162,7 +6162,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6210,7 +6210,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -6270,7 +6270,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6322,7 +6322,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -6386,7 +6386,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6434,7 +6434,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -6478,7 +6478,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6526,7 +6526,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -6586,7 +6586,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6638,7 +6638,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6690,7 +6690,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -6738,7 +6738,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6786,7 +6786,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6838,7 +6838,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -6882,7 +6882,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -6926,7 +6926,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -6974,7 +6974,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -7026,7 +7026,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -7086,7 +7086,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -7138,7 +7138,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7186,7 +7186,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7234,7 +7234,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7282,7 +7282,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -7338,7 +7338,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -7402,7 +7402,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -7454,7 +7454,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -7510,7 +7510,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -7562,7 +7562,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -7618,7 +7618,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -7670,7 +7670,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7718,7 +7718,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -7770,7 +7770,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -7834,7 +7834,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7895,14 +7895,14 @@ "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_async", "title": "AcceleratorTypes listManagedInstances Sample", "origin": "API_DEFINITION", - "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported.", + "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", "canonical": true, "file": "instance_group_managers.list_managed_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7970,7 +7970,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -8038,7 +8038,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8094,7 +8094,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8150,7 +8150,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8206,7 +8206,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8262,7 +8262,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8318,7 +8318,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8374,7 +8374,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8430,7 +8430,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8486,7 +8486,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -8550,7 +8550,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -8602,7 +8602,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -8650,7 +8650,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -8702,7 +8702,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -8766,7 +8766,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -8838,7 +8838,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8894,7 +8894,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -8950,7 +8950,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -9010,7 +9010,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -9066,7 +9066,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -9130,7 +9130,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -9183,14 +9183,14 @@ "regionTag": "compute_v1_generated_Instances_BulkInsert_async", "title": "AcceleratorTypes bulkInsert Sample", "origin": "API_DEFINITION", - "description": " Creates multiple instances. Count specifies the number of instances to create.", + "description": " Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.", "canonical": true, "file": "instances.bulk_insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -9242,7 +9242,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -9294,7 +9294,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -9354,7 +9354,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -9410,7 +9410,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -9458,7 +9458,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -9510,7 +9510,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -9566,7 +9566,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -9618,7 +9618,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -9666,7 +9666,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -9722,7 +9722,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -9770,7 +9770,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -9830,7 +9830,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -9894,7 +9894,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -9962,7 +9962,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10018,7 +10018,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -10070,7 +10070,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -10122,7 +10122,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -10170,7 +10170,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -10226,7 +10226,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -10286,7 +10286,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -10338,7 +10338,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10394,7 +10394,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10450,7 +10450,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10506,7 +10506,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10562,7 +10562,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10618,7 +10618,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10674,7 +10674,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10730,7 +10730,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10786,7 +10786,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10842,7 +10842,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -10890,7 +10890,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -10942,7 +10942,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -10998,7 +10998,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -11050,7 +11050,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -11102,7 +11102,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -11153,8 +11153,8 @@ "language": "JAVASCRIPT", "segments": [ { - "start": 43, - "end": 79, + "start": 46, + "end": 82, "type": "FULL" } ], @@ -11218,7 +11218,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -11278,7 +11278,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -11334,7 +11334,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -11394,7 +11394,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -11450,7 +11450,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -11498,7 +11498,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -11542,7 +11542,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -11590,7 +11590,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -11638,7 +11638,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -11698,7 +11698,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -11746,7 +11746,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -11794,7 +11794,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -11858,7 +11858,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -11910,7 +11910,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -11958,7 +11958,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -12014,7 +12014,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -12078,7 +12078,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -12134,7 +12134,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -12178,7 +12178,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -12238,7 +12238,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -12286,7 +12286,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -12330,7 +12330,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -12374,7 +12374,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -12422,7 +12422,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -12482,7 +12482,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -12534,7 +12534,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -12578,7 +12578,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -12626,7 +12626,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -12674,7 +12674,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -12718,7 +12718,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -12766,7 +12766,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -12814,7 +12814,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -12874,7 +12874,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -12922,7 +12922,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -12970,7 +12970,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -13018,7 +13018,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -13062,7 +13062,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -13110,7 +13110,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -13162,7 +13162,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -13222,7 +13222,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -13270,7 +13270,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -13318,7 +13318,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -13382,7 +13382,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -13430,7 +13430,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -13494,7 +13494,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -13558,7 +13558,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -13610,7 +13610,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -13658,7 +13658,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -13714,7 +13714,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -13778,7 +13778,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -13842,7 +13842,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -13898,7 +13898,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -13950,7 +13950,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -14006,7 +14006,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -14054,7 +14054,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -14106,7 +14106,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -14170,7 +14170,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -14242,7 +14242,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -14294,7 +14294,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -14350,7 +14350,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -14410,7 +14410,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -14462,7 +14462,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -14510,7 +14510,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -14554,7 +14554,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -14602,7 +14602,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -14650,7 +14650,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -14698,7 +14698,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -14746,7 +14746,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -14806,7 +14806,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -14858,7 +14858,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -14914,7 +14914,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -14966,7 +14966,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -15018,7 +15018,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -15066,7 +15066,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -15114,7 +15114,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -15166,7 +15166,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -15214,7 +15214,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -15258,7 +15258,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -15302,7 +15302,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -15350,7 +15350,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -15410,7 +15410,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 93, "type": "FULL" } ], @@ -15486,7 +15486,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -15538,7 +15538,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -15590,7 +15590,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -15638,7 +15638,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -15690,7 +15690,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -15746,7 +15746,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -15810,7 +15810,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -15862,7 +15862,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -15918,7 +15918,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -15966,7 +15966,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -16018,7 +16018,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -16074,7 +16074,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -16138,7 +16138,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -16206,7 +16206,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -16262,7 +16262,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -16314,7 +16314,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -16370,7 +16370,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -16422,7 +16422,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -16486,7 +16486,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -16538,7 +16538,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -16586,7 +16586,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -16638,7 +16638,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -16690,7 +16690,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -16754,7 +16754,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -16806,7 +16806,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -16858,7 +16858,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -16922,7 +16922,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -16970,7 +16970,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -17034,7 +17034,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -17098,7 +17098,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -17150,7 +17150,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -17198,7 +17198,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -17250,7 +17250,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -17314,7 +17314,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -17370,7 +17370,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -17422,7 +17422,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -17466,7 +17466,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -17514,7 +17514,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -17558,7 +17558,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -17606,7 +17606,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -17646,7 +17646,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -17686,7 +17686,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -17746,7 +17746,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -17810,7 +17810,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -17858,7 +17858,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -17906,7 +17906,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -17954,7 +17954,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -18002,7 +18002,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -18050,7 +18050,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -18098,7 +18098,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -18142,7 +18142,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -18190,7 +18190,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -18250,7 +18250,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -18302,7 +18302,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -18366,7 +18366,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -18418,7 +18418,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -18466,7 +18466,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -18518,7 +18518,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -18582,7 +18582,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -18638,7 +18638,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -18690,7 +18690,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -18738,7 +18738,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -18790,7 +18790,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -18854,7 +18854,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -18910,7 +18910,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -18966,7 +18966,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19018,7 +19018,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -19066,7 +19066,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19118,7 +19118,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19170,7 +19170,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -19234,7 +19234,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -19290,7 +19290,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -19346,7 +19346,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -19410,7 +19410,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -19458,7 +19458,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19510,7 +19510,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -19574,7 +19574,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -19638,7 +19638,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -19694,7 +19694,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -19750,7 +19750,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19802,7 +19802,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -19850,7 +19850,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -19902,7 +19902,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -19958,7 +19958,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -20022,7 +20022,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -20078,7 +20078,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -20134,7 +20134,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -20186,7 +20186,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -20242,7 +20242,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -20294,7 +20294,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -20342,7 +20342,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -20406,7 +20406,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -20458,7 +20458,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -20506,7 +20506,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -20558,7 +20558,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -20622,7 +20622,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -20678,7 +20678,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -20734,7 +20734,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -20786,7 +20786,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -20834,7 +20834,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -20886,7 +20886,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -20950,7 +20950,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21006,7 +21006,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21062,7 +21062,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -21114,7 +21114,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21170,7 +21170,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -21222,7 +21222,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21278,7 +21278,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -21330,7 +21330,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -21378,7 +21378,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -21430,7 +21430,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -21494,7 +21494,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -21555,14 +21555,14 @@ "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_async", "title": "AcceleratorTypes listManagedInstances Sample", "origin": "API_DEFINITION", - "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported.", + "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", "canonical": true, "file": "region_instance_group_managers.list_managed_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -21630,7 +21630,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -21698,7 +21698,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21754,7 +21754,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21810,7 +21810,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21866,7 +21866,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21922,7 +21922,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -21978,7 +21978,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -22034,7 +22034,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -22090,7 +22090,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -22138,7 +22138,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -22202,7 +22202,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -22274,7 +22274,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -22330,7 +22330,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -22382,7 +22382,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -22434,7 +22434,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -22482,7 +22482,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -22534,7 +22534,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -22598,7 +22598,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -22658,7 +22658,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -22722,7 +22722,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -22778,7 +22778,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -22830,7 +22830,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -22878,7 +22878,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -22930,7 +22930,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -22978,7 +22978,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -23030,7 +23030,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -23082,7 +23082,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -23134,7 +23134,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -23198,7 +23198,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -23254,7 +23254,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -23314,7 +23314,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -23370,7 +23370,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -23426,7 +23426,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -23478,7 +23478,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -23530,7 +23530,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -23582,7 +23582,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -23630,7 +23630,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -23682,7 +23682,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -23746,7 +23746,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -23794,7 +23794,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -23842,7 +23842,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -23906,7 +23906,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -23954,7 +23954,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -23998,7 +23998,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -24058,7 +24058,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24110,7 +24110,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -24158,7 +24158,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -24214,7 +24214,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -24278,7 +24278,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -24334,7 +24334,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24386,7 +24386,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -24434,7 +24434,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24486,7 +24486,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -24550,7 +24550,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24602,7 +24602,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -24650,7 +24650,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24702,7 +24702,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -24766,7 +24766,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -24822,7 +24822,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24874,7 +24874,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -24922,7 +24922,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -24974,7 +24974,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -25038,7 +25038,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25094,7 +25094,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25150,7 +25150,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25206,7 +25206,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -25258,7 +25258,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -25306,7 +25306,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -25358,7 +25358,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -25422,7 +25422,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25478,7 +25478,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25534,7 +25534,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -25586,7 +25586,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -25650,7 +25650,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -25702,7 +25702,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -25750,7 +25750,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -25802,7 +25802,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -25854,7 +25854,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -25918,7 +25918,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -25974,7 +25974,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -26026,7 +26026,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -26078,7 +26078,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -26142,7 +26142,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -26206,7 +26206,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -26258,7 +26258,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -26306,7 +26306,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -26358,7 +26358,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -26410,7 +26410,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -26474,7 +26474,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -26526,7 +26526,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -26578,7 +26578,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -26642,7 +26642,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -26694,7 +26694,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -26742,7 +26742,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -26810,7 +26810,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -26858,7 +26858,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -26910,7 +26910,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -26974,7 +26974,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -27030,7 +27030,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -27082,7 +27082,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -27138,7 +27138,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -27186,7 +27186,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -27230,7 +27230,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -27278,7 +27278,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -27338,7 +27338,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -27390,7 +27390,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -27454,7 +27454,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -27502,7 +27502,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -27546,7 +27546,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -27594,7 +27594,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -27646,7 +27646,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -27706,7 +27706,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -27766,7 +27766,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -27818,7 +27818,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -27874,7 +27874,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -27922,7 +27922,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -27986,7 +27986,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -28038,7 +28038,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -28086,7 +28086,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -28138,7 +28138,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -28190,7 +28190,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -28254,7 +28254,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -28310,7 +28310,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -28362,7 +28362,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -28414,7 +28414,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -28462,7 +28462,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -28506,7 +28506,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -28554,7 +28554,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -28602,7 +28602,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -28662,7 +28662,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -28710,7 +28710,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -28758,7 +28758,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -28806,7 +28806,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -28870,7 +28870,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -28918,7 +28918,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -28962,7 +28962,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -29010,7 +29010,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -29070,7 +29070,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -29118,7 +29118,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -29162,7 +29162,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -29210,7 +29210,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -29270,7 +29270,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -29330,7 +29330,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -29382,7 +29382,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -29446,7 +29446,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -29498,7 +29498,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -29554,7 +29554,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -29602,7 +29602,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -29654,7 +29654,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -29706,7 +29706,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -29770,7 +29770,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -29830,7 +29830,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -29890,7 +29890,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -29942,7 +29942,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -29998,7 +29998,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -30050,7 +30050,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30098,7 +30098,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -30142,7 +30142,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30190,7 +30190,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -30250,7 +30250,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -30302,7 +30302,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -30366,7 +30366,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30414,7 +30414,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -30458,7 +30458,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30506,7 +30506,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -30566,7 +30566,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -30618,7 +30618,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -30670,7 +30670,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -30734,7 +30734,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30782,7 +30782,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -30826,7 +30826,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -30874,7 +30874,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -30934,7 +30934,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -30986,7 +30986,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31038,7 +31038,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31090,7 +31090,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31142,7 +31142,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31194,7 +31194,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31246,7 +31246,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -31310,7 +31310,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31362,7 +31362,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -31410,7 +31410,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31462,7 +31462,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -31526,7 +31526,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -31582,7 +31582,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -31638,7 +31638,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -31702,7 +31702,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31754,7 +31754,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -31802,7 +31802,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -31854,7 +31854,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -31906,7 +31906,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -31970,7 +31970,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -32026,7 +32026,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -32082,7 +32082,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -32142,7 +32142,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -32190,7 +32190,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -32234,7 +32234,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -32282,7 +32282,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -32342,7 +32342,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32394,7 +32394,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32446,7 +32446,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32498,7 +32498,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32550,7 +32550,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32602,7 +32602,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -32650,7 +32650,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -32694,7 +32694,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -32742,7 +32742,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -32802,7 +32802,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32854,7 +32854,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -32906,7 +32906,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -32970,7 +32970,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33022,7 +33022,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -33070,7 +33070,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33122,7 +33122,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -33186,7 +33186,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -33250,7 +33250,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -33298,7 +33298,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -33342,7 +33342,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -33390,7 +33390,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33442,7 +33442,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -33502,7 +33502,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33554,7 +33554,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33606,7 +33606,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -33654,7 +33654,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -33718,7 +33718,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33770,7 +33770,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -33818,7 +33818,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -33866,7 +33866,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -33918,7 +33918,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -33982,7 +33982,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -34038,7 +34038,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -34090,7 +34090,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -34154,7 +34154,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -34206,7 +34206,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -34254,7 +34254,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -34306,7 +34306,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -34370,7 +34370,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -34418,7 +34418,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -34466,7 +34466,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -34530,7 +34530,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -34578,7 +34578,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -34622,7 +34622,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], diff --git a/samples/generated/v1/ssl_certificates.aggregated_list.js b/samples/generated/v1/ssl_certificates.aggregated_list.js index d59f5217..37a7a233 100644 --- a/samples/generated/v1/ssl_certificates.aggregated_list.js +++ b/samples/generated/v1/ssl_certificates.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SslCertificates_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. */ /** diff --git a/samples/generated/v1/ssl_certificates.delete.js b/samples/generated/v1/ssl_certificates.delete.js index 03355e01..e7d7c72d 100644 --- a/samples/generated/v1/ssl_certificates.delete.js +++ b/samples/generated/v1/ssl_certificates.delete.js @@ -23,6 +23,9 @@ function main(project, sslCertificate) { // [START compute_v1_generated_SslCertificates_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. */ /** diff --git a/samples/generated/v1/ssl_certificates.get.js b/samples/generated/v1/ssl_certificates.get.js index 0e7b0916..515a5b64 100644 --- a/samples/generated/v1/ssl_certificates.get.js +++ b/samples/generated/v1/ssl_certificates.get.js @@ -23,6 +23,9 @@ function main(project, sslCertificate) { // [START compute_v1_generated_SslCertificates_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. */ /** diff --git a/samples/generated/v1/ssl_certificates.insert.js b/samples/generated/v1/ssl_certificates.insert.js index af809408..6e9cca92 100644 --- a/samples/generated/v1/ssl_certificates.insert.js +++ b/samples/generated/v1/ssl_certificates.insert.js @@ -23,6 +23,9 @@ function main(project, sslCertificateResource) { // [START compute_v1_generated_SslCertificates_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. */ /** diff --git a/samples/generated/v1/ssl_certificates.list.js b/samples/generated/v1/ssl_certificates.list.js index 4033e249..af1a20db 100644 --- a/samples/generated/v1/ssl_certificates.list.js +++ b/samples/generated/v1/ssl_certificates.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SslCertificates_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. */ /** diff --git a/samples/generated/v1/ssl_policies.delete.js b/samples/generated/v1/ssl_policies.delete.js index cd634871..0243bfa1 100644 --- a/samples/generated/v1/ssl_policies.delete.js +++ b/samples/generated/v1/ssl_policies.delete.js @@ -23,6 +23,9 @@ function main(project, sslPolicy) { // [START compute_v1_generated_SslPolicies_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. */ /** diff --git a/samples/generated/v1/ssl_policies.get.js b/samples/generated/v1/ssl_policies.get.js index 1c6c7834..7e6e2483 100644 --- a/samples/generated/v1/ssl_policies.get.js +++ b/samples/generated/v1/ssl_policies.get.js @@ -23,6 +23,9 @@ function main(project, sslPolicy) { // [START compute_v1_generated_SslPolicies_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. */ /** diff --git a/samples/generated/v1/ssl_policies.insert.js b/samples/generated/v1/ssl_policies.insert.js index a6aa20b5..b548e71d 100644 --- a/samples/generated/v1/ssl_policies.insert.js +++ b/samples/generated/v1/ssl_policies.insert.js @@ -23,6 +23,9 @@ function main(project, sslPolicyResource) { // [START compute_v1_generated_SslPolicies_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. */ /** diff --git a/samples/generated/v1/ssl_policies.list.js b/samples/generated/v1/ssl_policies.list.js index c5a11256..988a9aaf 100644 --- a/samples/generated/v1/ssl_policies.list.js +++ b/samples/generated/v1/ssl_policies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SslPolicies_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. */ /** diff --git a/samples/generated/v1/ssl_policies.list_available_features.js b/samples/generated/v1/ssl_policies.list_available_features.js index e4f50825..33c33232 100644 --- a/samples/generated/v1/ssl_policies.list_available_features.js +++ b/samples/generated/v1/ssl_policies.list_available_features.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_SslPolicies_ListAvailableFeatures_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. */ /** diff --git a/samples/generated/v1/ssl_policies.patch.js b/samples/generated/v1/ssl_policies.patch.js index c4416b37..398d9410 100644 --- a/samples/generated/v1/ssl_policies.patch.js +++ b/samples/generated/v1/ssl_policies.patch.js @@ -23,6 +23,9 @@ function main(project, sslPolicy, sslPolicyResource) { // [START compute_v1_generated_SslPolicies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/subnetworks.aggregated_list.js b/samples/generated/v1/subnetworks.aggregated_list.js index 077b3167..bb4affaa 100644 --- a/samples/generated/v1/subnetworks.aggregated_list.js +++ b/samples/generated/v1/subnetworks.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.delete.js b/samples/generated/v1/subnetworks.delete.js index 3ac7a732..dd90545a 100644 --- a/samples/generated/v1/subnetworks.delete.js +++ b/samples/generated/v1/subnetworks.delete.js @@ -23,6 +23,9 @@ function main(project, region, subnetwork) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.expand_ip_cidr_range.js b/samples/generated/v1/subnetworks.expand_ip_cidr_range.js index 14808173..e7fbb925 100644 --- a/samples/generated/v1/subnetworks.expand_ip_cidr_range.js +++ b/samples/generated/v1/subnetworks.expand_ip_cidr_range.js @@ -23,6 +23,9 @@ function main(project, region, subnetwork, subnetworksExpandIpCidrRangeRequestResource) { // [START compute_v1_generated_Subnetworks_ExpandIpCidrRange_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. */ /** diff --git a/samples/generated/v1/subnetworks.get.js b/samples/generated/v1/subnetworks.get.js index f77d2b2f..de440bfc 100644 --- a/samples/generated/v1/subnetworks.get.js +++ b/samples/generated/v1/subnetworks.get.js @@ -23,6 +23,9 @@ function main(project, region, subnetwork) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.get_iam_policy.js b/samples/generated/v1/subnetworks.get_iam_policy.js index 8942cf2e..f0034c68 100644 --- a/samples/generated/v1/subnetworks.get_iam_policy.js +++ b/samples/generated/v1/subnetworks.get_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, resource) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.insert.js b/samples/generated/v1/subnetworks.insert.js index e11f1681..f9b7bc68 100644 --- a/samples/generated/v1/subnetworks.insert.js +++ b/samples/generated/v1/subnetworks.insert.js @@ -23,6 +23,9 @@ function main(project, region, subnetworkResource) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.list.js b/samples/generated/v1/subnetworks.list.js index d8b21a6b..df3dfc88 100644 --- a/samples/generated/v1/subnetworks.list.js +++ b/samples/generated/v1/subnetworks.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.list_usable.js b/samples/generated/v1/subnetworks.list_usable.js index b75a5d57..4bc167b6 100644 --- a/samples/generated/v1/subnetworks.list_usable.js +++ b/samples/generated/v1/subnetworks.list_usable.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Subnetworks_ListUsable_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/subnetworks.patch.js b/samples/generated/v1/subnetworks.patch.js index cd86cfbc..247be654 100644 --- a/samples/generated/v1/subnetworks.patch.js +++ b/samples/generated/v1/subnetworks.patch.js @@ -23,6 +23,9 @@ function main(project, region, subnetwork, subnetworkResource) { // [START compute_v1_generated_Subnetworks_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/subnetworks.set_iam_policy.js b/samples/generated/v1/subnetworks.set_iam_policy.js index 238d0cec..2c37da3b 100644 --- a/samples/generated/v1/subnetworks.set_iam_policy.js +++ b/samples/generated/v1/subnetworks.set_iam_policy.js @@ -23,6 +23,9 @@ function main(project, region, regionSetPolicyRequestResource, resource) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/subnetworks.set_private_ip_google_access.js b/samples/generated/v1/subnetworks.set_private_ip_google_access.js index b4be549b..04312a98 100644 --- a/samples/generated/v1/subnetworks.set_private_ip_google_access.js +++ b/samples/generated/v1/subnetworks.set_private_ip_google_access.js @@ -23,6 +23,9 @@ function main(project, region, subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource) { // [START compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_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. */ /** diff --git a/samples/generated/v1/subnetworks.test_iam_permissions.js b/samples/generated/v1/subnetworks.test_iam_permissions.js index f17a72b2..66256d97 100644 --- a/samples/generated/v1/subnetworks.test_iam_permissions.js +++ b/samples/generated/v1/subnetworks.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_Subnetworks_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. */ /** diff --git a/samples/generated/v1/target_grpc_proxies.delete.js b/samples/generated/v1/target_grpc_proxies.delete.js index fd5fe442..b1fbe1ef 100644 --- a/samples/generated/v1/target_grpc_proxies.delete.js +++ b/samples/generated/v1/target_grpc_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, targetGrpcProxy) { // [START compute_v1_generated_TargetGrpcProxies_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. */ /** diff --git a/samples/generated/v1/target_grpc_proxies.get.js b/samples/generated/v1/target_grpc_proxies.get.js index 4d3a5af8..ed8a8c2a 100644 --- a/samples/generated/v1/target_grpc_proxies.get.js +++ b/samples/generated/v1/target_grpc_proxies.get.js @@ -23,6 +23,9 @@ function main(project, targetGrpcProxy) { // [START compute_v1_generated_TargetGrpcProxies_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. */ /** diff --git a/samples/generated/v1/target_grpc_proxies.insert.js b/samples/generated/v1/target_grpc_proxies.insert.js index f1aada09..cb7d800b 100644 --- a/samples/generated/v1/target_grpc_proxies.insert.js +++ b/samples/generated/v1/target_grpc_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, targetGrpcProxyResource) { // [START compute_v1_generated_TargetGrpcProxies_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. */ /** diff --git a/samples/generated/v1/target_grpc_proxies.list.js b/samples/generated/v1/target_grpc_proxies.list.js index 55f3d435..73bab9f6 100644 --- a/samples/generated/v1/target_grpc_proxies.list.js +++ b/samples/generated/v1/target_grpc_proxies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetGrpcProxies_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. */ /** diff --git a/samples/generated/v1/target_grpc_proxies.patch.js b/samples/generated/v1/target_grpc_proxies.patch.js index f8a4b17d..96cd4ef6 100644 --- a/samples/generated/v1/target_grpc_proxies.patch.js +++ b/samples/generated/v1/target_grpc_proxies.patch.js @@ -23,6 +23,9 @@ function main(project, targetGrpcProxy, targetGrpcProxyResource) { // [START compute_v1_generated_TargetGrpcProxies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/target_http_proxies.aggregated_list.js b/samples/generated/v1/target_http_proxies.aggregated_list.js index cf98db8e..628ff9f1 100644 --- a/samples/generated/v1/target_http_proxies.aggregated_list.js +++ b/samples/generated/v1/target_http_proxies.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/target_http_proxies.delete.js b/samples/generated/v1/target_http_proxies.delete.js index 9594f522..09db8795 100644 --- a/samples/generated/v1/target_http_proxies.delete.js +++ b/samples/generated/v1/target_http_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, targetHttpProxy) { // [START compute_v1_generated_TargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/target_http_proxies.get.js b/samples/generated/v1/target_http_proxies.get.js index 68872891..71ba2152 100644 --- a/samples/generated/v1/target_http_proxies.get.js +++ b/samples/generated/v1/target_http_proxies.get.js @@ -23,6 +23,9 @@ function main(project, targetHttpProxy) { // [START compute_v1_generated_TargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/target_http_proxies.insert.js b/samples/generated/v1/target_http_proxies.insert.js index 56116455..64bbda52 100644 --- a/samples/generated/v1/target_http_proxies.insert.js +++ b/samples/generated/v1/target_http_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, targetHttpProxyResource) { // [START compute_v1_generated_TargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/target_http_proxies.list.js b/samples/generated/v1/target_http_proxies.list.js index 3c5388f6..8344c154 100644 --- a/samples/generated/v1/target_http_proxies.list.js +++ b/samples/generated/v1/target_http_proxies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetHttpProxies_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. */ /** diff --git a/samples/generated/v1/target_http_proxies.patch.js b/samples/generated/v1/target_http_proxies.patch.js index e36a4e6f..48d588d0 100644 --- a/samples/generated/v1/target_http_proxies.patch.js +++ b/samples/generated/v1/target_http_proxies.patch.js @@ -23,6 +23,9 @@ function main(project, targetHttpProxy, targetHttpProxyResource) { // [START compute_v1_generated_TargetHttpProxies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/target_http_proxies.set_url_map.js b/samples/generated/v1/target_http_proxies.set_url_map.js index 9b9fa524..f2e147b6 100644 --- a/samples/generated/v1/target_http_proxies.set_url_map.js +++ b/samples/generated/v1/target_http_proxies.set_url_map.js @@ -23,6 +23,9 @@ function main(project, targetHttpProxy, urlMapReferenceResource) { // [START compute_v1_generated_TargetHttpProxies_SetUrlMap_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.aggregated_list.js b/samples/generated/v1/target_https_proxies.aggregated_list.js index e69f2c51..a5e72ea3 100644 --- a/samples/generated/v1/target_https_proxies.aggregated_list.js +++ b/samples/generated/v1/target_https_proxies.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.delete.js b/samples/generated/v1/target_https_proxies.delete.js index 00da4e44..c4990802 100644 --- a/samples/generated/v1/target_https_proxies.delete.js +++ b/samples/generated/v1/target_https_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.get.js b/samples/generated/v1/target_https_proxies.get.js index e0e49cd1..26413b2c 100644 --- a/samples/generated/v1/target_https_proxies.get.js +++ b/samples/generated/v1/target_https_proxies.get.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.insert.js b/samples/generated/v1/target_https_proxies.insert.js index 598fa76b..135f07f9 100644 --- a/samples/generated/v1/target_https_proxies.insert.js +++ b/samples/generated/v1/target_https_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxyResource) { // [START compute_v1_generated_TargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.list.js b/samples/generated/v1/target_https_proxies.list.js index 34808e05..d25d385a 100644 --- a/samples/generated/v1/target_https_proxies.list.js +++ b/samples/generated/v1/target_https_proxies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetHttpsProxies_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.patch.js b/samples/generated/v1/target_https_proxies.patch.js index 72550030..5a812b94 100644 --- a/samples/generated/v1/target_https_proxies.patch.js +++ b/samples/generated/v1/target_https_proxies.patch.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxy, targetHttpsProxyResource) { // [START compute_v1_generated_TargetHttpsProxies_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/target_https_proxies.set_certificate_map.js b/samples/generated/v1/target_https_proxies.set_certificate_map.js index 91974569..74b61736 100644 --- a/samples/generated/v1/target_https_proxies.set_certificate_map.js +++ b/samples/generated/v1/target_https_proxies.set_certificate_map.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxiesSetCertificateMapRequestResource, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_SetCertificateMap_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.set_quic_override.js b/samples/generated/v1/target_https_proxies.set_quic_override.js index 454e6e26..aaa03926 100644 --- a/samples/generated/v1/target_https_proxies.set_quic_override.js +++ b/samples/generated/v1/target_https_proxies.set_quic_override.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxiesSetQuicOverrideRequestResource, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_SetQuicOverride_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.set_ssl_certificates.js b/samples/generated/v1/target_https_proxies.set_ssl_certificates.js index 66e8d0f7..9b97890a 100644 --- a/samples/generated/v1/target_https_proxies.set_ssl_certificates.js +++ b/samples/generated/v1/target_https_proxies.set_ssl_certificates.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxiesSetSslCertificatesRequestResource, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_SetSslCertificates_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.set_ssl_policy.js b/samples/generated/v1/target_https_proxies.set_ssl_policy.js index 5ccb731d..ad3d856f 100644 --- a/samples/generated/v1/target_https_proxies.set_ssl_policy.js +++ b/samples/generated/v1/target_https_proxies.set_ssl_policy.js @@ -23,6 +23,9 @@ function main(project, sslPolicyReferenceResource, targetHttpsProxy) { // [START compute_v1_generated_TargetHttpsProxies_SetSslPolicy_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. */ /** diff --git a/samples/generated/v1/target_https_proxies.set_url_map.js b/samples/generated/v1/target_https_proxies.set_url_map.js index 943d0ef2..5ee57597 100644 --- a/samples/generated/v1/target_https_proxies.set_url_map.js +++ b/samples/generated/v1/target_https_proxies.set_url_map.js @@ -23,6 +23,9 @@ function main(project, targetHttpsProxy, urlMapReferenceResource) { // [START compute_v1_generated_TargetHttpsProxies_SetUrlMap_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. */ /** diff --git a/samples/generated/v1/target_instances.aggregated_list.js b/samples/generated/v1/target_instances.aggregated_list.js index 66735c67..32550bf4 100644 --- a/samples/generated/v1/target_instances.aggregated_list.js +++ b/samples/generated/v1/target_instances.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetInstances_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. */ /** diff --git a/samples/generated/v1/target_instances.delete.js b/samples/generated/v1/target_instances.delete.js index bc8cb58a..b5d1a05d 100644 --- a/samples/generated/v1/target_instances.delete.js +++ b/samples/generated/v1/target_instances.delete.js @@ -23,6 +23,9 @@ function main(project, targetInstance, zone) { // [START compute_v1_generated_TargetInstances_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. */ /** diff --git a/samples/generated/v1/target_instances.get.js b/samples/generated/v1/target_instances.get.js index 6c55435d..8aa478fc 100644 --- a/samples/generated/v1/target_instances.get.js +++ b/samples/generated/v1/target_instances.get.js @@ -23,6 +23,9 @@ function main(project, targetInstance, zone) { // [START compute_v1_generated_TargetInstances_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. */ /** diff --git a/samples/generated/v1/target_instances.insert.js b/samples/generated/v1/target_instances.insert.js index 1da2c070..ec8b0e2c 100644 --- a/samples/generated/v1/target_instances.insert.js +++ b/samples/generated/v1/target_instances.insert.js @@ -23,6 +23,9 @@ function main(project, targetInstanceResource, zone) { // [START compute_v1_generated_TargetInstances_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. */ /** diff --git a/samples/generated/v1/target_instances.list.js b/samples/generated/v1/target_instances.list.js index 9c67363b..b52ae424 100644 --- a/samples/generated/v1/target_instances.list.js +++ b/samples/generated/v1/target_instances.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_TargetInstances_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. */ /** diff --git a/samples/generated/v1/target_pools.add_health_check.js b/samples/generated/v1/target_pools.add_health_check.js index 54fb70ab..6001cf22 100644 --- a/samples/generated/v1/target_pools.add_health_check.js +++ b/samples/generated/v1/target_pools.add_health_check.js @@ -23,6 +23,9 @@ function main(project, region, targetPool, targetPoolsAddHealthCheckRequestResource) { // [START compute_v1_generated_TargetPools_AddHealthCheck_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. */ /** diff --git a/samples/generated/v1/target_pools.add_instance.js b/samples/generated/v1/target_pools.add_instance.js index 83ee48fe..b2226e23 100644 --- a/samples/generated/v1/target_pools.add_instance.js +++ b/samples/generated/v1/target_pools.add_instance.js @@ -23,6 +23,9 @@ function main(project, region, targetPool, targetPoolsAddInstanceRequestResource) { // [START compute_v1_generated_TargetPools_AddInstance_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. */ /** diff --git a/samples/generated/v1/target_pools.aggregated_list.js b/samples/generated/v1/target_pools.aggregated_list.js index eda7a82d..a3a2a44c 100644 --- a/samples/generated/v1/target_pools.aggregated_list.js +++ b/samples/generated/v1/target_pools.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetPools_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. */ /** diff --git a/samples/generated/v1/target_pools.delete.js b/samples/generated/v1/target_pools.delete.js index dff1b45d..e9daf4a2 100644 --- a/samples/generated/v1/target_pools.delete.js +++ b/samples/generated/v1/target_pools.delete.js @@ -23,6 +23,9 @@ function main(project, region, targetPool) { // [START compute_v1_generated_TargetPools_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. */ /** diff --git a/samples/generated/v1/target_pools.get.js b/samples/generated/v1/target_pools.get.js index 5ec9f559..e39cc6f7 100644 --- a/samples/generated/v1/target_pools.get.js +++ b/samples/generated/v1/target_pools.get.js @@ -23,6 +23,9 @@ function main(project, region, targetPool) { // [START compute_v1_generated_TargetPools_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. */ /** diff --git a/samples/generated/v1/target_pools.get_health.js b/samples/generated/v1/target_pools.get_health.js index 09bb1fb3..aa135b00 100644 --- a/samples/generated/v1/target_pools.get_health.js +++ b/samples/generated/v1/target_pools.get_health.js @@ -23,6 +23,9 @@ function main(instanceReferenceResource, project, region, targetPool) { // [START compute_v1_generated_TargetPools_GetHealth_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/target_pools.insert.js b/samples/generated/v1/target_pools.insert.js index 6d1fd8fc..19f1888b 100644 --- a/samples/generated/v1/target_pools.insert.js +++ b/samples/generated/v1/target_pools.insert.js @@ -23,6 +23,9 @@ function main(project, region, targetPoolResource) { // [START compute_v1_generated_TargetPools_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. */ /** diff --git a/samples/generated/v1/target_pools.list.js b/samples/generated/v1/target_pools.list.js index d67a0126..3ee2e7ba 100644 --- a/samples/generated/v1/target_pools.list.js +++ b/samples/generated/v1/target_pools.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_TargetPools_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. */ /** diff --git a/samples/generated/v1/target_pools.remove_health_check.js b/samples/generated/v1/target_pools.remove_health_check.js index 0f306ea3..2ed1f59d 100644 --- a/samples/generated/v1/target_pools.remove_health_check.js +++ b/samples/generated/v1/target_pools.remove_health_check.js @@ -23,6 +23,9 @@ function main(project, region, targetPool, targetPoolsRemoveHealthCheckRequestResource) { // [START compute_v1_generated_TargetPools_RemoveHealthCheck_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. */ /** diff --git a/samples/generated/v1/target_pools.remove_instance.js b/samples/generated/v1/target_pools.remove_instance.js index 3dbef7c7..adab6fa3 100644 --- a/samples/generated/v1/target_pools.remove_instance.js +++ b/samples/generated/v1/target_pools.remove_instance.js @@ -23,6 +23,9 @@ function main(project, region, targetPool, targetPoolsRemoveInstanceRequestResource) { // [START compute_v1_generated_TargetPools_RemoveInstance_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. */ /** diff --git a/samples/generated/v1/target_pools.set_backup.js b/samples/generated/v1/target_pools.set_backup.js index cace48b9..eeffd6bd 100644 --- a/samples/generated/v1/target_pools.set_backup.js +++ b/samples/generated/v1/target_pools.set_backup.js @@ -23,6 +23,9 @@ function main(project, region, targetPool, targetReferenceResource) { // [START compute_v1_generated_TargetPools_SetBackup_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.delete.js b/samples/generated/v1/target_ssl_proxies.delete.js index 1242f843..53432e09 100644 --- a/samples/generated/v1/target_ssl_proxies.delete.js +++ b/samples/generated/v1/target_ssl_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.get.js b/samples/generated/v1/target_ssl_proxies.get.js index 6b01b5a1..c78f9399 100644 --- a/samples/generated/v1/target_ssl_proxies.get.js +++ b/samples/generated/v1/target_ssl_proxies.get.js @@ -23,6 +23,9 @@ function main(project, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.insert.js b/samples/generated/v1/target_ssl_proxies.insert.js index 0582de83..25734d14 100644 --- a/samples/generated/v1/target_ssl_proxies.insert.js +++ b/samples/generated/v1/target_ssl_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, targetSslProxyResource) { // [START compute_v1_generated_TargetSslProxies_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.list.js b/samples/generated/v1/target_ssl_proxies.list.js index c7b66725..e90ab0b9 100644 --- a/samples/generated/v1/target_ssl_proxies.list.js +++ b/samples/generated/v1/target_ssl_proxies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetSslProxies_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.set_backend_service.js b/samples/generated/v1/target_ssl_proxies.set_backend_service.js index ac840109..b6e3a7f9 100644 --- a/samples/generated/v1/target_ssl_proxies.set_backend_service.js +++ b/samples/generated/v1/target_ssl_proxies.set_backend_service.js @@ -23,6 +23,9 @@ function main(project, targetSslProxiesSetBackendServiceRequestResource, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_SetBackendService_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.set_certificate_map.js b/samples/generated/v1/target_ssl_proxies.set_certificate_map.js index 59669f5e..b2713f48 100644 --- a/samples/generated/v1/target_ssl_proxies.set_certificate_map.js +++ b/samples/generated/v1/target_ssl_proxies.set_certificate_map.js @@ -23,6 +23,9 @@ function main(project, targetSslProxiesSetCertificateMapRequestResource, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_SetCertificateMap_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.set_proxy_header.js b/samples/generated/v1/target_ssl_proxies.set_proxy_header.js index d37f4f58..0fac784e 100644 --- a/samples/generated/v1/target_ssl_proxies.set_proxy_header.js +++ b/samples/generated/v1/target_ssl_proxies.set_proxy_header.js @@ -23,6 +23,9 @@ function main(project, targetSslProxiesSetProxyHeaderRequestResource, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_SetProxyHeader_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js b/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js index e0cb63a8..874a5079 100644 --- a/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js +++ b/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js @@ -23,6 +23,9 @@ function main(project, targetSslProxiesSetSslCertificatesRequestResource, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_SetSslCertificates_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. */ /** diff --git a/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js b/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js index 4b796122..9864a81b 100644 --- a/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js +++ b/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js @@ -23,6 +23,9 @@ function main(project, sslPolicyReferenceResource, targetSslProxy) { // [START compute_v1_generated_TargetSslProxies_SetSslPolicy_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.delete.js b/samples/generated/v1/target_tcp_proxies.delete.js index e5b8c83f..ec54d8be 100644 --- a/samples/generated/v1/target_tcp_proxies.delete.js +++ b/samples/generated/v1/target_tcp_proxies.delete.js @@ -23,6 +23,9 @@ function main(project, targetTcpProxy) { // [START compute_v1_generated_TargetTcpProxies_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.get.js b/samples/generated/v1/target_tcp_proxies.get.js index 87d1c238..7e790584 100644 --- a/samples/generated/v1/target_tcp_proxies.get.js +++ b/samples/generated/v1/target_tcp_proxies.get.js @@ -23,6 +23,9 @@ function main(project, targetTcpProxy) { // [START compute_v1_generated_TargetTcpProxies_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.insert.js b/samples/generated/v1/target_tcp_proxies.insert.js index 8828b1d9..d9cb8295 100644 --- a/samples/generated/v1/target_tcp_proxies.insert.js +++ b/samples/generated/v1/target_tcp_proxies.insert.js @@ -23,6 +23,9 @@ function main(project, targetTcpProxyResource) { // [START compute_v1_generated_TargetTcpProxies_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.list.js b/samples/generated/v1/target_tcp_proxies.list.js index 6b253f35..acb9dbf5 100644 --- a/samples/generated/v1/target_tcp_proxies.list.js +++ b/samples/generated/v1/target_tcp_proxies.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetTcpProxies_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.set_backend_service.js b/samples/generated/v1/target_tcp_proxies.set_backend_service.js index 607ceae3..403ccec8 100644 --- a/samples/generated/v1/target_tcp_proxies.set_backend_service.js +++ b/samples/generated/v1/target_tcp_proxies.set_backend_service.js @@ -23,6 +23,9 @@ function main(project, targetTcpProxiesSetBackendServiceRequestResource, targetTcpProxy) { // [START compute_v1_generated_TargetTcpProxies_SetBackendService_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. */ /** diff --git a/samples/generated/v1/target_tcp_proxies.set_proxy_header.js b/samples/generated/v1/target_tcp_proxies.set_proxy_header.js index 25fd380e..dd5cbf67 100644 --- a/samples/generated/v1/target_tcp_proxies.set_proxy_header.js +++ b/samples/generated/v1/target_tcp_proxies.set_proxy_header.js @@ -23,6 +23,9 @@ function main(project, targetTcpProxiesSetProxyHeaderRequestResource, targetTcpProxy) { // [START compute_v1_generated_TargetTcpProxies_SetProxyHeader_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. */ /** diff --git a/samples/generated/v1/target_vpn_gateways.aggregated_list.js b/samples/generated/v1/target_vpn_gateways.aggregated_list.js index 3a6d4471..cf96fe39 100644 --- a/samples/generated/v1/target_vpn_gateways.aggregated_list.js +++ b/samples/generated/v1/target_vpn_gateways.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_TargetVpnGateways_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. */ /** diff --git a/samples/generated/v1/target_vpn_gateways.delete.js b/samples/generated/v1/target_vpn_gateways.delete.js index ab1ea952..428e8ee1 100644 --- a/samples/generated/v1/target_vpn_gateways.delete.js +++ b/samples/generated/v1/target_vpn_gateways.delete.js @@ -23,6 +23,9 @@ function main(project, region, targetVpnGateway) { // [START compute_v1_generated_TargetVpnGateways_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. */ /** diff --git a/samples/generated/v1/target_vpn_gateways.get.js b/samples/generated/v1/target_vpn_gateways.get.js index 48956f35..1278460d 100644 --- a/samples/generated/v1/target_vpn_gateways.get.js +++ b/samples/generated/v1/target_vpn_gateways.get.js @@ -23,6 +23,9 @@ function main(project, region, targetVpnGateway) { // [START compute_v1_generated_TargetVpnGateways_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. */ /** diff --git a/samples/generated/v1/target_vpn_gateways.insert.js b/samples/generated/v1/target_vpn_gateways.insert.js index 6f2b04e0..c9c80896 100644 --- a/samples/generated/v1/target_vpn_gateways.insert.js +++ b/samples/generated/v1/target_vpn_gateways.insert.js @@ -23,6 +23,9 @@ function main(project, region, targetVpnGatewayResource) { // [START compute_v1_generated_TargetVpnGateways_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. */ /** diff --git a/samples/generated/v1/target_vpn_gateways.list.js b/samples/generated/v1/target_vpn_gateways.list.js index 46d534a3..347862f7 100644 --- a/samples/generated/v1/target_vpn_gateways.list.js +++ b/samples/generated/v1/target_vpn_gateways.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_TargetVpnGateways_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. */ /** diff --git a/samples/generated/v1/url_maps.aggregated_list.js b/samples/generated/v1/url_maps.aggregated_list.js index de0a87cd..e8aea82e 100644 --- a/samples/generated/v1/url_maps.aggregated_list.js +++ b/samples/generated/v1/url_maps.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_UrlMaps_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. */ /** diff --git a/samples/generated/v1/url_maps.delete.js b/samples/generated/v1/url_maps.delete.js index 780e9362..3119a258 100644 --- a/samples/generated/v1/url_maps.delete.js +++ b/samples/generated/v1/url_maps.delete.js @@ -23,6 +23,9 @@ function main(project, urlMap) { // [START compute_v1_generated_UrlMaps_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. */ /** diff --git a/samples/generated/v1/url_maps.get.js b/samples/generated/v1/url_maps.get.js index e7f979d1..c078d3ea 100644 --- a/samples/generated/v1/url_maps.get.js +++ b/samples/generated/v1/url_maps.get.js @@ -23,6 +23,9 @@ function main(project, urlMap) { // [START compute_v1_generated_UrlMaps_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. */ /** diff --git a/samples/generated/v1/url_maps.insert.js b/samples/generated/v1/url_maps.insert.js index 2305de45..d1bf275f 100644 --- a/samples/generated/v1/url_maps.insert.js +++ b/samples/generated/v1/url_maps.insert.js @@ -23,6 +23,9 @@ function main(project, urlMapResource) { // [START compute_v1_generated_UrlMaps_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. */ /** diff --git a/samples/generated/v1/url_maps.invalidate_cache.js b/samples/generated/v1/url_maps.invalidate_cache.js index c9071bd2..b8e96f8c 100644 --- a/samples/generated/v1/url_maps.invalidate_cache.js +++ b/samples/generated/v1/url_maps.invalidate_cache.js @@ -23,6 +23,9 @@ function main(cacheInvalidationRuleResource, project, urlMap) { // [START compute_v1_generated_UrlMaps_InvalidateCache_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. */ /** diff --git a/samples/generated/v1/url_maps.list.js b/samples/generated/v1/url_maps.list.js index 36d4ca23..e135d882 100644 --- a/samples/generated/v1/url_maps.list.js +++ b/samples/generated/v1/url_maps.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_UrlMaps_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. */ /** diff --git a/samples/generated/v1/url_maps.patch.js b/samples/generated/v1/url_maps.patch.js index 975ee31f..47e46d1a 100644 --- a/samples/generated/v1/url_maps.patch.js +++ b/samples/generated/v1/url_maps.patch.js @@ -23,6 +23,9 @@ function main(project, urlMap, urlMapResource) { // [START compute_v1_generated_UrlMaps_Patch_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/url_maps.update.js b/samples/generated/v1/url_maps.update.js index 69a036eb..f978117a 100644 --- a/samples/generated/v1/url_maps.update.js +++ b/samples/generated/v1/url_maps.update.js @@ -23,6 +23,9 @@ function main(project, urlMap, urlMapResource) { // [START compute_v1_generated_UrlMaps_Update_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/url_maps.validate.js b/samples/generated/v1/url_maps.validate.js index 5f4122fa..9a9de29c 100644 --- a/samples/generated/v1/url_maps.validate.js +++ b/samples/generated/v1/url_maps.validate.js @@ -23,6 +23,9 @@ function main(project, urlMap, urlMapsValidateRequestResource) { // [START compute_v1_generated_UrlMaps_Validate_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.aggregated_list.js b/samples/generated/v1/vpn_gateways.aggregated_list.js index 1916afce..01c94feb 100644 --- a/samples/generated/v1/vpn_gateways.aggregated_list.js +++ b/samples/generated/v1/vpn_gateways.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.delete.js b/samples/generated/v1/vpn_gateways.delete.js index 823db5e9..21aacd15 100644 --- a/samples/generated/v1/vpn_gateways.delete.js +++ b/samples/generated/v1/vpn_gateways.delete.js @@ -23,6 +23,9 @@ function main(project, region, vpnGateway) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.get.js b/samples/generated/v1/vpn_gateways.get.js index b56a2379..e25b7adc 100644 --- a/samples/generated/v1/vpn_gateways.get.js +++ b/samples/generated/v1/vpn_gateways.get.js @@ -23,6 +23,9 @@ function main(project, region, vpnGateway) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.get_status.js b/samples/generated/v1/vpn_gateways.get_status.js index 9e8a2513..b6c81fa1 100644 --- a/samples/generated/v1/vpn_gateways.get_status.js +++ b/samples/generated/v1/vpn_gateways.get_status.js @@ -23,6 +23,9 @@ function main(project, region, vpnGateway) { // [START compute_v1_generated_VpnGateways_GetStatus_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.insert.js b/samples/generated/v1/vpn_gateways.insert.js index d85e1434..3e6a9c4e 100644 --- a/samples/generated/v1/vpn_gateways.insert.js +++ b/samples/generated/v1/vpn_gateways.insert.js @@ -23,6 +23,9 @@ function main(project, region, vpnGatewayResource) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.list.js b/samples/generated/v1/vpn_gateways.list.js index b0edcb97..6db85849 100644 --- a/samples/generated/v1/vpn_gateways.list.js +++ b/samples/generated/v1/vpn_gateways.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.set_labels.js b/samples/generated/v1/vpn_gateways.set_labels.js index 62718678..82712b6d 100644 --- a/samples/generated/v1/vpn_gateways.set_labels.js +++ b/samples/generated/v1/vpn_gateways.set_labels.js @@ -23,6 +23,9 @@ function main(project, region, regionSetLabelsRequestResource, resource) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_gateways.test_iam_permissions.js b/samples/generated/v1/vpn_gateways.test_iam_permissions.js index d2925396..5f462a14 100644 --- a/samples/generated/v1/vpn_gateways.test_iam_permissions.js +++ b/samples/generated/v1/vpn_gateways.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(project, region, resource, testPermissionsRequestResource) { // [START compute_v1_generated_VpnGateways_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. */ /** diff --git a/samples/generated/v1/vpn_tunnels.aggregated_list.js b/samples/generated/v1/vpn_tunnels.aggregated_list.js index 14b0a918..15888eb7 100644 --- a/samples/generated/v1/vpn_tunnels.aggregated_list.js +++ b/samples/generated/v1/vpn_tunnels.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_VpnTunnels_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. */ /** diff --git a/samples/generated/v1/vpn_tunnels.delete.js b/samples/generated/v1/vpn_tunnels.delete.js index 60cf2367..5ab78051 100644 --- a/samples/generated/v1/vpn_tunnels.delete.js +++ b/samples/generated/v1/vpn_tunnels.delete.js @@ -23,6 +23,9 @@ function main(project, region, vpnTunnel) { // [START compute_v1_generated_VpnTunnels_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. */ /** diff --git a/samples/generated/v1/vpn_tunnels.get.js b/samples/generated/v1/vpn_tunnels.get.js index fd350717..1e0b6e64 100644 --- a/samples/generated/v1/vpn_tunnels.get.js +++ b/samples/generated/v1/vpn_tunnels.get.js @@ -23,6 +23,9 @@ function main(project, region, vpnTunnel) { // [START compute_v1_generated_VpnTunnels_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. */ /** diff --git a/samples/generated/v1/vpn_tunnels.insert.js b/samples/generated/v1/vpn_tunnels.insert.js index ded6d7d7..1bfadcf8 100644 --- a/samples/generated/v1/vpn_tunnels.insert.js +++ b/samples/generated/v1/vpn_tunnels.insert.js @@ -23,6 +23,9 @@ function main(project, region, vpnTunnelResource) { // [START compute_v1_generated_VpnTunnels_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. */ /** diff --git a/samples/generated/v1/vpn_tunnels.list.js b/samples/generated/v1/vpn_tunnels.list.js index 4f2f93da..3ba10972 100644 --- a/samples/generated/v1/vpn_tunnels.list.js +++ b/samples/generated/v1/vpn_tunnels.list.js @@ -23,6 +23,9 @@ function main(project, region) { // [START compute_v1_generated_VpnTunnels_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. */ /** diff --git a/samples/generated/v1/zone_operations.delete.js b/samples/generated/v1/zone_operations.delete.js index f6f23cbb..466f59a8 100644 --- a/samples/generated/v1/zone_operations.delete.js +++ b/samples/generated/v1/zone_operations.delete.js @@ -23,6 +23,9 @@ function main(operation, project, zone) { // [START compute_v1_generated_ZoneOperations_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. */ /** diff --git a/samples/generated/v1/zone_operations.get.js b/samples/generated/v1/zone_operations.get.js index 5d5f9081..d996eb3c 100644 --- a/samples/generated/v1/zone_operations.get.js +++ b/samples/generated/v1/zone_operations.get.js @@ -23,6 +23,9 @@ function main(operation, project, zone) { // [START compute_v1_generated_ZoneOperations_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. */ /** diff --git a/samples/generated/v1/zone_operations.list.js b/samples/generated/v1/zone_operations.list.js index 36e37404..397b11d7 100644 --- a/samples/generated/v1/zone_operations.list.js +++ b/samples/generated/v1/zone_operations.list.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_ZoneOperations_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. */ /** diff --git a/samples/generated/v1/zone_operations.wait.js b/samples/generated/v1/zone_operations.wait.js index adff453d..2ad7d673 100644 --- a/samples/generated/v1/zone_operations.wait.js +++ b/samples/generated/v1/zone_operations.wait.js @@ -23,6 +23,9 @@ function main(operation, project, zone) { // [START compute_v1_generated_ZoneOperations_Wait_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. */ /** diff --git a/samples/generated/v1/zones.get.js b/samples/generated/v1/zones.get.js index 844115bd..ad415fe8 100644 --- a/samples/generated/v1/zones.get.js +++ b/samples/generated/v1/zones.get.js @@ -23,6 +23,9 @@ function main(project, zone) { // [START compute_v1_generated_Zones_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. */ /** diff --git a/samples/generated/v1/zones.list.js b/samples/generated/v1/zones.list.js index b68d2818..b743a73c 100644 --- a/samples/generated/v1/zones.list.js +++ b/samples/generated/v1/zones.list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1_generated_Zones_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. */ /** diff --git a/samples/generated/v1small/addresses.aggregated_list.js b/samples/generated/v1small/addresses.aggregated_list.js index 7dd1e987..ce8f399c 100644 --- a/samples/generated/v1small/addresses.aggregated_list.js +++ b/samples/generated/v1small/addresses.aggregated_list.js @@ -23,6 +23,9 @@ function main(project) { // [START compute_v1small_generated_Addresses_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. */ /** diff --git a/samples/generated/v1small/addresses.delete.js b/samples/generated/v1small/addresses.delete.js index 277e3fb4..ccaa3724 100644 --- a/samples/generated/v1small/addresses.delete.js +++ b/samples/generated/v1small/addresses.delete.js @@ -23,6 +23,9 @@ function main(address, project, region) { // [START compute_v1small_generated_Addresses_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. */ /** diff --git a/samples/generated/v1small/addresses.insert.js b/samples/generated/v1small/addresses.insert.js index b6b0b845..0eba51c7 100644 --- a/samples/generated/v1small/addresses.insert.js +++ b/samples/generated/v1small/addresses.insert.js @@ -23,6 +23,9 @@ function main(addressResource, project, region) { // [START compute_v1small_generated_Addresses_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. */ /** diff --git a/samples/generated/v1small/addresses.list.js b/samples/generated/v1small/addresses.list.js index 16fd20a8..2adeb28e 100644 --- a/samples/generated/v1small/addresses.list.js +++ b/samples/generated/v1small/addresses.list.js @@ -23,6 +23,9 @@ function main(orderBy, project, region) { // [START compute_v1small_generated_Addresses_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. */ /** diff --git a/samples/generated/v1small/region_operations.get.js b/samples/generated/v1small/region_operations.get.js index 122c690d..d7c6736e 100644 --- a/samples/generated/v1small/region_operations.get.js +++ b/samples/generated/v1small/region_operations.get.js @@ -23,6 +23,9 @@ function main(operation, project, region) { // [START compute_v1small_generated_RegionOperations_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. */ /** diff --git a/samples/generated/v1small/region_operations.wait.js b/samples/generated/v1small/region_operations.wait.js index b57b2e45..a0dbb506 100644 --- a/samples/generated/v1small/region_operations.wait.js +++ b/samples/generated/v1small/region_operations.wait.js @@ -23,6 +23,9 @@ function main(operation, project, region) { // [START compute_v1small_generated_RegionOperations_Wait_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. */ /** diff --git a/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json b/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json index ca1d9101..36dd8642 100644 --- a/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json +++ b/samples/generated/v1small/snippet_metadata.google.cloud.compute.v1small.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -82,7 +82,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -134,7 +134,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -186,7 +186,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -246,7 +246,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -294,7 +294,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], diff --git a/src/v1/accelerator_types_client.ts b/src/v1/accelerator_types_client.ts index 58f1bd7e..0d0c6e19 100644 --- a/src/v1/accelerator_types_client.ts +++ b/src/v1/accelerator_types_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class AcceleratorTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -465,7 +465,7 @@ export class AcceleratorTypesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IAcceleratorTypesScopedList] @@ -620,7 +620,7 @@ export class AcceleratorTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -677,7 +677,7 @@ export class AcceleratorTypesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/addresses_client.ts b/src/v1/addresses_client.ts index f0767dcc..98cc9ec8 100644 --- a/src/v1/addresses_client.ts +++ b/src/v1/addresses_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class AddressesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -695,7 +695,7 @@ export class AddressesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IAddressesScopedList] @@ -848,7 +848,7 @@ export class AddressesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -905,7 +905,7 @@ export class AddressesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/autoscalers_client.ts b/src/v1/autoscalers_client.ts index fd32f0b7..a26a75fb 100644 --- a/src/v1/autoscalers_client.ts +++ b/src/v1/autoscalers_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class AutoscalersClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -955,7 +955,7 @@ export class AutoscalersClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IAutoscalersScopedList] @@ -1108,7 +1108,7 @@ export class AutoscalersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1165,7 +1165,7 @@ export class AutoscalersClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/backend_buckets_client.ts b/src/v1/backend_buckets_client.ts index e501396d..7962586c 100644 --- a/src/v1/backend_buckets_client.ts +++ b/src/v1/backend_buckets_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -252,7 +251,8 @@ export class BackendBucketsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1409,7 +1409,7 @@ export class BackendBucketsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1463,7 +1463,7 @@ export class BackendBucketsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/backend_services_client.ts b/src/v1/backend_services_client.ts index b5593267..dbbd7e70 100644 --- a/src/v1/backend_services_client.ts +++ b/src/v1/backend_services_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -260,7 +259,8 @@ export class BackendServicesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1552,7 +1552,7 @@ export class BackendServicesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IBackendServicesScopedList] @@ -1699,7 +1699,7 @@ export class BackendServicesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1753,7 +1753,7 @@ export class BackendServicesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/disk_types_client.ts b/src/v1/disk_types_client.ts index 1e8e548c..37bb7398 100644 --- a/src/v1/disk_types_client.ts +++ b/src/v1/disk_types_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -246,7 +245,8 @@ export class DiskTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -454,7 +454,7 @@ export class DiskTypesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IDiskTypesScopedList] @@ -607,7 +607,7 @@ export class DiskTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -664,7 +664,7 @@ export class DiskTypesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/disks_client.ts b/src/v1/disks_client.ts index bff80e53..4cb6b4d3 100644 --- a/src/v1/disks_client.ts +++ b/src/v1/disks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -261,7 +260,8 @@ export class DisksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1614,7 +1614,7 @@ export class DisksClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IDisksScopedList] @@ -1767,7 +1767,7 @@ export class DisksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1824,7 +1824,7 @@ export class DisksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/external_vpn_gateways_client.ts b/src/v1/external_vpn_gateways_client.ts index 4678fc70..c25d94d4 100644 --- a/src/v1/external_vpn_gateways_client.ts +++ b/src/v1/external_vpn_gateways_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class ExternalVpnGatewaysClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1016,7 +1016,7 @@ export class ExternalVpnGatewaysClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1070,7 +1070,7 @@ export class ExternalVpnGatewaysClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/firewall_policies_client.ts b/src/v1/firewall_policies_client.ts index 36e4520e..43fc311d 100644 --- a/src/v1/firewall_policies_client.ts +++ b/src/v1/firewall_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -261,7 +260,8 @@ export class FirewallPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2331,7 +2331,7 @@ export class FirewallPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -2381,7 +2381,7 @@ export class FirewallPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/firewalls_client.ts b/src/v1/firewalls_client.ts index 48823c56..834b01aa 100644 --- a/src/v1/firewalls_client.ts +++ b/src/v1/firewalls_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class FirewallsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1005,7 +1005,7 @@ export class FirewallsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1059,7 +1059,7 @@ export class FirewallsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/forwarding_rules_client.ts b/src/v1/forwarding_rules_client.ts index 63f05ff8..b5cc4ed8 100644 --- a/src/v1/forwarding_rules_client.ts +++ b/src/v1/forwarding_rules_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -256,7 +255,8 @@ export class ForwardingRulesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1096,7 +1096,7 @@ export class ForwardingRulesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IForwardingRulesScopedList] @@ -1249,7 +1249,7 @@ export class ForwardingRulesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1306,7 +1306,7 @@ export class ForwardingRulesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_addresses_client.ts b/src/v1/global_addresses_client.ts index 1824e4e2..8de825f6 100644 --- a/src/v1/global_addresses_client.ts +++ b/src/v1/global_addresses_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -242,7 +241,8 @@ export class GlobalAddressesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -784,7 +784,7 @@ export class GlobalAddressesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -838,7 +838,7 @@ export class GlobalAddressesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_forwarding_rules_client.ts b/src/v1/global_forwarding_rules_client.ts index 067578c3..e29cfb91 100644 --- a/src/v1/global_forwarding_rules_client.ts +++ b/src/v1/global_forwarding_rules_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -251,7 +250,8 @@ export class GlobalForwardingRulesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1166,7 +1166,7 @@ export class GlobalForwardingRulesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1220,7 +1220,7 @@ export class GlobalForwardingRulesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_network_endpoint_groups_client.ts b/src/v1/global_network_endpoint_groups_client.ts index 15783133..04a54707 100644 --- a/src/v1/global_network_endpoint_groups_client.ts +++ b/src/v1/global_network_endpoint_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -257,7 +256,8 @@ export class GlobalNetworkEndpointGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1059,7 +1059,7 @@ export class GlobalNetworkEndpointGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1113,7 +1113,7 @@ export class GlobalNetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1272,7 +1272,7 @@ export class GlobalNetworkEndpointGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listNetworkEndpoints.createStream( - this.innerApiCalls.listNetworkEndpoints as gax.GaxCall, + this.innerApiCalls.listNetworkEndpoints as GaxCall, request, callSettings ); @@ -1329,7 +1329,7 @@ export class GlobalNetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.listNetworkEndpoints.asyncIterate( this.innerApiCalls['listNetworkEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_operations_client.ts b/src/v1/global_operations_client.ts index e8b84e33..2b98f04e 100644 --- a/src/v1/global_operations_client.ts +++ b/src/v1/global_operations_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -252,7 +251,8 @@ export class GlobalOperationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -652,7 +652,7 @@ export class GlobalOperationsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IOperationsScopedList] @@ -799,7 +799,7 @@ export class GlobalOperationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -853,7 +853,7 @@ export class GlobalOperationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_organization_operations_client.ts b/src/v1/global_organization_operations_client.ts index e95748aa..d3e59a5e 100644 --- a/src/v1/global_organization_operations_client.ts +++ b/src/v1/global_organization_operations_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -243,7 +242,8 @@ export class GlobalOrganizationOperationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -640,7 +640,7 @@ export class GlobalOrganizationOperationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -690,7 +690,7 @@ export class GlobalOrganizationOperationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/global_public_delegated_prefixes_client.ts b/src/v1/global_public_delegated_prefixes_client.ts index dcabb3b9..9b8f2a69 100644 --- a/src/v1/global_public_delegated_prefixes_client.ts +++ b/src/v1/global_public_delegated_prefixes_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class GlobalPublicDelegatedPrefixesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -929,7 +929,7 @@ export class GlobalPublicDelegatedPrefixesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -983,7 +983,7 @@ export class GlobalPublicDelegatedPrefixesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/health_checks_client.ts b/src/v1/health_checks_client.ts index 7edabdc3..7aef27ca 100644 --- a/src/v1/health_checks_client.ts +++ b/src/v1/health_checks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class HealthChecksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -948,7 +948,7 @@ export class HealthChecksClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IHealthChecksScopedList] @@ -1095,7 +1095,7 @@ export class HealthChecksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1149,7 +1149,7 @@ export class HealthChecksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/image_family_views_client.ts b/src/v1/image_family_views_client.ts index 9f390568..fbbd5794 100644 --- a/src/v1/image_family_views_client.ts +++ b/src/v1/image_family_views_client.ts @@ -221,7 +221,8 @@ export class ImageFamilyViewsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1/images_client.ts b/src/v1/images_client.ts index f2e2a187..8b8684ae 100644 --- a/src/v1/images_client.ts +++ b/src/v1/images_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -254,7 +253,8 @@ export class ImagesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1509,7 +1509,7 @@ export class ImagesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1563,7 +1563,7 @@ export class ImagesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/instance_group_managers_client.ts b/src/v1/instance_group_managers_client.ts index 6b595ba1..cc5a9564 100644 --- a/src/v1/instance_group_managers_client.ts +++ b/src/v1/instance_group_managers_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -284,7 +283,8 @@ export class InstanceGroupManagersClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2260,7 +2260,7 @@ export class InstanceGroupManagersClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IInstanceGroupManagersScopedList] @@ -2421,7 +2421,7 @@ export class InstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -2478,7 +2478,7 @@ export class InstanceGroupManagersClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2643,7 +2643,7 @@ export class InstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listErrors.createStream( - this.innerApiCalls.listErrors as gax.GaxCall, + this.innerApiCalls.listErrors as GaxCall, request, callSettings ); @@ -2703,12 +2703,12 @@ export class InstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listErrors.asyncIterate( this.innerApiCalls['listErrors'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } /** - * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. + * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * @param {Object} request * The request object that will be sent. @@ -2868,7 +2868,7 @@ export class InstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listManagedInstances.createStream( - this.innerApiCalls.listManagedInstances as gax.GaxCall, + this.innerApiCalls.listManagedInstances as GaxCall, request, callSettings ); @@ -2928,7 +2928,7 @@ export class InstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listManagedInstances.asyncIterate( this.innerApiCalls['listManagedInstances'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3097,7 +3097,7 @@ export class InstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPerInstanceConfigs.createStream( - this.innerApiCalls.listPerInstanceConfigs as gax.GaxCall, + this.innerApiCalls.listPerInstanceConfigs as GaxCall, request, callSettings ); @@ -3157,7 +3157,7 @@ export class InstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listPerInstanceConfigs.asyncIterate( this.innerApiCalls['listPerInstanceConfigs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/instance_groups_client.ts b/src/v1/instance_groups_client.ts index 89a760d6..6a092bb0 100644 --- a/src/v1/instance_groups_client.ts +++ b/src/v1/instance_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -262,7 +261,8 @@ export class InstanceGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1102,7 +1102,7 @@ export class InstanceGroupsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IInstanceGroupsScopedList] @@ -1255,7 +1255,7 @@ export class InstanceGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1312,7 +1312,7 @@ export class InstanceGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1481,7 +1481,7 @@ export class InstanceGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listInstances.createStream( - this.innerApiCalls.listInstances as gax.GaxCall, + this.innerApiCalls.listInstances as GaxCall, request, callSettings ); @@ -1543,7 +1543,7 @@ export class InstanceGroupsClient { this.initialize(); return this.descriptors.page.listInstances.asyncIterate( this.innerApiCalls['listInstances'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/instance_templates_client.ts b/src/v1/instance_templates_client.ts index 19cd2654..f812f1b8 100644 --- a/src/v1/instance_templates_client.ts +++ b/src/v1/instance_templates_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class InstanceTemplatesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1100,7 +1100,7 @@ export class InstanceTemplatesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1154,7 +1154,7 @@ export class InstanceTemplatesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/instances_client.ts b/src/v1/instances_client.ts index 8fb110f3..246da765 100644 --- a/src/v1/instances_client.ts +++ b/src/v1/instances_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -298,7 +297,8 @@ export class InstancesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -746,7 +746,7 @@ export class InstancesClient { ); } /** - * Creates multiple instances. Count specifies the number of instances to create. + * Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. * * @param {Object} request * The request object that will be sent. @@ -5416,7 +5416,7 @@ export class InstancesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IInstancesScopedList] @@ -5569,7 +5569,7 @@ export class InstancesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -5626,7 +5626,7 @@ export class InstancesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5785,7 +5785,7 @@ export class InstancesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listReferrers.createStream( - this.innerApiCalls.listReferrers as gax.GaxCall, + this.innerApiCalls.listReferrers as GaxCall, request, callSettings ); @@ -5845,7 +5845,7 @@ export class InstancesClient { this.initialize(); return this.descriptors.page.listReferrers.asyncIterate( this.innerApiCalls['listReferrers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/interconnect_attachments_client.ts b/src/v1/interconnect_attachments_client.ts index 537ea60e..b544d3dd 100644 --- a/src/v1/interconnect_attachments_client.ts +++ b/src/v1/interconnect_attachments_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class InterconnectAttachmentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -851,7 +851,7 @@ export class InterconnectAttachmentsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [ @@ -1015,7 +1015,7 @@ export class InterconnectAttachmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1072,7 +1072,7 @@ export class InterconnectAttachmentsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/interconnect_locations_client.ts b/src/v1/interconnect_locations_client.ts index d2ea733c..00bd1678 100644 --- a/src/v1/interconnect_locations_client.ts +++ b/src/v1/interconnect_locations_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -242,7 +241,8 @@ export class InterconnectLocationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -558,7 +558,7 @@ export class InterconnectLocationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -612,7 +612,7 @@ export class InterconnectLocationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/interconnects_client.ts b/src/v1/interconnects_client.ts index 8a7460e6..3fb91da6 100644 --- a/src/v1/interconnects_client.ts +++ b/src/v1/interconnects_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class InterconnectsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1008,7 +1008,7 @@ export class InterconnectsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1062,7 +1062,7 @@ export class InterconnectsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/license_codes_client.ts b/src/v1/license_codes_client.ts index 445c5caf..cfcaf87a 100644 --- a/src/v1/license_codes_client.ts +++ b/src/v1/license_codes_client.ts @@ -221,7 +221,8 @@ export class LicenseCodesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1/licenses_client.ts b/src/v1/licenses_client.ts index 1358069b..54eac33b 100644 --- a/src/v1/licenses_client.ts +++ b/src/v1/licenses_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class LicensesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1068,7 +1068,7 @@ export class LicensesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1122,7 +1122,7 @@ export class LicensesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/machine_images_client.ts b/src/v1/machine_images_client.ts index 4ef261fc..6b0beb57 100644 --- a/src/v1/machine_images_client.ts +++ b/src/v1/machine_images_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class MachineImagesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1094,7 +1094,7 @@ export class MachineImagesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1148,7 +1148,7 @@ export class MachineImagesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/machine_types_client.ts b/src/v1/machine_types_client.ts index e255bf08..42fd40dd 100644 --- a/src/v1/machine_types_client.ts +++ b/src/v1/machine_types_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -246,7 +245,8 @@ export class MachineTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -456,7 +456,7 @@ export class MachineTypesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IMachineTypesScopedList] @@ -609,7 +609,7 @@ export class MachineTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -666,7 +666,7 @@ export class MachineTypesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/network_edge_security_services_client.ts b/src/v1/network_edge_security_services_client.ts index cba2861f..a2a5bd15 100644 --- a/src/v1/network_edge_security_services_client.ts +++ b/src/v1/network_edge_security_services_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class NetworkEdgeSecurityServicesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -852,7 +852,7 @@ export class NetworkEdgeSecurityServicesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [ diff --git a/src/v1/network_endpoint_groups_client.ts b/src/v1/network_endpoint_groups_client.ts index 404fe9b4..a4d69126 100644 --- a/src/v1/network_endpoint_groups_client.ts +++ b/src/v1/network_endpoint_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -263,7 +262,8 @@ export class NetworkEndpointGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1088,7 +1088,7 @@ export class NetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.INetworkEndpointGroupsScopedList] @@ -1249,7 +1249,7 @@ export class NetworkEndpointGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1306,7 +1306,7 @@ export class NetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1475,7 +1475,7 @@ export class NetworkEndpointGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listNetworkEndpoints.createStream( - this.innerApiCalls.listNetworkEndpoints as gax.GaxCall, + this.innerApiCalls.listNetworkEndpoints as GaxCall, request, callSettings ); @@ -1537,7 +1537,7 @@ export class NetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.listNetworkEndpoints.asyncIterate( this.innerApiCalls['listNetworkEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/network_firewall_policies_client.ts b/src/v1/network_firewall_policies_client.ts index c3da228d..7951c562 100644 --- a/src/v1/network_firewall_policies_client.ts +++ b/src/v1/network_firewall_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -260,7 +259,8 @@ export class NetworkFirewallPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2187,7 +2187,7 @@ export class NetworkFirewallPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -2241,7 +2241,7 @@ export class NetworkFirewallPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/networks_client.ts b/src/v1/networks_client.ts index 6648c7f9..b2891794 100644 --- a/src/v1/networks_client.ts +++ b/src/v1/networks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -259,7 +258,8 @@ export class NetworksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1488,7 +1488,7 @@ export class NetworksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1542,7 +1542,7 @@ export class NetworksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1715,7 +1715,7 @@ export class NetworksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPeeringRoutes.createStream( - this.innerApiCalls.listPeeringRoutes as gax.GaxCall, + this.innerApiCalls.listPeeringRoutes as GaxCall, request, callSettings ); @@ -1779,7 +1779,7 @@ export class NetworksClient { this.initialize(); return this.descriptors.page.listPeeringRoutes.asyncIterate( this.innerApiCalls['listPeeringRoutes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/node_groups_client.ts b/src/v1/node_groups_client.ts index 56a8db37..fae9a938 100644 --- a/src/v1/node_groups_client.ts +++ b/src/v1/node_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -266,7 +265,8 @@ export class NodeGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1513,7 +1513,7 @@ export class NodeGroupsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.INodeGroupsScopedList] @@ -1666,7 +1666,7 @@ export class NodeGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1723,7 +1723,7 @@ export class NodeGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1882,7 +1882,7 @@ export class NodeGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listNodes.createStream( - this.innerApiCalls.listNodes as gax.GaxCall, + this.innerApiCalls.listNodes as GaxCall, request, callSettings ); @@ -1942,7 +1942,7 @@ export class NodeGroupsClient { this.initialize(); return this.descriptors.page.listNodes.asyncIterate( this.innerApiCalls['listNodes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/node_templates_client.ts b/src/v1/node_templates_client.ts index 69c68cf0..d56888af 100644 --- a/src/v1/node_templates_client.ts +++ b/src/v1/node_templates_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -256,7 +255,8 @@ export class NodeTemplatesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1027,7 +1027,7 @@ export class NodeTemplatesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.INodeTemplatesScopedList] @@ -1180,7 +1180,7 @@ export class NodeTemplatesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1237,7 +1237,7 @@ export class NodeTemplatesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/node_types_client.ts b/src/v1/node_types_client.ts index ac356960..1d23047e 100644 --- a/src/v1/node_types_client.ts +++ b/src/v1/node_types_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -246,7 +245,8 @@ export class NodeTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -454,7 +454,7 @@ export class NodeTypesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.INodeTypesScopedList] @@ -607,7 +607,7 @@ export class NodeTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -664,7 +664,7 @@ export class NodeTypesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/packet_mirrorings_client.ts b/src/v1/packet_mirrorings_client.ts index 0a2d91f4..f09fb077 100644 --- a/src/v1/packet_mirrorings_client.ts +++ b/src/v1/packet_mirrorings_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class PacketMirroringsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -948,7 +948,7 @@ export class PacketMirroringsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IPacketMirroringsScopedList] @@ -1103,7 +1103,7 @@ export class PacketMirroringsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1160,7 +1160,7 @@ export class PacketMirroringsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/projects_client.ts b/src/v1/projects_client.ts index 281c3b64..279c1d74 100644 --- a/src/v1/projects_client.ts +++ b/src/v1/projects_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -261,7 +260,8 @@ export class ProjectsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1720,7 +1720,7 @@ export class ProjectsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.getXpnResources.createStream( - this.innerApiCalls.getXpnResources as gax.GaxCall, + this.innerApiCalls.getXpnResources as GaxCall, request, callSettings ); @@ -1774,7 +1774,7 @@ export class ProjectsClient { this.initialize(); return this.descriptors.page.getXpnResources.asyncIterate( this.innerApiCalls['getXpnResources'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1923,7 +1923,7 @@ export class ProjectsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listXpnHosts.createStream( - this.innerApiCalls.listXpnHosts as gax.GaxCall, + this.innerApiCalls.listXpnHosts as GaxCall, request, callSettings ); @@ -1979,7 +1979,7 @@ export class ProjectsClient { this.initialize(); return this.descriptors.page.listXpnHosts.asyncIterate( this.innerApiCalls['listXpnHosts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/public_advertised_prefixes_client.ts b/src/v1/public_advertised_prefixes_client.ts index 1f048d37..67bb8ee4 100644 --- a/src/v1/public_advertised_prefixes_client.ts +++ b/src/v1/public_advertised_prefixes_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class PublicAdvertisedPrefixesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -929,7 +929,7 @@ export class PublicAdvertisedPrefixesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -983,7 +983,7 @@ export class PublicAdvertisedPrefixesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/public_delegated_prefixes_client.ts b/src/v1/public_delegated_prefixes_client.ts index 4e98ed57..80c3e67e 100644 --- a/src/v1/public_delegated_prefixes_client.ts +++ b/src/v1/public_delegated_prefixes_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class PublicDelegatedPrefixesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -849,7 +849,7 @@ export class PublicDelegatedPrefixesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [ @@ -1013,7 +1013,7 @@ export class PublicDelegatedPrefixesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1070,7 +1070,7 @@ export class PublicDelegatedPrefixesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_autoscalers_client.ts b/src/v1/region_autoscalers_client.ts index 9fa4d68f..910f5f40 100644 --- a/src/v1/region_autoscalers_client.ts +++ b/src/v1/region_autoscalers_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionAutoscalersClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1058,7 +1058,7 @@ export class RegionAutoscalersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1115,7 +1115,7 @@ export class RegionAutoscalersClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_backend_services_client.ts b/src/v1/region_backend_services_client.ts index b5a31ab8..47614201 100644 --- a/src/v1/region_backend_services_client.ts +++ b/src/v1/region_backend_services_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -251,7 +250,8 @@ export class RegionBackendServicesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1170,7 +1170,7 @@ export class RegionBackendServicesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1227,7 +1227,7 @@ export class RegionBackendServicesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_commitments_client.ts b/src/v1/region_commitments_client.ts index 723a74aa..b771d4bb 100644 --- a/src/v1/region_commitments_client.ts +++ b/src/v1/region_commitments_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class RegionCommitmentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -720,7 +720,7 @@ export class RegionCommitmentsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ICommitmentsScopedList] @@ -873,7 +873,7 @@ export class RegionCommitmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -930,7 +930,7 @@ export class RegionCommitmentsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_disk_types_client.ts b/src/v1/region_disk_types_client.ts index bb27733d..ecc17810 100644 --- a/src/v1/region_disk_types_client.ts +++ b/src/v1/region_disk_types_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -241,7 +240,8 @@ export class RegionDiskTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -552,7 +552,7 @@ export class RegionDiskTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -609,7 +609,7 @@ export class RegionDiskTypesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_disks_client.ts b/src/v1/region_disks_client.ts index c30ad352..d5d876cf 100644 --- a/src/v1/region_disks_client.ts +++ b/src/v1/region_disks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class RegionDisksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1741,7 +1741,7 @@ export class RegionDisksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1798,7 +1798,7 @@ export class RegionDisksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_health_check_services_client.ts b/src/v1/region_health_check_services_client.ts index dde266fb..63babf7c 100644 --- a/src/v1/region_health_check_services_client.ts +++ b/src/v1/region_health_check_services_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class RegionHealthCheckServicesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -947,7 +947,7 @@ export class RegionHealthCheckServicesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1004,7 +1004,7 @@ export class RegionHealthCheckServicesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_health_checks_client.ts b/src/v1/region_health_checks_client.ts index 46bf71c1..df97f908 100644 --- a/src/v1/region_health_checks_client.ts +++ b/src/v1/region_health_checks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionHealthChecksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1058,7 +1058,7 @@ export class RegionHealthChecksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1115,7 +1115,7 @@ export class RegionHealthChecksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_instance_group_managers_client.ts b/src/v1/region_instance_group_managers_client.ts index 6c8b48b4..a87b8c31 100644 --- a/src/v1/region_instance_group_managers_client.ts +++ b/src/v1/region_instance_group_managers_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -279,7 +278,8 @@ export class RegionInstanceGroupManagersClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2358,7 +2358,7 @@ export class RegionInstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -2415,7 +2415,7 @@ export class RegionInstanceGroupManagersClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2580,7 +2580,7 @@ export class RegionInstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listErrors.createStream( - this.innerApiCalls.listErrors as gax.GaxCall, + this.innerApiCalls.listErrors as GaxCall, request, callSettings ); @@ -2640,12 +2640,12 @@ export class RegionInstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listErrors.asyncIterate( this.innerApiCalls['listErrors'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } /** - * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. + * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * @param {Object} request * The request object that will be sent. @@ -2805,7 +2805,7 @@ export class RegionInstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listManagedInstances.createStream( - this.innerApiCalls.listManagedInstances as gax.GaxCall, + this.innerApiCalls.listManagedInstances as GaxCall, request, callSettings ); @@ -2865,7 +2865,7 @@ export class RegionInstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listManagedInstances.asyncIterate( this.innerApiCalls['listManagedInstances'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3034,7 +3034,7 @@ export class RegionInstanceGroupManagersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPerInstanceConfigs.createStream( - this.innerApiCalls.listPerInstanceConfigs as gax.GaxCall, + this.innerApiCalls.listPerInstanceConfigs as GaxCall, request, callSettings ); @@ -3094,7 +3094,7 @@ export class RegionInstanceGroupManagersClient { this.initialize(); return this.descriptors.page.listPerInstanceConfigs.asyncIterate( this.innerApiCalls['listPerInstanceConfigs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_instance_groups_client.ts b/src/v1/region_instance_groups_client.ts index 297097f2..2d13bc8d 100644 --- a/src/v1/region_instance_groups_client.ts +++ b/src/v1/region_instance_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -252,7 +251,8 @@ export class RegionInstanceGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -696,7 +696,7 @@ export class RegionInstanceGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -753,7 +753,7 @@ export class RegionInstanceGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -922,7 +922,7 @@ export class RegionInstanceGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listInstances.createStream( - this.innerApiCalls.listInstances as gax.GaxCall, + this.innerApiCalls.listInstances as GaxCall, request, callSettings ); @@ -984,7 +984,7 @@ export class RegionInstanceGroupsClient { this.initialize(); return this.descriptors.page.listInstances.asyncIterate( this.innerApiCalls['listInstances'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_instances_client.ts b/src/v1/region_instances_client.ts index 06485c1e..48cbbe7d 100644 --- a/src/v1/region_instances_client.ts +++ b/src/v1/region_instances_client.ts @@ -227,7 +227,8 @@ export class RegionInstancesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1/region_network_endpoint_groups_client.ts b/src/v1/region_network_endpoint_groups_client.ts index 7523be11..02c56fef 100644 --- a/src/v1/region_network_endpoint_groups_client.ts +++ b/src/v1/region_network_endpoint_groups_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionNetworkEndpointGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -820,7 +820,7 @@ export class RegionNetworkEndpointGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -877,7 +877,7 @@ export class RegionNetworkEndpointGroupsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_network_firewall_policies_client.ts b/src/v1/region_network_firewall_policies_client.ts index 5b03705f..9e97b196 100644 --- a/src/v1/region_network_firewall_policies_client.ts +++ b/src/v1/region_network_firewall_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -262,7 +261,8 @@ export class RegionNetworkFirewallPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2342,7 +2342,7 @@ export class RegionNetworkFirewallPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -2399,7 +2399,7 @@ export class RegionNetworkFirewallPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_notification_endpoints_client.ts b/src/v1/region_notification_endpoints_client.ts index 3cc37d4d..0fd8ad56 100644 --- a/src/v1/region_notification_endpoints_client.ts +++ b/src/v1/region_notification_endpoints_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionNotificationEndpointsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -820,7 +820,7 @@ export class RegionNotificationEndpointsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -877,7 +877,7 @@ export class RegionNotificationEndpointsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_operations_client.ts b/src/v1/region_operations_client.ts index 64da5c5f..0faa856b 100644 --- a/src/v1/region_operations_client.ts +++ b/src/v1/region_operations_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -241,7 +240,8 @@ export class RegionOperationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -745,7 +745,7 @@ export class RegionOperationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -802,7 +802,7 @@ export class RegionOperationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_security_policies_client.ts b/src/v1/region_security_policies_client.ts index 047df430..b24df1a7 100644 --- a/src/v1/region_security_policies_client.ts +++ b/src/v1/region_security_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionSecurityPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -940,7 +940,7 @@ export class RegionSecurityPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -997,7 +997,7 @@ export class RegionSecurityPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_ssl_certificates_client.ts b/src/v1/region_ssl_certificates_client.ts index 29a1033a..ebc28fc4 100644 --- a/src/v1/region_ssl_certificates_client.ts +++ b/src/v1/region_ssl_certificates_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -248,7 +247,8 @@ export class RegionSslCertificatesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -811,7 +811,7 @@ export class RegionSslCertificatesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -868,7 +868,7 @@ export class RegionSslCertificatesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_target_http_proxies_client.ts b/src/v1/region_target_http_proxies_client.ts index 79ae8092..de1678a4 100644 --- a/src/v1/region_target_http_proxies_client.ts +++ b/src/v1/region_target_http_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class RegionTargetHttpProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -940,7 +940,7 @@ export class RegionTargetHttpProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -997,7 +997,7 @@ export class RegionTargetHttpProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_target_https_proxies_client.ts b/src/v1/region_target_https_proxies_client.ts index b612f65b..f552ab4a 100644 --- a/src/v1/region_target_https_proxies_client.ts +++ b/src/v1/region_target_https_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -252,7 +251,8 @@ export class RegionTargetHttpsProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1195,7 +1195,7 @@ export class RegionTargetHttpsProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1252,7 +1252,7 @@ export class RegionTargetHttpsProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/region_url_maps_client.ts b/src/v1/region_url_maps_client.ts index 7145dae0..8fc0337f 100644 --- a/src/v1/region_url_maps_client.ts +++ b/src/v1/region_url_maps_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class RegionUrlMapsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1152,7 +1152,7 @@ export class RegionUrlMapsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1209,7 +1209,7 @@ export class RegionUrlMapsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/regions_client.ts b/src/v1/regions_client.ts index dbcbe6f6..7b21415f 100644 --- a/src/v1/regions_client.ts +++ b/src/v1/regions_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -241,7 +240,8 @@ export class RegionsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -535,7 +535,7 @@ export class RegionsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -589,7 +589,7 @@ export class RegionsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/reservations_client.ts b/src/v1/reservations_client.ts index 26d77f15..ab228a32 100644 --- a/src/v1/reservations_client.ts +++ b/src/v1/reservations_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -258,7 +257,8 @@ export class ReservationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1284,7 +1284,7 @@ export class ReservationsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IReservationsScopedList] @@ -1437,7 +1437,7 @@ export class ReservationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1494,7 +1494,7 @@ export class ReservationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/resource_policies_client.ts b/src/v1/resource_policies_client.ts index 4a3d6436..e44c8b72 100644 --- a/src/v1/resource_policies_client.ts +++ b/src/v1/resource_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -256,7 +255,8 @@ export class ResourcePoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1033,7 +1033,7 @@ export class ResourcePoliciesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IResourcePoliciesScopedList] @@ -1186,7 +1186,7 @@ export class ResourcePoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1243,7 +1243,7 @@ export class ResourcePoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/routers_client.ts b/src/v1/routers_client.ts index 538ead5b..916703cb 100644 --- a/src/v1/routers_client.ts +++ b/src/v1/routers_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -263,7 +262,8 @@ export class RoutersClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1133,7 +1133,7 @@ export class RoutersClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IRoutersScopedList] @@ -1300,7 +1300,7 @@ export class RoutersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.getNatMappingInfo.createStream( - this.innerApiCalls.getNatMappingInfo as gax.GaxCall, + this.innerApiCalls.getNatMappingInfo as GaxCall, request, callSettings ); @@ -1360,7 +1360,7 @@ export class RoutersClient { this.initialize(); return this.descriptors.page.getNatMappingInfo.asyncIterate( this.innerApiCalls['getNatMappingInfo'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1511,7 +1511,7 @@ export class RoutersClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1568,7 +1568,7 @@ export class RoutersClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/routes_client.ts b/src/v1/routes_client.ts index 92bea8a1..25722898 100644 --- a/src/v1/routes_client.ts +++ b/src/v1/routes_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -242,7 +241,8 @@ export class RoutesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -760,7 +760,7 @@ export class RoutesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -814,7 +814,7 @@ export class RoutesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/security_policies_client.ts b/src/v1/security_policies_client.ts index 61f03f01..d92b6050 100644 --- a/src/v1/security_policies_client.ts +++ b/src/v1/security_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -259,7 +258,8 @@ export class SecurityPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1413,7 +1413,7 @@ export class SecurityPoliciesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ISecurityPoliciesScopedList] @@ -1560,7 +1560,7 @@ export class SecurityPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1614,7 +1614,7 @@ export class SecurityPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/service_attachments_client.ts b/src/v1/service_attachments_client.ts index 592b01cb..73cfc15c 100644 --- a/src/v1/service_attachments_client.ts +++ b/src/v1/service_attachments_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -257,7 +256,8 @@ export class ServiceAttachmentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1160,7 +1160,7 @@ export class ServiceAttachmentsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IServiceAttachmentsScopedList] @@ -1315,7 +1315,7 @@ export class ServiceAttachmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1372,7 +1372,7 @@ export class ServiceAttachmentsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/snapshots_client.ts b/src/v1/snapshots_client.ts index c7994ba6..97b1a9c9 100644 --- a/src/v1/snapshots_client.ts +++ b/src/v1/snapshots_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -251,7 +250,8 @@ export class SnapshotsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1188,7 +1188,7 @@ export class SnapshotsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1242,7 +1242,7 @@ export class SnapshotsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/ssl_certificates_client.ts b/src/v1/ssl_certificates_client.ts index 70872088..c4562178 100644 --- a/src/v1/ssl_certificates_client.ts +++ b/src/v1/ssl_certificates_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class SslCertificatesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -706,7 +706,7 @@ export class SslCertificatesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ISslCertificatesScopedList] @@ -853,7 +853,7 @@ export class SslCertificatesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -907,7 +907,7 @@ export class SslCertificatesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/ssl_policies_client.ts b/src/v1/ssl_policies_client.ts index b71de73b..96afd2c5 100644 --- a/src/v1/ssl_policies_client.ts +++ b/src/v1/ssl_policies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class SslPoliciesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -997,7 +997,7 @@ export class SslPoliciesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1051,7 +1051,7 @@ export class SslPoliciesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/subnetworks_client.ts b/src/v1/subnetworks_client.ts index 6f25ba65..92e1c884 100644 --- a/src/v1/subnetworks_client.ts +++ b/src/v1/subnetworks_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -265,7 +264,8 @@ export class SubnetworksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1398,7 +1398,7 @@ export class SubnetworksClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ISubnetworksScopedList] @@ -1551,7 +1551,7 @@ export class SubnetworksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1608,7 +1608,7 @@ export class SubnetworksClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1761,7 +1761,7 @@ export class SubnetworksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listUsable.createStream( - this.innerApiCalls.listUsable as gax.GaxCall, + this.innerApiCalls.listUsable as GaxCall, request, callSettings ); @@ -1815,7 +1815,7 @@ export class SubnetworksClient { this.initialize(); return this.descriptors.page.listUsable.asyncIterate( this.innerApiCalls['listUsable'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_grpc_proxies_client.ts b/src/v1/target_grpc_proxies_client.ts index 0d021bc9..ba19ed93 100644 --- a/src/v1/target_grpc_proxies_client.ts +++ b/src/v1/target_grpc_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -248,7 +247,8 @@ export class TargetGrpcProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -915,7 +915,7 @@ export class TargetGrpcProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -969,7 +969,7 @@ export class TargetGrpcProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_http_proxies_client.ts b/src/v1/target_http_proxies_client.ts index f3479c8e..986fef2f 100644 --- a/src/v1/target_http_proxies_client.ts +++ b/src/v1/target_http_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -255,7 +254,8 @@ export class TargetHttpProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -954,7 +954,7 @@ export class TargetHttpProxiesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ITargetHttpProxiesScopedList] @@ -1103,7 +1103,7 @@ export class TargetHttpProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1157,7 +1157,7 @@ export class TargetHttpProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_https_proxies_client.ts b/src/v1/target_https_proxies_client.ts index cbb56294..d7ee2a87 100644 --- a/src/v1/target_https_proxies_client.ts +++ b/src/v1/target_https_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -259,7 +258,8 @@ export class TargetHttpsProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1450,7 +1450,7 @@ export class TargetHttpsProxiesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ITargetHttpsProxiesScopedList] @@ -1599,7 +1599,7 @@ export class TargetHttpsProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1653,7 +1653,7 @@ export class TargetHttpsProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_instances_client.ts b/src/v1/target_instances_client.ts index e78c6cf2..deabb1d0 100644 --- a/src/v1/target_instances_client.ts +++ b/src/v1/target_instances_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class TargetInstancesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -715,7 +715,7 @@ export class TargetInstancesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ITargetInstancesScopedList] @@ -868,7 +868,7 @@ export class TargetInstancesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -925,7 +925,7 @@ export class TargetInstancesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_pools_client.ts b/src/v1/target_pools_client.ts index 9a9b2265..c9007ce0 100644 --- a/src/v1/target_pools_client.ts +++ b/src/v1/target_pools_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -259,7 +258,8 @@ export class TargetPoolsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1446,7 +1446,7 @@ export class TargetPoolsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ITargetPoolsScopedList] @@ -1599,7 +1599,7 @@ export class TargetPoolsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1656,7 +1656,7 @@ export class TargetPoolsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_ssl_proxies_client.ts b/src/v1/target_ssl_proxies_client.ts index 1ebd985a..ccabf327 100644 --- a/src/v1/target_ssl_proxies_client.ts +++ b/src/v1/target_ssl_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -252,7 +251,8 @@ export class TargetSslProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1409,7 +1409,7 @@ export class TargetSslProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1463,7 +1463,7 @@ export class TargetSslProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_tcp_proxies_client.ts b/src/v1/target_tcp_proxies_client.ts index 71f3f676..3b8309a8 100644 --- a/src/v1/target_tcp_proxies_client.ts +++ b/src/v1/target_tcp_proxies_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -249,7 +248,8 @@ export class TargetTcpProxiesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1037,7 +1037,7 @@ export class TargetTcpProxiesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1091,7 +1091,7 @@ export class TargetTcpProxiesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/target_vpn_gateways_client.ts b/src/v1/target_vpn_gateways_client.ts index 2ccb8e48..4d6c5854 100644 --- a/src/v1/target_vpn_gateways_client.ts +++ b/src/v1/target_vpn_gateways_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class TargetVpnGatewaysClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -715,7 +715,7 @@ export class TargetVpnGatewaysClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.ITargetVpnGatewaysScopedList] @@ -870,7 +870,7 @@ export class TargetVpnGatewaysClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -927,7 +927,7 @@ export class TargetVpnGatewaysClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/url_maps_client.ts b/src/v1/url_maps_client.ts index 9b71aee4..75c4d10c 100644 --- a/src/v1/url_maps_client.ts +++ b/src/v1/url_maps_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -257,7 +256,8 @@ export class UrlMapsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1135,7 +1135,7 @@ export class UrlMapsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IUrlMapsScopedList] @@ -1282,7 +1282,7 @@ export class UrlMapsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1336,7 +1336,7 @@ export class UrlMapsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/vpn_gateways_client.ts b/src/v1/vpn_gateways_client.ts index 211950a9..8d3ac9eb 100644 --- a/src/v1/vpn_gateways_client.ts +++ b/src/v1/vpn_gateways_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -256,7 +255,8 @@ export class VpnGatewaysClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1040,7 +1040,7 @@ export class VpnGatewaysClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IVpnGatewaysScopedList] @@ -1193,7 +1193,7 @@ export class VpnGatewaysClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -1250,7 +1250,7 @@ export class VpnGatewaysClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/vpn_tunnels_client.ts b/src/v1/vpn_tunnels_client.ts index 68411334..1e8b05a4 100644 --- a/src/v1/vpn_tunnels_client.ts +++ b/src/v1/vpn_tunnels_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -253,7 +252,8 @@ export class VpnTunnelsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -697,7 +697,7 @@ export class VpnTunnelsClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1.IVpnTunnelsScopedList] @@ -850,7 +850,7 @@ export class VpnTunnelsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -907,7 +907,7 @@ export class VpnTunnelsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/zone_operations_client.ts b/src/v1/zone_operations_client.ts index 83f72f6f..e429d621 100644 --- a/src/v1/zone_operations_client.ts +++ b/src/v1/zone_operations_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -241,7 +240,8 @@ export class ZoneOperationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -745,7 +745,7 @@ export class ZoneOperationsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -802,7 +802,7 @@ export class ZoneOperationsClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/zones_client.ts b/src/v1/zones_client.ts index 39751101..afc250e5 100644 --- a/src/v1/zones_client.ts +++ b/src/v1/zones_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -241,7 +240,8 @@ export class ZonesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -535,7 +535,7 @@ export class ZonesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -589,7 +589,7 @@ export class ZonesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1small/addresses_client.ts b/src/v1small/addresses_client.ts index 0e5bec39..442326e4 100644 --- a/src/v1small/addresses_client.ts +++ b/src/v1small/addresses_client.ts @@ -29,7 +29,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -250,7 +249,8 @@ export class AddressesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -631,7 +631,7 @@ export class AddressesClient { this.initialize(); return this.descriptors.page.aggregatedList.asyncIterate( this.innerApiCalls['aggregatedList'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable< [string, protos.google.cloud.compute.v1small.IAddressesScopedList] @@ -800,7 +800,7 @@ export class AddressesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.list.createStream( - this.innerApiCalls.list as gax.GaxCall, + this.innerApiCalls.list as GaxCall, request, callSettings ); @@ -865,7 +865,7 @@ export class AddressesClient { this.initialize(); return this.descriptors.page.list.asyncIterate( this.innerApiCalls['list'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1small/region_operations_client.ts b/src/v1small/region_operations_client.ts index 323db2e7..6e9054c7 100644 --- a/src/v1small/region_operations_client.ts +++ b/src/v1small/region_operations_client.ts @@ -221,7 +221,8 @@ export class RegionOperationsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/test/gapic_accelerator_types_v1.ts b/test/gapic_accelerator_types_v1.ts index 84b36b68..a93c9b9c 100644 --- a/test/gapic_accelerator_types_v1.ts +++ b/test/gapic_accelerator_types_v1.ts @@ -126,101 +126,103 @@ describe('v1.AcceleratorTypesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - acceleratortypesModule.v1.AcceleratorTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - acceleratortypesModule.v1.AcceleratorTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = acceleratortypesModule.v1.AcceleratorTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new acceleratortypesModule.v1.AcceleratorTypesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + acceleratortypesModule.v1.AcceleratorTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + acceleratortypesModule.v1.AcceleratorTypesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = acceleratortypesModule.v1.AcceleratorTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.acceleratorTypesStub, undefined); - await client.initialize(); - assert(client.acceleratorTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new acceleratortypesModule.v1.AcceleratorTypesClient(); + assert(client); }); - client.initialize(); - assert(client.acceleratorTypesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.acceleratorTypesStub, undefined); + await client.initialize(); + assert(client.acceleratorTypesStub); }); - assert.strictEqual(client.acceleratorTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.acceleratorTypesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.acceleratorTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 acceleratortypesModule.v1.AcceleratorTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new acceleratortypesModule.v1.AcceleratorTypesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_addresses_v1.ts b/test/gapic_addresses_v1.ts index 9a5a7b59..9be22f6a 100644 --- a/test/gapic_addresses_v1.ts +++ b/test/gapic_addresses_v1.ts @@ -126,99 +126,101 @@ describe('v1.AddressesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = addressesModule.v1.AddressesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = addressesModule.v1.AddressesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = addressesModule.v1.AddressesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new addressesModule.v1.AddressesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new addressesModule.v1.AddressesClient({ - fallback: true, + it('has port', () => { + const port = addressesModule.v1.AddressesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new addressesModule.v1.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new addressesModule.v1.AddressesClient(); + assert(client); }); - assert.strictEqual(client.addressesStub, undefined); - await client.initialize(); - assert(client.addressesStub); - }); - it('has close method for the initialized client', done => { - const client = new addressesModule.v1.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new addressesModule.v1.AddressesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.addressesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new addressesModule.v1.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.addressesStub, undefined); + await client.initialize(); + assert(client.addressesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new addressesModule.v1.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new addressesModule.v1.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.addressesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.addressesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new addressesModule.v1.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.addressesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new addressesModule.v1.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new addressesModule.v1.AddressesClient({ + 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()); }); - 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 addressesModule.v1.AddressesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new addressesModule.v1.AddressesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_addresses_v1small.ts b/test/gapic_addresses_v1small.ts index 38da1560..9dfaf669 100644 --- a/test/gapic_addresses_v1small.ts +++ b/test/gapic_addresses_v1small.ts @@ -126,99 +126,101 @@ describe('v1small.AddressesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = addressesModule.v1small.AddressesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = addressesModule.v1small.AddressesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = addressesModule.v1small.AddressesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new addressesModule.v1small.AddressesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = addressesModule.v1small.AddressesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new addressesModule.v1small.AddressesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = addressesModule.v1small.AddressesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new addressesModule.v1small.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = addressesModule.v1small.AddressesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.addressesStub, undefined); - await client.initialize(); - assert(client.addressesStub); - }); - it('has close method for the initialized client', done => { - const client = new addressesModule.v1small.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new addressesModule.v1small.AddressesClient(); + assert(client); }); - client.initialize(); - assert(client.addressesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new addressesModule.v1small.AddressesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new addressesModule.v1small.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new addressesModule.v1small.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.addressesStub, undefined); + await client.initialize(); + assert(client.addressesStub); }); - assert.strictEqual(client.addressesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new addressesModule.v1small.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.addressesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new addressesModule.v1small.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new addressesModule.v1small.AddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.addressesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 addressesModule.v1small.AddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new addressesModule.v1small.AddressesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new addressesModule.v1small.AddressesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_autoscalers_v1.ts b/test/gapic_autoscalers_v1.ts index 9cfec26c..3da6ccbb 100644 --- a/test/gapic_autoscalers_v1.ts +++ b/test/gapic_autoscalers_v1.ts @@ -126,99 +126,101 @@ describe('v1.AutoscalersClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = autoscalersModule.v1.AutoscalersClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = autoscalersModule.v1.AutoscalersClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = autoscalersModule.v1.AutoscalersClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new autoscalersModule.v1.AutoscalersClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = autoscalersModule.v1.AutoscalersClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new autoscalersModule.v1.AutoscalersClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = autoscalersModule.v1.AutoscalersClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new autoscalersModule.v1.AutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = autoscalersModule.v1.AutoscalersClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.autoscalersStub, undefined); - await client.initialize(); - assert(client.autoscalersStub); - }); - it('has close method for the initialized client', done => { - const client = new autoscalersModule.v1.AutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new autoscalersModule.v1.AutoscalersClient(); + assert(client); }); - client.initialize(); - assert(client.autoscalersStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new autoscalersModule.v1.AutoscalersClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new autoscalersModule.v1.AutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new autoscalersModule.v1.AutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.autoscalersStub, undefined); + await client.initialize(); + assert(client.autoscalersStub); }); - assert.strictEqual(client.autoscalersStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new autoscalersModule.v1.AutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.autoscalersStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new autoscalersModule.v1.AutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new autoscalersModule.v1.AutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.autoscalersStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 autoscalersModule.v1.AutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new autoscalersModule.v1.AutoscalersClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new autoscalersModule.v1.AutoscalersClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_backend_buckets_v1.ts b/test/gapic_backend_buckets_v1.ts index 4234b480..7221d28c 100644 --- a/test/gapic_backend_buckets_v1.ts +++ b/test/gapic_backend_buckets_v1.ts @@ -126,101 +126,103 @@ describe('v1.BackendBucketsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - backendbucketsModule.v1.BackendBucketsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - backendbucketsModule.v1.BackendBucketsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = backendbucketsModule.v1.BackendBucketsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new backendbucketsModule.v1.BackendBucketsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + backendbucketsModule.v1.BackendBucketsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new backendbucketsModule.v1.BackendBucketsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + backendbucketsModule.v1.BackendBucketsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new backendbucketsModule.v1.BackendBucketsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = backendbucketsModule.v1.BackendBucketsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.backendBucketsStub, undefined); - await client.initialize(); - assert(client.backendBucketsStub); - }); - it('has close method for the initialized client', done => { - const client = new backendbucketsModule.v1.BackendBucketsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new backendbucketsModule.v1.BackendBucketsClient(); + assert(client); }); - client.initialize(); - assert(client.backendBucketsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new backendbucketsModule.v1.BackendBucketsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.backendBucketsStub, undefined); + await client.initialize(); + assert(client.backendBucketsStub); }); - assert.strictEqual(client.backendBucketsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.backendBucketsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new backendbucketsModule.v1.BackendBucketsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.backendBucketsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 backendbucketsModule.v1.BackendBucketsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new backendbucketsModule.v1.BackendBucketsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new backendbucketsModule.v1.BackendBucketsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addSignedUrlKey', () => { diff --git a/test/gapic_backend_services_v1.ts b/test/gapic_backend_services_v1.ts index c83bd1a9..3d86bd16 100644 --- a/test/gapic_backend_services_v1.ts +++ b/test/gapic_backend_services_v1.ts @@ -126,101 +126,103 @@ describe('v1.BackendServicesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - backendservicesModule.v1.BackendServicesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - backendservicesModule.v1.BackendServicesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = backendservicesModule.v1.BackendServicesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new backendservicesModule.v1.BackendServicesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + backendservicesModule.v1.BackendServicesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new backendservicesModule.v1.BackendServicesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + backendservicesModule.v1.BackendServicesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new backendservicesModule.v1.BackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = backendservicesModule.v1.BackendServicesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.backendServicesStub, undefined); - await client.initialize(); - assert(client.backendServicesStub); - }); - it('has close method for the initialized client', done => { - const client = new backendservicesModule.v1.BackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new backendservicesModule.v1.BackendServicesClient(); + assert(client); }); - client.initialize(); - assert(client.backendServicesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new backendservicesModule.v1.BackendServicesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new backendservicesModule.v1.BackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.backendServicesStub, undefined); + await client.initialize(); + assert(client.backendServicesStub); }); - assert.strictEqual(client.backendServicesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.backendServicesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new backendservicesModule.v1.BackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.backendServicesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 backendservicesModule.v1.BackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new backendservicesModule.v1.BackendServicesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new backendservicesModule.v1.BackendServicesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addSignedUrlKey', () => { diff --git a/test/gapic_disk_types_v1.ts b/test/gapic_disk_types_v1.ts index 4390e80b..53673f65 100644 --- a/test/gapic_disk_types_v1.ts +++ b/test/gapic_disk_types_v1.ts @@ -126,99 +126,101 @@ describe('v1.DiskTypesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = disktypesModule.v1.DiskTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = disktypesModule.v1.DiskTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = disktypesModule.v1.DiskTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new disktypesModule.v1.DiskTypesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = disktypesModule.v1.DiskTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new disktypesModule.v1.DiskTypesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = disktypesModule.v1.DiskTypesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new disktypesModule.v1.DiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = disktypesModule.v1.DiskTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.diskTypesStub, undefined); - await client.initialize(); - assert(client.diskTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new disktypesModule.v1.DiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new disktypesModule.v1.DiskTypesClient(); + assert(client); }); - client.initialize(); - assert(client.diskTypesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new disktypesModule.v1.DiskTypesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new disktypesModule.v1.DiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new disktypesModule.v1.DiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.diskTypesStub, undefined); + await client.initialize(); + assert(client.diskTypesStub); }); - assert.strictEqual(client.diskTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new disktypesModule.v1.DiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.diskTypesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new disktypesModule.v1.DiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new disktypesModule.v1.DiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.diskTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 disktypesModule.v1.DiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new disktypesModule.v1.DiskTypesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new disktypesModule.v1.DiskTypesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_disks_v1.ts b/test/gapic_disks_v1.ts index 507187b0..50f6c5fb 100644 --- a/test/gapic_disks_v1.ts +++ b/test/gapic_disks_v1.ts @@ -126,99 +126,101 @@ describe('v1.DisksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = disksModule.v1.DisksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = disksModule.v1.DisksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = disksModule.v1.DisksClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = disksModule.v1.DisksClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new disksModule.v1.DisksClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = disksModule.v1.DisksClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new disksModule.v1.DisksClient({ - fallback: true, + it('has port', () => { + const port = disksModule.v1.DisksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new disksModule.v1.DisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new disksModule.v1.DisksClient(); + assert(client); }); - assert.strictEqual(client.disksStub, undefined); - await client.initialize(); - assert(client.disksStub); - }); - it('has close method for the initialized client', done => { - const client = new disksModule.v1.DisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new disksModule.v1.DisksClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.disksStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.disksStub, undefined); + await client.initialize(); + assert(client.disksStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new disksModule.v1.DisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.disksStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.disksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.disksStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new disksModule.v1.DisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new disksModule.v1.DisksClient({ + 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()); }); - 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 disksModule.v1.DisksClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new disksModule.v1.DisksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addResourcePolicies', () => { diff --git a/test/gapic_external_vpn_gateways_v1.ts b/test/gapic_external_vpn_gateways_v1.ts index f9bfd1fb..91ec38cc 100644 --- a/test/gapic_external_vpn_gateways_v1.ts +++ b/test/gapic_external_vpn_gateways_v1.ts @@ -126,101 +126,116 @@ describe('v1.ExternalVpnGatewaysClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = externalvpngatewaysModule.v1.ExternalVpnGatewaysClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.externalVpnGatewaysStub, undefined); - await client.initialize(); - assert(client.externalVpnGatewaysStub); - }); - it('has close method for the initialized client', done => { - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient(); + assert(client); }); - client.initialize(); - assert(client.externalVpnGatewaysStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + fallback: true, + } + ); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.externalVpnGatewaysStub, undefined); + await client.initialize(); + assert(client.externalVpnGatewaysStub); }); - assert.strictEqual(client.externalVpnGatewaysStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.externalVpnGatewaysStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.externalVpnGatewaysStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 externalvpngatewaysModule.v1.ExternalVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + 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()); }); - 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); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new externalvpngatewaysModule.v1.ExternalVpnGatewaysClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_firewall_policies_v1.ts b/test/gapic_firewall_policies_v1.ts index 4b1aaec6..e8f9248d 100644 --- a/test/gapic_firewall_policies_v1.ts +++ b/test/gapic_firewall_policies_v1.ts @@ -126,101 +126,103 @@ describe('v1.FirewallPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - firewallpoliciesModule.v1.FirewallPoliciesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - firewallpoliciesModule.v1.FirewallPoliciesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = firewallpoliciesModule.v1.FirewallPoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + firewallpoliciesModule.v1.FirewallPoliciesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + firewallpoliciesModule.v1.FirewallPoliciesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ - fallback: true, + it('has port', () => { + const port = firewallpoliciesModule.v1.FirewallPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient(); + assert(client); }); - assert.strictEqual(client.firewallPoliciesStub, undefined); - await client.initialize(); - assert(client.firewallPoliciesStub); - }); - it('has close method for the initialized client', done => { - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.firewallPoliciesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.firewallPoliciesStub, undefined); + await client.initialize(); + assert(client.firewallPoliciesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.firewallPoliciesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.firewallPoliciesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.firewallPoliciesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + 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()); }); - 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 firewallpoliciesModule.v1.FirewallPoliciesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new firewallpoliciesModule.v1.FirewallPoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addAssociation', () => { diff --git a/test/gapic_firewalls_v1.ts b/test/gapic_firewalls_v1.ts index 648a7fe9..e6092c85 100644 --- a/test/gapic_firewalls_v1.ts +++ b/test/gapic_firewalls_v1.ts @@ -126,99 +126,101 @@ describe('v1.FirewallsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = firewallsModule.v1.FirewallsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = firewallsModule.v1.FirewallsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = firewallsModule.v1.FirewallsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new firewallsModule.v1.FirewallsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = firewallsModule.v1.FirewallsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new firewallsModule.v1.FirewallsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = firewallsModule.v1.FirewallsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new firewallsModule.v1.FirewallsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = firewallsModule.v1.FirewallsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.firewallsStub, undefined); - await client.initialize(); - assert(client.firewallsStub); - }); - it('has close method for the initialized client', done => { - const client = new firewallsModule.v1.FirewallsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new firewallsModule.v1.FirewallsClient(); + assert(client); }); - client.initialize(); - assert(client.firewallsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new firewallsModule.v1.FirewallsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new firewallsModule.v1.FirewallsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new firewallsModule.v1.FirewallsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.firewallsStub, undefined); + await client.initialize(); + assert(client.firewallsStub); }); - assert.strictEqual(client.firewallsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new firewallsModule.v1.FirewallsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.firewallsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new firewallsModule.v1.FirewallsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new firewallsModule.v1.FirewallsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.firewallsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 firewallsModule.v1.FirewallsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new firewallsModule.v1.FirewallsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new firewallsModule.v1.FirewallsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_forwarding_rules_v1.ts b/test/gapic_forwarding_rules_v1.ts index d0f0791a..5e03f2b2 100644 --- a/test/gapic_forwarding_rules_v1.ts +++ b/test/gapic_forwarding_rules_v1.ts @@ -126,101 +126,103 @@ describe('v1.ForwardingRulesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - forwardingrulesModule.v1.ForwardingRulesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - forwardingrulesModule.v1.ForwardingRulesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = forwardingrulesModule.v1.ForwardingRulesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new forwardingrulesModule.v1.ForwardingRulesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + forwardingrulesModule.v1.ForwardingRulesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new forwardingrulesModule.v1.ForwardingRulesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + forwardingrulesModule.v1.ForwardingRulesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new forwardingrulesModule.v1.ForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = forwardingrulesModule.v1.ForwardingRulesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.forwardingRulesStub, undefined); - await client.initialize(); - assert(client.forwardingRulesStub); - }); - it('has close method for the initialized client', done => { - const client = new forwardingrulesModule.v1.ForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new forwardingrulesModule.v1.ForwardingRulesClient(); + assert(client); }); - client.initialize(); - assert(client.forwardingRulesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new forwardingrulesModule.v1.ForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.forwardingRulesStub, undefined); + await client.initialize(); + assert(client.forwardingRulesStub); }); - assert.strictEqual(client.forwardingRulesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.forwardingRulesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new forwardingrulesModule.v1.ForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.forwardingRulesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 forwardingrulesModule.v1.ForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new forwardingrulesModule.v1.ForwardingRulesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_global_addresses_v1.ts b/test/gapic_global_addresses_v1.ts index a1434cad..f310047a 100644 --- a/test/gapic_global_addresses_v1.ts +++ b/test/gapic_global_addresses_v1.ts @@ -126,101 +126,103 @@ describe('v1.GlobalAddressesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globaladdressesModule.v1.GlobalAddressesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - globaladdressesModule.v1.GlobalAddressesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = globaladdressesModule.v1.GlobalAddressesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globaladdressesModule.v1.GlobalAddressesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new globaladdressesModule.v1.GlobalAddressesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globaladdressesModule.v1.GlobalAddressesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new globaladdressesModule.v1.GlobalAddressesClient({ - fallback: true, + it('has port', () => { + const port = globaladdressesModule.v1.GlobalAddressesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new globaladdressesModule.v1.GlobalAddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new globaladdressesModule.v1.GlobalAddressesClient(); + assert(client); }); - assert.strictEqual(client.globalAddressesStub, undefined); - await client.initialize(); - assert(client.globalAddressesStub); - }); - it('has close method for the initialized client', done => { - const client = new globaladdressesModule.v1.GlobalAddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.globalAddressesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalAddressesStub, undefined); + await client.initialize(); + assert(client.globalAddressesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new globaladdressesModule.v1.GlobalAddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.globalAddressesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.globalAddressesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalAddressesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new globaladdressesModule.v1.GlobalAddressesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + 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()); }); - 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 globaladdressesModule.v1.GlobalAddressesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globaladdressesModule.v1.GlobalAddressesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_global_forwarding_rules_v1.ts b/test/gapic_global_forwarding_rules_v1.ts index 85a02c9e..870742d9 100644 --- a/test/gapic_global_forwarding_rules_v1.ts +++ b/test/gapic_global_forwarding_rules_v1.ts @@ -126,109 +126,111 @@ describe('v1.GlobalForwardingRulesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globalforwardingrulesModule.v1.GlobalForwardingRulesClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globalforwardingrulesModule.v1.GlobalForwardingRulesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - globalforwardingrulesModule.v1.GlobalForwardingRulesClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globalforwardingrulesModule.v1.GlobalForwardingRulesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - globalforwardingrulesModule.v1.GlobalForwardingRulesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + globalforwardingrulesModule.v1.GlobalForwardingRulesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.globalForwardingRulesStub, undefined); - await client.initialize(); - assert(client.globalForwardingRulesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalForwardingRulesStub, undefined); + await client.initialize(); + assert(client.globalForwardingRulesStub); + }); - it('has close method for the initialized client', done => { - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.globalForwardingRulesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.globalForwardingRulesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalForwardingRulesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.globalForwardingRulesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + 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 globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalforwardingrulesModule.v1.GlobalForwardingRulesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_global_network_endpoint_groups_v1.ts b/test/gapic_global_network_endpoint_groups_v1.ts index b59f22bc..893b03f9 100644 --- a/test/gapic_global_network_endpoint_groups_v1.ts +++ b/test/gapic_global_network_endpoint_groups_v1.ts @@ -126,124 +126,126 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalNetworkEndpointGroupsStub, undefined); - await client.initialize(); - assert(client.globalNetworkEndpointGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalNetworkEndpointGroupsStub, undefined); + await client.initialize(); + assert(client.globalNetworkEndpointGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.globalNetworkEndpointGroupsStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.globalNetworkEndpointGroupsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalNetworkEndpointGroupsStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalNetworkEndpointGroupsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + 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 globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalnetworkendpointgroupsModule.v1.GlobalNetworkEndpointGroupsClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('attachNetworkEndpoints', () => { diff --git a/test/gapic_global_operations_v1.ts b/test/gapic_global_operations_v1.ts index 8210b652..d53de3cb 100644 --- a/test/gapic_global_operations_v1.ts +++ b/test/gapic_global_operations_v1.ts @@ -126,101 +126,103 @@ describe('v1.GlobalOperationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globaloperationsModule.v1.GlobalOperationsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - globaloperationsModule.v1.GlobalOperationsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = globaloperationsModule.v1.GlobalOperationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globaloperationsModule.v1.GlobalOperationsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new globaloperationsModule.v1.GlobalOperationsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globaloperationsModule.v1.GlobalOperationsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new globaloperationsModule.v1.GlobalOperationsClient({ - fallback: true, + it('has port', () => { + const port = globaloperationsModule.v1.GlobalOperationsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new globaloperationsModule.v1.GlobalOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new globaloperationsModule.v1.GlobalOperationsClient(); + assert(client); }); - assert.strictEqual(client.globalOperationsStub, undefined); - await client.initialize(); - assert(client.globalOperationsStub); - }); - it('has close method for the initialized client', done => { - const client = new globaloperationsModule.v1.GlobalOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.globalOperationsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalOperationsStub, undefined); + await client.initialize(); + assert(client.globalOperationsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new globaloperationsModule.v1.GlobalOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.globalOperationsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.globalOperationsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalOperationsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new globaloperationsModule.v1.GlobalOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + 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()); }); - 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 globaloperationsModule.v1.GlobalOperationsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globaloperationsModule.v1.GlobalOperationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_global_organization_operations_v1.ts b/test/gapic_global_organization_operations_v1.ts index 95739cf1..94b449a2 100644 --- a/test/gapic_global_organization_operations_v1.ts +++ b/test/gapic_global_organization_operations_v1.ts @@ -126,124 +126,126 @@ describe('v1.GlobalOrganizationOperationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalOrganizationOperationsStub, undefined); - await client.initialize(); - assert(client.globalOrganizationOperationsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalOrganizationOperationsStub, undefined); + await client.initialize(); + assert(client.globalOrganizationOperationsStub); + }); - it('has close method for the initialized client', done => { - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.globalOrganizationOperationsStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.globalOrganizationOperationsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalOrganizationOperationsStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalOrganizationOperationsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + 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 globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalorganizationoperationsModule.v1.GlobalOrganizationOperationsClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_global_public_delegated_prefixes_v1.ts b/test/gapic_global_public_delegated_prefixes_v1.ts index f84732e6..8634dd65 100644 --- a/test/gapic_global_public_delegated_prefixes_v1.ts +++ b/test/gapic_global_public_delegated_prefixes_v1.ts @@ -126,124 +126,126 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + globalpublicdelegatedprefixesModule.v1 + .GlobalPublicDelegatedPrefixesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + globalpublicdelegatedprefixesModule.v1 + .GlobalPublicDelegatedPrefixesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + globalpublicdelegatedprefixesModule.v1 + .GlobalPublicDelegatedPrefixesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalPublicDelegatedPrefixesStub, undefined); - await client.initialize(); - assert(client.globalPublicDelegatedPrefixesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalPublicDelegatedPrefixesStub, undefined); + await client.initialize(); + assert(client.globalPublicDelegatedPrefixesStub); + }); - it('has close method for the initialized client', done => { - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.globalPublicDelegatedPrefixesStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.globalPublicDelegatedPrefixesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.globalPublicDelegatedPrefixesStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.globalPublicDelegatedPrefixesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + 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 globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new globalpublicdelegatedprefixesModule.v1.GlobalPublicDelegatedPrefixesClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_health_checks_v1.ts b/test/gapic_health_checks_v1.ts index 0b7f08b4..7e8faedc 100644 --- a/test/gapic_health_checks_v1.ts +++ b/test/gapic_health_checks_v1.ts @@ -126,99 +126,101 @@ describe('v1.HealthChecksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = healthchecksModule.v1.HealthChecksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = healthchecksModule.v1.HealthChecksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = healthchecksModule.v1.HealthChecksClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new healthchecksModule.v1.HealthChecksClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = healthchecksModule.v1.HealthChecksClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new healthchecksModule.v1.HealthChecksClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = healthchecksModule.v1.HealthChecksClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new healthchecksModule.v1.HealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = healthchecksModule.v1.HealthChecksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.healthChecksStub, undefined); - await client.initialize(); - assert(client.healthChecksStub); - }); - it('has close method for the initialized client', done => { - const client = new healthchecksModule.v1.HealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new healthchecksModule.v1.HealthChecksClient(); + assert(client); }); - client.initialize(); - assert(client.healthChecksStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new healthchecksModule.v1.HealthChecksClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new healthchecksModule.v1.HealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new healthchecksModule.v1.HealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.healthChecksStub, undefined); + await client.initialize(); + assert(client.healthChecksStub); }); - assert.strictEqual(client.healthChecksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new healthchecksModule.v1.HealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.healthChecksStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new healthchecksModule.v1.HealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new healthchecksModule.v1.HealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.healthChecksStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 healthchecksModule.v1.HealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new healthchecksModule.v1.HealthChecksClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new healthchecksModule.v1.HealthChecksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_image_family_views_v1.ts b/test/gapic_image_family_views_v1.ts index 116db7ec..be3c942e 100644 --- a/test/gapic_image_family_views_v1.ts +++ b/test/gapic_image_family_views_v1.ts @@ -63,101 +63,103 @@ describe('v1.ImageFamilyViewsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - imagefamilyviewsModule.v1.ImageFamilyViewsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - imagefamilyviewsModule.v1.ImageFamilyViewsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = imagefamilyviewsModule.v1.ImageFamilyViewsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + imagefamilyviewsModule.v1.ImageFamilyViewsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + imagefamilyviewsModule.v1.ImageFamilyViewsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = imagefamilyviewsModule.v1.ImageFamilyViewsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.imageFamilyViewsStub, undefined); - await client.initialize(); - assert(client.imageFamilyViewsStub); - }); - it('has close method for the initialized client', done => { - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient(); + assert(client); }); - client.initialize(); - assert(client.imageFamilyViewsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.imageFamilyViewsStub, undefined); + await client.initialize(); + assert(client.imageFamilyViewsStub); }); - assert.strictEqual(client.imageFamilyViewsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.imageFamilyViewsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.imageFamilyViewsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 imagefamilyviewsModule.v1.ImageFamilyViewsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new imagefamilyviewsModule.v1.ImageFamilyViewsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_images_v1.ts b/test/gapic_images_v1.ts index ada7f5c7..d0568100 100644 --- a/test/gapic_images_v1.ts +++ b/test/gapic_images_v1.ts @@ -126,99 +126,101 @@ describe('v1.ImagesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = imagesModule.v1.ImagesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = imagesModule.v1.ImagesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = imagesModule.v1.ImagesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new imagesModule.v1.ImagesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = imagesModule.v1.ImagesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new imagesModule.v1.ImagesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = imagesModule.v1.ImagesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new imagesModule.v1.ImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = imagesModule.v1.ImagesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.imagesStub, undefined); - await client.initialize(); - assert(client.imagesStub); - }); - it('has close method for the initialized client', done => { - const client = new imagesModule.v1.ImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new imagesModule.v1.ImagesClient(); + assert(client); }); - client.initialize(); - assert(client.imagesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new imagesModule.v1.ImagesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new imagesModule.v1.ImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new imagesModule.v1.ImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.imagesStub, undefined); + await client.initialize(); + assert(client.imagesStub); }); - assert.strictEqual(client.imagesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new imagesModule.v1.ImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.imagesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new imagesModule.v1.ImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new imagesModule.v1.ImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.imagesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 imagesModule.v1.ImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new imagesModule.v1.ImagesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new imagesModule.v1.ImagesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_instance_group_managers_v1.ts b/test/gapic_instance_group_managers_v1.ts index 5e4f28bb..bba747ba 100644 --- a/test/gapic_instance_group_managers_v1.ts +++ b/test/gapic_instance_group_managers_v1.ts @@ -126,109 +126,111 @@ describe('v1.InstanceGroupManagersClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - instancegroupmanagersModule.v1.InstanceGroupManagersClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + instancegroupmanagersModule.v1.InstanceGroupManagersClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - instancegroupmanagersModule.v1.InstanceGroupManagersClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + instancegroupmanagersModule.v1.InstanceGroupManagersClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - instancegroupmanagersModule.v1.InstanceGroupManagersClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + instancegroupmanagersModule.v1.InstanceGroupManagersClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.instanceGroupManagersStub, undefined); - await client.initialize(); - assert(client.instanceGroupManagersStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceGroupManagersStub, undefined); + await client.initialize(); + assert(client.instanceGroupManagersStub); + }); - it('has close method for the initialized client', done => { - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.instanceGroupManagersStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.instanceGroupManagersStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceGroupManagersStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.instanceGroupManagersStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + 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 instancegroupmanagersModule.v1.InstanceGroupManagersClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new instancegroupmanagersModule.v1.InstanceGroupManagersClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('abandonInstances', () => { diff --git a/test/gapic_instance_groups_v1.ts b/test/gapic_instance_groups_v1.ts index 92b2f815..f973e1af 100644 --- a/test/gapic_instance_groups_v1.ts +++ b/test/gapic_instance_groups_v1.ts @@ -126,101 +126,103 @@ describe('v1.InstanceGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - instancegroupsModule.v1.InstanceGroupsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - instancegroupsModule.v1.InstanceGroupsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = instancegroupsModule.v1.InstanceGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new instancegroupsModule.v1.InstanceGroupsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + instancegroupsModule.v1.InstanceGroupsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new instancegroupsModule.v1.InstanceGroupsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + instancegroupsModule.v1.InstanceGroupsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new instancegroupsModule.v1.InstanceGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = instancegroupsModule.v1.InstanceGroupsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.instanceGroupsStub, undefined); - await client.initialize(); - assert(client.instanceGroupsStub); - }); - it('has close method for the initialized client', done => { - const client = new instancegroupsModule.v1.InstanceGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new instancegroupsModule.v1.InstanceGroupsClient(); + assert(client); }); - client.initialize(); - assert(client.instanceGroupsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new instancegroupsModule.v1.InstanceGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceGroupsStub, undefined); + await client.initialize(); + assert(client.instanceGroupsStub); }); - assert.strictEqual(client.instanceGroupsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.instanceGroupsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new instancegroupsModule.v1.InstanceGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceGroupsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 instancegroupsModule.v1.InstanceGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancegroupsModule.v1.InstanceGroupsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addInstances', () => { diff --git a/test/gapic_instance_templates_v1.ts b/test/gapic_instance_templates_v1.ts index 593572d0..f1cc2aa1 100644 --- a/test/gapic_instance_templates_v1.ts +++ b/test/gapic_instance_templates_v1.ts @@ -126,101 +126,103 @@ describe('v1.InstanceTemplatesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - instancetemplatesModule.v1.InstanceTemplatesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - instancetemplatesModule.v1.InstanceTemplatesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = instancetemplatesModule.v1.InstanceTemplatesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new instancetemplatesModule.v1.InstanceTemplatesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + instancetemplatesModule.v1.InstanceTemplatesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + instancetemplatesModule.v1.InstanceTemplatesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = instancetemplatesModule.v1.InstanceTemplatesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.instanceTemplatesStub, undefined); - await client.initialize(); - assert(client.instanceTemplatesStub); - }); - it('has close method for the initialized client', done => { - const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient(); + assert(client); }); - client.initialize(); - assert(client.instanceTemplatesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceTemplatesStub, undefined); + await client.initialize(); + assert(client.instanceTemplatesStub); }); - assert.strictEqual(client.instanceTemplatesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.instanceTemplatesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instanceTemplatesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 instancetemplatesModule.v1.InstanceTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancetemplatesModule.v1.InstanceTemplatesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_instances_v1.ts b/test/gapic_instances_v1.ts index 0b4fbbee..6391d87c 100644 --- a/test/gapic_instances_v1.ts +++ b/test/gapic_instances_v1.ts @@ -126,99 +126,101 @@ describe('v1.InstancesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = instancesModule.v1.InstancesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = instancesModule.v1.InstancesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = instancesModule.v1.InstancesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = instancesModule.v1.InstancesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new instancesModule.v1.InstancesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = instancesModule.v1.InstancesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new instancesModule.v1.InstancesClient({ - fallback: true, + it('has port', () => { + const port = instancesModule.v1.InstancesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new instancesModule.v1.InstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new instancesModule.v1.InstancesClient(); + assert(client); }); - assert.strictEqual(client.instancesStub, undefined); - await client.initialize(); - assert(client.instancesStub); - }); - it('has close method for the initialized client', done => { - const client = new instancesModule.v1.InstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new instancesModule.v1.InstancesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.instancesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instancesStub, undefined); + await client.initialize(); + assert(client.instancesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new instancesModule.v1.InstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.instancesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.instancesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instancesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new instancesModule.v1.InstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancesModule.v1.InstancesClient({ + 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()); }); - 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 instancesModule.v1.InstancesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instancesModule.v1.InstancesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addAccessConfig', () => { diff --git a/test/gapic_interconnect_attachments_v1.ts b/test/gapic_interconnect_attachments_v1.ts index 87c4d5ed..a5fa3c66 100644 --- a/test/gapic_interconnect_attachments_v1.ts +++ b/test/gapic_interconnect_attachments_v1.ts @@ -126,111 +126,113 @@ describe('v1.InterconnectAttachmentsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - interconnectattachmentsModule.v1.InterconnectAttachmentsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + interconnectattachmentsModule.v1.InterconnectAttachmentsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - interconnectattachmentsModule.v1.InterconnectAttachmentsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + interconnectattachmentsModule.v1.InterconnectAttachmentsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - interconnectattachmentsModule.v1.InterconnectAttachmentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + interconnectattachmentsModule.v1.InterconnectAttachmentsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.interconnectAttachmentsStub, undefined); - await client.initialize(); - assert(client.interconnectAttachmentsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectAttachmentsStub, undefined); + await client.initialize(); + assert(client.interconnectAttachmentsStub); + }); - it('has close method for the initialized client', done => { - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.interconnectAttachmentsStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.interconnectAttachmentsStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectAttachmentsStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.interconnectAttachmentsStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + 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 interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new interconnectattachmentsModule.v1.InterconnectAttachmentsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_interconnect_locations_v1.ts b/test/gapic_interconnect_locations_v1.ts index 1a658c4b..1e379aa7 100644 --- a/test/gapic_interconnect_locations_v1.ts +++ b/test/gapic_interconnect_locations_v1.ts @@ -126,109 +126,111 @@ describe('v1.InterconnectLocationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - interconnectlocationsModule.v1.InterconnectLocationsClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + interconnectlocationsModule.v1.InterconnectLocationsClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - interconnectlocationsModule.v1.InterconnectLocationsClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + interconnectlocationsModule.v1.InterconnectLocationsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - interconnectlocationsModule.v1.InterconnectLocationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + interconnectlocationsModule.v1.InterconnectLocationsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.interconnectLocationsStub, undefined); - await client.initialize(); - assert(client.interconnectLocationsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectLocationsStub, undefined); + await client.initialize(); + assert(client.interconnectLocationsStub); + }); - it('has close method for the initialized client', done => { - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.interconnectLocationsStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.interconnectLocationsStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectLocationsStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.interconnectLocationsStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new interconnectlocationsModule.v1.InterconnectLocationsClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + 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 interconnectlocationsModule.v1.InterconnectLocationsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new interconnectlocationsModule.v1.InterconnectLocationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_interconnects_v1.ts b/test/gapic_interconnects_v1.ts index 8ea56fe5..e01afa0c 100644 --- a/test/gapic_interconnects_v1.ts +++ b/test/gapic_interconnects_v1.ts @@ -126,99 +126,103 @@ describe('v1.InterconnectsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = interconnectsModule.v1.InterconnectsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = interconnectsModule.v1.InterconnectsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = interconnectsModule.v1.InterconnectsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new interconnectsModule.v1.InterconnectsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + interconnectsModule.v1.InterconnectsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new interconnectsModule.v1.InterconnectsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + interconnectsModule.v1.InterconnectsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new interconnectsModule.v1.InterconnectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = interconnectsModule.v1.InterconnectsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.interconnectsStub, undefined); - await client.initialize(); - assert(client.interconnectsStub); - }); - it('has close method for the initialized client', done => { - const client = new interconnectsModule.v1.InterconnectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new interconnectsModule.v1.InterconnectsClient(); + assert(client); }); - client.initialize(); - assert(client.interconnectsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new interconnectsModule.v1.InterconnectsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new interconnectsModule.v1.InterconnectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new interconnectsModule.v1.InterconnectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectsStub, undefined); + await client.initialize(); + assert(client.interconnectsStub); }); - assert.strictEqual(client.interconnectsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new interconnectsModule.v1.InterconnectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.interconnectsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new interconnectsModule.v1.InterconnectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new interconnectsModule.v1.InterconnectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.interconnectsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 interconnectsModule.v1.InterconnectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new interconnectsModule.v1.InterconnectsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new interconnectsModule.v1.InterconnectsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_license_codes_v1.ts b/test/gapic_license_codes_v1.ts index 2b681e56..0249d5d2 100644 --- a/test/gapic_license_codes_v1.ts +++ b/test/gapic_license_codes_v1.ts @@ -63,99 +63,101 @@ describe('v1.LicenseCodesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = licensecodesModule.v1.LicenseCodesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = licensecodesModule.v1.LicenseCodesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = licensecodesModule.v1.LicenseCodesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new licensecodesModule.v1.LicenseCodesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = licensecodesModule.v1.LicenseCodesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new licensecodesModule.v1.LicenseCodesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = licensecodesModule.v1.LicenseCodesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new licensecodesModule.v1.LicenseCodesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = licensecodesModule.v1.LicenseCodesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.licenseCodesStub, undefined); - await client.initialize(); - assert(client.licenseCodesStub); - }); - it('has close method for the initialized client', done => { - const client = new licensecodesModule.v1.LicenseCodesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new licensecodesModule.v1.LicenseCodesClient(); + assert(client); }); - client.initialize(); - assert(client.licenseCodesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new licensecodesModule.v1.LicenseCodesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new licensecodesModule.v1.LicenseCodesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new licensecodesModule.v1.LicenseCodesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.licenseCodesStub, undefined); + await client.initialize(); + assert(client.licenseCodesStub); }); - assert.strictEqual(client.licenseCodesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new licensecodesModule.v1.LicenseCodesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.licenseCodesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new licensecodesModule.v1.LicenseCodesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new licensecodesModule.v1.LicenseCodesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.licenseCodesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 licensecodesModule.v1.LicenseCodesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new licensecodesModule.v1.LicenseCodesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new licensecodesModule.v1.LicenseCodesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_licenses_v1.ts b/test/gapic_licenses_v1.ts index bac03968..11fd1551 100644 --- a/test/gapic_licenses_v1.ts +++ b/test/gapic_licenses_v1.ts @@ -126,99 +126,101 @@ describe('v1.LicensesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = licensesModule.v1.LicensesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = licensesModule.v1.LicensesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = licensesModule.v1.LicensesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new licensesModule.v1.LicensesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = licensesModule.v1.LicensesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new licensesModule.v1.LicensesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = licensesModule.v1.LicensesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new licensesModule.v1.LicensesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = licensesModule.v1.LicensesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.licensesStub, undefined); - await client.initialize(); - assert(client.licensesStub); - }); - it('has close method for the initialized client', done => { - const client = new licensesModule.v1.LicensesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new licensesModule.v1.LicensesClient(); + assert(client); }); - client.initialize(); - assert(client.licensesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new licensesModule.v1.LicensesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new licensesModule.v1.LicensesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new licensesModule.v1.LicensesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.licensesStub, undefined); + await client.initialize(); + assert(client.licensesStub); }); - assert.strictEqual(client.licensesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new licensesModule.v1.LicensesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.licensesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new licensesModule.v1.LicensesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new licensesModule.v1.LicensesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.licensesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 licensesModule.v1.LicensesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new licensesModule.v1.LicensesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new licensesModule.v1.LicensesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_machine_images_v1.ts b/test/gapic_machine_images_v1.ts index 720fe372..ac17ac6c 100644 --- a/test/gapic_machine_images_v1.ts +++ b/test/gapic_machine_images_v1.ts @@ -126,99 +126,103 @@ describe('v1.MachineImagesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = machineimagesModule.v1.MachineImagesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = machineimagesModule.v1.MachineImagesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = machineimagesModule.v1.MachineImagesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new machineimagesModule.v1.MachineImagesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + machineimagesModule.v1.MachineImagesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new machineimagesModule.v1.MachineImagesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + machineimagesModule.v1.MachineImagesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new machineimagesModule.v1.MachineImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = machineimagesModule.v1.MachineImagesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.machineImagesStub, undefined); - await client.initialize(); - assert(client.machineImagesStub); - }); - it('has close method for the initialized client', done => { - const client = new machineimagesModule.v1.MachineImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new machineimagesModule.v1.MachineImagesClient(); + assert(client); }); - client.initialize(); - assert(client.machineImagesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new machineimagesModule.v1.MachineImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.machineImagesStub, undefined); + await client.initialize(); + assert(client.machineImagesStub); }); - assert.strictEqual(client.machineImagesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.machineImagesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new machineimagesModule.v1.MachineImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.machineImagesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 machineimagesModule.v1.MachineImagesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new machineimagesModule.v1.MachineImagesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new machineimagesModule.v1.MachineImagesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_machine_types_v1.ts b/test/gapic_machine_types_v1.ts index 2e63f318..9c9d5e52 100644 --- a/test/gapic_machine_types_v1.ts +++ b/test/gapic_machine_types_v1.ts @@ -126,99 +126,101 @@ describe('v1.MachineTypesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = machinetypesModule.v1.MachineTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = machinetypesModule.v1.MachineTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = machinetypesModule.v1.MachineTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new machinetypesModule.v1.MachineTypesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = machinetypesModule.v1.MachineTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new machinetypesModule.v1.MachineTypesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = machinetypesModule.v1.MachineTypesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new machinetypesModule.v1.MachineTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = machinetypesModule.v1.MachineTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.machineTypesStub, undefined); - await client.initialize(); - assert(client.machineTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new machinetypesModule.v1.MachineTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new machinetypesModule.v1.MachineTypesClient(); + assert(client); }); - client.initialize(); - assert(client.machineTypesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new machinetypesModule.v1.MachineTypesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new machinetypesModule.v1.MachineTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new machinetypesModule.v1.MachineTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.machineTypesStub, undefined); + await client.initialize(); + assert(client.machineTypesStub); }); - assert.strictEqual(client.machineTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new machinetypesModule.v1.MachineTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.machineTypesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new machinetypesModule.v1.MachineTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new machinetypesModule.v1.MachineTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.machineTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 machinetypesModule.v1.MachineTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new machinetypesModule.v1.MachineTypesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new machinetypesModule.v1.MachineTypesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_network_edge_security_services_v1.ts b/test/gapic_network_edge_security_services_v1.ts index 53b71231..c360ff15 100644 --- a/test/gapic_network_edge_security_services_v1.ts +++ b/test/gapic_network_edge_security_services_v1.ts @@ -126,124 +126,126 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.networkEdgeSecurityServicesStub, undefined); - await client.initialize(); - assert(client.networkEdgeSecurityServicesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.networkEdgeSecurityServicesStub, undefined); + await client.initialize(); + assert(client.networkEdgeSecurityServicesStub); + }); - it('has close method for the initialized client', done => { - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.networkEdgeSecurityServicesStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.networkEdgeSecurityServicesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.networkEdgeSecurityServicesStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.networkEdgeSecurityServicesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + 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 networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkedgesecurityservicesModule.v1.NetworkEdgeSecurityServicesClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_network_endpoint_groups_v1.ts b/test/gapic_network_endpoint_groups_v1.ts index 7f3cf3cf..fc0adfc4 100644 --- a/test/gapic_network_endpoint_groups_v1.ts +++ b/test/gapic_network_endpoint_groups_v1.ts @@ -126,109 +126,111 @@ describe('v1.NetworkEndpointGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + networkendpointgroupsModule.v1.NetworkEndpointGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.networkEndpointGroupsStub, undefined); - await client.initialize(); - assert(client.networkEndpointGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkEndpointGroupsStub, undefined); + await client.initialize(); + assert(client.networkEndpointGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.networkEndpointGroupsStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.networkEndpointGroupsStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkEndpointGroupsStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.networkEndpointGroupsStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + 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 networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkendpointgroupsModule.v1.NetworkEndpointGroupsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('attachNetworkEndpoints', () => { diff --git a/test/gapic_network_firewall_policies_v1.ts b/test/gapic_network_firewall_policies_v1.ts index aabb92dd..b07b09f1 100644 --- a/test/gapic_network_firewall_policies_v1.ts +++ b/test/gapic_network_firewall_policies_v1.ts @@ -126,111 +126,113 @@ describe('v1.NetworkFirewallPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.networkFirewallPoliciesStub, undefined); - await client.initialize(); - assert(client.networkFirewallPoliciesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkFirewallPoliciesStub, undefined); + await client.initialize(); + assert(client.networkFirewallPoliciesStub); + }); - it('has close method for the initialized client', done => { - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.networkFirewallPoliciesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.networkFirewallPoliciesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkFirewallPoliciesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.networkFirewallPoliciesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + 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 networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new networkfirewallpoliciesModule.v1.NetworkFirewallPoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addAssociation', () => { diff --git a/test/gapic_networks_v1.ts b/test/gapic_networks_v1.ts index 08ef5881..2ff5d79c 100644 --- a/test/gapic_networks_v1.ts +++ b/test/gapic_networks_v1.ts @@ -126,99 +126,101 @@ describe('v1.NetworksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = networksModule.v1.NetworksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = networksModule.v1.NetworksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = networksModule.v1.NetworksClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new networksModule.v1.NetworksClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = networksModule.v1.NetworksClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new networksModule.v1.NetworksClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = networksModule.v1.NetworksClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new networksModule.v1.NetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = networksModule.v1.NetworksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.networksStub, undefined); - await client.initialize(); - assert(client.networksStub); - }); - it('has close method for the initialized client', done => { - const client = new networksModule.v1.NetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new networksModule.v1.NetworksClient(); + assert(client); }); - client.initialize(); - assert(client.networksStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new networksModule.v1.NetworksClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new networksModule.v1.NetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new networksModule.v1.NetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networksStub, undefined); + await client.initialize(); + assert(client.networksStub); }); - assert.strictEqual(client.networksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new networksModule.v1.NetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.networksStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new networksModule.v1.NetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new networksModule.v1.NetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networksStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 networksModule.v1.NetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new networksModule.v1.NetworksClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new networksModule.v1.NetworksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addPeering', () => { diff --git a/test/gapic_node_groups_v1.ts b/test/gapic_node_groups_v1.ts index 969fa694..63b092a7 100644 --- a/test/gapic_node_groups_v1.ts +++ b/test/gapic_node_groups_v1.ts @@ -126,99 +126,101 @@ describe('v1.NodeGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = nodegroupsModule.v1.NodeGroupsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = nodegroupsModule.v1.NodeGroupsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = nodegroupsModule.v1.NodeGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = nodegroupsModule.v1.NodeGroupsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new nodegroupsModule.v1.NodeGroupsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = nodegroupsModule.v1.NodeGroupsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new nodegroupsModule.v1.NodeGroupsClient({ - fallback: true, + it('has port', () => { + const port = nodegroupsModule.v1.NodeGroupsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new nodegroupsModule.v1.NodeGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new nodegroupsModule.v1.NodeGroupsClient(); + assert(client); }); - assert.strictEqual(client.nodeGroupsStub, undefined); - await client.initialize(); - assert(client.nodeGroupsStub); - }); - it('has close method for the initialized client', done => { - const client = new nodegroupsModule.v1.NodeGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new nodegroupsModule.v1.NodeGroupsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.nodeGroupsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new nodegroupsModule.v1.NodeGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeGroupsStub, undefined); + await client.initialize(); + assert(client.nodeGroupsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new nodegroupsModule.v1.NodeGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new nodegroupsModule.v1.NodeGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.nodeGroupsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.nodeGroupsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new nodegroupsModule.v1.NodeGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeGroupsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new nodegroupsModule.v1.NodeGroupsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodegroupsModule.v1.NodeGroupsClient({ + 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()); }); - 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 nodegroupsModule.v1.NodeGroupsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodegroupsModule.v1.NodeGroupsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addNodes', () => { diff --git a/test/gapic_node_templates_v1.ts b/test/gapic_node_templates_v1.ts index 9287b1e2..9c4eb732 100644 --- a/test/gapic_node_templates_v1.ts +++ b/test/gapic_node_templates_v1.ts @@ -126,99 +126,103 @@ describe('v1.NodeTemplatesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = nodetemplatesModule.v1.NodeTemplatesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = nodetemplatesModule.v1.NodeTemplatesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = nodetemplatesModule.v1.NodeTemplatesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new nodetemplatesModule.v1.NodeTemplatesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + nodetemplatesModule.v1.NodeTemplatesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new nodetemplatesModule.v1.NodeTemplatesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + nodetemplatesModule.v1.NodeTemplatesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new nodetemplatesModule.v1.NodeTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = nodetemplatesModule.v1.NodeTemplatesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.nodeTemplatesStub, undefined); - await client.initialize(); - assert(client.nodeTemplatesStub); - }); - it('has close method for the initialized client', done => { - const client = new nodetemplatesModule.v1.NodeTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new nodetemplatesModule.v1.NodeTemplatesClient(); + assert(client); }); - client.initialize(); - assert(client.nodeTemplatesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new nodetemplatesModule.v1.NodeTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeTemplatesStub, undefined); + await client.initialize(); + assert(client.nodeTemplatesStub); }); - assert.strictEqual(client.nodeTemplatesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.nodeTemplatesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new nodetemplatesModule.v1.NodeTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeTemplatesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 nodetemplatesModule.v1.NodeTemplatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodetemplatesModule.v1.NodeTemplatesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_node_types_v1.ts b/test/gapic_node_types_v1.ts index d82cd62f..48a49b98 100644 --- a/test/gapic_node_types_v1.ts +++ b/test/gapic_node_types_v1.ts @@ -126,99 +126,101 @@ describe('v1.NodeTypesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = nodetypesModule.v1.NodeTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = nodetypesModule.v1.NodeTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = nodetypesModule.v1.NodeTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new nodetypesModule.v1.NodeTypesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = nodetypesModule.v1.NodeTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new nodetypesModule.v1.NodeTypesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = nodetypesModule.v1.NodeTypesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new nodetypesModule.v1.NodeTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = nodetypesModule.v1.NodeTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.nodeTypesStub, undefined); - await client.initialize(); - assert(client.nodeTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new nodetypesModule.v1.NodeTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new nodetypesModule.v1.NodeTypesClient(); + assert(client); }); - client.initialize(); - assert(client.nodeTypesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new nodetypesModule.v1.NodeTypesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new nodetypesModule.v1.NodeTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new nodetypesModule.v1.NodeTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeTypesStub, undefined); + await client.initialize(); + assert(client.nodeTypesStub); }); - assert.strictEqual(client.nodeTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new nodetypesModule.v1.NodeTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.nodeTypesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new nodetypesModule.v1.NodeTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new nodetypesModule.v1.NodeTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.nodeTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 nodetypesModule.v1.NodeTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodetypesModule.v1.NodeTypesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new nodetypesModule.v1.NodeTypesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_packet_mirrorings_v1.ts b/test/gapic_packet_mirrorings_v1.ts index 6d0ad78f..76f9e353 100644 --- a/test/gapic_packet_mirrorings_v1.ts +++ b/test/gapic_packet_mirrorings_v1.ts @@ -126,101 +126,103 @@ describe('v1.PacketMirroringsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - packetmirroringsModule.v1.PacketMirroringsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - packetmirroringsModule.v1.PacketMirroringsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = packetmirroringsModule.v1.PacketMirroringsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new packetmirroringsModule.v1.PacketMirroringsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + packetmirroringsModule.v1.PacketMirroringsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new packetmirroringsModule.v1.PacketMirroringsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + packetmirroringsModule.v1.PacketMirroringsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new packetmirroringsModule.v1.PacketMirroringsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = packetmirroringsModule.v1.PacketMirroringsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.packetMirroringsStub, undefined); - await client.initialize(); - assert(client.packetMirroringsStub); - }); - it('has close method for the initialized client', done => { - const client = new packetmirroringsModule.v1.PacketMirroringsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new packetmirroringsModule.v1.PacketMirroringsClient(); + assert(client); }); - client.initialize(); - assert(client.packetMirroringsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new packetmirroringsModule.v1.PacketMirroringsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.packetMirroringsStub, undefined); + await client.initialize(); + assert(client.packetMirroringsStub); }); - assert.strictEqual(client.packetMirroringsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.packetMirroringsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new packetmirroringsModule.v1.PacketMirroringsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.packetMirroringsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 packetmirroringsModule.v1.PacketMirroringsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new packetmirroringsModule.v1.PacketMirroringsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_projects_v1.ts b/test/gapic_projects_v1.ts index 984196a1..cc6df4f2 100644 --- a/test/gapic_projects_v1.ts +++ b/test/gapic_projects_v1.ts @@ -126,99 +126,101 @@ describe('v1.ProjectsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = projectsModule.v1.ProjectsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = projectsModule.v1.ProjectsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = projectsModule.v1.ProjectsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = projectsModule.v1.ProjectsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new projectsModule.v1.ProjectsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = projectsModule.v1.ProjectsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new projectsModule.v1.ProjectsClient({ - fallback: true, + it('has port', () => { + const port = projectsModule.v1.ProjectsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new projectsModule.v1.ProjectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new projectsModule.v1.ProjectsClient(); + assert(client); }); - assert.strictEqual(client.projectsStub, undefined); - await client.initialize(); - assert(client.projectsStub); - }); - it('has close method for the initialized client', done => { - const client = new projectsModule.v1.ProjectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new projectsModule.v1.ProjectsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.projectsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.projectsStub, undefined); + await client.initialize(); + assert(client.projectsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new projectsModule.v1.ProjectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.projectsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.projectsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new projectsModule.v1.ProjectsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.projectsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new projectsModule.v1.ProjectsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new projectsModule.v1.ProjectsClient({ + 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()); }); - 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 projectsModule.v1.ProjectsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new projectsModule.v1.ProjectsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('disableXpnHost', () => { diff --git a/test/gapic_public_advertised_prefixes_v1.ts b/test/gapic_public_advertised_prefixes_v1.ts index ba3a3a88..92325e1b 100644 --- a/test/gapic_public_advertised_prefixes_v1.ts +++ b/test/gapic_public_advertised_prefixes_v1.ts @@ -126,111 +126,113 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.publicAdvertisedPrefixesStub, undefined); - await client.initialize(); - assert(client.publicAdvertisedPrefixesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.publicAdvertisedPrefixesStub, undefined); + await client.initialize(); + assert(client.publicAdvertisedPrefixesStub); + }); - it('has close method for the initialized client', done => { - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.publicAdvertisedPrefixesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.publicAdvertisedPrefixesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.publicAdvertisedPrefixesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.publicAdvertisedPrefixesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + 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 publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new publicadvertisedprefixesModule.v1.PublicAdvertisedPrefixesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_public_delegated_prefixes_v1.ts b/test/gapic_public_delegated_prefixes_v1.ts index 5b058101..22acea8b 100644 --- a/test/gapic_public_delegated_prefixes_v1.ts +++ b/test/gapic_public_delegated_prefixes_v1.ts @@ -126,111 +126,113 @@ describe('v1.PublicDelegatedPrefixesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.publicDelegatedPrefixesStub, undefined); - await client.initialize(); - assert(client.publicDelegatedPrefixesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.publicDelegatedPrefixesStub, undefined); + await client.initialize(); + assert(client.publicDelegatedPrefixesStub); + }); - it('has close method for the initialized client', done => { - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.publicDelegatedPrefixesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.publicDelegatedPrefixesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.publicDelegatedPrefixesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.publicDelegatedPrefixesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + 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 publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new publicdelegatedprefixesModule.v1.PublicDelegatedPrefixesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_autoscalers_v1.ts b/test/gapic_region_autoscalers_v1.ts index 69cadf6d..0e62b3d5 100644 --- a/test/gapic_region_autoscalers_v1.ts +++ b/test/gapic_region_autoscalers_v1.ts @@ -126,101 +126,103 @@ describe('v1.RegionAutoscalersClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionautoscalersModule.v1.RegionAutoscalersClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regionautoscalersModule.v1.RegionAutoscalersClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionautoscalersModule.v1.RegionAutoscalersClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regionautoscalersModule.v1.RegionAutoscalersClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionautoscalersModule.v1.RegionAutoscalersClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regionautoscalersModule.v1.RegionAutoscalersClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regionautoscalersModule.v1.RegionAutoscalersClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionAutoscalersStub, undefined); - await client.initialize(); - assert(client.regionAutoscalersStub); - }); - it('has close method for the initialized client', done => { - const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regionautoscalersModule.v1.RegionAutoscalersClient(); + assert(client); }); - client.initialize(); - assert(client.regionAutoscalersStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionAutoscalersStub, undefined); + await client.initialize(); + assert(client.regionAutoscalersStub); }); - assert.strictEqual(client.regionAutoscalersStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionAutoscalersStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionAutoscalersStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regionautoscalersModule.v1.RegionAutoscalersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionautoscalersModule.v1.RegionAutoscalersClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_backend_services_v1.ts b/test/gapic_region_backend_services_v1.ts index 749b06ef..b65c7e80 100644 --- a/test/gapic_region_backend_services_v1.ts +++ b/test/gapic_region_backend_services_v1.ts @@ -126,109 +126,111 @@ describe('v1.RegionBackendServicesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionbackendservicesModule.v1.RegionBackendServicesClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionbackendservicesModule.v1.RegionBackendServicesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionbackendservicesModule.v1.RegionBackendServicesClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionbackendservicesModule.v1.RegionBackendServicesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionbackendservicesModule.v1.RegionBackendServicesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionbackendservicesModule.v1.RegionBackendServicesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionBackendServicesStub, undefined); - await client.initialize(); - assert(client.regionBackendServicesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionBackendServicesStub, undefined); + await client.initialize(); + assert(client.regionBackendServicesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionBackendServicesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionBackendServicesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionBackendServicesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionBackendServicesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionbackendservicesModule.v1.RegionBackendServicesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + 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 regionbackendservicesModule.v1.RegionBackendServicesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionbackendservicesModule.v1.RegionBackendServicesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_commitments_v1.ts b/test/gapic_region_commitments_v1.ts index ae097797..f242e34c 100644 --- a/test/gapic_region_commitments_v1.ts +++ b/test/gapic_region_commitments_v1.ts @@ -126,101 +126,103 @@ describe('v1.RegionCommitmentsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regioncommitmentsModule.v1.RegionCommitmentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regioncommitmentsModule.v1.RegionCommitmentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regioncommitmentsModule.v1.RegionCommitmentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regioncommitmentsModule.v1.RegionCommitmentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regioncommitmentsModule.v1.RegionCommitmentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ - fallback: true, + it('has port', () => { + const port = regioncommitmentsModule.v1.RegionCommitmentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient(); + assert(client); }); - assert.strictEqual(client.regionCommitmentsStub, undefined); - await client.initialize(); - assert(client.regionCommitmentsStub); - }); - it('has close method for the initialized client', done => { - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.regionCommitmentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCommitmentsStub, undefined); + await client.initialize(); + assert(client.regionCommitmentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionCommitmentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.regionCommitmentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCommitmentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + 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()); }); - 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 regioncommitmentsModule.v1.RegionCommitmentsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_region_disk_types_v1.ts b/test/gapic_region_disk_types_v1.ts index 39eebd03..e8980f6b 100644 --- a/test/gapic_region_disk_types_v1.ts +++ b/test/gapic_region_disk_types_v1.ts @@ -126,101 +126,103 @@ describe('v1.RegionDiskTypesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regiondisktypesModule.v1.RegionDiskTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regiondisktypesModule.v1.RegionDiskTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regiondisktypesModule.v1.RegionDiskTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regiondisktypesModule.v1.RegionDiskTypesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regiondisktypesModule.v1.RegionDiskTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regiondisktypesModule.v1.RegionDiskTypesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regiondisktypesModule.v1.RegionDiskTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionDiskTypesStub, undefined); - await client.initialize(); - assert(client.regionDiskTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regiondisktypesModule.v1.RegionDiskTypesClient(); + assert(client); }); - client.initialize(); - assert(client.regionDiskTypesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionDiskTypesStub, undefined); + await client.initialize(); + assert(client.regionDiskTypesStub); }); - assert.strictEqual(client.regionDiskTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionDiskTypesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionDiskTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regiondisktypesModule.v1.RegionDiskTypesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regiondisktypesModule.v1.RegionDiskTypesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_region_disks_v1.ts b/test/gapic_region_disks_v1.ts index d07f294b..9cb47709 100644 --- a/test/gapic_region_disks_v1.ts +++ b/test/gapic_region_disks_v1.ts @@ -126,99 +126,101 @@ describe('v1.RegionDisksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = regiondisksModule.v1.RegionDisksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = regiondisksModule.v1.RegionDisksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regiondisksModule.v1.RegionDisksClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = regiondisksModule.v1.RegionDisksClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new regiondisksModule.v1.RegionDisksClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = regiondisksModule.v1.RegionDisksClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new regiondisksModule.v1.RegionDisksClient({ - fallback: true, + it('has port', () => { + const port = regiondisksModule.v1.RegionDisksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regiondisksModule.v1.RegionDisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regiondisksModule.v1.RegionDisksClient(); + assert(client); }); - assert.strictEqual(client.regionDisksStub, undefined); - await client.initialize(); - assert(client.regionDisksStub); - }); - it('has close method for the initialized client', done => { - const client = new regiondisksModule.v1.RegionDisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.regionDisksStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionDisksStub, undefined); + await client.initialize(); + assert(client.regionDisksStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regiondisksModule.v1.RegionDisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionDisksStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.regionDisksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionDisksStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regiondisksModule.v1.RegionDisksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regiondisksModule.v1.RegionDisksClient({ + 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()); }); - 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 regiondisksModule.v1.RegionDisksClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regiondisksModule.v1.RegionDisksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addResourcePolicies', () => { diff --git a/test/gapic_region_health_check_services_v1.ts b/test/gapic_region_health_check_services_v1.ts index db3a6dd3..479f13d1 100644 --- a/test/gapic_region_health_check_services_v1.ts +++ b/test/gapic_region_health_check_services_v1.ts @@ -126,111 +126,113 @@ describe('v1.RegionHealthCheckServicesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionHealthCheckServicesStub, undefined); - await client.initialize(); - assert(client.regionHealthCheckServicesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthCheckServicesStub, undefined); + await client.initialize(); + assert(client.regionHealthCheckServicesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionHealthCheckServicesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionHealthCheckServicesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthCheckServicesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionHealthCheckServicesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + 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 regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_health_checks_v1.ts b/test/gapic_region_health_checks_v1.ts index 00cec5ff..fdb489ae 100644 --- a/test/gapic_region_health_checks_v1.ts +++ b/test/gapic_region_health_checks_v1.ts @@ -126,101 +126,103 @@ describe('v1.RegionHealthChecksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionhealthchecksModule.v1.RegionHealthChecksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regionhealthchecksModule.v1.RegionHealthChecksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionhealthchecksModule.v1.RegionHealthChecksClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionhealthchecksModule.v1.RegionHealthChecksClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regionhealthchecksModule.v1.RegionHealthChecksClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regionhealthchecksModule.v1.RegionHealthChecksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionHealthChecksStub, undefined); - await client.initialize(); - assert(client.regionHealthChecksStub); - }); - it('has close method for the initialized client', done => { - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient(); + assert(client); }); - client.initialize(); - assert(client.regionHealthChecksStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthChecksStub, undefined); + await client.initialize(); + assert(client.regionHealthChecksStub); }); - assert.strictEqual(client.regionHealthChecksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionHealthChecksStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthChecksStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regionhealthchecksModule.v1.RegionHealthChecksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthchecksModule.v1.RegionHealthChecksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_instance_group_managers_v1.ts b/test/gapic_region_instance_group_managers_v1.ts index b14430e0..114100da 100644 --- a/test/gapic_region_instance_group_managers_v1.ts +++ b/test/gapic_region_instance_group_managers_v1.ts @@ -126,124 +126,126 @@ describe('v1.RegionInstanceGroupManagersClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionInstanceGroupManagersStub, undefined); - await client.initialize(); - assert(client.regionInstanceGroupManagersStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionInstanceGroupManagersStub, undefined); + await client.initialize(); + assert(client.regionInstanceGroupManagersStub); + }); - it('has close method for the initialized client', done => { - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.regionInstanceGroupManagersStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.regionInstanceGroupManagersStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionInstanceGroupManagersStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionInstanceGroupManagersStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + 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 regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancegroupmanagersModule.v1.RegionInstanceGroupManagersClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('abandonInstances', () => { diff --git a/test/gapic_region_instance_groups_v1.ts b/test/gapic_region_instance_groups_v1.ts index af727385..d987db54 100644 --- a/test/gapic_region_instance_groups_v1.ts +++ b/test/gapic_region_instance_groups_v1.ts @@ -126,114 +126,111 @@ describe('v1.RegionInstanceGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regioninstancegroupsModule.v1.RegionInstanceGroupsClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regioninstancegroupsModule.v1.RegionInstanceGroupsClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regioninstancegroupsModule.v1.RegionInstanceGroupsClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regioninstancegroupsModule.v1.RegionInstanceGroupsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = regioninstancegroupsModule.v1.RegionInstanceGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regioninstancegroupsModule.v1.RegionInstanceGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regioninstancegroupsModule.v1.RegionInstanceGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = new regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionInstanceGroupsStub, undefined); - await client.initialize(); - assert(client.regionInstanceGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceGroupsStub, undefined); + await client.initialize(); + assert(client.regionInstanceGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = new regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.regionInstanceGroupsStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionInstanceGroupsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionInstanceGroupsStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceGroupsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + 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 regioninstancegroupsModule.v1.RegionInstanceGroupsClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regioninstancegroupsModule.v1.RegionInstanceGroupsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_region_instances_v1.ts b/test/gapic_region_instances_v1.ts index 31fef2e0..53e77e52 100644 --- a/test/gapic_region_instances_v1.ts +++ b/test/gapic_region_instances_v1.ts @@ -63,101 +63,103 @@ describe('v1.RegionInstancesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regioninstancesModule.v1.RegionInstancesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regioninstancesModule.v1.RegionInstancesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regioninstancesModule.v1.RegionInstancesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regioninstancesModule.v1.RegionInstancesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regioninstancesModule.v1.RegionInstancesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regioninstancesModule.v1.RegionInstancesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regioninstancesModule.v1.RegionInstancesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regioninstancesModule.v1.RegionInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regioninstancesModule.v1.RegionInstancesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionInstancesStub, undefined); - await client.initialize(); - assert(client.regionInstancesStub); - }); - it('has close method for the initialized client', done => { - const client = new regioninstancesModule.v1.RegionInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regioninstancesModule.v1.RegionInstancesClient(); + assert(client); }); - client.initialize(); - assert(client.regionInstancesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regioninstancesModule.v1.RegionInstancesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regioninstancesModule.v1.RegionInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regioninstancesModule.v1.RegionInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstancesStub, undefined); + await client.initialize(); + assert(client.regionInstancesStub); }); - assert.strictEqual(client.regionInstancesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regioninstancesModule.v1.RegionInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionInstancesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regioninstancesModule.v1.RegionInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regioninstancesModule.v1.RegionInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstancesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regioninstancesModule.v1.RegionInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstancesModule.v1.RegionInstancesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstancesModule.v1.RegionInstancesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('bulkInsert', () => { diff --git a/test/gapic_region_network_endpoint_groups_v1.ts b/test/gapic_region_network_endpoint_groups_v1.ts index 4e0e6781..14f57b0f 100644 --- a/test/gapic_region_network_endpoint_groups_v1.ts +++ b/test/gapic_region_network_endpoint_groups_v1.ts @@ -126,124 +126,126 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNetworkEndpointGroupsStub, undefined); - await client.initialize(); - assert(client.regionNetworkEndpointGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNetworkEndpointGroupsStub, undefined); + await client.initialize(); + assert(client.regionNetworkEndpointGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.regionNetworkEndpointGroupsStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.regionNetworkEndpointGroupsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNetworkEndpointGroupsStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNetworkEndpointGroupsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + 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 regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnetworkendpointgroupsModule.v1.RegionNetworkEndpointGroupsClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_network_firewall_policies_v1.ts b/test/gapic_region_network_firewall_policies_v1.ts index e61855f9..e6f90099 100644 --- a/test/gapic_region_network_firewall_policies_v1.ts +++ b/test/gapic_region_network_firewall_policies_v1.ts @@ -126,124 +126,126 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionnetworkfirewallpoliciesModule.v1 + .RegionNetworkFirewallPoliciesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionnetworkfirewallpoliciesModule.v1 + .RegionNetworkFirewallPoliciesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionnetworkfirewallpoliciesModule.v1 + .RegionNetworkFirewallPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNetworkFirewallPoliciesStub, undefined); - await client.initialize(); - assert(client.regionNetworkFirewallPoliciesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNetworkFirewallPoliciesStub, undefined); + await client.initialize(); + assert(client.regionNetworkFirewallPoliciesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.regionNetworkFirewallPoliciesStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.regionNetworkFirewallPoliciesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNetworkFirewallPoliciesStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNetworkFirewallPoliciesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + 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 regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnetworkfirewallpoliciesModule.v1.RegionNetworkFirewallPoliciesClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addAssociation', () => { diff --git a/test/gapic_region_notification_endpoints_v1.ts b/test/gapic_region_notification_endpoints_v1.ts index cb0d90e5..ebe7bcaf 100644 --- a/test/gapic_region_notification_endpoints_v1.ts +++ b/test/gapic_region_notification_endpoints_v1.ts @@ -126,124 +126,126 @@ describe('v1.RegionNotificationEndpointsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient - .port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNotificationEndpointsStub, undefined); - await client.initialize(); - assert(client.regionNotificationEndpointsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNotificationEndpointsStub, undefined); + await client.initialize(); + assert(client.regionNotificationEndpointsStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.regionNotificationEndpointsStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.regionNotificationEndpointsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - auth: googleAuth, - projectId: 'bogus', - } - ); - assert.strictEqual(client.regionNotificationEndpointsStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + auth: googleAuth, + projectId: 'bogus', + } + ); + assert.strictEqual(client.regionNotificationEndpointsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + 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 regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( - { - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient( + { + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_operations_v1.ts b/test/gapic_region_operations_v1.ts index 507eb52e..85fd198a 100644 --- a/test/gapic_region_operations_v1.ts +++ b/test/gapic_region_operations_v1.ts @@ -126,101 +126,103 @@ describe('v1.RegionOperationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionoperationsModule.v1.RegionOperationsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionoperationsModule.v1.RegionOperationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionoperationsModule.v1.RegionOperationsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new regionoperationsModule.v1.RegionOperationsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionoperationsModule.v1.RegionOperationsClient({ - fallback: true, + it('has port', () => { + const port = regionoperationsModule.v1.RegionOperationsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionoperationsModule.v1.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient(); + assert(client); }); - assert.strictEqual(client.regionOperationsStub, undefined); - await client.initialize(); - assert(client.regionOperationsStub); - }); - it('has close method for the initialized client', done => { - const client = new regionoperationsModule.v1.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.regionOperationsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionOperationsStub, undefined); + await client.initialize(); + assert(client.regionOperationsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionoperationsModule.v1.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new regionoperationsModule.v1.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionOperationsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.regionOperationsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new regionoperationsModule.v1.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionOperationsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionoperationsModule.v1.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionoperationsModule.v1.RegionOperationsClient({ + 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()); }); - 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 regionoperationsModule.v1.RegionOperationsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionoperationsModule.v1.RegionOperationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_operations_v1small.ts b/test/gapic_region_operations_v1small.ts index a055c62f..22b1ad9d 100644 --- a/test/gapic_region_operations_v1small.ts +++ b/test/gapic_region_operations_v1small.ts @@ -63,101 +63,104 @@ describe('v1small.RegionOperationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionoperationsModule.v1small.RegionOperationsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - regionoperationsModule.v1small.RegionOperationsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionoperationsModule.v1small.RegionOperationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regionoperationsModule.v1small.RegionOperationsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionoperationsModule.v1small.RegionOperationsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionoperationsModule.v1small.RegionOperationsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regionoperationsModule.v1small.RegionOperationsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionoperationsModule.v1small.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regionoperationsModule.v1small.RegionOperationsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionOperationsStub, undefined); - await client.initialize(); - assert(client.regionOperationsStub); - }); - it('has close method for the initialized client', done => { - const client = new regionoperationsModule.v1small.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new regionoperationsModule.v1small.RegionOperationsClient(); + assert(client); }); - client.initialize(); - assert(client.regionOperationsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionoperationsModule.v1small.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionOperationsStub, undefined); + await client.initialize(); + assert(client.regionOperationsStub); }); - assert.strictEqual(client.regionOperationsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionOperationsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionoperationsModule.v1small.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionOperationsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regionoperationsModule.v1small.RegionOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionoperationsModule.v1small.RegionOperationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_region_security_policies_v1.ts b/test/gapic_region_security_policies_v1.ts index b6310210..69916b94 100644 --- a/test/gapic_region_security_policies_v1.ts +++ b/test/gapic_region_security_policies_v1.ts @@ -126,109 +126,113 @@ describe('v1.RegionSecurityPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionSecurityPoliciesStub, undefined); - await client.initialize(); - assert(client.regionSecurityPoliciesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSecurityPoliciesStub, undefined); + await client.initialize(); + assert(client.regionSecurityPoliciesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionSecurityPoliciesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionSecurityPoliciesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSecurityPoliciesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionSecurityPoliciesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + 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 regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionsecuritypoliciesModule.v1.RegionSecurityPoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_ssl_certificates_v1.ts b/test/gapic_region_ssl_certificates_v1.ts index 7083fdd5..21dd76c7 100644 --- a/test/gapic_region_ssl_certificates_v1.ts +++ b/test/gapic_region_ssl_certificates_v1.ts @@ -126,109 +126,111 @@ describe('v1.RegionSslCertificatesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regionsslcertificatesModule.v1.RegionSslCertificatesClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionsslcertificatesModule.v1.RegionSslCertificatesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regionsslcertificatesModule.v1.RegionSslCertificatesClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regionsslcertificatesModule.v1.RegionSslCertificatesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regionsslcertificatesModule.v1.RegionSslCertificatesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regionsslcertificatesModule.v1.RegionSslCertificatesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionSslCertificatesStub, undefined); - await client.initialize(); - assert(client.regionSslCertificatesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSslCertificatesStub, undefined); + await client.initialize(); + assert(client.regionSslCertificatesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionSslCertificatesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionSslCertificatesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSslCertificatesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionSslCertificatesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + 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 regionsslcertificatesModule.v1.RegionSslCertificatesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regionsslcertificatesModule.v1.RegionSslCertificatesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_target_http_proxies_v1.ts b/test/gapic_region_target_http_proxies_v1.ts index cca20615..171bf8cc 100644 --- a/test/gapic_region_target_http_proxies_v1.ts +++ b/test/gapic_region_target_http_proxies_v1.ts @@ -126,111 +126,113 @@ describe('v1.RegionTargetHttpProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionTargetHttpProxiesStub, undefined); - await client.initialize(); - assert(client.regionTargetHttpProxiesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionTargetHttpProxiesStub, undefined); + await client.initialize(); + assert(client.regionTargetHttpProxiesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionTargetHttpProxiesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionTargetHttpProxiesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionTargetHttpProxiesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionTargetHttpProxiesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + 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 regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regiontargethttpproxiesModule.v1.RegionTargetHttpProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_target_https_proxies_v1.ts b/test/gapic_region_target_https_proxies_v1.ts index 782c5375..f2216f89 100644 --- a/test/gapic_region_target_https_proxies_v1.ts +++ b/test/gapic_region_target_https_proxies_v1.ts @@ -126,111 +126,113 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', - }); - assert.strictEqual(client.regionTargetHttpsProxiesStub, undefined); - await client.initialize(); - assert(client.regionTargetHttpsProxiesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionTargetHttpsProxiesStub, undefined); + await client.initialize(); + assert(client.regionTargetHttpsProxiesStub); + }); - it('has close method for the initialized client', done => { - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionTargetHttpsProxiesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.regionTargetHttpsProxiesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionTargetHttpsProxiesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.regionTargetHttpsProxiesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - 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', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + 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 regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new regiontargethttpsproxiesModule.v1.RegionTargetHttpsProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_region_url_maps_v1.ts b/test/gapic_region_url_maps_v1.ts index 39397fd1..ea7b97df 100644 --- a/test/gapic_region_url_maps_v1.ts +++ b/test/gapic_region_url_maps_v1.ts @@ -126,99 +126,103 @@ describe('v1.RegionUrlMapsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = regionurlmapsModule.v1.RegionUrlMapsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = regionurlmapsModule.v1.RegionUrlMapsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionurlmapsModule.v1.RegionUrlMapsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regionurlmapsModule.v1.RegionUrlMapsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + regionurlmapsModule.v1.RegionUrlMapsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + regionurlmapsModule.v1.RegionUrlMapsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regionurlmapsModule.v1.RegionUrlMapsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionUrlMapsStub, undefined); - await client.initialize(); - assert(client.regionUrlMapsStub); - }); - it('has close method for the initialized client', done => { - const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regionurlmapsModule.v1.RegionUrlMapsClient(); + assert(client); }); - client.initialize(); - assert(client.regionUrlMapsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionUrlMapsStub, undefined); + await client.initialize(); + assert(client.regionUrlMapsStub); }); - assert.strictEqual(client.regionUrlMapsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionUrlMapsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionUrlMapsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regionurlmapsModule.v1.RegionUrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionurlmapsModule.v1.RegionUrlMapsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_regions_v1.ts b/test/gapic_regions_v1.ts index 2d0d0322..2a35dbdc 100644 --- a/test/gapic_regions_v1.ts +++ b/test/gapic_regions_v1.ts @@ -126,99 +126,101 @@ describe('v1.RegionsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = regionsModule.v1.RegionsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = regionsModule.v1.RegionsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = regionsModule.v1.RegionsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new regionsModule.v1.RegionsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = regionsModule.v1.RegionsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new regionsModule.v1.RegionsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = regionsModule.v1.RegionsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new regionsModule.v1.RegionsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = regionsModule.v1.RegionsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.regionsStub, undefined); - await client.initialize(); - assert(client.regionsStub); - }); - it('has close method for the initialized client', done => { - const client = new regionsModule.v1.RegionsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new regionsModule.v1.RegionsClient(); + assert(client); }); - client.initialize(); - assert(client.regionsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new regionsModule.v1.RegionsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new regionsModule.v1.RegionsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new regionsModule.v1.RegionsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionsStub, undefined); + await client.initialize(); + assert(client.regionsStub); }); - assert.strictEqual(client.regionsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new regionsModule.v1.RegionsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new regionsModule.v1.RegionsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new regionsModule.v1.RegionsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 regionsModule.v1.RegionsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionsModule.v1.RegionsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionsModule.v1.RegionsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => { diff --git a/test/gapic_reservations_v1.ts b/test/gapic_reservations_v1.ts index 76d3bdcf..462a63cc 100644 --- a/test/gapic_reservations_v1.ts +++ b/test/gapic_reservations_v1.ts @@ -126,99 +126,101 @@ describe('v1.ReservationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = reservationsModule.v1.ReservationsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = reservationsModule.v1.ReservationsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = reservationsModule.v1.ReservationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new reservationsModule.v1.ReservationsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = reservationsModule.v1.ReservationsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new reservationsModule.v1.ReservationsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = reservationsModule.v1.ReservationsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new reservationsModule.v1.ReservationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = reservationsModule.v1.ReservationsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.reservationsStub, undefined); - await client.initialize(); - assert(client.reservationsStub); - }); - it('has close method for the initialized client', done => { - const client = new reservationsModule.v1.ReservationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new reservationsModule.v1.ReservationsClient(); + assert(client); }); - client.initialize(); - assert(client.reservationsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new reservationsModule.v1.ReservationsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new reservationsModule.v1.ReservationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationsStub, undefined); + await client.initialize(); + assert(client.reservationsStub); }); - assert.strictEqual(client.reservationsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.reservationsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new reservationsModule.v1.ReservationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 reservationsModule.v1.ReservationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationsModule.v1.ReservationsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationsModule.v1.ReservationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_resource_policies_v1.ts b/test/gapic_resource_policies_v1.ts index 62c95322..43cac596 100644 --- a/test/gapic_resource_policies_v1.ts +++ b/test/gapic_resource_policies_v1.ts @@ -126,101 +126,103 @@ describe('v1.ResourcePoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - resourcepoliciesModule.v1.ResourcePoliciesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - resourcepoliciesModule.v1.ResourcePoliciesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = resourcepoliciesModule.v1.ResourcePoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + resourcepoliciesModule.v1.ResourcePoliciesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + resourcepoliciesModule.v1.ResourcePoliciesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = resourcepoliciesModule.v1.ResourcePoliciesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.resourcePoliciesStub, undefined); - await client.initialize(); - assert(client.resourcePoliciesStub); - }); - it('has close method for the initialized client', done => { - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient(); + assert(client); }); - client.initialize(); - assert(client.resourcePoliciesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.resourcePoliciesStub, undefined); + await client.initialize(); + assert(client.resourcePoliciesStub); }); - assert.strictEqual(client.resourcePoliciesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.resourcePoliciesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.resourcePoliciesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 resourcepoliciesModule.v1.ResourcePoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new resourcepoliciesModule.v1.ResourcePoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_routers_v1.ts b/test/gapic_routers_v1.ts index 758b5fd8..8e8c2b70 100644 --- a/test/gapic_routers_v1.ts +++ b/test/gapic_routers_v1.ts @@ -126,99 +126,101 @@ describe('v1.RoutersClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = routersModule.v1.RoutersClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = routersModule.v1.RoutersClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = routersModule.v1.RoutersClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new routersModule.v1.RoutersClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = routersModule.v1.RoutersClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new routersModule.v1.RoutersClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = routersModule.v1.RoutersClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new routersModule.v1.RoutersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = routersModule.v1.RoutersClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.routersStub, undefined); - await client.initialize(); - assert(client.routersStub); - }); - it('has close method for the initialized client', done => { - const client = new routersModule.v1.RoutersClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new routersModule.v1.RoutersClient(); + assert(client); }); - client.initialize(); - assert(client.routersStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new routersModule.v1.RoutersClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new routersModule.v1.RoutersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new routersModule.v1.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.routersStub, undefined); + await client.initialize(); + assert(client.routersStub); }); - assert.strictEqual(client.routersStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new routersModule.v1.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.routersStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new routersModule.v1.RoutersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new routersModule.v1.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.routersStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 routersModule.v1.RoutersClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new routersModule.v1.RoutersClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new routersModule.v1.RoutersClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_routes_v1.ts b/test/gapic_routes_v1.ts index 90b4d189..ad49b8ba 100644 --- a/test/gapic_routes_v1.ts +++ b/test/gapic_routes_v1.ts @@ -126,99 +126,101 @@ describe('v1.RoutesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = routesModule.v1.RoutesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = routesModule.v1.RoutesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = routesModule.v1.RoutesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = routesModule.v1.RoutesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new routesModule.v1.RoutesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = routesModule.v1.RoutesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new routesModule.v1.RoutesClient({ - fallback: true, + it('has port', () => { + const port = routesModule.v1.RoutesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new routesModule.v1.RoutesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new routesModule.v1.RoutesClient(); + assert(client); }); - assert.strictEqual(client.routesStub, undefined); - await client.initialize(); - assert(client.routesStub); - }); - it('has close method for the initialized client', done => { - const client = new routesModule.v1.RoutesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new routesModule.v1.RoutesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.routesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new routesModule.v1.RoutesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.routesStub, undefined); + await client.initialize(); + assert(client.routesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new routesModule.v1.RoutesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new routesModule.v1.RoutesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.routesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.routesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new routesModule.v1.RoutesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.routesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new routesModule.v1.RoutesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new routesModule.v1.RoutesClient({ + 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()); }); - 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 routesModule.v1.RoutesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new routesModule.v1.RoutesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_security_policies_v1.ts b/test/gapic_security_policies_v1.ts index dfe433a2..3b9e3a33 100644 --- a/test/gapic_security_policies_v1.ts +++ b/test/gapic_security_policies_v1.ts @@ -126,101 +126,103 @@ describe('v1.SecurityPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - securitypoliciesModule.v1.SecurityPoliciesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - securitypoliciesModule.v1.SecurityPoliciesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = securitypoliciesModule.v1.SecurityPoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new securitypoliciesModule.v1.SecurityPoliciesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + securitypoliciesModule.v1.SecurityPoliciesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + securitypoliciesModule.v1.SecurityPoliciesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = securitypoliciesModule.v1.SecurityPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.securityPoliciesStub, undefined); - await client.initialize(); - assert(client.securityPoliciesStub); - }); - it('has close method for the initialized client', done => { - const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new securitypoliciesModule.v1.SecurityPoliciesClient(); + assert(client); }); - client.initialize(); - assert(client.securityPoliciesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.securityPoliciesStub, undefined); + await client.initialize(); + assert(client.securityPoliciesStub); }); - assert.strictEqual(client.securityPoliciesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.securityPoliciesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.securityPoliciesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 securitypoliciesModule.v1.SecurityPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new securitypoliciesModule.v1.SecurityPoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addRule', () => { diff --git a/test/gapic_service_attachments_v1.ts b/test/gapic_service_attachments_v1.ts index 9ac95270..d77d4ea3 100644 --- a/test/gapic_service_attachments_v1.ts +++ b/test/gapic_service_attachments_v1.ts @@ -126,101 +126,103 @@ describe('v1.ServiceAttachmentsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - serviceattachmentsModule.v1.ServiceAttachmentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - serviceattachmentsModule.v1.ServiceAttachmentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = serviceattachmentsModule.v1.ServiceAttachmentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + serviceattachmentsModule.v1.ServiceAttachmentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + serviceattachmentsModule.v1.ServiceAttachmentsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = serviceattachmentsModule.v1.ServiceAttachmentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.serviceAttachmentsStub, undefined); - await client.initialize(); - assert(client.serviceAttachmentsStub); - }); - it('has close method for the initialized client', done => { - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient(); + assert(client); }); - client.initialize(); - assert(client.serviceAttachmentsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.serviceAttachmentsStub, undefined); + await client.initialize(); + assert(client.serviceAttachmentsStub); }); - assert.strictEqual(client.serviceAttachmentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.serviceAttachmentsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.serviceAttachmentsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 serviceattachmentsModule.v1.ServiceAttachmentsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new serviceattachmentsModule.v1.ServiceAttachmentsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_snapshots_v1.ts b/test/gapic_snapshots_v1.ts index 00927c69..19056271 100644 --- a/test/gapic_snapshots_v1.ts +++ b/test/gapic_snapshots_v1.ts @@ -126,99 +126,101 @@ describe('v1.SnapshotsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = snapshotsModule.v1.SnapshotsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = snapshotsModule.v1.SnapshotsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = snapshotsModule.v1.SnapshotsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new snapshotsModule.v1.SnapshotsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = snapshotsModule.v1.SnapshotsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new snapshotsModule.v1.SnapshotsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = snapshotsModule.v1.SnapshotsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new snapshotsModule.v1.SnapshotsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = snapshotsModule.v1.SnapshotsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.snapshotsStub, undefined); - await client.initialize(); - assert(client.snapshotsStub); - }); - it('has close method for the initialized client', done => { - const client = new snapshotsModule.v1.SnapshotsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new snapshotsModule.v1.SnapshotsClient(); + assert(client); }); - client.initialize(); - assert(client.snapshotsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new snapshotsModule.v1.SnapshotsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.snapshotsStub, undefined); + await client.initialize(); + assert(client.snapshotsStub); }); - assert.strictEqual(client.snapshotsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.snapshotsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new snapshotsModule.v1.SnapshotsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.snapshotsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 snapshotsModule.v1.SnapshotsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new snapshotsModule.v1.SnapshotsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new snapshotsModule.v1.SnapshotsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_ssl_certificates_v1.ts b/test/gapic_ssl_certificates_v1.ts index 129138ab..8de82c50 100644 --- a/test/gapic_ssl_certificates_v1.ts +++ b/test/gapic_ssl_certificates_v1.ts @@ -126,101 +126,103 @@ describe('v1.SslCertificatesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - sslcertificatesModule.v1.SslCertificatesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - sslcertificatesModule.v1.SslCertificatesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = sslcertificatesModule.v1.SslCertificatesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + sslcertificatesModule.v1.SslCertificatesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new sslcertificatesModule.v1.SslCertificatesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + sslcertificatesModule.v1.SslCertificatesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new sslcertificatesModule.v1.SslCertificatesClient({ - fallback: true, + it('has port', () => { + const port = sslcertificatesModule.v1.SslCertificatesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new sslcertificatesModule.v1.SslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new sslcertificatesModule.v1.SslCertificatesClient(); + assert(client); }); - assert.strictEqual(client.sslCertificatesStub, undefined); - await client.initialize(); - assert(client.sslCertificatesStub); - }); - it('has close method for the initialized client', done => { - const client = new sslcertificatesModule.v1.SslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.sslCertificatesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.sslCertificatesStub, undefined); + await client.initialize(); + assert(client.sslCertificatesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new sslcertificatesModule.v1.SslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sslCertificatesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.sslCertificatesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.sslCertificatesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sslcertificatesModule.v1.SslCertificatesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + 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()); }); - 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 sslcertificatesModule.v1.SslCertificatesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sslcertificatesModule.v1.SslCertificatesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_ssl_policies_v1.ts b/test/gapic_ssl_policies_v1.ts index 5a0941d7..6d7212bc 100644 --- a/test/gapic_ssl_policies_v1.ts +++ b/test/gapic_ssl_policies_v1.ts @@ -126,99 +126,101 @@ describe('v1.SslPoliciesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = sslpoliciesModule.v1.SslPoliciesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = sslpoliciesModule.v1.SslPoliciesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = sslpoliciesModule.v1.SslPoliciesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new sslpoliciesModule.v1.SslPoliciesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = sslpoliciesModule.v1.SslPoliciesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new sslpoliciesModule.v1.SslPoliciesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = sslpoliciesModule.v1.SslPoliciesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new sslpoliciesModule.v1.SslPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = sslpoliciesModule.v1.SslPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.sslPoliciesStub, undefined); - await client.initialize(); - assert(client.sslPoliciesStub); - }); - it('has close method for the initialized client', done => { - const client = new sslpoliciesModule.v1.SslPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new sslpoliciesModule.v1.SslPoliciesClient(); + assert(client); }); - client.initialize(); - assert(client.sslPoliciesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new sslpoliciesModule.v1.SslPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.sslPoliciesStub, undefined); + await client.initialize(); + assert(client.sslPoliciesStub); }); - assert.strictEqual(client.sslPoliciesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sslPoliciesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sslpoliciesModule.v1.SslPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.sslPoliciesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 sslpoliciesModule.v1.SslPoliciesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sslpoliciesModule.v1.SslPoliciesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_subnetworks_v1.ts b/test/gapic_subnetworks_v1.ts index c6a03bfc..766a3af7 100644 --- a/test/gapic_subnetworks_v1.ts +++ b/test/gapic_subnetworks_v1.ts @@ -126,99 +126,101 @@ describe('v1.SubnetworksClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = subnetworksModule.v1.SubnetworksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = subnetworksModule.v1.SubnetworksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = subnetworksModule.v1.SubnetworksClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = subnetworksModule.v1.SubnetworksClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new subnetworksModule.v1.SubnetworksClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = subnetworksModule.v1.SubnetworksClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new subnetworksModule.v1.SubnetworksClient({ - fallback: true, + it('has port', () => { + const port = subnetworksModule.v1.SubnetworksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new subnetworksModule.v1.SubnetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new subnetworksModule.v1.SubnetworksClient(); + assert(client); }); - assert.strictEqual(client.subnetworksStub, undefined); - await client.initialize(); - assert(client.subnetworksStub); - }); - it('has close method for the initialized client', done => { - const client = new subnetworksModule.v1.SubnetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new subnetworksModule.v1.SubnetworksClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.subnetworksStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new subnetworksModule.v1.SubnetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.subnetworksStub, undefined); + await client.initialize(); + assert(client.subnetworksStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new subnetworksModule.v1.SubnetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new subnetworksModule.v1.SubnetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.subnetworksStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.subnetworksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new subnetworksModule.v1.SubnetworksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.subnetworksStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new subnetworksModule.v1.SubnetworksClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new subnetworksModule.v1.SubnetworksClient({ + 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()); }); - 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 subnetworksModule.v1.SubnetworksClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new subnetworksModule.v1.SubnetworksClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_grpc_proxies_v1.ts b/test/gapic_target_grpc_proxies_v1.ts index f3453d8f..91b981cc 100644 --- a/test/gapic_target_grpc_proxies_v1.ts +++ b/test/gapic_target_grpc_proxies_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetGrpcProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targetgrpcproxiesModule.v1.TargetGrpcProxiesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetGrpcProxiesStub, undefined); - await client.initialize(); - assert(client.targetGrpcProxiesStub); - }); - it('has close method for the initialized client', done => { - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient(); + assert(client); }); - client.initialize(); - assert(client.targetGrpcProxiesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetGrpcProxiesStub, undefined); + await client.initialize(); + assert(client.targetGrpcProxiesStub); }); - assert.strictEqual(client.targetGrpcProxiesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetGrpcProxiesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetGrpcProxiesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetgrpcproxiesModule.v1.TargetGrpcProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_http_proxies_v1.ts b/test/gapic_target_http_proxies_v1.ts index d1994715..e03697e8 100644 --- a/test/gapic_target_http_proxies_v1.ts +++ b/test/gapic_target_http_proxies_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetHttpProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targethttpproxiesModule.v1.TargetHttpProxiesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targethttpproxiesModule.v1.TargetHttpProxiesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targethttpproxiesModule.v1.TargetHttpProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targethttpproxiesModule.v1.TargetHttpProxiesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + targethttpproxiesModule.v1.TargetHttpProxiesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targethttpproxiesModule.v1.TargetHttpProxiesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetHttpProxiesStub, undefined); - await client.initialize(); - assert(client.targetHttpProxiesStub); - }); - it('has close method for the initialized client', done => { - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient(); + assert(client); }); - client.initialize(); - assert(client.targetHttpProxiesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetHttpProxiesStub, undefined); + await client.initialize(); + assert(client.targetHttpProxiesStub); }); - assert.strictEqual(client.targetHttpProxiesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetHttpProxiesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetHttpProxiesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targethttpproxiesModule.v1.TargetHttpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targethttpproxiesModule.v1.TargetHttpProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_https_proxies_v1.ts b/test/gapic_target_https_proxies_v1.ts index e7cede79..7e493511 100644 --- a/test/gapic_target_https_proxies_v1.ts +++ b/test/gapic_target_https_proxies_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetHttpsProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targethttpsproxiesModule.v1.TargetHttpsProxiesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targethttpsproxiesModule.v1.TargetHttpsProxiesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targethttpsproxiesModule.v1.TargetHttpsProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targethttpsproxiesModule.v1.TargetHttpsProxiesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + targethttpsproxiesModule.v1.TargetHttpsProxiesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targethttpsproxiesModule.v1.TargetHttpsProxiesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetHttpsProxiesStub, undefined); - await client.initialize(); - assert(client.targetHttpsProxiesStub); - }); - it('has close method for the initialized client', done => { - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient(); + assert(client); }); - client.initialize(); - assert(client.targetHttpsProxiesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetHttpsProxiesStub, undefined); + await client.initialize(); + assert(client.targetHttpsProxiesStub); }); - assert.strictEqual(client.targetHttpsProxiesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetHttpsProxiesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetHttpsProxiesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targethttpsproxiesModule.v1.TargetHttpsProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_instances_v1.ts b/test/gapic_target_instances_v1.ts index 733c700d..3451ddb7 100644 --- a/test/gapic_target_instances_v1.ts +++ b/test/gapic_target_instances_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetInstancesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targetinstancesModule.v1.TargetInstancesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targetinstancesModule.v1.TargetInstancesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targetinstancesModule.v1.TargetInstancesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targetinstancesModule.v1.TargetInstancesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new targetinstancesModule.v1.TargetInstancesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + targetinstancesModule.v1.TargetInstancesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new targetinstancesModule.v1.TargetInstancesClient({ - fallback: true, + it('has port', () => { + const port = targetinstancesModule.v1.TargetInstancesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targetinstancesModule.v1.TargetInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targetinstancesModule.v1.TargetInstancesClient(); + assert(client); }); - assert.strictEqual(client.targetInstancesStub, undefined); - await client.initialize(); - assert(client.targetInstancesStub); - }); - it('has close method for the initialized client', done => { - const client = new targetinstancesModule.v1.TargetInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new targetinstancesModule.v1.TargetInstancesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.targetInstancesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new targetinstancesModule.v1.TargetInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetInstancesStub, undefined); + await client.initialize(); + assert(client.targetInstancesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targetinstancesModule.v1.TargetInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new targetinstancesModule.v1.TargetInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetInstancesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.targetInstancesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new targetinstancesModule.v1.TargetInstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetInstancesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targetinstancesModule.v1.TargetInstancesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetinstancesModule.v1.TargetInstancesClient({ + 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()); }); - 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 targetinstancesModule.v1.TargetInstancesClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetinstancesModule.v1.TargetInstancesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_pools_v1.ts b/test/gapic_target_pools_v1.ts index f9f5e3ee..aefb6be2 100644 --- a/test/gapic_target_pools_v1.ts +++ b/test/gapic_target_pools_v1.ts @@ -126,99 +126,101 @@ describe('v1.TargetPoolsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = targetpoolsModule.v1.TargetPoolsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = targetpoolsModule.v1.TargetPoolsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targetpoolsModule.v1.TargetPoolsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targetpoolsModule.v1.TargetPoolsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = targetpoolsModule.v1.TargetPoolsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targetpoolsModule.v1.TargetPoolsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = targetpoolsModule.v1.TargetPoolsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targetpoolsModule.v1.TargetPoolsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targetpoolsModule.v1.TargetPoolsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetPoolsStub, undefined); - await client.initialize(); - assert(client.targetPoolsStub); - }); - it('has close method for the initialized client', done => { - const client = new targetpoolsModule.v1.TargetPoolsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targetpoolsModule.v1.TargetPoolsClient(); + assert(client); }); - client.initialize(); - assert(client.targetPoolsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targetpoolsModule.v1.TargetPoolsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targetpoolsModule.v1.TargetPoolsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targetpoolsModule.v1.TargetPoolsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetPoolsStub, undefined); + await client.initialize(); + assert(client.targetPoolsStub); }); - assert.strictEqual(client.targetPoolsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targetpoolsModule.v1.TargetPoolsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetPoolsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targetpoolsModule.v1.TargetPoolsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targetpoolsModule.v1.TargetPoolsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetPoolsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targetpoolsModule.v1.TargetPoolsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetpoolsModule.v1.TargetPoolsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetpoolsModule.v1.TargetPoolsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('addHealthCheck', () => { diff --git a/test/gapic_target_ssl_proxies_v1.ts b/test/gapic_target_ssl_proxies_v1.ts index 2e10141f..f1546f71 100644 --- a/test/gapic_target_ssl_proxies_v1.ts +++ b/test/gapic_target_ssl_proxies_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetSslProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targetsslproxiesModule.v1.TargetSslProxiesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targetsslproxiesModule.v1.TargetSslProxiesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targetsslproxiesModule.v1.TargetSslProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targetsslproxiesModule.v1.TargetSslProxiesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + targetsslproxiesModule.v1.TargetSslProxiesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targetsslproxiesModule.v1.TargetSslProxiesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetSslProxiesStub, undefined); - await client.initialize(); - assert(client.targetSslProxiesStub); - }); - it('has close method for the initialized client', done => { - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient(); + assert(client); }); - client.initialize(); - assert(client.targetSslProxiesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetSslProxiesStub, undefined); + await client.initialize(); + assert(client.targetSslProxiesStub); }); - assert.strictEqual(client.targetSslProxiesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetSslProxiesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetSslProxiesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targetsslproxiesModule.v1.TargetSslProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetsslproxiesModule.v1.TargetSslProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_tcp_proxies_v1.ts b/test/gapic_target_tcp_proxies_v1.ts index 195a18cc..93d47cbe 100644 --- a/test/gapic_target_tcp_proxies_v1.ts +++ b/test/gapic_target_tcp_proxies_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetTcpProxiesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targettcpproxiesModule.v1.TargetTcpProxiesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targettcpproxiesModule.v1.TargetTcpProxiesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targettcpproxiesModule.v1.TargetTcpProxiesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targettcpproxiesModule.v1.TargetTcpProxiesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + targettcpproxiesModule.v1.TargetTcpProxiesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = targettcpproxiesModule.v1.TargetTcpProxiesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.targetTcpProxiesStub, undefined); - await client.initialize(); - assert(client.targetTcpProxiesStub); - }); - it('has close method for the initialized client', done => { - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient(); + assert(client); }); - client.initialize(); - assert(client.targetTcpProxiesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetTcpProxiesStub, undefined); + await client.initialize(); + assert(client.targetTcpProxiesStub); }); - assert.strictEqual(client.targetTcpProxiesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetTcpProxiesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetTcpProxiesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 targettcpproxiesModule.v1.TargetTcpProxiesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_target_vpn_gateways_v1.ts b/test/gapic_target_vpn_gateways_v1.ts index 35d37a65..55978cc4 100644 --- a/test/gapic_target_vpn_gateways_v1.ts +++ b/test/gapic_target_vpn_gateways_v1.ts @@ -126,101 +126,103 @@ describe('v1.TargetVpnGatewaysClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - targetvpngatewaysModule.v1.TargetVpnGatewaysClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - targetvpngatewaysModule.v1.TargetVpnGatewaysClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = targetvpngatewaysModule.v1.TargetVpnGatewaysClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + targetvpngatewaysModule.v1.TargetVpnGatewaysClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + targetvpngatewaysModule.v1.TargetVpnGatewaysClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - fallback: true, + it('has port', () => { + const port = targetvpngatewaysModule.v1.TargetVpnGatewaysClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient(); + assert(client); }); - assert.strictEqual(client.targetVpnGatewaysStub, undefined); - await client.initialize(); - assert(client.targetVpnGatewaysStub); - }); - it('has close method for the initialized client', done => { - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.targetVpnGatewaysStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetVpnGatewaysStub, undefined); + await client.initialize(); + assert(client.targetVpnGatewaysStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.targetVpnGatewaysStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.targetVpnGatewaysStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.targetVpnGatewaysStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + 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()); }); - 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 targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new targetvpngatewaysModule.v1.TargetVpnGatewaysClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_url_maps_v1.ts b/test/gapic_url_maps_v1.ts index 64b4038c..4ced66bd 100644 --- a/test/gapic_url_maps_v1.ts +++ b/test/gapic_url_maps_v1.ts @@ -126,99 +126,101 @@ describe('v1.UrlMapsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = urlmapsModule.v1.UrlMapsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = urlmapsModule.v1.UrlMapsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = urlmapsModule.v1.UrlMapsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new urlmapsModule.v1.UrlMapsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = urlmapsModule.v1.UrlMapsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new urlmapsModule.v1.UrlMapsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = urlmapsModule.v1.UrlMapsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new urlmapsModule.v1.UrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = urlmapsModule.v1.UrlMapsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.urlMapsStub, undefined); - await client.initialize(); - assert(client.urlMapsStub); - }); - it('has close method for the initialized client', done => { - const client = new urlmapsModule.v1.UrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new urlmapsModule.v1.UrlMapsClient(); + assert(client); }); - client.initialize(); - assert(client.urlMapsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new urlmapsModule.v1.UrlMapsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new urlmapsModule.v1.UrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new urlmapsModule.v1.UrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.urlMapsStub, undefined); + await client.initialize(); + assert(client.urlMapsStub); }); - assert.strictEqual(client.urlMapsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new urlmapsModule.v1.UrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.urlMapsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new urlmapsModule.v1.UrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new urlmapsModule.v1.UrlMapsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.urlMapsStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 urlmapsModule.v1.UrlMapsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new urlmapsModule.v1.UrlMapsClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new urlmapsModule.v1.UrlMapsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_vpn_gateways_v1.ts b/test/gapic_vpn_gateways_v1.ts index 9a70f28b..485eb772 100644 --- a/test/gapic_vpn_gateways_v1.ts +++ b/test/gapic_vpn_gateways_v1.ts @@ -126,99 +126,101 @@ describe('v1.VpnGatewaysClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = vpngatewaysModule.v1.VpnGatewaysClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = vpngatewaysModule.v1.VpnGatewaysClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = vpngatewaysModule.v1.VpnGatewaysClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new vpngatewaysModule.v1.VpnGatewaysClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = vpngatewaysModule.v1.VpnGatewaysClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new vpngatewaysModule.v1.VpnGatewaysClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = vpngatewaysModule.v1.VpnGatewaysClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new vpngatewaysModule.v1.VpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = vpngatewaysModule.v1.VpnGatewaysClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.vpnGatewaysStub, undefined); - await client.initialize(); - assert(client.vpnGatewaysStub); - }); - it('has close method for the initialized client', done => { - const client = new vpngatewaysModule.v1.VpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new vpngatewaysModule.v1.VpnGatewaysClient(); + assert(client); }); - client.initialize(); - assert(client.vpnGatewaysStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new vpngatewaysModule.v1.VpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.vpnGatewaysStub, undefined); + await client.initialize(); + assert(client.vpnGatewaysStub); }); - assert.strictEqual(client.vpnGatewaysStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.vpnGatewaysStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vpngatewaysModule.v1.VpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.vpnGatewaysStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 vpngatewaysModule.v1.VpnGatewaysClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vpngatewaysModule.v1.VpnGatewaysClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_vpn_tunnels_v1.ts b/test/gapic_vpn_tunnels_v1.ts index 9508777a..0fcf9070 100644 --- a/test/gapic_vpn_tunnels_v1.ts +++ b/test/gapic_vpn_tunnels_v1.ts @@ -126,99 +126,101 @@ describe('v1.VpnTunnelsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = vpntunnelsModule.v1.VpnTunnelsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = vpntunnelsModule.v1.VpnTunnelsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = vpntunnelsModule.v1.VpnTunnelsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = vpntunnelsModule.v1.VpnTunnelsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new vpntunnelsModule.v1.VpnTunnelsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = vpntunnelsModule.v1.VpnTunnelsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new vpntunnelsModule.v1.VpnTunnelsClient({ - fallback: true, + it('has port', () => { + const port = vpntunnelsModule.v1.VpnTunnelsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new vpntunnelsModule.v1.VpnTunnelsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new vpntunnelsModule.v1.VpnTunnelsClient(); + assert(client); }); - assert.strictEqual(client.vpnTunnelsStub, undefined); - await client.initialize(); - assert(client.vpnTunnelsStub); - }); - it('has close method for the initialized client', done => { - const client = new vpntunnelsModule.v1.VpnTunnelsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.vpnTunnelsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.vpnTunnelsStub, undefined); + await client.initialize(); + assert(client.vpnTunnelsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new vpntunnelsModule.v1.VpnTunnelsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.vpnTunnelsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.vpnTunnelsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.vpnTunnelsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vpntunnelsModule.v1.VpnTunnelsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + 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()); }); - 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 vpntunnelsModule.v1.VpnTunnelsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vpntunnelsModule.v1.VpnTunnelsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_zone_operations_v1.ts b/test/gapic_zone_operations_v1.ts index aeaa441e..c3f28ce0 100644 --- a/test/gapic_zone_operations_v1.ts +++ b/test/gapic_zone_operations_v1.ts @@ -126,101 +126,103 @@ describe('v1.ZoneOperationsClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = - zoneoperationsModule.v1.ZoneOperationsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - zoneoperationsModule.v1.ZoneOperationsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = zoneoperationsModule.v1.ZoneOperationsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + zoneoperationsModule.v1.ZoneOperationsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new zoneoperationsModule.v1.ZoneOperationsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + zoneoperationsModule.v1.ZoneOperationsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new zoneoperationsModule.v1.ZoneOperationsClient({ - fallback: true, + it('has port', () => { + const port = zoneoperationsModule.v1.ZoneOperationsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new zoneoperationsModule.v1.ZoneOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new zoneoperationsModule.v1.ZoneOperationsClient(); + assert(client); }); - assert.strictEqual(client.zoneOperationsStub, undefined); - await client.initialize(); - assert(client.zoneOperationsStub); - }); - it('has close method for the initialized client', done => { - const client = new zoneoperationsModule.v1.ZoneOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.zoneOperationsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zoneOperationsStub, undefined); + await client.initialize(); + assert(client.zoneOperationsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new zoneoperationsModule.v1.ZoneOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.zoneOperationsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.zoneOperationsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zoneOperationsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new zoneoperationsModule.v1.ZoneOperationsClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + 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()); }); - 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 zoneoperationsModule.v1.ZoneOperationsClient({ - 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); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zoneoperationsModule.v1.ZoneOperationsClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('delete', () => { diff --git a/test/gapic_zones_v1.ts b/test/gapic_zones_v1.ts index 0c53f21b..442d36a0 100644 --- a/test/gapic_zones_v1.ts +++ b/test/gapic_zones_v1.ts @@ -126,99 +126,101 @@ describe('v1.ZonesClient', () => { afterEach(() => { sinon.restore(); }); - it('has servicePath', () => { - const servicePath = zonesModule.v1.ZonesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = zonesModule.v1.ZonesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = zonesModule.v1.ZonesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new zonesModule.v1.ZonesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = zonesModule.v1.ZonesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new zonesModule.v1.ZonesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = zonesModule.v1.ZonesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new zonesModule.v1.ZonesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has port', () => { + const port = zonesModule.v1.ZonesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.zonesStub, undefined); - await client.initialize(); - assert(client.zonesStub); - }); - it('has close method for the initialized client', done => { - const client = new zonesModule.v1.ZonesClient({ - auth: googleAuth, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new zonesModule.v1.ZonesClient(); + assert(client); }); - client.initialize(); - assert(client.zonesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new zonesModule.v1.ZonesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new zonesModule.v1.ZonesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new zonesModule.v1.ZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zonesStub, undefined); + await client.initialize(); + assert(client.zonesStub); }); - assert.strictEqual(client.zonesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new zonesModule.v1.ZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.zonesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new zonesModule.v1.ZonesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new zonesModule.v1.ZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zonesStub, undefined); + client.close().then(() => { + done(); + }); }); - 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 zonesModule.v1.ZonesClient({ - auth: googleAuth, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zonesModule.v1.ZonesClient({ + 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()); }); - 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); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zonesModule.v1.ZonesClient({ + 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); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('get', () => {