google-cloud-compute-v1 1.7.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +20 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +176 -171
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +31 -32
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +260 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disks.rb +2 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +212 -215
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +39 -40
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +94 -72
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +58 -28
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +2 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/images.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +230 -237
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +43 -44
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +461 -514
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +93 -94
- data/lib/google/cloud/compute/v1/instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instances.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -100
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +2 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/licenses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/licenses.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +2 -2
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +945 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +527 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_attachments.rb +47 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +194 -193
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +35 -36
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/networks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/networks.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/node_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_types.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/projects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/projects.rb +2 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +221 -226
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +41 -42
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +59 -28
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +203 -204
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +37 -38
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +2 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +96 -73
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/regions/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/regions.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/reservations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/reservations.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/rest.rb +124 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/routers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routers.rb +2 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/routes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routes.rb +2 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +159 -150
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +2 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +2 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -83
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +72 -15
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +2 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/zones/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zones.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +3 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +761 -86
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -170,13 +170,22 @@ module Google
|
|
170
170
|
|
171
171
|
# Create credentials
|
172
172
|
credentials = @config.credentials
|
173
|
-
|
173
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
174
|
+
# but only if the default endpoint does not have a region prefix.
|
175
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
176
|
+
!@config.endpoint.split(".").first.include?("-")
|
177
|
+
credentials ||= Credentials.default scope: @config.scope,
|
178
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
174
179
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
175
180
|
credentials = Credentials.new credentials, scope: @config.scope
|
176
181
|
end
|
177
182
|
|
183
|
+
@quota_project_id = @config.quota_project
|
184
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
185
|
+
|
178
186
|
@global_organization_operations = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::Client.new do |config|
|
179
187
|
config.credentials = credentials
|
188
|
+
config.quota_project = @quota_project_id
|
180
189
|
config.endpoint = @config.endpoint
|
181
190
|
end
|
182
191
|
|
@@ -204,8 +213,6 @@ module Google
|
|
204
213
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
205
214
|
# @param options [::Gapic::CallOptions, ::Hash]
|
206
215
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
207
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
208
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
209
216
|
#
|
210
217
|
# @overload add_association(firewall_policy: nil, firewall_policy_association_resource: nil, replace_existing_association: nil, request_id: nil)
|
211
218
|
# Pass arguments to `add_association` via keyword arguments. Note that at
|
@@ -238,17 +245,21 @@ module Google
|
|
238
245
|
# Customize the options with defaults
|
239
246
|
call_metadata = @config.rpcs.add_association.metadata.to_h
|
240
247
|
|
241
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
242
249
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
251
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
245
252
|
transports_version_send: [:rest]
|
246
253
|
|
254
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
255
|
+
|
247
256
|
options.apply_defaults timeout: @config.rpcs.add_association.timeout,
|
248
|
-
metadata: call_metadata
|
257
|
+
metadata: call_metadata,
|
258
|
+
retry_policy: @config.rpcs.add_association.retry_policy
|
249
259
|
|
250
260
|
options.apply_defaults timeout: @config.timeout,
|
251
|
-
metadata: @config.metadata
|
261
|
+
metadata: @config.metadata,
|
262
|
+
retry_policy: @config.retry_policy
|
252
263
|
|
253
264
|
@firewall_policies_stub.add_association request, options do |result, response|
|
254
265
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -260,12 +271,8 @@ module Google
|
|
260
271
|
yield result, response if block_given?
|
261
272
|
return result
|
262
273
|
end
|
263
|
-
rescue ::
|
264
|
-
|
265
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
266
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
267
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
268
|
-
end
|
274
|
+
rescue ::Gapic::Rest::Error => e
|
275
|
+
raise ::Google::Cloud::Error.from_error(e)
|
269
276
|
end
|
270
277
|
|
271
278
|
##
|
@@ -280,8 +287,6 @@ module Google
|
|
280
287
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
281
288
|
# @param options [::Gapic::CallOptions, ::Hash]
|
282
289
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
283
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
284
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
285
290
|
#
|
286
291
|
# @overload add_rule(firewall_policy: nil, firewall_policy_rule_resource: nil, request_id: nil)
|
287
292
|
# Pass arguments to `add_rule` via keyword arguments. Note that at
|
@@ -312,17 +317,21 @@ module Google
|
|
312
317
|
# Customize the options with defaults
|
313
318
|
call_metadata = @config.rpcs.add_rule.metadata.to_h
|
314
319
|
|
315
|
-
# Set x-goog-api-client
|
320
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
316
321
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
317
322
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
318
323
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
319
324
|
transports_version_send: [:rest]
|
320
325
|
|
326
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
327
|
+
|
321
328
|
options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
|
322
|
-
metadata: call_metadata
|
329
|
+
metadata: call_metadata,
|
330
|
+
retry_policy: @config.rpcs.add_rule.retry_policy
|
323
331
|
|
324
332
|
options.apply_defaults timeout: @config.timeout,
|
325
|
-
metadata: @config.metadata
|
333
|
+
metadata: @config.metadata,
|
334
|
+
retry_policy: @config.retry_policy
|
326
335
|
|
327
336
|
@firewall_policies_stub.add_rule request, options do |result, response|
|
328
337
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -334,12 +343,8 @@ module Google
|
|
334
343
|
yield result, response if block_given?
|
335
344
|
return result
|
336
345
|
end
|
337
|
-
rescue ::
|
338
|
-
|
339
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
340
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
341
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
342
|
-
end
|
346
|
+
rescue ::Gapic::Rest::Error => e
|
347
|
+
raise ::Google::Cloud::Error.from_error(e)
|
343
348
|
end
|
344
349
|
|
345
350
|
##
|
@@ -354,8 +359,6 @@ module Google
|
|
354
359
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
355
360
|
# @param options [::Gapic::CallOptions, ::Hash]
|
356
361
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
357
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
358
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
359
362
|
#
|
360
363
|
# @overload clone_rules(firewall_policy: nil, request_id: nil, source_firewall_policy: nil)
|
361
364
|
# Pass arguments to `clone_rules` via keyword arguments. Note that at
|
@@ -386,17 +389,21 @@ module Google
|
|
386
389
|
# Customize the options with defaults
|
387
390
|
call_metadata = @config.rpcs.clone_rules.metadata.to_h
|
388
391
|
|
389
|
-
# Set x-goog-api-client
|
392
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
390
393
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
391
394
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
392
395
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
393
396
|
transports_version_send: [:rest]
|
394
397
|
|
398
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
|
+
|
395
400
|
options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
|
396
|
-
metadata: call_metadata
|
401
|
+
metadata: call_metadata,
|
402
|
+
retry_policy: @config.rpcs.clone_rules.retry_policy
|
397
403
|
|
398
404
|
options.apply_defaults timeout: @config.timeout,
|
399
|
-
metadata: @config.metadata
|
405
|
+
metadata: @config.metadata,
|
406
|
+
retry_policy: @config.retry_policy
|
400
407
|
|
401
408
|
@firewall_policies_stub.clone_rules request, options do |result, response|
|
402
409
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -408,12 +415,8 @@ module Google
|
|
408
415
|
yield result, response if block_given?
|
409
416
|
return result
|
410
417
|
end
|
411
|
-
rescue ::
|
412
|
-
|
413
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
414
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
415
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
416
|
-
end
|
418
|
+
rescue ::Gapic::Rest::Error => e
|
419
|
+
raise ::Google::Cloud::Error.from_error(e)
|
417
420
|
end
|
418
421
|
|
419
422
|
##
|
@@ -428,8 +431,6 @@ module Google
|
|
428
431
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
429
432
|
# @param options [::Gapic::CallOptions, ::Hash]
|
430
433
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
431
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
432
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
433
434
|
#
|
434
435
|
# @overload delete(firewall_policy: nil, request_id: nil)
|
435
436
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -458,17 +459,21 @@ module Google
|
|
458
459
|
# Customize the options with defaults
|
459
460
|
call_metadata = @config.rpcs.delete.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.delete.timeout,
|
468
|
-
metadata: call_metadata
|
471
|
+
metadata: call_metadata,
|
472
|
+
retry_policy: @config.rpcs.delete.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
|
@firewall_policies_stub.delete request, options do |result, response|
|
474
479
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -480,12 +485,8 @@ module Google
|
|
480
485
|
yield result, response if block_given?
|
481
486
|
return result
|
482
487
|
end
|
483
|
-
rescue ::
|
484
|
-
|
485
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
486
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
487
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
488
|
-
end
|
488
|
+
rescue ::Gapic::Rest::Error => e
|
489
|
+
raise ::Google::Cloud::Error.from_error(e)
|
489
490
|
end
|
490
491
|
|
491
492
|
##
|
@@ -500,8 +501,6 @@ module Google
|
|
500
501
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
501
502
|
# @param options [::Gapic::CallOptions, ::Hash]
|
502
503
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
503
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
504
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
505
504
|
#
|
506
505
|
# @overload get(firewall_policy: nil)
|
507
506
|
# Pass arguments to `get` 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.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.timeout,
|
538
|
-
metadata: call_metadata
|
539
|
+
metadata: call_metadata,
|
540
|
+
retry_policy: @config.rpcs.get.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
|
@firewall_policies_stub.get 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 get_association(firewall_policy: nil, name: nil)
|
571
568
|
# Pass arguments to `get_association` via keyword arguments. Note that at
|
@@ -594,28 +591,28 @@ module Google
|
|
594
591
|
# Customize the options with defaults
|
595
592
|
call_metadata = @config.rpcs.get_association.metadata.to_h
|
596
593
|
|
597
|
-
# Set x-goog-api-client
|
594
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
598
595
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
599
596
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
600
597
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
601
598
|
transports_version_send: [:rest]
|
602
599
|
|
600
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
601
|
+
|
603
602
|
options.apply_defaults timeout: @config.rpcs.get_association.timeout,
|
604
|
-
metadata: call_metadata
|
603
|
+
metadata: call_metadata,
|
604
|
+
retry_policy: @config.rpcs.get_association.retry_policy
|
605
605
|
|
606
606
|
options.apply_defaults timeout: @config.timeout,
|
607
|
-
metadata: @config.metadata
|
607
|
+
metadata: @config.metadata,
|
608
|
+
retry_policy: @config.retry_policy
|
608
609
|
|
609
610
|
@firewall_policies_stub.get_association request, options do |result, response|
|
610
611
|
yield result, response if block_given?
|
611
612
|
return result
|
612
613
|
end
|
613
|
-
rescue ::
|
614
|
-
|
615
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
616
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
617
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
618
|
-
end
|
614
|
+
rescue ::Gapic::Rest::Error => e
|
615
|
+
raise ::Google::Cloud::Error.from_error(e)
|
619
616
|
end
|
620
617
|
|
621
618
|
##
|
@@ -630,8 +627,6 @@ module Google
|
|
630
627
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
631
628
|
# @param options [::Gapic::CallOptions, ::Hash]
|
632
629
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
633
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
634
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
635
630
|
#
|
636
631
|
# @overload get_iam_policy(options_requested_policy_version: nil, resource: nil)
|
637
632
|
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
@@ -660,28 +655,28 @@ module Google
|
|
660
655
|
# Customize the options with defaults
|
661
656
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
662
657
|
|
663
|
-
# Set x-goog-api-client
|
658
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
664
659
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
665
660
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
666
661
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
667
662
|
transports_version_send: [:rest]
|
668
663
|
|
664
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
665
|
+
|
669
666
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
670
|
-
metadata: call_metadata
|
667
|
+
metadata: call_metadata,
|
668
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
671
669
|
|
672
670
|
options.apply_defaults timeout: @config.timeout,
|
673
|
-
metadata: @config.metadata
|
671
|
+
metadata: @config.metadata,
|
672
|
+
retry_policy: @config.retry_policy
|
674
673
|
|
675
674
|
@firewall_policies_stub.get_iam_policy request, options do |result, response|
|
676
675
|
yield result, response if block_given?
|
677
676
|
return result
|
678
677
|
end
|
679
|
-
rescue ::
|
680
|
-
|
681
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
682
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
683
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
684
|
-
end
|
678
|
+
rescue ::Gapic::Rest::Error => e
|
679
|
+
raise ::Google::Cloud::Error.from_error(e)
|
685
680
|
end
|
686
681
|
|
687
682
|
##
|
@@ -696,8 +691,6 @@ module Google
|
|
696
691
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
697
692
|
# @param options [::Gapic::CallOptions, ::Hash]
|
698
693
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
699
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
700
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
701
694
|
#
|
702
695
|
# @overload get_rule(firewall_policy: nil, priority: nil)
|
703
696
|
# Pass arguments to `get_rule` via keyword arguments. Note that at
|
@@ -726,28 +719,28 @@ module Google
|
|
726
719
|
# Customize the options with defaults
|
727
720
|
call_metadata = @config.rpcs.get_rule.metadata.to_h
|
728
721
|
|
729
|
-
# Set x-goog-api-client
|
722
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
730
723
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
731
724
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
732
725
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
733
726
|
transports_version_send: [:rest]
|
734
727
|
|
728
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
729
|
+
|
735
730
|
options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
|
736
|
-
metadata: call_metadata
|
731
|
+
metadata: call_metadata,
|
732
|
+
retry_policy: @config.rpcs.get_rule.retry_policy
|
737
733
|
|
738
734
|
options.apply_defaults timeout: @config.timeout,
|
739
|
-
metadata: @config.metadata
|
735
|
+
metadata: @config.metadata,
|
736
|
+
retry_policy: @config.retry_policy
|
740
737
|
|
741
738
|
@firewall_policies_stub.get_rule request, options do |result, response|
|
742
739
|
yield result, response if block_given?
|
743
740
|
return result
|
744
741
|
end
|
745
|
-
rescue ::
|
746
|
-
|
747
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
748
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
749
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
750
|
-
end
|
742
|
+
rescue ::Gapic::Rest::Error => e
|
743
|
+
raise ::Google::Cloud::Error.from_error(e)
|
751
744
|
end
|
752
745
|
|
753
746
|
##
|
@@ -762,8 +755,6 @@ module Google
|
|
762
755
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
763
756
|
# @param options [::Gapic::CallOptions, ::Hash]
|
764
757
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
765
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
766
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
767
758
|
#
|
768
759
|
# @overload insert(firewall_policy_resource: nil, parent_id: nil, request_id: nil)
|
769
760
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -794,17 +785,21 @@ module Google
|
|
794
785
|
# Customize the options with defaults
|
795
786
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
796
787
|
|
797
|
-
# Set x-goog-api-client
|
788
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
798
789
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
799
790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
800
791
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
801
792
|
transports_version_send: [:rest]
|
802
793
|
|
794
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
795
|
+
|
803
796
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
804
|
-
metadata: call_metadata
|
797
|
+
metadata: call_metadata,
|
798
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
805
799
|
|
806
800
|
options.apply_defaults timeout: @config.timeout,
|
807
|
-
metadata: @config.metadata
|
801
|
+
metadata: @config.metadata,
|
802
|
+
retry_policy: @config.retry_policy
|
808
803
|
|
809
804
|
@firewall_policies_stub.insert request, options do |result, response|
|
810
805
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -818,12 +813,8 @@ module Google
|
|
818
813
|
yield result, response if block_given?
|
819
814
|
return result
|
820
815
|
end
|
821
|
-
rescue ::
|
822
|
-
|
823
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
824
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
825
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
826
|
-
end
|
816
|
+
rescue ::Gapic::Rest::Error => e
|
817
|
+
raise ::Google::Cloud::Error.from_error(e)
|
827
818
|
end
|
828
819
|
|
829
820
|
##
|
@@ -838,8 +829,6 @@ module Google
|
|
838
829
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
839
830
|
# @param options [::Gapic::CallOptions, ::Hash]
|
840
831
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
841
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
842
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
843
832
|
#
|
844
833
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil)
|
845
834
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -876,29 +865,29 @@ module Google
|
|
876
865
|
# Customize the options with defaults
|
877
866
|
call_metadata = @config.rpcs.list.metadata.to_h
|
878
867
|
|
879
|
-
# Set x-goog-api-client
|
868
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
880
869
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
881
870
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
882
871
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
883
872
|
transports_version_send: [:rest]
|
884
873
|
|
874
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
875
|
+
|
885
876
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
886
|
-
metadata: call_metadata
|
877
|
+
metadata: call_metadata,
|
878
|
+
retry_policy: @config.rpcs.list.retry_policy
|
887
879
|
|
888
880
|
options.apply_defaults timeout: @config.timeout,
|
889
|
-
metadata: @config.metadata
|
881
|
+
metadata: @config.metadata,
|
882
|
+
retry_policy: @config.retry_policy
|
890
883
|
|
891
884
|
@firewall_policies_stub.list request, options do |result, response|
|
892
885
|
result = ::Gapic::Rest::PagedEnumerable.new @firewall_policies_stub, :list, "items", request, result, options
|
893
886
|
yield result, response if block_given?
|
894
887
|
return result
|
895
888
|
end
|
896
|
-
rescue ::
|
897
|
-
|
898
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
899
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
900
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
901
|
-
end
|
889
|
+
rescue ::Gapic::Rest::Error => e
|
890
|
+
raise ::Google::Cloud::Error.from_error(e)
|
902
891
|
end
|
903
892
|
|
904
893
|
##
|
@@ -913,8 +902,6 @@ module Google
|
|
913
902
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
914
903
|
# @param options [::Gapic::CallOptions, ::Hash]
|
915
904
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
916
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
917
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
918
905
|
#
|
919
906
|
# @overload list_associations(target_resource: nil)
|
920
907
|
# Pass arguments to `list_associations` via keyword arguments. Note that at
|
@@ -941,28 +928,28 @@ module Google
|
|
941
928
|
# Customize the options with defaults
|
942
929
|
call_metadata = @config.rpcs.list_associations.metadata.to_h
|
943
930
|
|
944
|
-
# Set x-goog-api-client
|
931
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
945
932
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
946
933
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
947
934
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
948
935
|
transports_version_send: [:rest]
|
949
936
|
|
937
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
938
|
+
|
950
939
|
options.apply_defaults timeout: @config.rpcs.list_associations.timeout,
|
951
|
-
metadata: call_metadata
|
940
|
+
metadata: call_metadata,
|
941
|
+
retry_policy: @config.rpcs.list_associations.retry_policy
|
952
942
|
|
953
943
|
options.apply_defaults timeout: @config.timeout,
|
954
|
-
metadata: @config.metadata
|
944
|
+
metadata: @config.metadata,
|
945
|
+
retry_policy: @config.retry_policy
|
955
946
|
|
956
947
|
@firewall_policies_stub.list_associations request, options do |result, response|
|
957
948
|
yield result, response if block_given?
|
958
949
|
return result
|
959
950
|
end
|
960
|
-
rescue ::
|
961
|
-
|
962
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
963
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
964
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
965
|
-
end
|
951
|
+
rescue ::Gapic::Rest::Error => e
|
952
|
+
raise ::Google::Cloud::Error.from_error(e)
|
966
953
|
end
|
967
954
|
|
968
955
|
##
|
@@ -977,8 +964,6 @@ module Google
|
|
977
964
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
978
965
|
# @param options [::Gapic::CallOptions, ::Hash]
|
979
966
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
980
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
981
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
982
967
|
#
|
983
968
|
# @overload move(firewall_policy: nil, parent_id: nil, request_id: nil)
|
984
969
|
# Pass arguments to `move` via keyword arguments. Note that at
|
@@ -1009,17 +994,21 @@ module Google
|
|
1009
994
|
# Customize the options with defaults
|
1010
995
|
call_metadata = @config.rpcs.move.metadata.to_h
|
1011
996
|
|
1012
|
-
# Set x-goog-api-client
|
997
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1013
998
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1014
999
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1015
1000
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1016
1001
|
transports_version_send: [:rest]
|
1017
1002
|
|
1003
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1004
|
+
|
1018
1005
|
options.apply_defaults timeout: @config.rpcs.move.timeout,
|
1019
|
-
metadata: call_metadata
|
1006
|
+
metadata: call_metadata,
|
1007
|
+
retry_policy: @config.rpcs.move.retry_policy
|
1020
1008
|
|
1021
1009
|
options.apply_defaults timeout: @config.timeout,
|
1022
|
-
metadata: @config.metadata
|
1010
|
+
metadata: @config.metadata,
|
1011
|
+
retry_policy: @config.retry_policy
|
1023
1012
|
|
1024
1013
|
@firewall_policies_stub.move request, options do |result, response|
|
1025
1014
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -1033,12 +1022,8 @@ module Google
|
|
1033
1022
|
yield result, response if block_given?
|
1034
1023
|
return result
|
1035
1024
|
end
|
1036
|
-
rescue ::
|
1037
|
-
|
1038
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1039
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1040
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1041
|
-
end
|
1025
|
+
rescue ::Gapic::Rest::Error => e
|
1026
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1042
1027
|
end
|
1043
1028
|
|
1044
1029
|
##
|
@@ -1053,8 +1038,6 @@ module Google
|
|
1053
1038
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1054
1039
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1055
1040
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1056
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1057
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1058
1041
|
#
|
1059
1042
|
# @overload patch(firewall_policy: nil, firewall_policy_resource: nil, request_id: nil)
|
1060
1043
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
@@ -1085,17 +1068,21 @@ module Google
|
|
1085
1068
|
# Customize the options with defaults
|
1086
1069
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
1087
1070
|
|
1088
|
-
# Set x-goog-api-client
|
1071
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1089
1072
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1090
1073
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1091
1074
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1092
1075
|
transports_version_send: [:rest]
|
1093
1076
|
|
1077
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1078
|
+
|
1094
1079
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
1095
|
-
metadata: call_metadata
|
1080
|
+
metadata: call_metadata,
|
1081
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
1096
1082
|
|
1097
1083
|
options.apply_defaults timeout: @config.timeout,
|
1098
|
-
metadata: @config.metadata
|
1084
|
+
metadata: @config.metadata,
|
1085
|
+
retry_policy: @config.retry_policy
|
1099
1086
|
|
1100
1087
|
@firewall_policies_stub.patch request, options do |result, response|
|
1101
1088
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -1107,12 +1094,8 @@ module Google
|
|
1107
1094
|
yield result, response if block_given?
|
1108
1095
|
return result
|
1109
1096
|
end
|
1110
|
-
rescue ::
|
1111
|
-
|
1112
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1113
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1114
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1115
|
-
end
|
1097
|
+
rescue ::Gapic::Rest::Error => e
|
1098
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1116
1099
|
end
|
1117
1100
|
|
1118
1101
|
##
|
@@ -1127,8 +1110,6 @@ module Google
|
|
1127
1110
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1128
1111
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1129
1112
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1130
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1131
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1132
1113
|
#
|
1133
1114
|
# @overload patch_rule(firewall_policy: nil, firewall_policy_rule_resource: nil, priority: nil, request_id: nil)
|
1134
1115
|
# Pass arguments to `patch_rule` via keyword arguments. Note that at
|
@@ -1161,17 +1142,21 @@ module Google
|
|
1161
1142
|
# Customize the options with defaults
|
1162
1143
|
call_metadata = @config.rpcs.patch_rule.metadata.to_h
|
1163
1144
|
|
1164
|
-
# Set x-goog-api-client
|
1145
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1165
1146
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1166
1147
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1167
1148
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1168
1149
|
transports_version_send: [:rest]
|
1169
1150
|
|
1151
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1152
|
+
|
1170
1153
|
options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
|
1171
|
-
metadata: call_metadata
|
1154
|
+
metadata: call_metadata,
|
1155
|
+
retry_policy: @config.rpcs.patch_rule.retry_policy
|
1172
1156
|
|
1173
1157
|
options.apply_defaults timeout: @config.timeout,
|
1174
|
-
metadata: @config.metadata
|
1158
|
+
metadata: @config.metadata,
|
1159
|
+
retry_policy: @config.retry_policy
|
1175
1160
|
|
1176
1161
|
@firewall_policies_stub.patch_rule request, options do |result, response|
|
1177
1162
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -1183,12 +1168,8 @@ module Google
|
|
1183
1168
|
yield result, response if block_given?
|
1184
1169
|
return result
|
1185
1170
|
end
|
1186
|
-
rescue ::
|
1187
|
-
|
1188
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1189
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1190
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1191
|
-
end
|
1171
|
+
rescue ::Gapic::Rest::Error => e
|
1172
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1192
1173
|
end
|
1193
1174
|
|
1194
1175
|
##
|
@@ -1203,8 +1184,6 @@ module Google
|
|
1203
1184
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1204
1185
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1205
1186
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1206
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1207
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1208
1187
|
#
|
1209
1188
|
# @overload remove_association(firewall_policy: nil, name: nil, request_id: nil)
|
1210
1189
|
# Pass arguments to `remove_association` via keyword arguments. Note that at
|
@@ -1235,17 +1214,21 @@ module Google
|
|
1235
1214
|
# Customize the options with defaults
|
1236
1215
|
call_metadata = @config.rpcs.remove_association.metadata.to_h
|
1237
1216
|
|
1238
|
-
# Set x-goog-api-client
|
1217
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1239
1218
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1240
1219
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1241
1220
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1242
1221
|
transports_version_send: [:rest]
|
1243
1222
|
|
1223
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1224
|
+
|
1244
1225
|
options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
|
1245
|
-
metadata: call_metadata
|
1226
|
+
metadata: call_metadata,
|
1227
|
+
retry_policy: @config.rpcs.remove_association.retry_policy
|
1246
1228
|
|
1247
1229
|
options.apply_defaults timeout: @config.timeout,
|
1248
|
-
metadata: @config.metadata
|
1230
|
+
metadata: @config.metadata,
|
1231
|
+
retry_policy: @config.retry_policy
|
1249
1232
|
|
1250
1233
|
@firewall_policies_stub.remove_association request, options do |result, response|
|
1251
1234
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -1257,12 +1240,8 @@ module Google
|
|
1257
1240
|
yield result, response if block_given?
|
1258
1241
|
return result
|
1259
1242
|
end
|
1260
|
-
rescue ::
|
1261
|
-
|
1262
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1263
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1264
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1265
|
-
end
|
1243
|
+
rescue ::Gapic::Rest::Error => e
|
1244
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1266
1245
|
end
|
1267
1246
|
|
1268
1247
|
##
|
@@ -1277,8 +1256,6 @@ module Google
|
|
1277
1256
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1278
1257
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1279
1258
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1280
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1281
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1282
1259
|
#
|
1283
1260
|
# @overload remove_rule(firewall_policy: nil, priority: nil, request_id: nil)
|
1284
1261
|
# Pass arguments to `remove_rule` via keyword arguments. Note that at
|
@@ -1309,17 +1286,21 @@ module Google
|
|
1309
1286
|
# Customize the options with defaults
|
1310
1287
|
call_metadata = @config.rpcs.remove_rule.metadata.to_h
|
1311
1288
|
|
1312
|
-
# Set x-goog-api-client
|
1289
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1313
1290
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1314
1291
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1315
1292
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1316
1293
|
transports_version_send: [:rest]
|
1317
1294
|
|
1295
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1296
|
+
|
1318
1297
|
options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
|
1319
|
-
metadata: call_metadata
|
1298
|
+
metadata: call_metadata,
|
1299
|
+
retry_policy: @config.rpcs.remove_rule.retry_policy
|
1320
1300
|
|
1321
1301
|
options.apply_defaults timeout: @config.timeout,
|
1322
|
-
metadata: @config.metadata
|
1302
|
+
metadata: @config.metadata,
|
1303
|
+
retry_policy: @config.retry_policy
|
1323
1304
|
|
1324
1305
|
@firewall_policies_stub.remove_rule request, options do |result, response|
|
1325
1306
|
result = ::Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::NonstandardLro.create_operation(
|
@@ -1331,12 +1312,8 @@ module Google
|
|
1331
1312
|
yield result, response if block_given?
|
1332
1313
|
return result
|
1333
1314
|
end
|
1334
|
-
rescue ::
|
1335
|
-
|
1336
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1337
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1338
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1339
|
-
end
|
1315
|
+
rescue ::Gapic::Rest::Error => e
|
1316
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1340
1317
|
end
|
1341
1318
|
|
1342
1319
|
##
|
@@ -1351,8 +1328,6 @@ module Google
|
|
1351
1328
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1352
1329
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1353
1330
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1354
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1355
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1356
1331
|
#
|
1357
1332
|
# @overload set_iam_policy(global_organization_set_policy_request_resource: nil, resource: nil)
|
1358
1333
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
@@ -1381,28 +1356,28 @@ module Google
|
|
1381
1356
|
# Customize the options with defaults
|
1382
1357
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1383
1358
|
|
1384
|
-
# Set x-goog-api-client
|
1359
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1385
1360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1386
1361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1387
1362
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1388
1363
|
transports_version_send: [:rest]
|
1389
1364
|
|
1365
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1366
|
+
|
1390
1367
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1391
|
-
metadata: call_metadata
|
1368
|
+
metadata: call_metadata,
|
1369
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1392
1370
|
|
1393
1371
|
options.apply_defaults timeout: @config.timeout,
|
1394
|
-
metadata: @config.metadata
|
1372
|
+
metadata: @config.metadata,
|
1373
|
+
retry_policy: @config.retry_policy
|
1395
1374
|
|
1396
1375
|
@firewall_policies_stub.set_iam_policy request, options do |result, response|
|
1397
1376
|
yield result, response if block_given?
|
1398
1377
|
return result
|
1399
1378
|
end
|
1400
|
-
rescue ::
|
1401
|
-
|
1402
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1403
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1404
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1405
|
-
end
|
1379
|
+
rescue ::Gapic::Rest::Error => e
|
1380
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1406
1381
|
end
|
1407
1382
|
|
1408
1383
|
##
|
@@ -1417,8 +1392,6 @@ module Google
|
|
1417
1392
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1418
1393
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1419
1394
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1420
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1421
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1422
1395
|
#
|
1423
1396
|
# @overload test_iam_permissions(resource: nil, test_permissions_request_resource: nil)
|
1424
1397
|
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
@@ -1447,52 +1420,58 @@ module Google
|
|
1447
1420
|
# Customize the options with defaults
|
1448
1421
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1449
1422
|
|
1450
|
-
# Set x-goog-api-client
|
1423
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1451
1424
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1452
1425
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1453
1426
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1454
1427
|
transports_version_send: [:rest]
|
1455
1428
|
|
1429
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1430
|
+
|
1456
1431
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1457
|
-
metadata: call_metadata
|
1432
|
+
metadata: call_metadata,
|
1433
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1458
1434
|
|
1459
1435
|
options.apply_defaults timeout: @config.timeout,
|
1460
|
-
metadata: @config.metadata
|
1436
|
+
metadata: @config.metadata,
|
1437
|
+
retry_policy: @config.retry_policy
|
1461
1438
|
|
1462
1439
|
@firewall_policies_stub.test_iam_permissions request, options do |result, response|
|
1463
1440
|
yield result, response if block_given?
|
1464
1441
|
return result
|
1465
1442
|
end
|
1466
|
-
rescue ::
|
1467
|
-
|
1468
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1469
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1470
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1471
|
-
end
|
1443
|
+
rescue ::Gapic::Rest::Error => e
|
1444
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1472
1445
|
end
|
1473
1446
|
|
1474
1447
|
##
|
1475
1448
|
# Configuration class for the FirewallPolicies REST API.
|
1476
1449
|
#
|
1477
1450
|
# This class represents the configuration for FirewallPolicies REST,
|
1478
|
-
# providing control over
|
1451
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1452
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1453
|
+
# applied individually to specific RPCs. See
|
1454
|
+
# {::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client::Configuration::Rpcs}
|
1455
|
+
# for a list of RPCs that can be configured independently.
|
1479
1456
|
#
|
1480
1457
|
# Configuration can be applied globally to all clients, or to a single client
|
1481
1458
|
# on construction.
|
1482
1459
|
#
|
1483
|
-
#
|
1484
|
-
#
|
1485
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1486
|
-
#
|
1487
|
-
# ::Google::Cloud::Compute::V1::FirewallPolicies::Client.configure do |config|
|
1488
|
-
# config.timeout = 10.0
|
1489
|
-
# end
|
1460
|
+
# @example
|
1490
1461
|
#
|
1491
|
-
#
|
1462
|
+
# # Modify the global config, setting the timeout for
|
1463
|
+
# # add_association to 20 seconds,
|
1464
|
+
# # and all remaining timeouts to 10 seconds.
|
1465
|
+
# ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.configure do |config|
|
1466
|
+
# config.timeout = 10.0
|
1467
|
+
# config.rpcs.add_association.timeout = 20.0
|
1468
|
+
# end
|
1492
1469
|
#
|
1493
|
-
#
|
1494
|
-
#
|
1495
|
-
#
|
1470
|
+
# # Apply the above configuration only to a new client.
|
1471
|
+
# client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new do |config|
|
1472
|
+
# config.timeout = 10.0
|
1473
|
+
# config.rpcs.add_association.timeout = 20.0
|
1474
|
+
# end
|
1496
1475
|
#
|
1497
1476
|
# @!attribute [rw] endpoint
|
1498
1477
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1521,8 +1500,19 @@ module Google
|
|
1521
1500
|
# The call timeout in seconds.
|
1522
1501
|
# @return [::Numeric]
|
1523
1502
|
# @!attribute [rw] metadata
|
1524
|
-
# Additional
|
1503
|
+
# Additional headers to be sent with the call.
|
1525
1504
|
# @return [::Hash{::Symbol=>::String}]
|
1505
|
+
# @!attribute [rw] retry_policy
|
1506
|
+
# The retry policy. The value is a hash with the following keys:
|
1507
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1508
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1509
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1510
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1511
|
+
# trigger a retry.
|
1512
|
+
# @return [::Hash]
|
1513
|
+
# @!attribute [rw] quota_project
|
1514
|
+
# A separate project against which to charge quota.
|
1515
|
+
# @return [::String]
|
1526
1516
|
#
|
1527
1517
|
class Configuration
|
1528
1518
|
extend ::Gapic::Config
|
@@ -1537,6 +1527,8 @@ module Google
|
|
1537
1527
|
config_attr :lib_version, nil, ::String, nil
|
1538
1528
|
config_attr :timeout, nil, ::Numeric, nil
|
1539
1529
|
config_attr :metadata, nil, ::Hash, nil
|
1530
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1531
|
+
config_attr :quota_project, nil, ::String, nil
|
1540
1532
|
|
1541
1533
|
# @private
|
1542
1534
|
def initialize parent_config = nil
|
@@ -1565,9 +1557,14 @@ module Google
|
|
1565
1557
|
# the following configuration fields:
|
1566
1558
|
#
|
1567
1559
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1568
|
-
#
|
1569
|
-
#
|
1570
|
-
#
|
1560
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1561
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1562
|
+
# include the following keys:
|
1563
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1564
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1565
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1566
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1567
|
+
# trigger a retry.
|
1571
1568
|
#
|
1572
1569
|
class Rpcs
|
1573
1570
|
##
|