google-cloud-compute-v1 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +20 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +176 -171
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +31 -32
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +194 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disks.rb +2 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +212 -215
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +39 -40
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +94 -72
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +58 -28
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +2 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/images.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +230 -237
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +43 -44
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +461 -514
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +93 -94
- data/lib/google/cloud/compute/v1/instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instances.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -100
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +2 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/licenses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/licenses.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +2 -2
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +945 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +527 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_attachments.rb +47 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +194 -193
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +35 -36
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/networks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/networks.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/node_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_types.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/projects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/projects.rb +2 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +221 -226
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +41 -42
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +59 -28
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +203 -204
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +37 -38
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +2 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/regions/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/regions.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/reservations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/reservations.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/rest.rb +124 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/routers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routers.rb +2 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/routes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routes.rb +2 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +2 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +2 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -83
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +72 -15
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +2 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/zones/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zones.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +3 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +536 -28
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -155,13 +155,22 @@ module Google
|
|
155
155
|
|
156
156
|
# Create credentials
|
157
157
|
credentials = @config.credentials
|
158
|
-
|
158
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
|
+
# but only if the default endpoint does not have a region prefix.
|
160
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
161
|
+
!@config.endpoint.split(".").first.include?("-")
|
162
|
+
credentials ||= Credentials.default scope: @config.scope,
|
163
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
159
164
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
160
165
|
credentials = Credentials.new credentials, scope: @config.scope
|
161
166
|
end
|
162
167
|
|
168
|
+
@quota_project_id = @config.quota_project
|
169
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
170
|
+
|
163
171
|
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
164
172
|
config.credentials = credentials
|
173
|
+
config.quota_project = @quota_project_id
|
165
174
|
config.endpoint = @config.endpoint
|
166
175
|
end
|
167
176
|
|
@@ -189,8 +198,6 @@ module Google
|
|
189
198
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
190
199
|
# @param options [::Gapic::CallOptions, ::Hash]
|
191
200
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
192
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
193
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
194
201
|
#
|
195
202
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
196
203
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -229,29 +236,29 @@ module Google
|
|
229
236
|
# Customize the options with defaults
|
230
237
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
231
238
|
|
232
|
-
# Set x-goog-api-client
|
239
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
233
240
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
234
241
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
235
242
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
236
243
|
transports_version_send: [:rest]
|
237
244
|
|
245
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
246
|
+
|
238
247
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
239
|
-
metadata: call_metadata
|
248
|
+
metadata: call_metadata,
|
249
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
240
250
|
|
241
251
|
options.apply_defaults timeout: @config.timeout,
|
242
|
-
metadata: @config.metadata
|
252
|
+
metadata: @config.metadata,
|
253
|
+
retry_policy: @config.retry_policy
|
243
254
|
|
244
255
|
@subnetworks_stub.aggregated_list request, options do |result, response|
|
245
256
|
result = ::Gapic::Rest::PagedEnumerable.new @subnetworks_stub, :aggregated_list, "items", request, result, options
|
246
257
|
yield result, response if block_given?
|
247
258
|
return result
|
248
259
|
end
|
249
|
-
rescue ::
|
250
|
-
|
251
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
252
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
253
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
254
|
-
end
|
260
|
+
rescue ::Gapic::Rest::Error => e
|
261
|
+
raise ::Google::Cloud::Error.from_error(e)
|
255
262
|
end
|
256
263
|
|
257
264
|
##
|
@@ -266,8 +273,6 @@ module Google
|
|
266
273
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
267
274
|
# @param options [::Gapic::CallOptions, ::Hash]
|
268
275
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
269
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
270
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
271
276
|
#
|
272
277
|
# @overload delete(project: nil, region: nil, request_id: nil, subnetwork: nil)
|
273
278
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -300,17 +305,21 @@ module Google
|
|
300
305
|
# Customize the options with defaults
|
301
306
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
302
307
|
|
303
|
-
# Set x-goog-api-client
|
308
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
304
309
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
305
310
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
306
311
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
307
312
|
transports_version_send: [:rest]
|
308
313
|
|
314
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
315
|
+
|
309
316
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
310
|
-
metadata: call_metadata
|
317
|
+
metadata: call_metadata,
|
318
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
311
319
|
|
312
320
|
options.apply_defaults timeout: @config.timeout,
|
313
|
-
metadata: @config.metadata
|
321
|
+
metadata: @config.metadata,
|
322
|
+
retry_policy: @config.retry_policy
|
314
323
|
|
315
324
|
@subnetworks_stub.delete request, options do |result, response|
|
316
325
|
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
@@ -325,12 +334,8 @@ module Google
|
|
325
334
|
yield result, response if block_given?
|
326
335
|
return result
|
327
336
|
end
|
328
|
-
rescue ::
|
329
|
-
|
330
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
331
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
332
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
333
|
-
end
|
337
|
+
rescue ::Gapic::Rest::Error => e
|
338
|
+
raise ::Google::Cloud::Error.from_error(e)
|
334
339
|
end
|
335
340
|
|
336
341
|
##
|
@@ -345,8 +350,6 @@ module Google
|
|
345
350
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
346
351
|
# @param options [::Gapic::CallOptions, ::Hash]
|
347
352
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
348
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
349
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
350
353
|
#
|
351
354
|
# @overload expand_ip_cidr_range(project: nil, region: nil, request_id: nil, subnetwork: nil, subnetworks_expand_ip_cidr_range_request_resource: nil)
|
352
355
|
# Pass arguments to `expand_ip_cidr_range` via keyword arguments. Note that at
|
@@ -381,17 +384,21 @@ module Google
|
|
381
384
|
# Customize the options with defaults
|
382
385
|
call_metadata = @config.rpcs.expand_ip_cidr_range.metadata.to_h
|
383
386
|
|
384
|
-
# Set x-goog-api-client
|
387
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
385
388
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
386
389
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
387
390
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
388
391
|
transports_version_send: [:rest]
|
389
392
|
|
393
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
394
|
+
|
390
395
|
options.apply_defaults timeout: @config.rpcs.expand_ip_cidr_range.timeout,
|
391
|
-
metadata: call_metadata
|
396
|
+
metadata: call_metadata,
|
397
|
+
retry_policy: @config.rpcs.expand_ip_cidr_range.retry_policy
|
392
398
|
|
393
399
|
options.apply_defaults timeout: @config.timeout,
|
394
|
-
metadata: @config.metadata
|
400
|
+
metadata: @config.metadata,
|
401
|
+
retry_policy: @config.retry_policy
|
395
402
|
|
396
403
|
@subnetworks_stub.expand_ip_cidr_range request, options do |result, response|
|
397
404
|
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
@@ -406,12 +413,8 @@ module Google
|
|
406
413
|
yield result, response if block_given?
|
407
414
|
return result
|
408
415
|
end
|
409
|
-
rescue ::
|
410
|
-
|
411
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
412
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
413
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
414
|
-
end
|
416
|
+
rescue ::Gapic::Rest::Error => e
|
417
|
+
raise ::Google::Cloud::Error.from_error(e)
|
415
418
|
end
|
416
419
|
|
417
420
|
##
|
@@ -426,8 +429,6 @@ module Google
|
|
426
429
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
427
430
|
# @param options [::Gapic::CallOptions, ::Hash]
|
428
431
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
429
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
430
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
431
432
|
#
|
432
433
|
# @overload get(project: nil, region: nil, subnetwork: nil)
|
433
434
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -458,28 +459,28 @@ module Google
|
|
458
459
|
# Customize the options with defaults
|
459
460
|
call_metadata = @config.rpcs.get.metadata.to_h
|
460
461
|
|
461
|
-
# Set x-goog-api-client
|
462
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
462
463
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
463
464
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
464
465
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
465
466
|
transports_version_send: [:rest]
|
466
467
|
|
468
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
469
|
+
|
467
470
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
468
|
-
metadata: call_metadata
|
471
|
+
metadata: call_metadata,
|
472
|
+
retry_policy: @config.rpcs.get.retry_policy
|
469
473
|
|
470
474
|
options.apply_defaults timeout: @config.timeout,
|
471
|
-
metadata: @config.metadata
|
475
|
+
metadata: @config.metadata,
|
476
|
+
retry_policy: @config.retry_policy
|
472
477
|
|
473
478
|
@subnetworks_stub.get request, options do |result, response|
|
474
479
|
yield result, response if block_given?
|
475
480
|
return result
|
476
481
|
end
|
477
|
-
rescue ::
|
478
|
-
|
479
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
480
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
481
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
482
|
-
end
|
482
|
+
rescue ::Gapic::Rest::Error => e
|
483
|
+
raise ::Google::Cloud::Error.from_error(e)
|
483
484
|
end
|
484
485
|
|
485
486
|
##
|
@@ -494,8 +495,6 @@ module Google
|
|
494
495
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
495
496
|
# @param options [::Gapic::CallOptions, ::Hash]
|
496
497
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
497
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
498
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
499
498
|
#
|
500
499
|
# @overload get_iam_policy(options_requested_policy_version: nil, project: nil, region: nil, resource: nil)
|
501
500
|
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
@@ -528,28 +527,28 @@ module Google
|
|
528
527
|
# Customize the options with defaults
|
529
528
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
530
529
|
|
531
|
-
# Set x-goog-api-client
|
530
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
532
531
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
533
532
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
534
533
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
535
534
|
transports_version_send: [:rest]
|
536
535
|
|
536
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
537
|
+
|
537
538
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
538
|
-
metadata: call_metadata
|
539
|
+
metadata: call_metadata,
|
540
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
539
541
|
|
540
542
|
options.apply_defaults timeout: @config.timeout,
|
541
|
-
metadata: @config.metadata
|
543
|
+
metadata: @config.metadata,
|
544
|
+
retry_policy: @config.retry_policy
|
542
545
|
|
543
546
|
@subnetworks_stub.get_iam_policy request, options do |result, response|
|
544
547
|
yield result, response if block_given?
|
545
548
|
return result
|
546
549
|
end
|
547
|
-
rescue ::
|
548
|
-
|
549
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
550
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
551
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
552
|
-
end
|
550
|
+
rescue ::Gapic::Rest::Error => e
|
551
|
+
raise ::Google::Cloud::Error.from_error(e)
|
553
552
|
end
|
554
553
|
|
555
554
|
##
|
@@ -564,8 +563,6 @@ module Google
|
|
564
563
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
565
564
|
# @param options [::Gapic::CallOptions, ::Hash]
|
566
565
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
567
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
568
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
569
566
|
#
|
570
567
|
# @overload insert(project: nil, region: nil, request_id: nil, subnetwork_resource: nil)
|
571
568
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -598,17 +595,21 @@ module Google
|
|
598
595
|
# Customize the options with defaults
|
599
596
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
600
597
|
|
601
|
-
# Set x-goog-api-client
|
598
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
602
599
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
603
600
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
604
601
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
605
602
|
transports_version_send: [:rest]
|
606
603
|
|
604
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
605
|
+
|
607
606
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
608
|
-
metadata: call_metadata
|
607
|
+
metadata: call_metadata,
|
608
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
609
609
|
|
610
610
|
options.apply_defaults timeout: @config.timeout,
|
611
|
-
metadata: @config.metadata
|
611
|
+
metadata: @config.metadata,
|
612
|
+
retry_policy: @config.retry_policy
|
612
613
|
|
613
614
|
@subnetworks_stub.insert request, options do |result, response|
|
614
615
|
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
@@ -623,12 +624,8 @@ module Google
|
|
623
624
|
yield result, response if block_given?
|
624
625
|
return result
|
625
626
|
end
|
626
|
-
rescue ::
|
627
|
-
|
628
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
629
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
630
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
631
|
-
end
|
627
|
+
rescue ::Gapic::Rest::Error => e
|
628
|
+
raise ::Google::Cloud::Error.from_error(e)
|
632
629
|
end
|
633
630
|
|
634
631
|
##
|
@@ -643,8 +640,6 @@ module Google
|
|
643
640
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
644
641
|
# @param options [::Gapic::CallOptions, ::Hash]
|
645
642
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
646
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
647
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
648
643
|
#
|
649
644
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
|
650
645
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -683,29 +678,29 @@ module Google
|
|
683
678
|
# Customize the options with defaults
|
684
679
|
call_metadata = @config.rpcs.list.metadata.to_h
|
685
680
|
|
686
|
-
# Set x-goog-api-client
|
681
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
687
682
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
688
683
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
689
684
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
690
685
|
transports_version_send: [:rest]
|
691
686
|
|
687
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
688
|
+
|
692
689
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
693
|
-
metadata: call_metadata
|
690
|
+
metadata: call_metadata,
|
691
|
+
retry_policy: @config.rpcs.list.retry_policy
|
694
692
|
|
695
693
|
options.apply_defaults timeout: @config.timeout,
|
696
|
-
metadata: @config.metadata
|
694
|
+
metadata: @config.metadata,
|
695
|
+
retry_policy: @config.retry_policy
|
697
696
|
|
698
697
|
@subnetworks_stub.list request, options do |result, response|
|
699
698
|
result = ::Gapic::Rest::PagedEnumerable.new @subnetworks_stub, :list, "items", request, result, options
|
700
699
|
yield result, response if block_given?
|
701
700
|
return result
|
702
701
|
end
|
703
|
-
rescue ::
|
704
|
-
|
705
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
706
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
707
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
708
|
-
end
|
702
|
+
rescue ::Gapic::Rest::Error => e
|
703
|
+
raise ::Google::Cloud::Error.from_error(e)
|
709
704
|
end
|
710
705
|
|
711
706
|
##
|
@@ -720,8 +715,6 @@ module Google
|
|
720
715
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
721
716
|
# @param options [::Gapic::CallOptions, ::Hash]
|
722
717
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
723
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
724
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
725
718
|
#
|
726
719
|
# @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
727
720
|
# Pass arguments to `list_usable` via keyword arguments. Note that at
|
@@ -758,29 +751,29 @@ module Google
|
|
758
751
|
# Customize the options with defaults
|
759
752
|
call_metadata = @config.rpcs.list_usable.metadata.to_h
|
760
753
|
|
761
|
-
# Set x-goog-api-client
|
754
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
762
755
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
763
756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
764
757
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
765
758
|
transports_version_send: [:rest]
|
766
759
|
|
760
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
761
|
+
|
767
762
|
options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
|
768
|
-
metadata: call_metadata
|
763
|
+
metadata: call_metadata,
|
764
|
+
retry_policy: @config.rpcs.list_usable.retry_policy
|
769
765
|
|
770
766
|
options.apply_defaults timeout: @config.timeout,
|
771
|
-
metadata: @config.metadata
|
767
|
+
metadata: @config.metadata,
|
768
|
+
retry_policy: @config.retry_policy
|
772
769
|
|
773
770
|
@subnetworks_stub.list_usable request, options do |result, response|
|
774
771
|
result = ::Gapic::Rest::PagedEnumerable.new @subnetworks_stub, :list_usable, "items", request, result, options
|
775
772
|
yield result, response if block_given?
|
776
773
|
return result
|
777
774
|
end
|
778
|
-
rescue ::
|
779
|
-
|
780
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
781
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
782
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
783
|
-
end
|
775
|
+
rescue ::Gapic::Rest::Error => e
|
776
|
+
raise ::Google::Cloud::Error.from_error(e)
|
784
777
|
end
|
785
778
|
|
786
779
|
##
|
@@ -795,8 +788,6 @@ module Google
|
|
795
788
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
796
789
|
# @param options [::Gapic::CallOptions, ::Hash]
|
797
790
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
798
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
799
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
800
791
|
#
|
801
792
|
# @overload patch(drain_timeout_seconds: nil, project: nil, region: nil, request_id: nil, subnetwork: nil, subnetwork_resource: nil)
|
802
793
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
@@ -833,17 +824,21 @@ module Google
|
|
833
824
|
# Customize the options with defaults
|
834
825
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
835
826
|
|
836
|
-
# Set x-goog-api-client
|
827
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
837
828
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
838
829
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
839
830
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
840
831
|
transports_version_send: [:rest]
|
841
832
|
|
833
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
834
|
+
|
842
835
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
843
|
-
metadata: call_metadata
|
836
|
+
metadata: call_metadata,
|
837
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
844
838
|
|
845
839
|
options.apply_defaults timeout: @config.timeout,
|
846
|
-
metadata: @config.metadata
|
840
|
+
metadata: @config.metadata,
|
841
|
+
retry_policy: @config.retry_policy
|
847
842
|
|
848
843
|
@subnetworks_stub.patch request, options do |result, response|
|
849
844
|
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
@@ -858,12 +853,8 @@ module Google
|
|
858
853
|
yield result, response if block_given?
|
859
854
|
return result
|
860
855
|
end
|
861
|
-
rescue ::
|
862
|
-
|
863
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
864
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
865
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
866
|
-
end
|
856
|
+
rescue ::Gapic::Rest::Error => e
|
857
|
+
raise ::Google::Cloud::Error.from_error(e)
|
867
858
|
end
|
868
859
|
|
869
860
|
##
|
@@ -878,8 +869,6 @@ module Google
|
|
878
869
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
879
870
|
# @param options [::Gapic::CallOptions, ::Hash]
|
880
871
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
881
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
882
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
883
872
|
#
|
884
873
|
# @overload set_iam_policy(project: nil, region: nil, region_set_policy_request_resource: nil, resource: nil)
|
885
874
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
@@ -912,28 +901,28 @@ module Google
|
|
912
901
|
# Customize the options with defaults
|
913
902
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
914
903
|
|
915
|
-
# Set x-goog-api-client
|
904
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
916
905
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
917
906
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
918
907
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
919
908
|
transports_version_send: [:rest]
|
920
909
|
|
910
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
911
|
+
|
921
912
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
922
|
-
metadata: call_metadata
|
913
|
+
metadata: call_metadata,
|
914
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
923
915
|
|
924
916
|
options.apply_defaults timeout: @config.timeout,
|
925
|
-
metadata: @config.metadata
|
917
|
+
metadata: @config.metadata,
|
918
|
+
retry_policy: @config.retry_policy
|
926
919
|
|
927
920
|
@subnetworks_stub.set_iam_policy request, options do |result, response|
|
928
921
|
yield result, response if block_given?
|
929
922
|
return result
|
930
923
|
end
|
931
|
-
rescue ::
|
932
|
-
|
933
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
934
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
935
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
936
|
-
end
|
924
|
+
rescue ::Gapic::Rest::Error => e
|
925
|
+
raise ::Google::Cloud::Error.from_error(e)
|
937
926
|
end
|
938
927
|
|
939
928
|
##
|
@@ -948,8 +937,6 @@ module Google
|
|
948
937
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
949
938
|
# @param options [::Gapic::CallOptions, ::Hash]
|
950
939
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
951
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
952
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
953
940
|
#
|
954
941
|
# @overload set_private_ip_google_access(project: nil, region: nil, request_id: nil, subnetwork: nil, subnetworks_set_private_ip_google_access_request_resource: nil)
|
955
942
|
# Pass arguments to `set_private_ip_google_access` via keyword arguments. Note that at
|
@@ -984,17 +971,21 @@ module Google
|
|
984
971
|
# Customize the options with defaults
|
985
972
|
call_metadata = @config.rpcs.set_private_ip_google_access.metadata.to_h
|
986
973
|
|
987
|
-
# Set x-goog-api-client
|
974
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
988
975
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
989
976
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
990
977
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
991
978
|
transports_version_send: [:rest]
|
992
979
|
|
980
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
981
|
+
|
993
982
|
options.apply_defaults timeout: @config.rpcs.set_private_ip_google_access.timeout,
|
994
|
-
metadata: call_metadata
|
983
|
+
metadata: call_metadata,
|
984
|
+
retry_policy: @config.rpcs.set_private_ip_google_access.retry_policy
|
995
985
|
|
996
986
|
options.apply_defaults timeout: @config.timeout,
|
997
|
-
metadata: @config.metadata
|
987
|
+
metadata: @config.metadata,
|
988
|
+
retry_policy: @config.retry_policy
|
998
989
|
|
999
990
|
@subnetworks_stub.set_private_ip_google_access request, options do |result, response|
|
1000
991
|
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
@@ -1009,12 +1000,8 @@ module Google
|
|
1009
1000
|
yield result, response if block_given?
|
1010
1001
|
return result
|
1011
1002
|
end
|
1012
|
-
rescue ::
|
1013
|
-
|
1014
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1015
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1016
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1017
|
-
end
|
1003
|
+
rescue ::Gapic::Rest::Error => e
|
1004
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1018
1005
|
end
|
1019
1006
|
|
1020
1007
|
##
|
@@ -1029,8 +1016,6 @@ module Google
|
|
1029
1016
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1030
1017
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1031
1018
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1032
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1033
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1034
1019
|
#
|
1035
1020
|
# @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
|
1036
1021
|
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
@@ -1063,52 +1048,58 @@ module Google
|
|
1063
1048
|
# Customize the options with defaults
|
1064
1049
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1065
1050
|
|
1066
|
-
# Set x-goog-api-client
|
1051
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1067
1052
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1068
1053
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1069
1054
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1070
1055
|
transports_version_send: [:rest]
|
1071
1056
|
|
1057
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1058
|
+
|
1072
1059
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1073
|
-
metadata: call_metadata
|
1060
|
+
metadata: call_metadata,
|
1061
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1074
1062
|
|
1075
1063
|
options.apply_defaults timeout: @config.timeout,
|
1076
|
-
metadata: @config.metadata
|
1064
|
+
metadata: @config.metadata,
|
1065
|
+
retry_policy: @config.retry_policy
|
1077
1066
|
|
1078
1067
|
@subnetworks_stub.test_iam_permissions request, options do |result, response|
|
1079
1068
|
yield result, response if block_given?
|
1080
1069
|
return result
|
1081
1070
|
end
|
1082
|
-
rescue ::
|
1083
|
-
|
1084
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1085
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1086
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1087
|
-
end
|
1071
|
+
rescue ::Gapic::Rest::Error => e
|
1072
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1088
1073
|
end
|
1089
1074
|
|
1090
1075
|
##
|
1091
1076
|
# Configuration class for the Subnetworks REST API.
|
1092
1077
|
#
|
1093
1078
|
# This class represents the configuration for Subnetworks REST,
|
1094
|
-
# providing control over
|
1079
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1080
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1081
|
+
# applied individually to specific RPCs. See
|
1082
|
+
# {::Google::Cloud::Compute::V1::Subnetworks::Rest::Client::Configuration::Rpcs}
|
1083
|
+
# for a list of RPCs that can be configured independently.
|
1095
1084
|
#
|
1096
1085
|
# Configuration can be applied globally to all clients, or to a single client
|
1097
1086
|
# on construction.
|
1098
1087
|
#
|
1099
|
-
#
|
1100
|
-
#
|
1101
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1102
|
-
#
|
1103
|
-
# ::Google::Cloud::Compute::V1::Subnetworks::Client.configure do |config|
|
1104
|
-
# config.timeout = 10.0
|
1105
|
-
# end
|
1088
|
+
# @example
|
1106
1089
|
#
|
1107
|
-
#
|
1090
|
+
# # Modify the global config, setting the timeout for
|
1091
|
+
# # aggregated_list to 20 seconds,
|
1092
|
+
# # and all remaining timeouts to 10 seconds.
|
1093
|
+
# ::Google::Cloud::Compute::V1::Subnetworks::Rest::Client.configure do |config|
|
1094
|
+
# config.timeout = 10.0
|
1095
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
1096
|
+
# end
|
1108
1097
|
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1098
|
+
# # Apply the above configuration only to a new client.
|
1099
|
+
# client = ::Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new do |config|
|
1100
|
+
# config.timeout = 10.0
|
1101
|
+
# config.rpcs.aggregated_list.timeout = 20.0
|
1102
|
+
# end
|
1112
1103
|
#
|
1113
1104
|
# @!attribute [rw] endpoint
|
1114
1105
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1137,8 +1128,19 @@ module Google
|
|
1137
1128
|
# The call timeout in seconds.
|
1138
1129
|
# @return [::Numeric]
|
1139
1130
|
# @!attribute [rw] metadata
|
1140
|
-
# Additional
|
1131
|
+
# Additional headers to be sent with the call.
|
1141
1132
|
# @return [::Hash{::Symbol=>::String}]
|
1133
|
+
# @!attribute [rw] retry_policy
|
1134
|
+
# The retry policy. The value is a hash with the following keys:
|
1135
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1136
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1137
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1138
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1139
|
+
# trigger a retry.
|
1140
|
+
# @return [::Hash]
|
1141
|
+
# @!attribute [rw] quota_project
|
1142
|
+
# A separate project against which to charge quota.
|
1143
|
+
# @return [::String]
|
1142
1144
|
#
|
1143
1145
|
class Configuration
|
1144
1146
|
extend ::Gapic::Config
|
@@ -1153,6 +1155,8 @@ module Google
|
|
1153
1155
|
config_attr :lib_version, nil, ::String, nil
|
1154
1156
|
config_attr :timeout, nil, ::Numeric, nil
|
1155
1157
|
config_attr :metadata, nil, ::Hash, nil
|
1158
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1159
|
+
config_attr :quota_project, nil, ::String, nil
|
1156
1160
|
|
1157
1161
|
# @private
|
1158
1162
|
def initialize parent_config = nil
|
@@ -1181,9 +1185,14 @@ module Google
|
|
1181
1185
|
# the following configuration fields:
|
1182
1186
|
#
|
1183
1187
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1184
|
-
#
|
1185
|
-
#
|
1186
|
-
#
|
1188
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1189
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1190
|
+
# include the following keys:
|
1191
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1192
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1193
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1194
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1195
|
+
# trigger a retry.
|
1187
1196
|
#
|
1188
1197
|
class Rpcs
|
1189
1198
|
##
|