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
@@ -154,13 +154,22 @@ module Google
|
|
154
154
|
|
155
155
|
# Create credentials
|
156
156
|
credentials = @config.credentials
|
157
|
-
|
157
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
158
|
+
# but only if the default endpoint does not have a region prefix.
|
159
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
160
|
+
!@config.endpoint.split(".").first.include?("-")
|
161
|
+
credentials ||= Credentials.default scope: @config.scope,
|
162
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
158
163
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
159
164
|
credentials = Credentials.new credentials, scope: @config.scope
|
160
165
|
end
|
161
166
|
|
167
|
+
@quota_project_id = @config.quota_project
|
168
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
169
|
+
|
162
170
|
@zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
|
163
171
|
config.credentials = credentials
|
172
|
+
config.quota_project = @quota_project_id
|
164
173
|
config.endpoint = @config.endpoint
|
165
174
|
end
|
166
175
|
|
@@ -188,8 +197,6 @@ module Google
|
|
188
197
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
189
198
|
# @param options [::Gapic::CallOptions, ::Hash]
|
190
199
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
191
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
192
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
193
200
|
#
|
194
201
|
# @overload add_resource_policies(disk: nil, disks_add_resource_policies_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
195
202
|
# Pass arguments to `add_resource_policies` via keyword arguments. Note that at
|
@@ -224,17 +231,21 @@ module Google
|
|
224
231
|
# Customize the options with defaults
|
225
232
|
call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
|
226
233
|
|
227
|
-
# Set x-goog-api-client
|
234
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
228
235
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
229
236
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
230
237
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
231
238
|
transports_version_send: [:rest]
|
232
239
|
|
240
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
241
|
+
|
233
242
|
options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
|
234
|
-
metadata: call_metadata
|
243
|
+
metadata: call_metadata,
|
244
|
+
retry_policy: @config.rpcs.add_resource_policies.retry_policy
|
235
245
|
|
236
246
|
options.apply_defaults timeout: @config.timeout,
|
237
|
-
metadata: @config.metadata
|
247
|
+
metadata: @config.metadata,
|
248
|
+
retry_policy: @config.retry_policy
|
238
249
|
|
239
250
|
@disks_stub.add_resource_policies request, options do |result, response|
|
240
251
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -249,12 +260,8 @@ module Google
|
|
249
260
|
yield result, response if block_given?
|
250
261
|
return result
|
251
262
|
end
|
252
|
-
rescue ::
|
253
|
-
|
254
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
255
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
256
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
257
|
-
end
|
263
|
+
rescue ::Gapic::Rest::Error => e
|
264
|
+
raise ::Google::Cloud::Error.from_error(e)
|
258
265
|
end
|
259
266
|
|
260
267
|
##
|
@@ -269,8 +276,6 @@ module Google
|
|
269
276
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
270
277
|
# @param options [::Gapic::CallOptions, ::Hash]
|
271
278
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
272
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
273
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
274
279
|
#
|
275
280
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
276
281
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -309,29 +314,29 @@ module Google
|
|
309
314
|
# Customize the options with defaults
|
310
315
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
311
316
|
|
312
|
-
# Set x-goog-api-client
|
317
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
313
318
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
314
319
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
315
320
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
316
321
|
transports_version_send: [:rest]
|
317
322
|
|
323
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
324
|
+
|
318
325
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
319
|
-
metadata: call_metadata
|
326
|
+
metadata: call_metadata,
|
327
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
320
328
|
|
321
329
|
options.apply_defaults timeout: @config.timeout,
|
322
|
-
metadata: @config.metadata
|
330
|
+
metadata: @config.metadata,
|
331
|
+
retry_policy: @config.retry_policy
|
323
332
|
|
324
333
|
@disks_stub.aggregated_list request, options do |result, response|
|
325
334
|
result = ::Gapic::Rest::PagedEnumerable.new @disks_stub, :aggregated_list, "items", request, result, options
|
326
335
|
yield result, response if block_given?
|
327
336
|
return result
|
328
337
|
end
|
329
|
-
rescue ::
|
330
|
-
|
331
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
332
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
333
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
334
|
-
end
|
338
|
+
rescue ::Gapic::Rest::Error => e
|
339
|
+
raise ::Google::Cloud::Error.from_error(e)
|
335
340
|
end
|
336
341
|
|
337
342
|
##
|
@@ -346,8 +351,6 @@ module Google
|
|
346
351
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
347
352
|
# @param options [::Gapic::CallOptions, ::Hash]
|
348
353
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
349
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
350
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
351
354
|
#
|
352
355
|
# @overload create_snapshot(disk: nil, guest_flush: nil, project: nil, request_id: nil, snapshot_resource: nil, zone: nil)
|
353
356
|
# Pass arguments to `create_snapshot` via keyword arguments. Note that at
|
@@ -384,17 +387,21 @@ module Google
|
|
384
387
|
# Customize the options with defaults
|
385
388
|
call_metadata = @config.rpcs.create_snapshot.metadata.to_h
|
386
389
|
|
387
|
-
# Set x-goog-api-client
|
390
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
388
391
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
389
392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
390
393
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
391
394
|
transports_version_send: [:rest]
|
392
395
|
|
396
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
397
|
+
|
393
398
|
options.apply_defaults timeout: @config.rpcs.create_snapshot.timeout,
|
394
|
-
metadata: call_metadata
|
399
|
+
metadata: call_metadata,
|
400
|
+
retry_policy: @config.rpcs.create_snapshot.retry_policy
|
395
401
|
|
396
402
|
options.apply_defaults timeout: @config.timeout,
|
397
|
-
metadata: @config.metadata
|
403
|
+
metadata: @config.metadata,
|
404
|
+
retry_policy: @config.retry_policy
|
398
405
|
|
399
406
|
@disks_stub.create_snapshot request, options do |result, response|
|
400
407
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -409,12 +416,8 @@ module Google
|
|
409
416
|
yield result, response if block_given?
|
410
417
|
return result
|
411
418
|
end
|
412
|
-
rescue ::
|
413
|
-
|
414
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
415
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
416
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
417
|
-
end
|
419
|
+
rescue ::Gapic::Rest::Error => e
|
420
|
+
raise ::Google::Cloud::Error.from_error(e)
|
418
421
|
end
|
419
422
|
|
420
423
|
##
|
@@ -429,8 +432,6 @@ module Google
|
|
429
432
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
430
433
|
# @param options [::Gapic::CallOptions, ::Hash]
|
431
434
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
432
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
433
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
434
435
|
#
|
435
436
|
# @overload delete(disk: nil, project: nil, request_id: nil, zone: nil)
|
436
437
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -463,17 +464,21 @@ module Google
|
|
463
464
|
# Customize the options with defaults
|
464
465
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
465
466
|
|
466
|
-
# Set x-goog-api-client
|
467
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
467
468
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
468
469
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
469
470
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
470
471
|
transports_version_send: [:rest]
|
471
472
|
|
473
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
|
+
|
472
475
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
473
|
-
metadata: call_metadata
|
476
|
+
metadata: call_metadata,
|
477
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
474
478
|
|
475
479
|
options.apply_defaults timeout: @config.timeout,
|
476
|
-
metadata: @config.metadata
|
480
|
+
metadata: @config.metadata,
|
481
|
+
retry_policy: @config.retry_policy
|
477
482
|
|
478
483
|
@disks_stub.delete request, options do |result, response|
|
479
484
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -488,12 +493,8 @@ module Google
|
|
488
493
|
yield result, response if block_given?
|
489
494
|
return result
|
490
495
|
end
|
491
|
-
rescue ::
|
492
|
-
|
493
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
494
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
495
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
496
|
-
end
|
496
|
+
rescue ::Gapic::Rest::Error => e
|
497
|
+
raise ::Google::Cloud::Error.from_error(e)
|
497
498
|
end
|
498
499
|
|
499
500
|
##
|
@@ -508,8 +509,6 @@ module Google
|
|
508
509
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
509
510
|
# @param options [::Gapic::CallOptions, ::Hash]
|
510
511
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
511
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
512
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
513
512
|
#
|
514
513
|
# @overload get(disk: nil, project: nil, zone: nil)
|
515
514
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -540,28 +539,28 @@ module Google
|
|
540
539
|
# Customize the options with defaults
|
541
540
|
call_metadata = @config.rpcs.get.metadata.to_h
|
542
541
|
|
543
|
-
# Set x-goog-api-client
|
542
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
544
543
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
545
544
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
546
545
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
547
546
|
transports_version_send: [:rest]
|
548
547
|
|
548
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
549
|
+
|
549
550
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
550
|
-
metadata: call_metadata
|
551
|
+
metadata: call_metadata,
|
552
|
+
retry_policy: @config.rpcs.get.retry_policy
|
551
553
|
|
552
554
|
options.apply_defaults timeout: @config.timeout,
|
553
|
-
metadata: @config.metadata
|
555
|
+
metadata: @config.metadata,
|
556
|
+
retry_policy: @config.retry_policy
|
554
557
|
|
555
558
|
@disks_stub.get request, options do |result, response|
|
556
559
|
yield result, response if block_given?
|
557
560
|
return result
|
558
561
|
end
|
559
|
-
rescue ::
|
560
|
-
|
561
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
562
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
563
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
564
|
-
end
|
562
|
+
rescue ::Gapic::Rest::Error => e
|
563
|
+
raise ::Google::Cloud::Error.from_error(e)
|
565
564
|
end
|
566
565
|
|
567
566
|
##
|
@@ -576,8 +575,6 @@ module Google
|
|
576
575
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
577
576
|
# @param options [::Gapic::CallOptions, ::Hash]
|
578
577
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
579
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
580
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
581
578
|
#
|
582
579
|
# @overload get_iam_policy(options_requested_policy_version: nil, project: nil, resource: nil, zone: nil)
|
583
580
|
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
@@ -610,28 +607,28 @@ module Google
|
|
610
607
|
# Customize the options with defaults
|
611
608
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
612
609
|
|
613
|
-
# Set x-goog-api-client
|
610
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
614
611
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
615
612
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
616
613
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
617
614
|
transports_version_send: [:rest]
|
618
615
|
|
616
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
617
|
+
|
619
618
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
620
|
-
metadata: call_metadata
|
619
|
+
metadata: call_metadata,
|
620
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
621
621
|
|
622
622
|
options.apply_defaults timeout: @config.timeout,
|
623
|
-
metadata: @config.metadata
|
623
|
+
metadata: @config.metadata,
|
624
|
+
retry_policy: @config.retry_policy
|
624
625
|
|
625
626
|
@disks_stub.get_iam_policy request, options do |result, response|
|
626
627
|
yield result, response if block_given?
|
627
628
|
return result
|
628
629
|
end
|
629
|
-
rescue ::
|
630
|
-
|
631
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
632
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
633
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
634
|
-
end
|
630
|
+
rescue ::Gapic::Rest::Error => e
|
631
|
+
raise ::Google::Cloud::Error.from_error(e)
|
635
632
|
end
|
636
633
|
|
637
634
|
##
|
@@ -646,8 +643,6 @@ module Google
|
|
646
643
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
647
644
|
# @param options [::Gapic::CallOptions, ::Hash]
|
648
645
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
649
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
650
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
651
646
|
#
|
652
647
|
# @overload insert(disk_resource: nil, project: nil, request_id: nil, source_image: nil, zone: nil)
|
653
648
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -682,17 +677,21 @@ module Google
|
|
682
677
|
# Customize the options with defaults
|
683
678
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
684
679
|
|
685
|
-
# Set x-goog-api-client
|
680
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
686
681
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
687
682
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
688
683
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
689
684
|
transports_version_send: [:rest]
|
690
685
|
|
686
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
687
|
+
|
691
688
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
692
|
-
metadata: call_metadata
|
689
|
+
metadata: call_metadata,
|
690
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
693
691
|
|
694
692
|
options.apply_defaults timeout: @config.timeout,
|
695
|
-
metadata: @config.metadata
|
693
|
+
metadata: @config.metadata,
|
694
|
+
retry_policy: @config.retry_policy
|
696
695
|
|
697
696
|
@disks_stub.insert request, options do |result, response|
|
698
697
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -707,12 +706,8 @@ module Google
|
|
707
706
|
yield result, response if block_given?
|
708
707
|
return result
|
709
708
|
end
|
710
|
-
rescue ::
|
711
|
-
|
712
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
713
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
714
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
715
|
-
end
|
709
|
+
rescue ::Gapic::Rest::Error => e
|
710
|
+
raise ::Google::Cloud::Error.from_error(e)
|
716
711
|
end
|
717
712
|
|
718
713
|
##
|
@@ -727,8 +722,6 @@ module Google
|
|
727
722
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
728
723
|
# @param options [::Gapic::CallOptions, ::Hash]
|
729
724
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
730
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
731
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
732
725
|
#
|
733
726
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
734
727
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -767,29 +760,29 @@ module Google
|
|
767
760
|
# Customize the options with defaults
|
768
761
|
call_metadata = @config.rpcs.list.metadata.to_h
|
769
762
|
|
770
|
-
# Set x-goog-api-client
|
763
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
771
764
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
772
765
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
773
766
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
774
767
|
transports_version_send: [:rest]
|
775
768
|
|
769
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
770
|
+
|
776
771
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
777
|
-
metadata: call_metadata
|
772
|
+
metadata: call_metadata,
|
773
|
+
retry_policy: @config.rpcs.list.retry_policy
|
778
774
|
|
779
775
|
options.apply_defaults timeout: @config.timeout,
|
780
|
-
metadata: @config.metadata
|
776
|
+
metadata: @config.metadata,
|
777
|
+
retry_policy: @config.retry_policy
|
781
778
|
|
782
779
|
@disks_stub.list request, options do |result, response|
|
783
780
|
result = ::Gapic::Rest::PagedEnumerable.new @disks_stub, :list, "items", request, result, options
|
784
781
|
yield result, response if block_given?
|
785
782
|
return result
|
786
783
|
end
|
787
|
-
rescue ::
|
788
|
-
|
789
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
790
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
791
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
792
|
-
end
|
784
|
+
rescue ::Gapic::Rest::Error => e
|
785
|
+
raise ::Google::Cloud::Error.from_error(e)
|
793
786
|
end
|
794
787
|
|
795
788
|
##
|
@@ -804,8 +797,6 @@ module Google
|
|
804
797
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
805
798
|
# @param options [::Gapic::CallOptions, ::Hash]
|
806
799
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
807
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
808
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
809
800
|
#
|
810
801
|
# @overload remove_resource_policies(disk: nil, disks_remove_resource_policies_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
811
802
|
# Pass arguments to `remove_resource_policies` via keyword arguments. Note that at
|
@@ -840,17 +831,21 @@ module Google
|
|
840
831
|
# Customize the options with defaults
|
841
832
|
call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
|
842
833
|
|
843
|
-
# Set x-goog-api-client
|
834
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
844
835
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
845
836
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
846
837
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
847
838
|
transports_version_send: [:rest]
|
848
839
|
|
840
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
841
|
+
|
849
842
|
options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
|
850
|
-
metadata: call_metadata
|
843
|
+
metadata: call_metadata,
|
844
|
+
retry_policy: @config.rpcs.remove_resource_policies.retry_policy
|
851
845
|
|
852
846
|
options.apply_defaults timeout: @config.timeout,
|
853
|
-
metadata: @config.metadata
|
847
|
+
metadata: @config.metadata,
|
848
|
+
retry_policy: @config.retry_policy
|
854
849
|
|
855
850
|
@disks_stub.remove_resource_policies request, options do |result, response|
|
856
851
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -865,12 +860,8 @@ module Google
|
|
865
860
|
yield result, response if block_given?
|
866
861
|
return result
|
867
862
|
end
|
868
|
-
rescue ::
|
869
|
-
|
870
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
871
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
872
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
873
|
-
end
|
863
|
+
rescue ::Gapic::Rest::Error => e
|
864
|
+
raise ::Google::Cloud::Error.from_error(e)
|
874
865
|
end
|
875
866
|
|
876
867
|
##
|
@@ -885,8 +876,6 @@ module Google
|
|
885
876
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
886
877
|
# @param options [::Gapic::CallOptions, ::Hash]
|
887
878
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
888
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
889
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
890
879
|
#
|
891
880
|
# @overload resize(disk: nil, disks_resize_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
892
881
|
# Pass arguments to `resize` via keyword arguments. Note that at
|
@@ -921,17 +910,21 @@ module Google
|
|
921
910
|
# Customize the options with defaults
|
922
911
|
call_metadata = @config.rpcs.resize.metadata.to_h
|
923
912
|
|
924
|
-
# Set x-goog-api-client
|
913
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
925
914
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
926
915
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
927
916
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
928
917
|
transports_version_send: [:rest]
|
929
918
|
|
919
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
920
|
+
|
930
921
|
options.apply_defaults timeout: @config.rpcs.resize.timeout,
|
931
|
-
metadata: call_metadata
|
922
|
+
metadata: call_metadata,
|
923
|
+
retry_policy: @config.rpcs.resize.retry_policy
|
932
924
|
|
933
925
|
options.apply_defaults timeout: @config.timeout,
|
934
|
-
metadata: @config.metadata
|
926
|
+
metadata: @config.metadata,
|
927
|
+
retry_policy: @config.retry_policy
|
935
928
|
|
936
929
|
@disks_stub.resize request, options do |result, response|
|
937
930
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -946,12 +939,8 @@ module Google
|
|
946
939
|
yield result, response if block_given?
|
947
940
|
return result
|
948
941
|
end
|
949
|
-
rescue ::
|
950
|
-
|
951
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
952
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
953
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
954
|
-
end
|
942
|
+
rescue ::Gapic::Rest::Error => e
|
943
|
+
raise ::Google::Cloud::Error.from_error(e)
|
955
944
|
end
|
956
945
|
|
957
946
|
##
|
@@ -966,8 +955,6 @@ module Google
|
|
966
955
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
967
956
|
# @param options [::Gapic::CallOptions, ::Hash]
|
968
957
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
969
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
970
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
971
958
|
#
|
972
959
|
# @overload set_iam_policy(project: nil, resource: nil, zone: nil, zone_set_policy_request_resource: nil)
|
973
960
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
@@ -1000,28 +987,28 @@ module Google
|
|
1000
987
|
# Customize the options with defaults
|
1001
988
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1002
989
|
|
1003
|
-
# Set x-goog-api-client
|
990
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1004
991
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1005
992
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1006
993
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1007
994
|
transports_version_send: [:rest]
|
1008
995
|
|
996
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
997
|
+
|
1009
998
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1010
|
-
metadata: call_metadata
|
999
|
+
metadata: call_metadata,
|
1000
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1011
1001
|
|
1012
1002
|
options.apply_defaults timeout: @config.timeout,
|
1013
|
-
metadata: @config.metadata
|
1003
|
+
metadata: @config.metadata,
|
1004
|
+
retry_policy: @config.retry_policy
|
1014
1005
|
|
1015
1006
|
@disks_stub.set_iam_policy request, options do |result, response|
|
1016
1007
|
yield result, response if block_given?
|
1017
1008
|
return result
|
1018
1009
|
end
|
1019
|
-
rescue ::
|
1020
|
-
|
1021
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1022
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1023
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1024
|
-
end
|
1010
|
+
rescue ::Gapic::Rest::Error => e
|
1011
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1025
1012
|
end
|
1026
1013
|
|
1027
1014
|
##
|
@@ -1036,8 +1023,6 @@ module Google
|
|
1036
1023
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1037
1024
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1038
1025
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1039
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1040
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1041
1026
|
#
|
1042
1027
|
# @overload set_labels(project: nil, request_id: nil, resource: nil, zone: nil, zone_set_labels_request_resource: nil)
|
1043
1028
|
# Pass arguments to `set_labels` via keyword arguments. Note that at
|
@@ -1072,17 +1057,21 @@ module Google
|
|
1072
1057
|
# Customize the options with defaults
|
1073
1058
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
1074
1059
|
|
1075
|
-
# Set x-goog-api-client
|
1060
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1076
1061
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1077
1062
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1078
1063
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1079
1064
|
transports_version_send: [:rest]
|
1080
1065
|
|
1066
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1067
|
+
|
1081
1068
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
1082
|
-
metadata: call_metadata
|
1069
|
+
metadata: call_metadata,
|
1070
|
+
retry_policy: @config.rpcs.set_labels.retry_policy
|
1083
1071
|
|
1084
1072
|
options.apply_defaults timeout: @config.timeout,
|
1085
|
-
metadata: @config.metadata
|
1073
|
+
metadata: @config.metadata,
|
1074
|
+
retry_policy: @config.retry_policy
|
1086
1075
|
|
1087
1076
|
@disks_stub.set_labels request, options do |result, response|
|
1088
1077
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -1097,12 +1086,8 @@ module Google
|
|
1097
1086
|
yield result, response if block_given?
|
1098
1087
|
return result
|
1099
1088
|
end
|
1100
|
-
rescue ::
|
1101
|
-
|
1102
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1103
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1104
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1105
|
-
end
|
1089
|
+
rescue ::Gapic::Rest::Error => e
|
1090
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1106
1091
|
end
|
1107
1092
|
|
1108
1093
|
##
|
@@ -1117,8 +1102,6 @@ module Google
|
|
1117
1102
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1118
1103
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1119
1104
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1120
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1121
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1122
1105
|
#
|
1123
1106
|
# @overload test_iam_permissions(project: nil, resource: nil, test_permissions_request_resource: nil, zone: nil)
|
1124
1107
|
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
@@ -1151,52 +1134,58 @@ module Google
|
|
1151
1134
|
# Customize the options with defaults
|
1152
1135
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1153
1136
|
|
1154
|
-
# Set x-goog-api-client
|
1137
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1155
1138
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1156
1139
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1157
1140
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1158
1141
|
transports_version_send: [:rest]
|
1159
1142
|
|
1143
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1144
|
+
|
1160
1145
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1161
|
-
metadata: call_metadata
|
1146
|
+
metadata: call_metadata,
|
1147
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1162
1148
|
|
1163
1149
|
options.apply_defaults timeout: @config.timeout,
|
1164
|
-
metadata: @config.metadata
|
1150
|
+
metadata: @config.metadata,
|
1151
|
+
retry_policy: @config.retry_policy
|
1165
1152
|
|
1166
1153
|
@disks_stub.test_iam_permissions request, options do |result, response|
|
1167
1154
|
yield result, response if block_given?
|
1168
1155
|
return result
|
1169
1156
|
end
|
1170
|
-
rescue ::
|
1171
|
-
|
1172
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1173
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1174
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1175
|
-
end
|
1157
|
+
rescue ::Gapic::Rest::Error => e
|
1158
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1176
1159
|
end
|
1177
1160
|
|
1178
1161
|
##
|
1179
1162
|
# Configuration class for the Disks REST API.
|
1180
1163
|
#
|
1181
1164
|
# This class represents the configuration for Disks REST,
|
1182
|
-
# providing control over
|
1165
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1166
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1167
|
+
# applied individually to specific RPCs. See
|
1168
|
+
# {::Google::Cloud::Compute::V1::Disks::Rest::Client::Configuration::Rpcs}
|
1169
|
+
# for a list of RPCs that can be configured independently.
|
1183
1170
|
#
|
1184
1171
|
# Configuration can be applied globally to all clients, or to a single client
|
1185
1172
|
# on construction.
|
1186
1173
|
#
|
1187
|
-
#
|
1188
|
-
#
|
1189
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1190
|
-
#
|
1191
|
-
# ::Google::Cloud::Compute::V1::Disks::Client.configure do |config|
|
1192
|
-
# config.timeout = 10.0
|
1193
|
-
# end
|
1174
|
+
# @example
|
1194
1175
|
#
|
1195
|
-
#
|
1176
|
+
# # Modify the global config, setting the timeout for
|
1177
|
+
# # add_resource_policies to 20 seconds,
|
1178
|
+
# # and all remaining timeouts to 10 seconds.
|
1179
|
+
# ::Google::Cloud::Compute::V1::Disks::Rest::Client.configure do |config|
|
1180
|
+
# config.timeout = 10.0
|
1181
|
+
# config.rpcs.add_resource_policies.timeout = 20.0
|
1182
|
+
# end
|
1196
1183
|
#
|
1197
|
-
#
|
1198
|
-
#
|
1199
|
-
#
|
1184
|
+
# # Apply the above configuration only to a new client.
|
1185
|
+
# client = ::Google::Cloud::Compute::V1::Disks::Rest::Client.new do |config|
|
1186
|
+
# config.timeout = 10.0
|
1187
|
+
# config.rpcs.add_resource_policies.timeout = 20.0
|
1188
|
+
# end
|
1200
1189
|
#
|
1201
1190
|
# @!attribute [rw] endpoint
|
1202
1191
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1225,8 +1214,19 @@ module Google
|
|
1225
1214
|
# The call timeout in seconds.
|
1226
1215
|
# @return [::Numeric]
|
1227
1216
|
# @!attribute [rw] metadata
|
1228
|
-
# Additional
|
1217
|
+
# Additional headers to be sent with the call.
|
1229
1218
|
# @return [::Hash{::Symbol=>::String}]
|
1219
|
+
# @!attribute [rw] retry_policy
|
1220
|
+
# The retry policy. The value is a hash with the following keys:
|
1221
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1222
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1223
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1224
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1225
|
+
# trigger a retry.
|
1226
|
+
# @return [::Hash]
|
1227
|
+
# @!attribute [rw] quota_project
|
1228
|
+
# A separate project against which to charge quota.
|
1229
|
+
# @return [::String]
|
1230
1230
|
#
|
1231
1231
|
class Configuration
|
1232
1232
|
extend ::Gapic::Config
|
@@ -1241,6 +1241,8 @@ module Google
|
|
1241
1241
|
config_attr :lib_version, nil, ::String, nil
|
1242
1242
|
config_attr :timeout, nil, ::Numeric, nil
|
1243
1243
|
config_attr :metadata, nil, ::Hash, nil
|
1244
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1245
|
+
config_attr :quota_project, nil, ::String, nil
|
1244
1246
|
|
1245
1247
|
# @private
|
1246
1248
|
def initialize parent_config = nil
|
@@ -1269,9 +1271,14 @@ module Google
|
|
1269
1271
|
# the following configuration fields:
|
1270
1272
|
#
|
1271
1273
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1272
|
-
#
|
1273
|
-
#
|
1274
|
-
#
|
1274
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1275
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1276
|
+
# include the following keys:
|
1277
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1278
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1279
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1280
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1281
|
+
# trigger a retry.
|
1275
1282
|
#
|
1276
1283
|
class Rpcs
|
1277
1284
|
##
|