google-cloud-compute-v1 1.8.0 → 1.10.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 +206 -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 +564 -32
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: false,
|
40
|
+
raise_faraday_errors: false
|
39
41
|
end
|
40
42
|
|
41
43
|
##
|
@@ -55,7 +57,7 @@ module Google
|
|
55
57
|
def aggregated_list request_pb, options = nil
|
56
58
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
59
|
|
58
|
-
verb, uri, query_string_params, body = transcode_aggregated_list_request request_pb
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
|
59
61
|
query_string_params = if query_string_params.any?
|
60
62
|
query_string_params.to_h { |p| p.split("=", 2) }
|
61
63
|
else
|
@@ -92,7 +94,7 @@ module Google
|
|
92
94
|
def delete request_pb, options = nil
|
93
95
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
94
96
|
|
95
|
-
verb, uri, query_string_params, body = transcode_delete_request request_pb
|
97
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
96
98
|
query_string_params = if query_string_params.any?
|
97
99
|
query_string_params.to_h { |p| p.split("=", 2) }
|
98
100
|
else
|
@@ -129,7 +131,7 @@ module Google
|
|
129
131
|
def get request_pb, options = nil
|
130
132
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
131
133
|
|
132
|
-
verb, uri, query_string_params, body = transcode_get_request request_pb
|
134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
133
135
|
query_string_params = if query_string_params.any?
|
134
136
|
query_string_params.to_h { |p| p.split("=", 2) }
|
135
137
|
else
|
@@ -166,7 +168,7 @@ module Google
|
|
166
168
|
def insert request_pb, options = nil
|
167
169
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
168
170
|
|
169
|
-
verb, uri, query_string_params, body = transcode_insert_request request_pb
|
171
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
170
172
|
query_string_params = if query_string_params.any?
|
171
173
|
query_string_params.to_h { |p| p.split("=", 2) }
|
172
174
|
else
|
@@ -203,7 +205,7 @@ module Google
|
|
203
205
|
def list request_pb, options = nil
|
204
206
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
205
207
|
|
206
|
-
verb, uri, query_string_params, body = transcode_list_request request_pb
|
208
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
207
209
|
query_string_params = if query_string_params.any?
|
208
210
|
query_string_params.to_h { |p| p.split("=", 2) }
|
209
211
|
else
|
@@ -240,7 +242,7 @@ module Google
|
|
240
242
|
def patch request_pb, options = nil
|
241
243
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
242
244
|
|
243
|
-
verb, uri, query_string_params, body = transcode_patch_request request_pb
|
245
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
|
244
246
|
query_string_params = if query_string_params.any?
|
245
247
|
query_string_params.to_h { |p| p.split("=", 2) }
|
246
248
|
else
|
@@ -277,7 +279,7 @@ module Google
|
|
277
279
|
def set_certificate_map request_pb, options = nil
|
278
280
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
279
281
|
|
280
|
-
verb, uri, query_string_params, body = transcode_set_certificate_map_request request_pb
|
282
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_certificate_map_request request_pb
|
281
283
|
query_string_params = if query_string_params.any?
|
282
284
|
query_string_params.to_h { |p| p.split("=", 2) }
|
283
285
|
else
|
@@ -314,7 +316,7 @@ module Google
|
|
314
316
|
def set_quic_override request_pb, options = nil
|
315
317
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
316
318
|
|
317
|
-
verb, uri, query_string_params, body = transcode_set_quic_override_request request_pb
|
319
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_quic_override_request request_pb
|
318
320
|
query_string_params = if query_string_params.any?
|
319
321
|
query_string_params.to_h { |p| p.split("=", 2) }
|
320
322
|
else
|
@@ -351,7 +353,7 @@ module Google
|
|
351
353
|
def set_ssl_certificates request_pb, options = nil
|
352
354
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
353
355
|
|
354
|
-
verb, uri, query_string_params, body = transcode_set_ssl_certificates_request request_pb
|
356
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_ssl_certificates_request request_pb
|
355
357
|
query_string_params = if query_string_params.any?
|
356
358
|
query_string_params.to_h { |p| p.split("=", 2) }
|
357
359
|
else
|
@@ -388,7 +390,7 @@ module Google
|
|
388
390
|
def set_ssl_policy request_pb, options = nil
|
389
391
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
390
392
|
|
391
|
-
verb, uri, query_string_params, body = transcode_set_ssl_policy_request request_pb
|
393
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_ssl_policy_request request_pb
|
392
394
|
query_string_params = if query_string_params.any?
|
393
395
|
query_string_params.to_h { |p| p.split("=", 2) }
|
394
396
|
else
|
@@ -425,7 +427,7 @@ module Google
|
|
425
427
|
def set_url_map request_pb, options = nil
|
426
428
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
427
429
|
|
428
|
-
verb, uri, query_string_params, body = transcode_set_url_map_request request_pb
|
430
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_url_map_request request_pb
|
429
431
|
query_string_params = if query_string_params.any?
|
430
432
|
query_string_params.to_h { |p| p.split("=", 2) }
|
431
433
|
else
|
@@ -445,9 +447,6 @@ module Google
|
|
445
447
|
result
|
446
448
|
end
|
447
449
|
|
448
|
-
|
449
|
-
private
|
450
|
-
|
451
450
|
##
|
452
451
|
# @private
|
453
452
|
#
|
@@ -457,7 +456,7 @@ module Google
|
|
457
456
|
# A request object representing the call parameters. Required.
|
458
457
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
459
458
|
# Uri, Body, Query string parameters
|
460
|
-
def transcode_aggregated_list_request request_pb
|
459
|
+
def self.transcode_aggregated_list_request request_pb
|
461
460
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
462
461
|
.with_bindings(
|
463
462
|
uri_method: :get,
|
@@ -478,7 +477,7 @@ module Google
|
|
478
477
|
# A request object representing the call parameters. Required.
|
479
478
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
480
479
|
# Uri, Body, Query string parameters
|
481
|
-
def transcode_delete_request request_pb
|
480
|
+
def self.transcode_delete_request request_pb
|
482
481
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
483
482
|
.with_bindings(
|
484
483
|
uri_method: :delete,
|
@@ -500,7 +499,7 @@ module Google
|
|
500
499
|
# A request object representing the call parameters. Required.
|
501
500
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
502
501
|
# Uri, Body, Query string parameters
|
503
|
-
def transcode_get_request request_pb
|
502
|
+
def self.transcode_get_request request_pb
|
504
503
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
505
504
|
.with_bindings(
|
506
505
|
uri_method: :get,
|
@@ -522,7 +521,7 @@ module Google
|
|
522
521
|
# A request object representing the call parameters. Required.
|
523
522
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
524
523
|
# Uri, Body, Query string parameters
|
525
|
-
def transcode_insert_request request_pb
|
524
|
+
def self.transcode_insert_request request_pb
|
526
525
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
527
526
|
.with_bindings(
|
528
527
|
uri_method: :post,
|
@@ -544,7 +543,7 @@ module Google
|
|
544
543
|
# A request object representing the call parameters. Required.
|
545
544
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
546
545
|
# Uri, Body, Query string parameters
|
547
|
-
def transcode_list_request request_pb
|
546
|
+
def self.transcode_list_request request_pb
|
548
547
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
549
548
|
.with_bindings(
|
550
549
|
uri_method: :get,
|
@@ -565,7 +564,7 @@ module Google
|
|
565
564
|
# A request object representing the call parameters. Required.
|
566
565
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
567
566
|
# Uri, Body, Query string parameters
|
568
|
-
def transcode_patch_request request_pb
|
567
|
+
def self.transcode_patch_request request_pb
|
569
568
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
570
569
|
.with_bindings(
|
571
570
|
uri_method: :patch,
|
@@ -588,7 +587,7 @@ module Google
|
|
588
587
|
# A request object representing the call parameters. Required.
|
589
588
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
590
589
|
# Uri, Body, Query string parameters
|
591
|
-
def transcode_set_certificate_map_request request_pb
|
590
|
+
def self.transcode_set_certificate_map_request request_pb
|
592
591
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
593
592
|
.with_bindings(
|
594
593
|
uri_method: :post,
|
@@ -611,7 +610,7 @@ module Google
|
|
611
610
|
# A request object representing the call parameters. Required.
|
612
611
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
613
612
|
# Uri, Body, Query string parameters
|
614
|
-
def transcode_set_quic_override_request request_pb
|
613
|
+
def self.transcode_set_quic_override_request request_pb
|
615
614
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
616
615
|
.with_bindings(
|
617
616
|
uri_method: :post,
|
@@ -634,7 +633,7 @@ module Google
|
|
634
633
|
# A request object representing the call parameters. Required.
|
635
634
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
636
635
|
# Uri, Body, Query string parameters
|
637
|
-
def transcode_set_ssl_certificates_request request_pb
|
636
|
+
def self.transcode_set_ssl_certificates_request request_pb
|
638
637
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
639
638
|
.with_bindings(
|
640
639
|
uri_method: :post,
|
@@ -657,7 +656,7 @@ module Google
|
|
657
656
|
# A request object representing the call parameters. Required.
|
658
657
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
659
658
|
# Uri, Body, Query string parameters
|
660
|
-
def transcode_set_ssl_policy_request request_pb
|
659
|
+
def self.transcode_set_ssl_policy_request request_pb
|
661
660
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
662
661
|
.with_bindings(
|
663
662
|
uri_method: :post,
|
@@ -680,7 +679,7 @@ module Google
|
|
680
679
|
# A request object representing the call parameters. Required.
|
681
680
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
682
681
|
# Uri, Body, Query string parameters
|
683
|
-
def transcode_set_url_map_request request_pb
|
682
|
+
def self.transcode_set_url_map_request request_pb
|
684
683
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
685
684
|
.with_bindings(
|
686
685
|
uri_method: :post,
|
@@ -16,12 +16,27 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/compute/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/compute/v1/target_https_proxies/credentials"
|
19
26
|
require "google/cloud/compute/v1/target_https_proxies/rest/client"
|
20
27
|
|
21
28
|
module Google
|
22
29
|
module Cloud
|
23
30
|
module Compute
|
24
31
|
module V1
|
32
|
+
##
|
33
|
+
# The TargetHttpsProxies API.
|
34
|
+
#
|
35
|
+
# To load this service and instantiate a REST client:
|
36
|
+
#
|
37
|
+
# require "google/cloud/compute/v1/target_https_proxies/rest"
|
38
|
+
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
39
|
+
#
|
25
40
|
module TargetHttpsProxies
|
26
41
|
# Client for the REST transport
|
27
42
|
module Rest
|
@@ -31,3 +46,6 @@ module Google
|
|
31
46
|
end
|
32
47
|
end
|
33
48
|
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
51
|
+
require "google/cloud/compute/v1/target_https_proxies/rest/helpers" if ::File.file? helper_path
|
@@ -31,9 +31,9 @@ module Google
|
|
31
31
|
##
|
32
32
|
# The TargetHttpsProxies API.
|
33
33
|
#
|
34
|
-
#
|
34
|
+
# @example Load this service and instantiate a REST client
|
35
35
|
#
|
36
|
-
# require "google/cloud/compute/v1/target_https_proxies"
|
36
|
+
# require "google/cloud/compute/v1/target_https_proxies/rest"
|
37
37
|
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
38
38
|
#
|
39
39
|
module TargetHttpsProxies
|
@@ -135,13 +135,22 @@ module Google
|
|
135
135
|
|
136
136
|
# Create credentials
|
137
137
|
credentials = @config.credentials
|
138
|
-
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
139
|
+
# but only if the default endpoint does not have a region prefix.
|
140
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
|
+
!@config.endpoint.split(".").first.include?("-")
|
142
|
+
credentials ||= Credentials.default scope: @config.scope,
|
143
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
139
144
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
140
145
|
credentials = Credentials.new credentials, scope: @config.scope
|
141
146
|
end
|
142
147
|
|
148
|
+
@quota_project_id = @config.quota_project
|
149
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
150
|
+
|
143
151
|
@zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
|
144
152
|
config.credentials = credentials
|
153
|
+
config.quota_project = @quota_project_id
|
145
154
|
config.endpoint = @config.endpoint
|
146
155
|
end
|
147
156
|
|
@@ -169,8 +178,6 @@ module Google
|
|
169
178
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
170
179
|
# @param options [::Gapic::CallOptions, ::Hash]
|
171
180
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
172
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
173
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
174
181
|
#
|
175
182
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
176
183
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -209,29 +216,29 @@ module Google
|
|
209
216
|
# Customize the options with defaults
|
210
217
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
211
218
|
|
212
|
-
# Set x-goog-api-client
|
219
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
213
220
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
214
221
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
215
222
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
216
223
|
transports_version_send: [:rest]
|
217
224
|
|
225
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
226
|
+
|
218
227
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
219
|
-
metadata: call_metadata
|
228
|
+
metadata: call_metadata,
|
229
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
220
230
|
|
221
231
|
options.apply_defaults timeout: @config.timeout,
|
222
|
-
metadata: @config.metadata
|
232
|
+
metadata: @config.metadata,
|
233
|
+
retry_policy: @config.retry_policy
|
223
234
|
|
224
235
|
@target_instances_stub.aggregated_list request, options do |result, response|
|
225
236
|
result = ::Gapic::Rest::PagedEnumerable.new @target_instances_stub, :aggregated_list, "items", request, result, options
|
226
237
|
yield result, response if block_given?
|
227
238
|
return result
|
228
239
|
end
|
229
|
-
rescue ::
|
230
|
-
|
231
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
232
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
233
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
234
|
-
end
|
240
|
+
rescue ::Gapic::Rest::Error => e
|
241
|
+
raise ::Google::Cloud::Error.from_error(e)
|
235
242
|
end
|
236
243
|
|
237
244
|
##
|
@@ -246,8 +253,6 @@ module Google
|
|
246
253
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
247
254
|
# @param options [::Gapic::CallOptions, ::Hash]
|
248
255
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
249
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
250
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
251
256
|
#
|
252
257
|
# @overload delete(project: nil, request_id: nil, target_instance: nil, zone: nil)
|
253
258
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -280,17 +285,21 @@ module Google
|
|
280
285
|
# Customize the options with defaults
|
281
286
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
282
287
|
|
283
|
-
# Set x-goog-api-client
|
288
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
284
289
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
285
290
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
286
291
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
287
292
|
transports_version_send: [:rest]
|
288
293
|
|
294
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
|
+
|
289
296
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
290
|
-
metadata: call_metadata
|
297
|
+
metadata: call_metadata,
|
298
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
291
299
|
|
292
300
|
options.apply_defaults timeout: @config.timeout,
|
293
|
-
metadata: @config.metadata
|
301
|
+
metadata: @config.metadata,
|
302
|
+
retry_policy: @config.retry_policy
|
294
303
|
|
295
304
|
@target_instances_stub.delete request, options do |result, response|
|
296
305
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -305,12 +314,8 @@ module Google
|
|
305
314
|
yield result, response if block_given?
|
306
315
|
return result
|
307
316
|
end
|
308
|
-
rescue ::
|
309
|
-
|
310
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
311
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
312
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
313
|
-
end
|
317
|
+
rescue ::Gapic::Rest::Error => e
|
318
|
+
raise ::Google::Cloud::Error.from_error(e)
|
314
319
|
end
|
315
320
|
|
316
321
|
##
|
@@ -325,8 +330,6 @@ module Google
|
|
325
330
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
326
331
|
# @param options [::Gapic::CallOptions, ::Hash]
|
327
332
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
328
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
329
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
330
333
|
#
|
331
334
|
# @overload get(project: nil, target_instance: nil, zone: nil)
|
332
335
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -357,28 +360,28 @@ module Google
|
|
357
360
|
# Customize the options with defaults
|
358
361
|
call_metadata = @config.rpcs.get.metadata.to_h
|
359
362
|
|
360
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
361
364
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
362
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
363
366
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
364
367
|
transports_version_send: [:rest]
|
365
368
|
|
369
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
370
|
+
|
366
371
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
367
|
-
metadata: call_metadata
|
372
|
+
metadata: call_metadata,
|
373
|
+
retry_policy: @config.rpcs.get.retry_policy
|
368
374
|
|
369
375
|
options.apply_defaults timeout: @config.timeout,
|
370
|
-
metadata: @config.metadata
|
376
|
+
metadata: @config.metadata,
|
377
|
+
retry_policy: @config.retry_policy
|
371
378
|
|
372
379
|
@target_instances_stub.get request, options do |result, response|
|
373
380
|
yield result, response if block_given?
|
374
381
|
return result
|
375
382
|
end
|
376
|
-
rescue ::
|
377
|
-
|
378
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
379
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
380
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
381
|
-
end
|
383
|
+
rescue ::Gapic::Rest::Error => e
|
384
|
+
raise ::Google::Cloud::Error.from_error(e)
|
382
385
|
end
|
383
386
|
|
384
387
|
##
|
@@ -393,8 +396,6 @@ module Google
|
|
393
396
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
394
397
|
# @param options [::Gapic::CallOptions, ::Hash]
|
395
398
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
396
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
397
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
398
399
|
#
|
399
400
|
# @overload insert(project: nil, request_id: nil, target_instance_resource: nil, zone: nil)
|
400
401
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -427,17 +428,21 @@ module Google
|
|
427
428
|
# Customize the options with defaults
|
428
429
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
429
430
|
|
430
|
-
# Set x-goog-api-client
|
431
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
431
432
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
432
433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
433
434
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
434
435
|
transports_version_send: [:rest]
|
435
436
|
|
437
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
438
|
+
|
436
439
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
437
|
-
metadata: call_metadata
|
440
|
+
metadata: call_metadata,
|
441
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
438
442
|
|
439
443
|
options.apply_defaults timeout: @config.timeout,
|
440
|
-
metadata: @config.metadata
|
444
|
+
metadata: @config.metadata,
|
445
|
+
retry_policy: @config.retry_policy
|
441
446
|
|
442
447
|
@target_instances_stub.insert request, options do |result, response|
|
443
448
|
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
@@ -452,12 +457,8 @@ module Google
|
|
452
457
|
yield result, response if block_given?
|
453
458
|
return result
|
454
459
|
end
|
455
|
-
rescue ::
|
456
|
-
|
457
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
458
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
459
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
460
|
-
end
|
460
|
+
rescue ::Gapic::Rest::Error => e
|
461
|
+
raise ::Google::Cloud::Error.from_error(e)
|
461
462
|
end
|
462
463
|
|
463
464
|
##
|
@@ -472,8 +473,6 @@ module Google
|
|
472
473
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
473
474
|
# @param options [::Gapic::CallOptions, ::Hash]
|
474
475
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
475
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
476
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
477
476
|
#
|
478
477
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
|
479
478
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -512,53 +511,59 @@ module Google
|
|
512
511
|
# Customize the options with defaults
|
513
512
|
call_metadata = @config.rpcs.list.metadata.to_h
|
514
513
|
|
515
|
-
# Set x-goog-api-client
|
514
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
516
515
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
517
516
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
518
517
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
519
518
|
transports_version_send: [:rest]
|
520
519
|
|
520
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
521
|
+
|
521
522
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
522
|
-
metadata: call_metadata
|
523
|
+
metadata: call_metadata,
|
524
|
+
retry_policy: @config.rpcs.list.retry_policy
|
523
525
|
|
524
526
|
options.apply_defaults timeout: @config.timeout,
|
525
|
-
metadata: @config.metadata
|
527
|
+
metadata: @config.metadata,
|
528
|
+
retry_policy: @config.retry_policy
|
526
529
|
|
527
530
|
@target_instances_stub.list request, options do |result, response|
|
528
531
|
result = ::Gapic::Rest::PagedEnumerable.new @target_instances_stub, :list, "items", request, result, options
|
529
532
|
yield result, response if block_given?
|
530
533
|
return result
|
531
534
|
end
|
532
|
-
rescue ::
|
533
|
-
|
534
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
535
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
536
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
537
|
-
end
|
535
|
+
rescue ::Gapic::Rest::Error => e
|
536
|
+
raise ::Google::Cloud::Error.from_error(e)
|
538
537
|
end
|
539
538
|
|
540
539
|
##
|
541
540
|
# Configuration class for the TargetInstances REST API.
|
542
541
|
#
|
543
542
|
# This class represents the configuration for TargetInstances REST,
|
544
|
-
# providing control over
|
543
|
+
# providing control over timeouts, retry behavior, logging, transport
|
544
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
545
|
+
# applied individually to specific RPCs. See
|
546
|
+
# {::Google::Cloud::Compute::V1::TargetInstances::Rest::Client::Configuration::Rpcs}
|
547
|
+
# for a list of RPCs that can be configured independently.
|
545
548
|
#
|
546
549
|
# Configuration can be applied globally to all clients, or to a single client
|
547
550
|
# on construction.
|
548
551
|
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
552
|
-
#
|
553
|
-
# ::Google::Cloud::Compute::V1::TargetInstances::Client.configure do |config|
|
554
|
-
# config.timeout = 10.0
|
555
|
-
# end
|
552
|
+
# @example
|
556
553
|
#
|
557
|
-
#
|
554
|
+
# # Modify the global config, setting the timeout for
|
555
|
+
# # aggregated_list to 20 seconds,
|
556
|
+
# # and all remaining timeouts to 10 seconds.
|
557
|
+
# ::Google::Cloud::Compute::V1::TargetInstances::Rest::Client.configure do |config|
|
558
|
+
# config.timeout = 10.0
|
559
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
560
|
+
# end
|
558
561
|
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
+
# # Apply the above configuration only to a new client.
|
563
|
+
# client = ::Google::Cloud::Compute::V1::TargetInstances::Rest::Client.new do |config|
|
564
|
+
# config.timeout = 10.0
|
565
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
566
|
+
# end
|
562
567
|
#
|
563
568
|
# @!attribute [rw] endpoint
|
564
569
|
# The hostname or hostname:port of the service endpoint.
|
@@ -587,8 +592,19 @@ module Google
|
|
587
592
|
# The call timeout in seconds.
|
588
593
|
# @return [::Numeric]
|
589
594
|
# @!attribute [rw] metadata
|
590
|
-
# Additional
|
595
|
+
# Additional headers to be sent with the call.
|
591
596
|
# @return [::Hash{::Symbol=>::String}]
|
597
|
+
# @!attribute [rw] retry_policy
|
598
|
+
# The retry policy. The value is a hash with the following keys:
|
599
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
600
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
601
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
602
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
603
|
+
# trigger a retry.
|
604
|
+
# @return [::Hash]
|
605
|
+
# @!attribute [rw] quota_project
|
606
|
+
# A separate project against which to charge quota.
|
607
|
+
# @return [::String]
|
592
608
|
#
|
593
609
|
class Configuration
|
594
610
|
extend ::Gapic::Config
|
@@ -603,6 +619,8 @@ module Google
|
|
603
619
|
config_attr :lib_version, nil, ::String, nil
|
604
620
|
config_attr :timeout, nil, ::Numeric, nil
|
605
621
|
config_attr :metadata, nil, ::Hash, nil
|
622
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
623
|
+
config_attr :quota_project, nil, ::String, nil
|
606
624
|
|
607
625
|
# @private
|
608
626
|
def initialize parent_config = nil
|
@@ -631,9 +649,14 @@ module Google
|
|
631
649
|
# the following configuration fields:
|
632
650
|
#
|
633
651
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
634
|
-
#
|
635
|
-
#
|
636
|
-
#
|
652
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
653
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
654
|
+
# include the following keys:
|
655
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
656
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
657
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
658
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
659
|
+
# trigger a retry.
|
637
660
|
#
|
638
661
|
class Rpcs
|
639
662
|
##
|