google-cloud-compute-v1 1.7.1 → 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 +260 -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 +96 -73
- 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 +159 -150
- 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 +761 -86
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -147,13 +147,22 @@ module Google
|
|
147
147
|
|
148
148
|
# Create credentials
|
149
149
|
credentials = @config.credentials
|
150
|
-
|
150
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
151
|
+
# but only if the default endpoint does not have a region prefix.
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
153
|
+
!@config.endpoint.split(".").first.include?("-")
|
154
|
+
credentials ||= Credentials.default scope: @config.scope,
|
155
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
151
156
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
152
157
|
credentials = Credentials.new credentials, scope: @config.scope
|
153
158
|
end
|
154
159
|
|
160
|
+
@quota_project_id = @config.quota_project
|
161
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
162
|
+
|
155
163
|
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
156
164
|
config.credentials = credentials
|
165
|
+
config.quota_project = @quota_project_id
|
157
166
|
config.endpoint = @config.endpoint
|
158
167
|
end
|
159
168
|
|
@@ -181,8 +190,6 @@ module Google
|
|
181
190
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
182
191
|
# @param options [::Gapic::CallOptions, ::Hash]
|
183
192
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
184
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
185
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
186
193
|
#
|
187
194
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
188
195
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -221,29 +228,29 @@ module Google
|
|
221
228
|
# Customize the options with defaults
|
222
229
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
223
230
|
|
224
|
-
# Set x-goog-api-client
|
231
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
225
232
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
226
233
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
227
234
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
228
235
|
transports_version_send: [:rest]
|
229
236
|
|
237
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
238
|
+
|
230
239
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
231
|
-
metadata: call_metadata
|
240
|
+
metadata: call_metadata,
|
241
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
232
242
|
|
233
243
|
options.apply_defaults timeout: @config.timeout,
|
234
|
-
metadata: @config.metadata
|
244
|
+
metadata: @config.metadata,
|
245
|
+
retry_policy: @config.retry_policy
|
235
246
|
|
236
247
|
@target_https_proxies_stub.aggregated_list request, options do |result, response|
|
237
248
|
result = ::Gapic::Rest::PagedEnumerable.new @target_https_proxies_stub, :aggregated_list, "items", request, result, options
|
238
249
|
yield result, response if block_given?
|
239
250
|
return result
|
240
251
|
end
|
241
|
-
rescue ::
|
242
|
-
|
243
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
244
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
245
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
246
|
-
end
|
252
|
+
rescue ::Gapic::Rest::Error => e
|
253
|
+
raise ::Google::Cloud::Error.from_error(e)
|
247
254
|
end
|
248
255
|
|
249
256
|
##
|
@@ -258,8 +265,6 @@ module Google
|
|
258
265
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
259
266
|
# @param options [::Gapic::CallOptions, ::Hash]
|
260
267
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
261
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
262
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
263
268
|
#
|
264
269
|
# @overload delete(project: nil, request_id: nil, target_https_proxy: nil)
|
265
270
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -290,17 +295,21 @@ module Google
|
|
290
295
|
# Customize the options with defaults
|
291
296
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
292
297
|
|
293
|
-
# Set x-goog-api-client
|
298
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
294
299
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
295
300
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
296
301
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
297
302
|
transports_version_send: [:rest]
|
298
303
|
|
304
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
305
|
+
|
299
306
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
300
|
-
metadata: call_metadata
|
307
|
+
metadata: call_metadata,
|
308
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
301
309
|
|
302
310
|
options.apply_defaults timeout: @config.timeout,
|
303
|
-
metadata: @config.metadata
|
311
|
+
metadata: @config.metadata,
|
312
|
+
retry_policy: @config.retry_policy
|
304
313
|
|
305
314
|
@target_https_proxies_stub.delete request, options do |result, response|
|
306
315
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -314,12 +323,8 @@ module Google
|
|
314
323
|
yield result, response if block_given?
|
315
324
|
return result
|
316
325
|
end
|
317
|
-
rescue ::
|
318
|
-
|
319
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
320
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
321
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
322
|
-
end
|
326
|
+
rescue ::Gapic::Rest::Error => e
|
327
|
+
raise ::Google::Cloud::Error.from_error(e)
|
323
328
|
end
|
324
329
|
|
325
330
|
##
|
@@ -334,8 +339,6 @@ module Google
|
|
334
339
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
335
340
|
# @param options [::Gapic::CallOptions, ::Hash]
|
336
341
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
337
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
338
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
339
342
|
#
|
340
343
|
# @overload get(project: nil, target_https_proxy: nil)
|
341
344
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -364,28 +367,28 @@ module Google
|
|
364
367
|
# Customize the options with defaults
|
365
368
|
call_metadata = @config.rpcs.get.metadata.to_h
|
366
369
|
|
367
|
-
# Set x-goog-api-client
|
370
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
368
371
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
369
372
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
370
373
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
371
374
|
transports_version_send: [:rest]
|
372
375
|
|
376
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
377
|
+
|
373
378
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
374
|
-
metadata: call_metadata
|
379
|
+
metadata: call_metadata,
|
380
|
+
retry_policy: @config.rpcs.get.retry_policy
|
375
381
|
|
376
382
|
options.apply_defaults timeout: @config.timeout,
|
377
|
-
metadata: @config.metadata
|
383
|
+
metadata: @config.metadata,
|
384
|
+
retry_policy: @config.retry_policy
|
378
385
|
|
379
386
|
@target_https_proxies_stub.get request, options do |result, response|
|
380
387
|
yield result, response if block_given?
|
381
388
|
return result
|
382
389
|
end
|
383
|
-
rescue ::
|
384
|
-
|
385
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
386
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
387
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
388
|
-
end
|
390
|
+
rescue ::Gapic::Rest::Error => e
|
391
|
+
raise ::Google::Cloud::Error.from_error(e)
|
389
392
|
end
|
390
393
|
|
391
394
|
##
|
@@ -400,8 +403,6 @@ module Google
|
|
400
403
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
401
404
|
# @param options [::Gapic::CallOptions, ::Hash]
|
402
405
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
403
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
404
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
405
406
|
#
|
406
407
|
# @overload insert(project: nil, request_id: nil, target_https_proxy_resource: nil)
|
407
408
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -432,17 +433,21 @@ module Google
|
|
432
433
|
# Customize the options with defaults
|
433
434
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
434
435
|
|
435
|
-
# Set x-goog-api-client
|
436
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
436
437
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
437
438
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
438
439
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
439
440
|
transports_version_send: [:rest]
|
440
441
|
|
442
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
443
|
+
|
441
444
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
442
|
-
metadata: call_metadata
|
445
|
+
metadata: call_metadata,
|
446
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
443
447
|
|
444
448
|
options.apply_defaults timeout: @config.timeout,
|
445
|
-
metadata: @config.metadata
|
449
|
+
metadata: @config.metadata,
|
450
|
+
retry_policy: @config.retry_policy
|
446
451
|
|
447
452
|
@target_https_proxies_stub.insert request, options do |result, response|
|
448
453
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -456,12 +461,8 @@ module Google
|
|
456
461
|
yield result, response if block_given?
|
457
462
|
return result
|
458
463
|
end
|
459
|
-
rescue ::
|
460
|
-
|
461
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
462
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
463
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
464
|
-
end
|
464
|
+
rescue ::Gapic::Rest::Error => e
|
465
|
+
raise ::Google::Cloud::Error.from_error(e)
|
465
466
|
end
|
466
467
|
|
467
468
|
##
|
@@ -476,8 +477,6 @@ module Google
|
|
476
477
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
477
478
|
# @param options [::Gapic::CallOptions, ::Hash]
|
478
479
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
479
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
480
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
481
480
|
#
|
482
481
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
483
482
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -514,29 +513,29 @@ module Google
|
|
514
513
|
# Customize the options with defaults
|
515
514
|
call_metadata = @config.rpcs.list.metadata.to_h
|
516
515
|
|
517
|
-
# Set x-goog-api-client
|
516
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
518
517
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
519
518
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
520
519
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
521
520
|
transports_version_send: [:rest]
|
522
521
|
|
522
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
523
|
+
|
523
524
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
524
|
-
metadata: call_metadata
|
525
|
+
metadata: call_metadata,
|
526
|
+
retry_policy: @config.rpcs.list.retry_policy
|
525
527
|
|
526
528
|
options.apply_defaults timeout: @config.timeout,
|
527
|
-
metadata: @config.metadata
|
529
|
+
metadata: @config.metadata,
|
530
|
+
retry_policy: @config.retry_policy
|
528
531
|
|
529
532
|
@target_https_proxies_stub.list request, options do |result, response|
|
530
533
|
result = ::Gapic::Rest::PagedEnumerable.new @target_https_proxies_stub, :list, "items", request, result, options
|
531
534
|
yield result, response if block_given?
|
532
535
|
return result
|
533
536
|
end
|
534
|
-
rescue ::
|
535
|
-
|
536
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
537
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
538
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
539
|
-
end
|
537
|
+
rescue ::Gapic::Rest::Error => e
|
538
|
+
raise ::Google::Cloud::Error.from_error(e)
|
540
539
|
end
|
541
540
|
|
542
541
|
##
|
@@ -551,8 +550,6 @@ module Google
|
|
551
550
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
552
551
|
# @param options [::Gapic::CallOptions, ::Hash]
|
553
552
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
554
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
555
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
556
553
|
#
|
557
554
|
# @overload patch(project: nil, request_id: nil, target_https_proxy: nil, target_https_proxy_resource: nil)
|
558
555
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
@@ -585,17 +582,21 @@ module Google
|
|
585
582
|
# Customize the options with defaults
|
586
583
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
587
584
|
|
588
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
589
586
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
590
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
591
588
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
592
589
|
transports_version_send: [:rest]
|
593
590
|
|
591
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
592
|
+
|
594
593
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
595
|
-
metadata: call_metadata
|
594
|
+
metadata: call_metadata,
|
595
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
596
596
|
|
597
597
|
options.apply_defaults timeout: @config.timeout,
|
598
|
-
metadata: @config.metadata
|
598
|
+
metadata: @config.metadata,
|
599
|
+
retry_policy: @config.retry_policy
|
599
600
|
|
600
601
|
@target_https_proxies_stub.patch request, options do |result, response|
|
601
602
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -609,12 +610,8 @@ module Google
|
|
609
610
|
yield result, response if block_given?
|
610
611
|
return result
|
611
612
|
end
|
612
|
-
rescue ::
|
613
|
-
|
614
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
615
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
616
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
617
|
-
end
|
613
|
+
rescue ::Gapic::Rest::Error => e
|
614
|
+
raise ::Google::Cloud::Error.from_error(e)
|
618
615
|
end
|
619
616
|
|
620
617
|
##
|
@@ -629,8 +626,6 @@ module Google
|
|
629
626
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
630
627
|
# @param options [::Gapic::CallOptions, ::Hash]
|
631
628
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
632
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
633
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
634
629
|
#
|
635
630
|
# @overload set_certificate_map(project: nil, request_id: nil, target_https_proxies_set_certificate_map_request_resource: nil, target_https_proxy: nil)
|
636
631
|
# Pass arguments to `set_certificate_map` via keyword arguments. Note that at
|
@@ -663,17 +658,21 @@ module Google
|
|
663
658
|
# Customize the options with defaults
|
664
659
|
call_metadata = @config.rpcs.set_certificate_map.metadata.to_h
|
665
660
|
|
666
|
-
# Set x-goog-api-client
|
661
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
667
662
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
668
663
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
669
664
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
670
665
|
transports_version_send: [:rest]
|
671
666
|
|
667
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
668
|
+
|
672
669
|
options.apply_defaults timeout: @config.rpcs.set_certificate_map.timeout,
|
673
|
-
metadata: call_metadata
|
670
|
+
metadata: call_metadata,
|
671
|
+
retry_policy: @config.rpcs.set_certificate_map.retry_policy
|
674
672
|
|
675
673
|
options.apply_defaults timeout: @config.timeout,
|
676
|
-
metadata: @config.metadata
|
674
|
+
metadata: @config.metadata,
|
675
|
+
retry_policy: @config.retry_policy
|
677
676
|
|
678
677
|
@target_https_proxies_stub.set_certificate_map request, options do |result, response|
|
679
678
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -687,12 +686,8 @@ module Google
|
|
687
686
|
yield result, response if block_given?
|
688
687
|
return result
|
689
688
|
end
|
690
|
-
rescue ::
|
691
|
-
|
692
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
693
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
694
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
695
|
-
end
|
689
|
+
rescue ::Gapic::Rest::Error => e
|
690
|
+
raise ::Google::Cloud::Error.from_error(e)
|
696
691
|
end
|
697
692
|
|
698
693
|
##
|
@@ -707,8 +702,6 @@ module Google
|
|
707
702
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
708
703
|
# @param options [::Gapic::CallOptions, ::Hash]
|
709
704
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
710
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
711
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
712
705
|
#
|
713
706
|
# @overload set_quic_override(project: nil, request_id: nil, target_https_proxies_set_quic_override_request_resource: nil, target_https_proxy: nil)
|
714
707
|
# Pass arguments to `set_quic_override` via keyword arguments. Note that at
|
@@ -741,17 +734,21 @@ module Google
|
|
741
734
|
# Customize the options with defaults
|
742
735
|
call_metadata = @config.rpcs.set_quic_override.metadata.to_h
|
743
736
|
|
744
|
-
# Set x-goog-api-client
|
737
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
745
738
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
746
739
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
747
740
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
748
741
|
transports_version_send: [:rest]
|
749
742
|
|
743
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
|
+
|
750
745
|
options.apply_defaults timeout: @config.rpcs.set_quic_override.timeout,
|
751
|
-
metadata: call_metadata
|
746
|
+
metadata: call_metadata,
|
747
|
+
retry_policy: @config.rpcs.set_quic_override.retry_policy
|
752
748
|
|
753
749
|
options.apply_defaults timeout: @config.timeout,
|
754
|
-
metadata: @config.metadata
|
750
|
+
metadata: @config.metadata,
|
751
|
+
retry_policy: @config.retry_policy
|
755
752
|
|
756
753
|
@target_https_proxies_stub.set_quic_override request, options do |result, response|
|
757
754
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -765,12 +762,8 @@ module Google
|
|
765
762
|
yield result, response if block_given?
|
766
763
|
return result
|
767
764
|
end
|
768
|
-
rescue ::
|
769
|
-
|
770
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
771
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
772
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
773
|
-
end
|
765
|
+
rescue ::Gapic::Rest::Error => e
|
766
|
+
raise ::Google::Cloud::Error.from_error(e)
|
774
767
|
end
|
775
768
|
|
776
769
|
##
|
@@ -785,8 +778,6 @@ module Google
|
|
785
778
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
786
779
|
# @param options [::Gapic::CallOptions, ::Hash]
|
787
780
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
788
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
789
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
790
781
|
#
|
791
782
|
# @overload set_ssl_certificates(project: nil, request_id: nil, target_https_proxies_set_ssl_certificates_request_resource: nil, target_https_proxy: nil)
|
792
783
|
# Pass arguments to `set_ssl_certificates` via keyword arguments. Note that at
|
@@ -819,17 +810,21 @@ module Google
|
|
819
810
|
# Customize the options with defaults
|
820
811
|
call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
|
821
812
|
|
822
|
-
# Set x-goog-api-client
|
813
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
823
814
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
824
815
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
825
816
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
826
817
|
transports_version_send: [:rest]
|
827
818
|
|
819
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
820
|
+
|
828
821
|
options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
|
829
|
-
metadata: call_metadata
|
822
|
+
metadata: call_metadata,
|
823
|
+
retry_policy: @config.rpcs.set_ssl_certificates.retry_policy
|
830
824
|
|
831
825
|
options.apply_defaults timeout: @config.timeout,
|
832
|
-
metadata: @config.metadata
|
826
|
+
metadata: @config.metadata,
|
827
|
+
retry_policy: @config.retry_policy
|
833
828
|
|
834
829
|
@target_https_proxies_stub.set_ssl_certificates request, options do |result, response|
|
835
830
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -843,12 +838,8 @@ module Google
|
|
843
838
|
yield result, response if block_given?
|
844
839
|
return result
|
845
840
|
end
|
846
|
-
rescue ::
|
847
|
-
|
848
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
849
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
850
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
851
|
-
end
|
841
|
+
rescue ::Gapic::Rest::Error => e
|
842
|
+
raise ::Google::Cloud::Error.from_error(e)
|
852
843
|
end
|
853
844
|
|
854
845
|
##
|
@@ -863,8 +854,6 @@ module Google
|
|
863
854
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
864
855
|
# @param options [::Gapic::CallOptions, ::Hash]
|
865
856
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
866
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
867
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
868
857
|
#
|
869
858
|
# @overload set_ssl_policy(project: nil, request_id: nil, ssl_policy_reference_resource: nil, target_https_proxy: nil)
|
870
859
|
# Pass arguments to `set_ssl_policy` via keyword arguments. Note that at
|
@@ -897,17 +886,21 @@ module Google
|
|
897
886
|
# Customize the options with defaults
|
898
887
|
call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
|
899
888
|
|
900
|
-
# Set x-goog-api-client
|
889
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
901
890
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
902
891
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
903
892
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
904
893
|
transports_version_send: [:rest]
|
905
894
|
|
895
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
896
|
+
|
906
897
|
options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
|
907
|
-
metadata: call_metadata
|
898
|
+
metadata: call_metadata,
|
899
|
+
retry_policy: @config.rpcs.set_ssl_policy.retry_policy
|
908
900
|
|
909
901
|
options.apply_defaults timeout: @config.timeout,
|
910
|
-
metadata: @config.metadata
|
902
|
+
metadata: @config.metadata,
|
903
|
+
retry_policy: @config.retry_policy
|
911
904
|
|
912
905
|
@target_https_proxies_stub.set_ssl_policy request, options do |result, response|
|
913
906
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -921,12 +914,8 @@ module Google
|
|
921
914
|
yield result, response if block_given?
|
922
915
|
return result
|
923
916
|
end
|
924
|
-
rescue ::
|
925
|
-
|
926
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
927
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
928
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
929
|
-
end
|
917
|
+
rescue ::Gapic::Rest::Error => e
|
918
|
+
raise ::Google::Cloud::Error.from_error(e)
|
930
919
|
end
|
931
920
|
|
932
921
|
##
|
@@ -941,8 +930,6 @@ module Google
|
|
941
930
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
942
931
|
# @param options [::Gapic::CallOptions, ::Hash]
|
943
932
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
944
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
945
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
946
933
|
#
|
947
934
|
# @overload set_url_map(project: nil, request_id: nil, target_https_proxy: nil, url_map_reference_resource: nil)
|
948
935
|
# Pass arguments to `set_url_map` via keyword arguments. Note that at
|
@@ -975,17 +962,21 @@ module Google
|
|
975
962
|
# Customize the options with defaults
|
976
963
|
call_metadata = @config.rpcs.set_url_map.metadata.to_h
|
977
964
|
|
978
|
-
# Set x-goog-api-client
|
965
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
979
966
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
980
967
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
981
968
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
982
969
|
transports_version_send: [:rest]
|
983
970
|
|
971
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
972
|
+
|
984
973
|
options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
|
985
|
-
metadata: call_metadata
|
974
|
+
metadata: call_metadata,
|
975
|
+
retry_policy: @config.rpcs.set_url_map.retry_policy
|
986
976
|
|
987
977
|
options.apply_defaults timeout: @config.timeout,
|
988
|
-
metadata: @config.metadata
|
978
|
+
metadata: @config.metadata,
|
979
|
+
retry_policy: @config.retry_policy
|
989
980
|
|
990
981
|
@target_https_proxies_stub.set_url_map request, options do |result, response|
|
991
982
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -999,36 +990,38 @@ module Google
|
|
999
990
|
yield result, response if block_given?
|
1000
991
|
return result
|
1001
992
|
end
|
1002
|
-
rescue ::
|
1003
|
-
|
1004
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1005
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1006
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1007
|
-
end
|
993
|
+
rescue ::Gapic::Rest::Error => e
|
994
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1008
995
|
end
|
1009
996
|
|
1010
997
|
##
|
1011
998
|
# Configuration class for the TargetHttpsProxies REST API.
|
1012
999
|
#
|
1013
1000
|
# This class represents the configuration for TargetHttpsProxies REST,
|
1014
|
-
# providing control over
|
1001
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1002
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1003
|
+
# applied individually to specific RPCs. See
|
1004
|
+
# {::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client::Configuration::Rpcs}
|
1005
|
+
# for a list of RPCs that can be configured independently.
|
1015
1006
|
#
|
1016
1007
|
# Configuration can be applied globally to all clients, or to a single client
|
1017
1008
|
# on construction.
|
1018
1009
|
#
|
1019
|
-
#
|
1020
|
-
#
|
1021
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1022
|
-
#
|
1023
|
-
# ::Google::Cloud::Compute::V1::TargetHttpsProxies::Client.configure do |config|
|
1024
|
-
# config.timeout = 10.0
|
1025
|
-
# end
|
1010
|
+
# @example
|
1026
1011
|
#
|
1027
|
-
#
|
1012
|
+
# # Modify the global config, setting the timeout for
|
1013
|
+
# # aggregated_list to 20 seconds,
|
1014
|
+
# # and all remaining timeouts to 10 seconds.
|
1015
|
+
# ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.configure do |config|
|
1016
|
+
# config.timeout = 10.0
|
1017
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
1018
|
+
# end
|
1028
1019
|
#
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
#
|
1020
|
+
# # Apply the above configuration only to a new client.
|
1021
|
+
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new do |config|
|
1022
|
+
# config.timeout = 10.0
|
1023
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
1024
|
+
# end
|
1032
1025
|
#
|
1033
1026
|
# @!attribute [rw] endpoint
|
1034
1027
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1057,8 +1050,19 @@ module Google
|
|
1057
1050
|
# The call timeout in seconds.
|
1058
1051
|
# @return [::Numeric]
|
1059
1052
|
# @!attribute [rw] metadata
|
1060
|
-
# Additional
|
1053
|
+
# Additional headers to be sent with the call.
|
1061
1054
|
# @return [::Hash{::Symbol=>::String}]
|
1055
|
+
# @!attribute [rw] retry_policy
|
1056
|
+
# The retry policy. The value is a hash with the following keys:
|
1057
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1058
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1059
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1060
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1061
|
+
# trigger a retry.
|
1062
|
+
# @return [::Hash]
|
1063
|
+
# @!attribute [rw] quota_project
|
1064
|
+
# A separate project against which to charge quota.
|
1065
|
+
# @return [::String]
|
1062
1066
|
#
|
1063
1067
|
class Configuration
|
1064
1068
|
extend ::Gapic::Config
|
@@ -1073,6 +1077,8 @@ module Google
|
|
1073
1077
|
config_attr :lib_version, nil, ::String, nil
|
1074
1078
|
config_attr :timeout, nil, ::Numeric, nil
|
1075
1079
|
config_attr :metadata, nil, ::Hash, nil
|
1080
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1081
|
+
config_attr :quota_project, nil, ::String, nil
|
1076
1082
|
|
1077
1083
|
# @private
|
1078
1084
|
def initialize parent_config = nil
|
@@ -1101,9 +1107,14 @@ module Google
|
|
1101
1107
|
# the following configuration fields:
|
1102
1108
|
#
|
1103
1109
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1104
|
-
#
|
1105
|
-
#
|
1106
|
-
#
|
1110
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1111
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1112
|
+
# include the following keys:
|
1113
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1114
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1115
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1116
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1117
|
+
# trigger a retry.
|
1107
1118
|
#
|
1108
1119
|
class Rpcs
|
1109
1120
|
##
|