google-cloud-compute-v1 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +20 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +176 -171
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +31 -32
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +194 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disks.rb +2 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +212 -215
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +39 -40
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +94 -72
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +58 -28
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +2 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/images.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +230 -237
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +43 -44
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +461 -514
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +93 -94
- data/lib/google/cloud/compute/v1/instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instances.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -100
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +2 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/licenses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/licenses.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +2 -2
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +945 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +527 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_attachments.rb +47 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +194 -193
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +35 -36
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/networks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/networks.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/node_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_types.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/projects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/projects.rb +2 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +221 -226
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +41 -42
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +59 -28
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +203 -204
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +37 -38
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +2 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/regions/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/regions.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/reservations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/reservations.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/rest.rb +124 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/routers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routers.rb +2 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/routes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routes.rb +2 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +2 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +2 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -83
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +72 -15
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +2 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/zones/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zones.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +3 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +536 -28
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -168,13 +168,22 @@ module Google
|
|
168
168
|
|
169
169
|
# Create credentials
|
170
170
|
credentials = @config.credentials
|
171
|
-
|
171
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
172
|
+
# but only if the default endpoint does not have a region prefix.
|
173
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
174
|
+
!@config.endpoint.split(".").first.include?("-")
|
175
|
+
credentials ||= Credentials.default scope: @config.scope,
|
176
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
172
177
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
173
178
|
credentials = Credentials.new credentials, scope: @config.scope
|
174
179
|
end
|
175
180
|
|
181
|
+
@quota_project_id = @config.quota_project
|
182
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
183
|
+
|
176
184
|
@zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
|
177
185
|
config.credentials = credentials
|
186
|
+
config.quota_project = @quota_project_id
|
178
187
|
config.endpoint = @config.endpoint
|
179
188
|
end
|
180
189
|
|
@@ -202,8 +211,6 @@ module Google
|
|
202
211
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
203
212
|
# @param options [::Gapic::CallOptions, ::Hash]
|
204
213
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
205
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
206
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
207
214
|
#
|
208
215
|
# @overload abandon_instances(instance_group_manager: nil, instance_group_managers_abandon_instances_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
209
216
|
# Pass arguments to `abandon_instances` via keyword arguments. Note that at
|
@@ -238,17 +245,21 @@ module Google
|
|
238
245
|
# Customize the options with defaults
|
239
246
|
call_metadata = @config.rpcs.abandon_instances.metadata.to_h
|
240
247
|
|
241
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
242
249
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
251
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
245
252
|
transports_version_send: [:rest]
|
246
253
|
|
254
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
255
|
+
|
247
256
|
options.apply_defaults timeout: @config.rpcs.abandon_instances.timeout,
|
248
|
-
metadata: call_metadata
|
257
|
+
metadata: call_metadata,
|
258
|
+
retry_policy: @config.rpcs.abandon_instances.retry_policy
|
249
259
|
|
250
260
|
options.apply_defaults timeout: @config.timeout,
|
251
|
-
metadata: @config.metadata
|
261
|
+
metadata: @config.metadata,
|
262
|
+
retry_policy: @config.retry_policy
|
252
263
|
|
253
264
|
@instance_group_managers_stub.abandon_instances request, options do |result, response|
|
254
265
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -263,12 +274,8 @@ module Google
|
|
263
274
|
yield result, response if block_given?
|
264
275
|
return result
|
265
276
|
end
|
266
|
-
rescue ::
|
267
|
-
|
268
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
269
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
270
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
271
|
-
end
|
277
|
+
rescue ::Gapic::Rest::Error => e
|
278
|
+
raise ::Google::Cloud::Error.from_error(e)
|
272
279
|
end
|
273
280
|
|
274
281
|
##
|
@@ -283,8 +290,6 @@ module Google
|
|
283
290
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
284
291
|
# @param options [::Gapic::CallOptions, ::Hash]
|
285
292
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
286
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
287
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
288
293
|
#
|
289
294
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
290
295
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -323,29 +328,29 @@ module Google
|
|
323
328
|
# Customize the options with defaults
|
324
329
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
325
330
|
|
326
|
-
# Set x-goog-api-client
|
331
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
327
332
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
328
333
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
329
334
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
330
335
|
transports_version_send: [:rest]
|
331
336
|
|
337
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
338
|
+
|
332
339
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
333
|
-
metadata: call_metadata
|
340
|
+
metadata: call_metadata,
|
341
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
334
342
|
|
335
343
|
options.apply_defaults timeout: @config.timeout,
|
336
|
-
metadata: @config.metadata
|
344
|
+
metadata: @config.metadata,
|
345
|
+
retry_policy: @config.retry_policy
|
337
346
|
|
338
347
|
@instance_group_managers_stub.aggregated_list request, options do |result, response|
|
339
348
|
result = ::Gapic::Rest::PagedEnumerable.new @instance_group_managers_stub, :aggregated_list, "items", request, result, options
|
340
349
|
yield result, response if block_given?
|
341
350
|
return result
|
342
351
|
end
|
343
|
-
rescue ::
|
344
|
-
|
345
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
346
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
347
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
348
|
-
end
|
352
|
+
rescue ::Gapic::Rest::Error => e
|
353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
349
354
|
end
|
350
355
|
|
351
356
|
##
|
@@ -360,8 +365,6 @@ module Google
|
|
360
365
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
361
366
|
# @param options [::Gapic::CallOptions, ::Hash]
|
362
367
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
363
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
364
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
365
368
|
#
|
366
369
|
# @overload apply_updates_to_instances(instance_group_manager: nil, instance_group_managers_apply_updates_request_resource: nil, project: nil, zone: nil)
|
367
370
|
# Pass arguments to `apply_updates_to_instances` via keyword arguments. Note that at
|
@@ -394,17 +397,21 @@ module Google
|
|
394
397
|
# Customize the options with defaults
|
395
398
|
call_metadata = @config.rpcs.apply_updates_to_instances.metadata.to_h
|
396
399
|
|
397
|
-
# Set x-goog-api-client
|
400
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
398
401
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
399
402
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
400
403
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
401
404
|
transports_version_send: [:rest]
|
402
405
|
|
406
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
407
|
+
|
403
408
|
options.apply_defaults timeout: @config.rpcs.apply_updates_to_instances.timeout,
|
404
|
-
metadata: call_metadata
|
409
|
+
metadata: call_metadata,
|
410
|
+
retry_policy: @config.rpcs.apply_updates_to_instances.retry_policy
|
405
411
|
|
406
412
|
options.apply_defaults timeout: @config.timeout,
|
407
|
-
metadata: @config.metadata
|
413
|
+
metadata: @config.metadata,
|
414
|
+
retry_policy: @config.retry_policy
|
408
415
|
|
409
416
|
@instance_group_managers_stub.apply_updates_to_instances request, options do |result, response|
|
410
417
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -419,12 +426,8 @@ module Google
|
|
419
426
|
yield result, response if block_given?
|
420
427
|
return result
|
421
428
|
end
|
422
|
-
rescue ::
|
423
|
-
|
424
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
425
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
426
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
427
|
-
end
|
429
|
+
rescue ::Gapic::Rest::Error => e
|
430
|
+
raise ::Google::Cloud::Error.from_error(e)
|
428
431
|
end
|
429
432
|
|
430
433
|
##
|
@@ -439,8 +442,6 @@ module Google
|
|
439
442
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
440
443
|
# @param options [::Gapic::CallOptions, ::Hash]
|
441
444
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
442
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
443
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
444
445
|
#
|
445
446
|
# @overload create_instances(instance_group_manager: nil, instance_group_managers_create_instances_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
446
447
|
# Pass arguments to `create_instances` via keyword arguments. Note that at
|
@@ -475,17 +476,21 @@ module Google
|
|
475
476
|
# Customize the options with defaults
|
476
477
|
call_metadata = @config.rpcs.create_instances.metadata.to_h
|
477
478
|
|
478
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
479
480
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
480
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
481
482
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
482
483
|
transports_version_send: [:rest]
|
483
484
|
|
485
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
486
|
+
|
484
487
|
options.apply_defaults timeout: @config.rpcs.create_instances.timeout,
|
485
|
-
metadata: call_metadata
|
488
|
+
metadata: call_metadata,
|
489
|
+
retry_policy: @config.rpcs.create_instances.retry_policy
|
486
490
|
|
487
491
|
options.apply_defaults timeout: @config.timeout,
|
488
|
-
metadata: @config.metadata
|
492
|
+
metadata: @config.metadata,
|
493
|
+
retry_policy: @config.retry_policy
|
489
494
|
|
490
495
|
@instance_group_managers_stub.create_instances request, options do |result, response|
|
491
496
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -500,12 +505,8 @@ module Google
|
|
500
505
|
yield result, response if block_given?
|
501
506
|
return result
|
502
507
|
end
|
503
|
-
rescue ::
|
504
|
-
|
505
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
506
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
507
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
508
|
-
end
|
508
|
+
rescue ::Gapic::Rest::Error => e
|
509
|
+
raise ::Google::Cloud::Error.from_error(e)
|
509
510
|
end
|
510
511
|
|
511
512
|
##
|
@@ -520,8 +521,6 @@ module Google
|
|
520
521
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
521
522
|
# @param options [::Gapic::CallOptions, ::Hash]
|
522
523
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
523
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
524
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
525
524
|
#
|
526
525
|
# @overload delete(instance_group_manager: nil, project: nil, request_id: nil, zone: nil)
|
527
526
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -554,17 +553,21 @@ module Google
|
|
554
553
|
# Customize the options with defaults
|
555
554
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
556
555
|
|
557
|
-
# Set x-goog-api-client
|
556
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
558
557
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
559
558
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
560
559
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
561
560
|
transports_version_send: [:rest]
|
562
561
|
|
562
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
563
|
+
|
563
564
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
564
|
-
metadata: call_metadata
|
565
|
+
metadata: call_metadata,
|
566
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
565
567
|
|
566
568
|
options.apply_defaults timeout: @config.timeout,
|
567
|
-
metadata: @config.metadata
|
569
|
+
metadata: @config.metadata,
|
570
|
+
retry_policy: @config.retry_policy
|
568
571
|
|
569
572
|
@instance_group_managers_stub.delete request, options do |result, response|
|
570
573
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -579,12 +582,8 @@ module Google
|
|
579
582
|
yield result, response if block_given?
|
580
583
|
return result
|
581
584
|
end
|
582
|
-
rescue ::
|
583
|
-
|
584
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
585
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
586
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
587
|
-
end
|
585
|
+
rescue ::Gapic::Rest::Error => e
|
586
|
+
raise ::Google::Cloud::Error.from_error(e)
|
588
587
|
end
|
589
588
|
|
590
589
|
##
|
@@ -599,8 +598,6 @@ module Google
|
|
599
598
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
600
599
|
# @param options [::Gapic::CallOptions, ::Hash]
|
601
600
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
602
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
603
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
604
601
|
#
|
605
602
|
# @overload delete_instances(instance_group_manager: nil, instance_group_managers_delete_instances_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
606
603
|
# Pass arguments to `delete_instances` via keyword arguments. Note that at
|
@@ -635,17 +632,21 @@ module Google
|
|
635
632
|
# Customize the options with defaults
|
636
633
|
call_metadata = @config.rpcs.delete_instances.metadata.to_h
|
637
634
|
|
638
|
-
# Set x-goog-api-client
|
635
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
639
636
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
640
637
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
641
638
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
642
639
|
transports_version_send: [:rest]
|
643
640
|
|
641
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
642
|
+
|
644
643
|
options.apply_defaults timeout: @config.rpcs.delete_instances.timeout,
|
645
|
-
metadata: call_metadata
|
644
|
+
metadata: call_metadata,
|
645
|
+
retry_policy: @config.rpcs.delete_instances.retry_policy
|
646
646
|
|
647
647
|
options.apply_defaults timeout: @config.timeout,
|
648
|
-
metadata: @config.metadata
|
648
|
+
metadata: @config.metadata,
|
649
|
+
retry_policy: @config.retry_policy
|
649
650
|
|
650
651
|
@instance_group_managers_stub.delete_instances request, options do |result, response|
|
651
652
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -660,12 +661,8 @@ module Google
|
|
660
661
|
yield result, response if block_given?
|
661
662
|
return result
|
662
663
|
end
|
663
|
-
rescue ::
|
664
|
-
|
665
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
666
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
667
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
668
|
-
end
|
664
|
+
rescue ::Gapic::Rest::Error => e
|
665
|
+
raise ::Google::Cloud::Error.from_error(e)
|
669
666
|
end
|
670
667
|
|
671
668
|
##
|
@@ -680,8 +677,6 @@ module Google
|
|
680
677
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
681
678
|
# @param options [::Gapic::CallOptions, ::Hash]
|
682
679
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
683
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
684
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
685
680
|
#
|
686
681
|
# @overload delete_per_instance_configs(instance_group_manager: nil, instance_group_managers_delete_per_instance_configs_req_resource: nil, project: nil, zone: nil)
|
687
682
|
# Pass arguments to `delete_per_instance_configs` via keyword arguments. Note that at
|
@@ -714,17 +709,21 @@ module Google
|
|
714
709
|
# Customize the options with defaults
|
715
710
|
call_metadata = @config.rpcs.delete_per_instance_configs.metadata.to_h
|
716
711
|
|
717
|
-
# Set x-goog-api-client
|
712
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
718
713
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
719
714
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
720
715
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
721
716
|
transports_version_send: [:rest]
|
722
717
|
|
718
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
719
|
+
|
723
720
|
options.apply_defaults timeout: @config.rpcs.delete_per_instance_configs.timeout,
|
724
|
-
metadata: call_metadata
|
721
|
+
metadata: call_metadata,
|
722
|
+
retry_policy: @config.rpcs.delete_per_instance_configs.retry_policy
|
725
723
|
|
726
724
|
options.apply_defaults timeout: @config.timeout,
|
727
|
-
metadata: @config.metadata
|
725
|
+
metadata: @config.metadata,
|
726
|
+
retry_policy: @config.retry_policy
|
728
727
|
|
729
728
|
@instance_group_managers_stub.delete_per_instance_configs request, options do |result, response|
|
730
729
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -739,12 +738,8 @@ module Google
|
|
739
738
|
yield result, response if block_given?
|
740
739
|
return result
|
741
740
|
end
|
742
|
-
rescue ::
|
743
|
-
|
744
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
745
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
746
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
747
|
-
end
|
741
|
+
rescue ::Gapic::Rest::Error => e
|
742
|
+
raise ::Google::Cloud::Error.from_error(e)
|
748
743
|
end
|
749
744
|
|
750
745
|
##
|
@@ -759,8 +754,6 @@ module Google
|
|
759
754
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
760
755
|
# @param options [::Gapic::CallOptions, ::Hash]
|
761
756
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
762
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
763
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
764
757
|
#
|
765
758
|
# @overload get(instance_group_manager: nil, project: nil, zone: nil)
|
766
759
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -791,28 +784,28 @@ module Google
|
|
791
784
|
# Customize the options with defaults
|
792
785
|
call_metadata = @config.rpcs.get.metadata.to_h
|
793
786
|
|
794
|
-
# Set x-goog-api-client
|
787
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
795
788
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
796
789
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
797
790
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
798
791
|
transports_version_send: [:rest]
|
799
792
|
|
793
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
794
|
+
|
800
795
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
801
|
-
metadata: call_metadata
|
796
|
+
metadata: call_metadata,
|
797
|
+
retry_policy: @config.rpcs.get.retry_policy
|
802
798
|
|
803
799
|
options.apply_defaults timeout: @config.timeout,
|
804
|
-
metadata: @config.metadata
|
800
|
+
metadata: @config.metadata,
|
801
|
+
retry_policy: @config.retry_policy
|
805
802
|
|
806
803
|
@instance_group_managers_stub.get request, options do |result, response|
|
807
804
|
yield result, response if block_given?
|
808
805
|
return result
|
809
806
|
end
|
810
|
-
rescue ::
|
811
|
-
|
812
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
813
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
814
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
815
|
-
end
|
807
|
+
rescue ::Gapic::Rest::Error => e
|
808
|
+
raise ::Google::Cloud::Error.from_error(e)
|
816
809
|
end
|
817
810
|
|
818
811
|
##
|
@@ -827,8 +820,6 @@ module Google
|
|
827
820
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
828
821
|
# @param options [::Gapic::CallOptions, ::Hash]
|
829
822
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
830
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
831
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
832
823
|
#
|
833
824
|
# @overload insert(instance_group_manager_resource: nil, project: nil, request_id: nil, zone: nil)
|
834
825
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -861,17 +852,21 @@ module Google
|
|
861
852
|
# Customize the options with defaults
|
862
853
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
863
854
|
|
864
|
-
# Set x-goog-api-client
|
855
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
865
856
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
866
857
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
867
858
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
868
859
|
transports_version_send: [:rest]
|
869
860
|
|
861
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
862
|
+
|
870
863
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
871
|
-
metadata: call_metadata
|
864
|
+
metadata: call_metadata,
|
865
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
872
866
|
|
873
867
|
options.apply_defaults timeout: @config.timeout,
|
874
|
-
metadata: @config.metadata
|
868
|
+
metadata: @config.metadata,
|
869
|
+
retry_policy: @config.retry_policy
|
875
870
|
|
876
871
|
@instance_group_managers_stub.insert request, options do |result, response|
|
877
872
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -886,12 +881,8 @@ module Google
|
|
886
881
|
yield result, response if block_given?
|
887
882
|
return result
|
888
883
|
end
|
889
|
-
rescue ::
|
890
|
-
|
891
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
892
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
893
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
894
|
-
end
|
884
|
+
rescue ::Gapic::Rest::Error => e
|
885
|
+
raise ::Google::Cloud::Error.from_error(e)
|
895
886
|
end
|
896
887
|
|
897
888
|
##
|
@@ -906,8 +897,6 @@ module Google
|
|
906
897
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
907
898
|
# @param options [::Gapic::CallOptions, ::Hash]
|
908
899
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
909
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
910
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
911
900
|
#
|
912
901
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
913
902
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -946,29 +935,29 @@ module Google
|
|
946
935
|
# Customize the options with defaults
|
947
936
|
call_metadata = @config.rpcs.list.metadata.to_h
|
948
937
|
|
949
|
-
# Set x-goog-api-client
|
938
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
950
939
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
951
940
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
952
941
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
953
942
|
transports_version_send: [:rest]
|
954
943
|
|
944
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
945
|
+
|
955
946
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
956
|
-
metadata: call_metadata
|
947
|
+
metadata: call_metadata,
|
948
|
+
retry_policy: @config.rpcs.list.retry_policy
|
957
949
|
|
958
950
|
options.apply_defaults timeout: @config.timeout,
|
959
|
-
metadata: @config.metadata
|
951
|
+
metadata: @config.metadata,
|
952
|
+
retry_policy: @config.retry_policy
|
960
953
|
|
961
954
|
@instance_group_managers_stub.list request, options do |result, response|
|
962
955
|
result = ::Gapic::Rest::PagedEnumerable.new @instance_group_managers_stub, :list, "items", request, result, options
|
963
956
|
yield result, response if block_given?
|
964
957
|
return result
|
965
958
|
end
|
966
|
-
rescue ::
|
967
|
-
|
968
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
969
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
970
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
971
|
-
end
|
959
|
+
rescue ::Gapic::Rest::Error => e
|
960
|
+
raise ::Google::Cloud::Error.from_error(e)
|
972
961
|
end
|
973
962
|
|
974
963
|
##
|
@@ -983,8 +972,6 @@ module Google
|
|
983
972
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
984
973
|
# @param options [::Gapic::CallOptions, ::Hash]
|
985
974
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
986
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
987
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
988
975
|
#
|
989
976
|
# @overload list_errors(filter: nil, instance_group_manager: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
990
977
|
# Pass arguments to `list_errors` via keyword arguments. Note that at
|
@@ -1025,29 +1012,29 @@ module Google
|
|
1025
1012
|
# Customize the options with defaults
|
1026
1013
|
call_metadata = @config.rpcs.list_errors.metadata.to_h
|
1027
1014
|
|
1028
|
-
# Set x-goog-api-client
|
1015
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1029
1016
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1030
1017
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1031
1018
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1032
1019
|
transports_version_send: [:rest]
|
1033
1020
|
|
1021
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1022
|
+
|
1034
1023
|
options.apply_defaults timeout: @config.rpcs.list_errors.timeout,
|
1035
|
-
metadata: call_metadata
|
1024
|
+
metadata: call_metadata,
|
1025
|
+
retry_policy: @config.rpcs.list_errors.retry_policy
|
1036
1026
|
|
1037
1027
|
options.apply_defaults timeout: @config.timeout,
|
1038
|
-
metadata: @config.metadata
|
1028
|
+
metadata: @config.metadata,
|
1029
|
+
retry_policy: @config.retry_policy
|
1039
1030
|
|
1040
1031
|
@instance_group_managers_stub.list_errors request, options do |result, response|
|
1041
1032
|
result = ::Gapic::Rest::PagedEnumerable.new @instance_group_managers_stub, :list_errors, "items", request, result, options
|
1042
1033
|
yield result, response if block_given?
|
1043
1034
|
return result
|
1044
1035
|
end
|
1045
|
-
rescue ::
|
1046
|
-
|
1047
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1048
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1049
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1050
|
-
end
|
1036
|
+
rescue ::Gapic::Rest::Error => e
|
1037
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1051
1038
|
end
|
1052
1039
|
|
1053
1040
|
##
|
@@ -1062,8 +1049,6 @@ module Google
|
|
1062
1049
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1063
1050
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1064
1051
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1065
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1066
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1067
1052
|
#
|
1068
1053
|
# @overload list_managed_instances(filter: nil, instance_group_manager: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
1069
1054
|
# Pass arguments to `list_managed_instances` via keyword arguments. Note that at
|
@@ -1104,29 +1089,29 @@ module Google
|
|
1104
1089
|
# Customize the options with defaults
|
1105
1090
|
call_metadata = @config.rpcs.list_managed_instances.metadata.to_h
|
1106
1091
|
|
1107
|
-
# Set x-goog-api-client
|
1092
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1108
1093
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1109
1094
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1110
1095
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1111
1096
|
transports_version_send: [:rest]
|
1112
1097
|
|
1098
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1099
|
+
|
1113
1100
|
options.apply_defaults timeout: @config.rpcs.list_managed_instances.timeout,
|
1114
|
-
metadata: call_metadata
|
1101
|
+
metadata: call_metadata,
|
1102
|
+
retry_policy: @config.rpcs.list_managed_instances.retry_policy
|
1115
1103
|
|
1116
1104
|
options.apply_defaults timeout: @config.timeout,
|
1117
|
-
metadata: @config.metadata
|
1105
|
+
metadata: @config.metadata,
|
1106
|
+
retry_policy: @config.retry_policy
|
1118
1107
|
|
1119
1108
|
@instance_group_managers_stub.list_managed_instances request, options do |result, response|
|
1120
1109
|
result = ::Gapic::Rest::PagedEnumerable.new @instance_group_managers_stub, :list_managed_instances, "managed_instances", request, result, options
|
1121
1110
|
yield result, response if block_given?
|
1122
1111
|
return result
|
1123
1112
|
end
|
1124
|
-
rescue ::
|
1125
|
-
|
1126
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1127
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1128
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1129
|
-
end
|
1113
|
+
rescue ::Gapic::Rest::Error => e
|
1114
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1130
1115
|
end
|
1131
1116
|
|
1132
1117
|
##
|
@@ -1141,8 +1126,6 @@ module Google
|
|
1141
1126
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1142
1127
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1143
1128
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1144
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1145
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1146
1129
|
#
|
1147
1130
|
# @overload list_per_instance_configs(filter: nil, instance_group_manager: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
1148
1131
|
# Pass arguments to `list_per_instance_configs` via keyword arguments. Note that at
|
@@ -1183,29 +1166,29 @@ module Google
|
|
1183
1166
|
# Customize the options with defaults
|
1184
1167
|
call_metadata = @config.rpcs.list_per_instance_configs.metadata.to_h
|
1185
1168
|
|
1186
|
-
# Set x-goog-api-client
|
1169
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1187
1170
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1188
1171
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1189
1172
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1190
1173
|
transports_version_send: [:rest]
|
1191
1174
|
|
1175
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1176
|
+
|
1192
1177
|
options.apply_defaults timeout: @config.rpcs.list_per_instance_configs.timeout,
|
1193
|
-
metadata: call_metadata
|
1178
|
+
metadata: call_metadata,
|
1179
|
+
retry_policy: @config.rpcs.list_per_instance_configs.retry_policy
|
1194
1180
|
|
1195
1181
|
options.apply_defaults timeout: @config.timeout,
|
1196
|
-
metadata: @config.metadata
|
1182
|
+
metadata: @config.metadata,
|
1183
|
+
retry_policy: @config.retry_policy
|
1197
1184
|
|
1198
1185
|
@instance_group_managers_stub.list_per_instance_configs request, options do |result, response|
|
1199
1186
|
result = ::Gapic::Rest::PagedEnumerable.new @instance_group_managers_stub, :list_per_instance_configs, "items", request, result, options
|
1200
1187
|
yield result, response if block_given?
|
1201
1188
|
return result
|
1202
1189
|
end
|
1203
|
-
rescue ::
|
1204
|
-
|
1205
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1206
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1207
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1208
|
-
end
|
1190
|
+
rescue ::Gapic::Rest::Error => e
|
1191
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1209
1192
|
end
|
1210
1193
|
|
1211
1194
|
##
|
@@ -1220,8 +1203,6 @@ module Google
|
|
1220
1203
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1221
1204
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1222
1205
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1223
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1224
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1225
1206
|
#
|
1226
1207
|
# @overload patch(instance_group_manager: nil, instance_group_manager_resource: nil, project: nil, request_id: nil, zone: nil)
|
1227
1208
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
@@ -1256,17 +1237,21 @@ module Google
|
|
1256
1237
|
# Customize the options with defaults
|
1257
1238
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
1258
1239
|
|
1259
|
-
# Set x-goog-api-client
|
1240
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1260
1241
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1261
1242
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1262
1243
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1263
1244
|
transports_version_send: [:rest]
|
1264
1245
|
|
1246
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1247
|
+
|
1265
1248
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
1266
|
-
metadata: call_metadata
|
1249
|
+
metadata: call_metadata,
|
1250
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
1267
1251
|
|
1268
1252
|
options.apply_defaults timeout: @config.timeout,
|
1269
|
-
metadata: @config.metadata
|
1253
|
+
metadata: @config.metadata,
|
1254
|
+
retry_policy: @config.retry_policy
|
1270
1255
|
|
1271
1256
|
@instance_group_managers_stub.patch request, options do |result, response|
|
1272
1257
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1281,12 +1266,8 @@ module Google
|
|
1281
1266
|
yield result, response if block_given?
|
1282
1267
|
return result
|
1283
1268
|
end
|
1284
|
-
rescue ::
|
1285
|
-
|
1286
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1287
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1288
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1289
|
-
end
|
1269
|
+
rescue ::Gapic::Rest::Error => e
|
1270
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1290
1271
|
end
|
1291
1272
|
|
1292
1273
|
##
|
@@ -1301,8 +1282,6 @@ module Google
|
|
1301
1282
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1302
1283
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1303
1284
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1304
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1305
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1306
1285
|
#
|
1307
1286
|
# @overload patch_per_instance_configs(instance_group_manager: nil, instance_group_managers_patch_per_instance_configs_req_resource: nil, project: nil, request_id: nil, zone: nil)
|
1308
1287
|
# Pass arguments to `patch_per_instance_configs` via keyword arguments. Note that at
|
@@ -1337,17 +1316,21 @@ module Google
|
|
1337
1316
|
# Customize the options with defaults
|
1338
1317
|
call_metadata = @config.rpcs.patch_per_instance_configs.metadata.to_h
|
1339
1318
|
|
1340
|
-
# Set x-goog-api-client
|
1319
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1341
1320
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1342
1321
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1343
1322
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1344
1323
|
transports_version_send: [:rest]
|
1345
1324
|
|
1325
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1326
|
+
|
1346
1327
|
options.apply_defaults timeout: @config.rpcs.patch_per_instance_configs.timeout,
|
1347
|
-
metadata: call_metadata
|
1328
|
+
metadata: call_metadata,
|
1329
|
+
retry_policy: @config.rpcs.patch_per_instance_configs.retry_policy
|
1348
1330
|
|
1349
1331
|
options.apply_defaults timeout: @config.timeout,
|
1350
|
-
metadata: @config.metadata
|
1332
|
+
metadata: @config.metadata,
|
1333
|
+
retry_policy: @config.retry_policy
|
1351
1334
|
|
1352
1335
|
@instance_group_managers_stub.patch_per_instance_configs request, options do |result, response|
|
1353
1336
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1362,12 +1345,8 @@ module Google
|
|
1362
1345
|
yield result, response if block_given?
|
1363
1346
|
return result
|
1364
1347
|
end
|
1365
|
-
rescue ::
|
1366
|
-
|
1367
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1368
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1369
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1370
|
-
end
|
1348
|
+
rescue ::Gapic::Rest::Error => e
|
1349
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1371
1350
|
end
|
1372
1351
|
|
1373
1352
|
##
|
@@ -1382,8 +1361,6 @@ module Google
|
|
1382
1361
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1383
1362
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1384
1363
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1385
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1386
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1387
1364
|
#
|
1388
1365
|
# @overload recreate_instances(instance_group_manager: nil, instance_group_managers_recreate_instances_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
1389
1366
|
# Pass arguments to `recreate_instances` via keyword arguments. Note that at
|
@@ -1418,17 +1395,21 @@ module Google
|
|
1418
1395
|
# Customize the options with defaults
|
1419
1396
|
call_metadata = @config.rpcs.recreate_instances.metadata.to_h
|
1420
1397
|
|
1421
|
-
# Set x-goog-api-client
|
1398
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1422
1399
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1423
1400
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1424
1401
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1425
1402
|
transports_version_send: [:rest]
|
1426
1403
|
|
1404
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1405
|
+
|
1427
1406
|
options.apply_defaults timeout: @config.rpcs.recreate_instances.timeout,
|
1428
|
-
metadata: call_metadata
|
1407
|
+
metadata: call_metadata,
|
1408
|
+
retry_policy: @config.rpcs.recreate_instances.retry_policy
|
1429
1409
|
|
1430
1410
|
options.apply_defaults timeout: @config.timeout,
|
1431
|
-
metadata: @config.metadata
|
1411
|
+
metadata: @config.metadata,
|
1412
|
+
retry_policy: @config.retry_policy
|
1432
1413
|
|
1433
1414
|
@instance_group_managers_stub.recreate_instances request, options do |result, response|
|
1434
1415
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1443,12 +1424,8 @@ module Google
|
|
1443
1424
|
yield result, response if block_given?
|
1444
1425
|
return result
|
1445
1426
|
end
|
1446
|
-
rescue ::
|
1447
|
-
|
1448
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1449
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1450
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1451
|
-
end
|
1427
|
+
rescue ::Gapic::Rest::Error => e
|
1428
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1452
1429
|
end
|
1453
1430
|
|
1454
1431
|
##
|
@@ -1463,8 +1440,6 @@ module Google
|
|
1463
1440
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1464
1441
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1465
1442
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1466
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1467
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1468
1443
|
#
|
1469
1444
|
# @overload resize(instance_group_manager: nil, project: nil, request_id: nil, size: nil, zone: nil)
|
1470
1445
|
# Pass arguments to `resize` via keyword arguments. Note that at
|
@@ -1499,17 +1474,21 @@ module Google
|
|
1499
1474
|
# Customize the options with defaults
|
1500
1475
|
call_metadata = @config.rpcs.resize.metadata.to_h
|
1501
1476
|
|
1502
|
-
# Set x-goog-api-client
|
1477
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1503
1478
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1504
1479
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1505
1480
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1506
1481
|
transports_version_send: [:rest]
|
1507
1482
|
|
1483
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1484
|
+
|
1508
1485
|
options.apply_defaults timeout: @config.rpcs.resize.timeout,
|
1509
|
-
metadata: call_metadata
|
1486
|
+
metadata: call_metadata,
|
1487
|
+
retry_policy: @config.rpcs.resize.retry_policy
|
1510
1488
|
|
1511
1489
|
options.apply_defaults timeout: @config.timeout,
|
1512
|
-
metadata: @config.metadata
|
1490
|
+
metadata: @config.metadata,
|
1491
|
+
retry_policy: @config.retry_policy
|
1513
1492
|
|
1514
1493
|
@instance_group_managers_stub.resize request, options do |result, response|
|
1515
1494
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1524,12 +1503,8 @@ module Google
|
|
1524
1503
|
yield result, response if block_given?
|
1525
1504
|
return result
|
1526
1505
|
end
|
1527
|
-
rescue ::
|
1528
|
-
|
1529
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1530
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1531
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1532
|
-
end
|
1506
|
+
rescue ::Gapic::Rest::Error => e
|
1507
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1533
1508
|
end
|
1534
1509
|
|
1535
1510
|
##
|
@@ -1544,8 +1519,6 @@ module Google
|
|
1544
1519
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1545
1520
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1546
1521
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1547
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1548
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1549
1522
|
#
|
1550
1523
|
# @overload set_instance_template(instance_group_manager: nil, instance_group_managers_set_instance_template_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
1551
1524
|
# Pass arguments to `set_instance_template` via keyword arguments. Note that at
|
@@ -1580,17 +1553,21 @@ module Google
|
|
1580
1553
|
# Customize the options with defaults
|
1581
1554
|
call_metadata = @config.rpcs.set_instance_template.metadata.to_h
|
1582
1555
|
|
1583
|
-
# Set x-goog-api-client
|
1556
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1584
1557
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1585
1558
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1586
1559
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1587
1560
|
transports_version_send: [:rest]
|
1588
1561
|
|
1562
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1563
|
+
|
1589
1564
|
options.apply_defaults timeout: @config.rpcs.set_instance_template.timeout,
|
1590
|
-
metadata: call_metadata
|
1565
|
+
metadata: call_metadata,
|
1566
|
+
retry_policy: @config.rpcs.set_instance_template.retry_policy
|
1591
1567
|
|
1592
1568
|
options.apply_defaults timeout: @config.timeout,
|
1593
|
-
metadata: @config.metadata
|
1569
|
+
metadata: @config.metadata,
|
1570
|
+
retry_policy: @config.retry_policy
|
1594
1571
|
|
1595
1572
|
@instance_group_managers_stub.set_instance_template request, options do |result, response|
|
1596
1573
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1605,12 +1582,8 @@ module Google
|
|
1605
1582
|
yield result, response if block_given?
|
1606
1583
|
return result
|
1607
1584
|
end
|
1608
|
-
rescue ::
|
1609
|
-
|
1610
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1611
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1612
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1613
|
-
end
|
1585
|
+
rescue ::Gapic::Rest::Error => e
|
1586
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1614
1587
|
end
|
1615
1588
|
|
1616
1589
|
##
|
@@ -1625,8 +1598,6 @@ module Google
|
|
1625
1598
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1626
1599
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1627
1600
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1628
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1629
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1630
1601
|
#
|
1631
1602
|
# @overload set_target_pools(instance_group_manager: nil, instance_group_managers_set_target_pools_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
1632
1603
|
# Pass arguments to `set_target_pools` via keyword arguments. Note that at
|
@@ -1661,17 +1632,21 @@ module Google
|
|
1661
1632
|
# Customize the options with defaults
|
1662
1633
|
call_metadata = @config.rpcs.set_target_pools.metadata.to_h
|
1663
1634
|
|
1664
|
-
# Set x-goog-api-client
|
1635
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1665
1636
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1666
1637
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1667
1638
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1668
1639
|
transports_version_send: [:rest]
|
1669
1640
|
|
1641
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1642
|
+
|
1670
1643
|
options.apply_defaults timeout: @config.rpcs.set_target_pools.timeout,
|
1671
|
-
metadata: call_metadata
|
1644
|
+
metadata: call_metadata,
|
1645
|
+
retry_policy: @config.rpcs.set_target_pools.retry_policy
|
1672
1646
|
|
1673
1647
|
options.apply_defaults timeout: @config.timeout,
|
1674
|
-
metadata: @config.metadata
|
1648
|
+
metadata: @config.metadata,
|
1649
|
+
retry_policy: @config.retry_policy
|
1675
1650
|
|
1676
1651
|
@instance_group_managers_stub.set_target_pools request, options do |result, response|
|
1677
1652
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1686,12 +1661,8 @@ module Google
|
|
1686
1661
|
yield result, response if block_given?
|
1687
1662
|
return result
|
1688
1663
|
end
|
1689
|
-
rescue ::
|
1690
|
-
|
1691
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1692
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1693
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1694
|
-
end
|
1664
|
+
rescue ::Gapic::Rest::Error => e
|
1665
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1695
1666
|
end
|
1696
1667
|
|
1697
1668
|
##
|
@@ -1706,8 +1677,6 @@ module Google
|
|
1706
1677
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1707
1678
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1708
1679
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1709
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1710
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1711
1680
|
#
|
1712
1681
|
# @overload update_per_instance_configs(instance_group_manager: nil, instance_group_managers_update_per_instance_configs_req_resource: nil, project: nil, request_id: nil, zone: nil)
|
1713
1682
|
# Pass arguments to `update_per_instance_configs` via keyword arguments. Note that at
|
@@ -1742,17 +1711,21 @@ module Google
|
|
1742
1711
|
# Customize the options with defaults
|
1743
1712
|
call_metadata = @config.rpcs.update_per_instance_configs.metadata.to_h
|
1744
1713
|
|
1745
|
-
# Set x-goog-api-client
|
1714
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1746
1715
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1747
1716
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1748
1717
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1749
1718
|
transports_version_send: [:rest]
|
1750
1719
|
|
1720
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1721
|
+
|
1751
1722
|
options.apply_defaults timeout: @config.rpcs.update_per_instance_configs.timeout,
|
1752
|
-
metadata: call_metadata
|
1723
|
+
metadata: call_metadata,
|
1724
|
+
retry_policy: @config.rpcs.update_per_instance_configs.retry_policy
|
1753
1725
|
|
1754
1726
|
options.apply_defaults timeout: @config.timeout,
|
1755
|
-
metadata: @config.metadata
|
1727
|
+
metadata: @config.metadata,
|
1728
|
+
retry_policy: @config.retry_policy
|
1756
1729
|
|
1757
1730
|
@instance_group_managers_stub.update_per_instance_configs request, options do |result, response|
|
1758
1731
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1767,36 +1740,38 @@ module Google
|
|
1767
1740
|
yield result, response if block_given?
|
1768
1741
|
return result
|
1769
1742
|
end
|
1770
|
-
rescue ::
|
1771
|
-
|
1772
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1773
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1774
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1775
|
-
end
|
1743
|
+
rescue ::Gapic::Rest::Error => e
|
1744
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1776
1745
|
end
|
1777
1746
|
|
1778
1747
|
##
|
1779
1748
|
# Configuration class for the InstanceGroupManagers REST API.
|
1780
1749
|
#
|
1781
1750
|
# This class represents the configuration for InstanceGroupManagers REST,
|
1782
|
-
# providing control over
|
1751
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1752
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1753
|
+
# applied individually to specific RPCs. See
|
1754
|
+
# {::Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client::Configuration::Rpcs}
|
1755
|
+
# for a list of RPCs that can be configured independently.
|
1783
1756
|
#
|
1784
1757
|
# Configuration can be applied globally to all clients, or to a single client
|
1785
1758
|
# on construction.
|
1786
1759
|
#
|
1787
|
-
#
|
1788
|
-
#
|
1789
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1790
|
-
#
|
1791
|
-
# ::Google::Cloud::Compute::V1::InstanceGroupManagers::Client.configure do |config|
|
1792
|
-
# config.timeout = 10.0
|
1793
|
-
# end
|
1760
|
+
# @example
|
1794
1761
|
#
|
1795
|
-
#
|
1762
|
+
# # Modify the global config, setting the timeout for
|
1763
|
+
# # abandon_instances to 20 seconds,
|
1764
|
+
# # and all remaining timeouts to 10 seconds.
|
1765
|
+
# ::Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.configure do |config|
|
1766
|
+
# config.timeout = 10.0
|
1767
|
+
# config.rpcs.abandon_instances.timeout = 20.0
|
1768
|
+
# end
|
1796
1769
|
#
|
1797
|
-
#
|
1798
|
-
#
|
1799
|
-
#
|
1770
|
+
# # Apply the above configuration only to a new client.
|
1771
|
+
# client = ::Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new do |config|
|
1772
|
+
# config.timeout = 10.0
|
1773
|
+
# config.rpcs.abandon_instances.timeout = 20.0
|
1774
|
+
# end
|
1800
1775
|
#
|
1801
1776
|
# @!attribute [rw] endpoint
|
1802
1777
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1825,8 +1800,19 @@ module Google
|
|
1825
1800
|
# The call timeout in seconds.
|
1826
1801
|
# @return [::Numeric]
|
1827
1802
|
# @!attribute [rw] metadata
|
1828
|
-
# Additional
|
1803
|
+
# Additional headers to be sent with the call.
|
1829
1804
|
# @return [::Hash{::Symbol=>::String}]
|
1805
|
+
# @!attribute [rw] retry_policy
|
1806
|
+
# The retry policy. The value is a hash with the following keys:
|
1807
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1808
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1809
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1810
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1811
|
+
# trigger a retry.
|
1812
|
+
# @return [::Hash]
|
1813
|
+
# @!attribute [rw] quota_project
|
1814
|
+
# A separate project against which to charge quota.
|
1815
|
+
# @return [::String]
|
1830
1816
|
#
|
1831
1817
|
class Configuration
|
1832
1818
|
extend ::Gapic::Config
|
@@ -1841,6 +1827,8 @@ module Google
|
|
1841
1827
|
config_attr :lib_version, nil, ::String, nil
|
1842
1828
|
config_attr :timeout, nil, ::Numeric, nil
|
1843
1829
|
config_attr :metadata, nil, ::Hash, nil
|
1830
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1831
|
+
config_attr :quota_project, nil, ::String, nil
|
1844
1832
|
|
1845
1833
|
# @private
|
1846
1834
|
def initialize parent_config = nil
|
@@ -1869,9 +1857,14 @@ module Google
|
|
1869
1857
|
# the following configuration fields:
|
1870
1858
|
#
|
1871
1859
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1872
|
-
#
|
1873
|
-
#
|
1874
|
-
#
|
1860
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1861
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1862
|
+
# include the following keys:
|
1863
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1864
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1865
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1866
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1867
|
+
# trigger a retry.
|
1875
1868
|
#
|
1876
1869
|
class Rpcs
|
1877
1870
|
##
|