google-cloud-compute-v1 1.8.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +20 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +176 -171
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +31 -32
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +206 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/disks.rb +2 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +212 -215
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +39 -40
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +2 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +94 -72
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +58 -28
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +2 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/images.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +230 -237
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +43 -44
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +461 -514
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +93 -94
- data/lib/google/cloud/compute/v1/instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/instances.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -100
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +2 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/licenses/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/licenses.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +2 -2
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +945 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +527 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_attachments.rb +47 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +194 -193
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +35 -36
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/networks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/networks.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +76 -50
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +9 -10
- data/lib/google/cloud/compute/v1/node_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/node_types.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +167 -160
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +29 -30
- data/lib/google/cloud/compute/v1/projects/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/projects.rb +2 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +2 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +2 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +221 -226
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +41 -42
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +59 -28
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +5 -6
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +203 -204
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +37 -38
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +2 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/regions/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/regions.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/reservations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/reservations.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/rest.rb +124 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +140 -127
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +23 -24
- data/lib/google/cloud/compute/v1/routers/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routers.rb +2 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +86 -61
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/routes/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/routes.rb +2 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +2 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +2 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +158 -149
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +27 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +2 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +113 -94
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +17 -18
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +95 -72
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -14
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +149 -138
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +25 -26
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +2 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -83
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +72 -15
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +131 -116
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +21 -22
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +2 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +122 -105
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +19 -20
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +104 -83
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +15 -16
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +2 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +85 -61
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +11 -12
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +2 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +67 -39
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +7 -8
- data/lib/google/cloud/compute/v1/zones/rest.rb +18 -0
- data/lib/google/cloud/compute/v1/zones.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +3 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +564 -32
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -5
@@ -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
|
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::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 add_rule(project: nil, security_policy: nil, security_policy_rule_resource: nil, validate_only: nil)
|
196
203
|
# Pass arguments to `add_rule` via keyword arguments. Note that at
|
@@ -223,17 +230,21 @@ module Google
|
|
223
230
|
# Customize the options with defaults
|
224
231
|
call_metadata = @config.rpcs.add_rule.metadata.to_h
|
225
232
|
|
226
|
-
# Set x-goog-api-client
|
233
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
227
234
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
228
235
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
229
236
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
230
237
|
transports_version_send: [:rest]
|
231
238
|
|
239
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
240
|
+
|
232
241
|
options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
|
233
|
-
metadata: call_metadata
|
242
|
+
metadata: call_metadata,
|
243
|
+
retry_policy: @config.rpcs.add_rule.retry_policy
|
234
244
|
|
235
245
|
options.apply_defaults timeout: @config.timeout,
|
236
|
-
metadata: @config.metadata
|
246
|
+
metadata: @config.metadata,
|
247
|
+
retry_policy: @config.retry_policy
|
237
248
|
|
238
249
|
@security_policies_stub.add_rule request, options do |result, response|
|
239
250
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -247,12 +258,8 @@ module Google
|
|
247
258
|
yield result, response if block_given?
|
248
259
|
return result
|
249
260
|
end
|
250
|
-
rescue ::
|
251
|
-
|
252
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
253
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
254
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
255
|
-
end
|
261
|
+
rescue ::Gapic::Rest::Error => e
|
262
|
+
raise ::Google::Cloud::Error.from_error(e)
|
256
263
|
end
|
257
264
|
|
258
265
|
##
|
@@ -267,8 +274,6 @@ module Google
|
|
267
274
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
268
275
|
# @param options [::Gapic::CallOptions, ::Hash]
|
269
276
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
270
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
271
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
272
277
|
#
|
273
278
|
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
274
279
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
@@ -307,29 +312,29 @@ module Google
|
|
307
312
|
# Customize the options with defaults
|
308
313
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
309
314
|
|
310
|
-
# Set x-goog-api-client
|
315
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
311
316
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
312
317
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
313
318
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
314
319
|
transports_version_send: [:rest]
|
315
320
|
|
321
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
322
|
+
|
316
323
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
317
|
-
metadata: call_metadata
|
324
|
+
metadata: call_metadata,
|
325
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
318
326
|
|
319
327
|
options.apply_defaults timeout: @config.timeout,
|
320
|
-
metadata: @config.metadata
|
328
|
+
metadata: @config.metadata,
|
329
|
+
retry_policy: @config.retry_policy
|
321
330
|
|
322
331
|
@security_policies_stub.aggregated_list request, options do |result, response|
|
323
332
|
result = ::Gapic::Rest::PagedEnumerable.new @security_policies_stub, :aggregated_list, "items", request, result, options
|
324
333
|
yield result, response if block_given?
|
325
334
|
return result
|
326
335
|
end
|
327
|
-
rescue ::
|
328
|
-
|
329
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
330
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
331
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
332
|
-
end
|
336
|
+
rescue ::Gapic::Rest::Error => e
|
337
|
+
raise ::Google::Cloud::Error.from_error(e)
|
333
338
|
end
|
334
339
|
|
335
340
|
##
|
@@ -344,8 +349,6 @@ module Google
|
|
344
349
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
345
350
|
# @param options [::Gapic::CallOptions, ::Hash]
|
346
351
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
347
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
348
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
349
352
|
#
|
350
353
|
# @overload delete(project: nil, request_id: nil, security_policy: nil)
|
351
354
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
@@ -376,17 +379,21 @@ module Google
|
|
376
379
|
# Customize the options with defaults
|
377
380
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
378
381
|
|
379
|
-
# Set x-goog-api-client
|
382
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
380
383
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
384
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
385
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
383
386
|
transports_version_send: [:rest]
|
384
387
|
|
388
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
389
|
+
|
385
390
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
386
|
-
metadata: call_metadata
|
391
|
+
metadata: call_metadata,
|
392
|
+
retry_policy: @config.rpcs.delete.retry_policy
|
387
393
|
|
388
394
|
options.apply_defaults timeout: @config.timeout,
|
389
|
-
metadata: @config.metadata
|
395
|
+
metadata: @config.metadata,
|
396
|
+
retry_policy: @config.retry_policy
|
390
397
|
|
391
398
|
@security_policies_stub.delete request, options do |result, response|
|
392
399
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -400,12 +407,8 @@ module Google
|
|
400
407
|
yield result, response if block_given?
|
401
408
|
return result
|
402
409
|
end
|
403
|
-
rescue ::
|
404
|
-
|
405
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
406
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
407
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
408
|
-
end
|
410
|
+
rescue ::Gapic::Rest::Error => e
|
411
|
+
raise ::Google::Cloud::Error.from_error(e)
|
409
412
|
end
|
410
413
|
|
411
414
|
##
|
@@ -420,8 +423,6 @@ module Google
|
|
420
423
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
421
424
|
# @param options [::Gapic::CallOptions, ::Hash]
|
422
425
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
423
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
424
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
425
426
|
#
|
426
427
|
# @overload get(project: nil, security_policy: nil)
|
427
428
|
# Pass arguments to `get` via keyword arguments. Note that at
|
@@ -450,28 +451,28 @@ module Google
|
|
450
451
|
# Customize the options with defaults
|
451
452
|
call_metadata = @config.rpcs.get.metadata.to_h
|
452
453
|
|
453
|
-
# Set x-goog-api-client
|
454
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
454
455
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
455
456
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
456
457
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
457
458
|
transports_version_send: [:rest]
|
458
459
|
|
460
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
461
|
+
|
459
462
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
460
|
-
metadata: call_metadata
|
463
|
+
metadata: call_metadata,
|
464
|
+
retry_policy: @config.rpcs.get.retry_policy
|
461
465
|
|
462
466
|
options.apply_defaults timeout: @config.timeout,
|
463
|
-
metadata: @config.metadata
|
467
|
+
metadata: @config.metadata,
|
468
|
+
retry_policy: @config.retry_policy
|
464
469
|
|
465
470
|
@security_policies_stub.get request, options do |result, response|
|
466
471
|
yield result, response if block_given?
|
467
472
|
return result
|
468
473
|
end
|
469
|
-
rescue ::
|
470
|
-
|
471
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
472
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
473
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
474
|
-
end
|
474
|
+
rescue ::Gapic::Rest::Error => e
|
475
|
+
raise ::Google::Cloud::Error.from_error(e)
|
475
476
|
end
|
476
477
|
|
477
478
|
##
|
@@ -486,8 +487,6 @@ module Google
|
|
486
487
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
487
488
|
# @param options [::Gapic::CallOptions, ::Hash]
|
488
489
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
489
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
490
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
491
490
|
#
|
492
491
|
# @overload get_rule(priority: nil, project: nil, security_policy: nil)
|
493
492
|
# Pass arguments to `get_rule` via keyword arguments. Note that at
|
@@ -518,28 +517,28 @@ module Google
|
|
518
517
|
# Customize the options with defaults
|
519
518
|
call_metadata = @config.rpcs.get_rule.metadata.to_h
|
520
519
|
|
521
|
-
# Set x-goog-api-client
|
520
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
522
521
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
523
522
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
524
523
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
525
524
|
transports_version_send: [:rest]
|
526
525
|
|
526
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
527
|
+
|
527
528
|
options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
|
528
|
-
metadata: call_metadata
|
529
|
+
metadata: call_metadata,
|
530
|
+
retry_policy: @config.rpcs.get_rule.retry_policy
|
529
531
|
|
530
532
|
options.apply_defaults timeout: @config.timeout,
|
531
|
-
metadata: @config.metadata
|
533
|
+
metadata: @config.metadata,
|
534
|
+
retry_policy: @config.retry_policy
|
532
535
|
|
533
536
|
@security_policies_stub.get_rule request, options do |result, response|
|
534
537
|
yield result, response if block_given?
|
535
538
|
return result
|
536
539
|
end
|
537
|
-
rescue ::
|
538
|
-
|
539
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
540
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
541
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
542
|
-
end
|
540
|
+
rescue ::Gapic::Rest::Error => e
|
541
|
+
raise ::Google::Cloud::Error.from_error(e)
|
543
542
|
end
|
544
543
|
|
545
544
|
##
|
@@ -554,8 +553,6 @@ module Google
|
|
554
553
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
555
554
|
# @param options [::Gapic::CallOptions, ::Hash]
|
556
555
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
557
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
558
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
559
556
|
#
|
560
557
|
# @overload insert(project: nil, request_id: nil, security_policy_resource: nil, validate_only: nil)
|
561
558
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
@@ -588,17 +585,21 @@ module Google
|
|
588
585
|
# Customize the options with defaults
|
589
586
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
590
587
|
|
591
|
-
# Set x-goog-api-client
|
588
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
592
589
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
593
590
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
594
591
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
595
592
|
transports_version_send: [:rest]
|
596
593
|
|
594
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
595
|
+
|
597
596
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
598
|
-
metadata: call_metadata
|
597
|
+
metadata: call_metadata,
|
598
|
+
retry_policy: @config.rpcs.insert.retry_policy
|
599
599
|
|
600
600
|
options.apply_defaults timeout: @config.timeout,
|
601
|
-
metadata: @config.metadata
|
601
|
+
metadata: @config.metadata,
|
602
|
+
retry_policy: @config.retry_policy
|
602
603
|
|
603
604
|
@security_policies_stub.insert request, options do |result, response|
|
604
605
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -612,12 +613,8 @@ module Google
|
|
612
613
|
yield result, response if block_given?
|
613
614
|
return result
|
614
615
|
end
|
615
|
-
rescue ::
|
616
|
-
|
617
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
618
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
619
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
620
|
-
end
|
616
|
+
rescue ::Gapic::Rest::Error => e
|
617
|
+
raise ::Google::Cloud::Error.from_error(e)
|
621
618
|
end
|
622
619
|
|
623
620
|
##
|
@@ -632,8 +629,6 @@ module Google
|
|
632
629
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
633
630
|
# @param options [::Gapic::CallOptions, ::Hash]
|
634
631
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
635
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
636
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
637
632
|
#
|
638
633
|
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
639
634
|
# Pass arguments to `list` via keyword arguments. Note that at
|
@@ -670,29 +665,29 @@ module Google
|
|
670
665
|
# Customize the options with defaults
|
671
666
|
call_metadata = @config.rpcs.list.metadata.to_h
|
672
667
|
|
673
|
-
# Set x-goog-api-client
|
668
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
674
669
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
675
670
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
676
671
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
677
672
|
transports_version_send: [:rest]
|
678
673
|
|
674
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
675
|
+
|
679
676
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
680
|
-
metadata: call_metadata
|
677
|
+
metadata: call_metadata,
|
678
|
+
retry_policy: @config.rpcs.list.retry_policy
|
681
679
|
|
682
680
|
options.apply_defaults timeout: @config.timeout,
|
683
|
-
metadata: @config.metadata
|
681
|
+
metadata: @config.metadata,
|
682
|
+
retry_policy: @config.retry_policy
|
684
683
|
|
685
684
|
@security_policies_stub.list request, options do |result, response|
|
686
685
|
result = ::Gapic::Rest::PagedEnumerable.new @security_policies_stub, :list, "items", request, result, options
|
687
686
|
yield result, response if block_given?
|
688
687
|
return result
|
689
688
|
end
|
690
|
-
rescue ::
|
691
|
-
|
692
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
693
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
694
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
695
|
-
end
|
689
|
+
rescue ::Gapic::Rest::Error => e
|
690
|
+
raise ::Google::Cloud::Error.from_error(e)
|
696
691
|
end
|
697
692
|
|
698
693
|
##
|
@@ -707,8 +702,6 @@ module Google
|
|
707
702
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
708
703
|
# @param options [::Gapic::CallOptions, ::Hash]
|
709
704
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
710
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
711
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
712
705
|
#
|
713
706
|
# @overload list_preconfigured_expression_sets(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
714
707
|
# Pass arguments to `list_preconfigured_expression_sets` via keyword arguments. Note that at
|
@@ -745,28 +738,28 @@ module Google
|
|
745
738
|
# Customize the options with defaults
|
746
739
|
call_metadata = @config.rpcs.list_preconfigured_expression_sets.metadata.to_h
|
747
740
|
|
748
|
-
# Set x-goog-api-client
|
741
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
749
742
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
750
743
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
751
744
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
752
745
|
transports_version_send: [:rest]
|
753
746
|
|
747
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
748
|
+
|
754
749
|
options.apply_defaults timeout: @config.rpcs.list_preconfigured_expression_sets.timeout,
|
755
|
-
metadata: call_metadata
|
750
|
+
metadata: call_metadata,
|
751
|
+
retry_policy: @config.rpcs.list_preconfigured_expression_sets.retry_policy
|
756
752
|
|
757
753
|
options.apply_defaults timeout: @config.timeout,
|
758
|
-
metadata: @config.metadata
|
754
|
+
metadata: @config.metadata,
|
755
|
+
retry_policy: @config.retry_policy
|
759
756
|
|
760
757
|
@security_policies_stub.list_preconfigured_expression_sets request, options do |result, response|
|
761
758
|
yield result, response if block_given?
|
762
759
|
return result
|
763
760
|
end
|
764
|
-
rescue ::
|
765
|
-
|
766
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
767
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
768
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
769
|
-
end
|
761
|
+
rescue ::Gapic::Rest::Error => e
|
762
|
+
raise ::Google::Cloud::Error.from_error(e)
|
770
763
|
end
|
771
764
|
|
772
765
|
##
|
@@ -781,8 +774,6 @@ module Google
|
|
781
774
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
782
775
|
# @param options [::Gapic::CallOptions, ::Hash]
|
783
776
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
784
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
785
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
786
777
|
#
|
787
778
|
# @overload patch(project: nil, request_id: nil, security_policy: nil, security_policy_resource: nil)
|
788
779
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
@@ -815,17 +806,21 @@ module Google
|
|
815
806
|
# Customize the options with defaults
|
816
807
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
817
808
|
|
818
|
-
# Set x-goog-api-client
|
809
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
819
810
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
820
811
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
821
812
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
822
813
|
transports_version_send: [:rest]
|
823
814
|
|
815
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
816
|
+
|
824
817
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
825
|
-
metadata: call_metadata
|
818
|
+
metadata: call_metadata,
|
819
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
826
820
|
|
827
821
|
options.apply_defaults timeout: @config.timeout,
|
828
|
-
metadata: @config.metadata
|
822
|
+
metadata: @config.metadata,
|
823
|
+
retry_policy: @config.retry_policy
|
829
824
|
|
830
825
|
@security_policies_stub.patch request, options do |result, response|
|
831
826
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -839,12 +834,8 @@ module Google
|
|
839
834
|
yield result, response if block_given?
|
840
835
|
return result
|
841
836
|
end
|
842
|
-
rescue ::
|
843
|
-
|
844
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
845
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
846
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
847
|
-
end
|
837
|
+
rescue ::Gapic::Rest::Error => e
|
838
|
+
raise ::Google::Cloud::Error.from_error(e)
|
848
839
|
end
|
849
840
|
|
850
841
|
##
|
@@ -859,8 +850,6 @@ module Google
|
|
859
850
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
860
851
|
# @param options [::Gapic::CallOptions, ::Hash]
|
861
852
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
862
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
863
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
864
853
|
#
|
865
854
|
# @overload patch_rule(priority: nil, project: nil, security_policy: nil, security_policy_rule_resource: nil, validate_only: nil)
|
866
855
|
# Pass arguments to `patch_rule` via keyword arguments. Note that at
|
@@ -895,17 +884,21 @@ module Google
|
|
895
884
|
# Customize the options with defaults
|
896
885
|
call_metadata = @config.rpcs.patch_rule.metadata.to_h
|
897
886
|
|
898
|
-
# Set x-goog-api-client
|
887
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
899
888
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
900
889
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
901
890
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
902
891
|
transports_version_send: [:rest]
|
903
892
|
|
893
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
894
|
+
|
904
895
|
options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
|
905
|
-
metadata: call_metadata
|
896
|
+
metadata: call_metadata,
|
897
|
+
retry_policy: @config.rpcs.patch_rule.retry_policy
|
906
898
|
|
907
899
|
options.apply_defaults timeout: @config.timeout,
|
908
|
-
metadata: @config.metadata
|
900
|
+
metadata: @config.metadata,
|
901
|
+
retry_policy: @config.retry_policy
|
909
902
|
|
910
903
|
@security_policies_stub.patch_rule request, options do |result, response|
|
911
904
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -919,12 +912,8 @@ module Google
|
|
919
912
|
yield result, response if block_given?
|
920
913
|
return result
|
921
914
|
end
|
922
|
-
rescue ::
|
923
|
-
|
924
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
925
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
926
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
927
|
-
end
|
915
|
+
rescue ::Gapic::Rest::Error => e
|
916
|
+
raise ::Google::Cloud::Error.from_error(e)
|
928
917
|
end
|
929
918
|
|
930
919
|
##
|
@@ -939,8 +928,6 @@ module Google
|
|
939
928
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
940
929
|
# @param options [::Gapic::CallOptions, ::Hash]
|
941
930
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
942
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
943
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
944
931
|
#
|
945
932
|
# @overload remove_rule(priority: nil, project: nil, security_policy: nil)
|
946
933
|
# Pass arguments to `remove_rule` via keyword arguments. Note that at
|
@@ -971,17 +958,21 @@ module Google
|
|
971
958
|
# Customize the options with defaults
|
972
959
|
call_metadata = @config.rpcs.remove_rule.metadata.to_h
|
973
960
|
|
974
|
-
# Set x-goog-api-client
|
961
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
975
962
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
976
963
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
977
964
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
978
965
|
transports_version_send: [:rest]
|
979
966
|
|
967
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
968
|
+
|
980
969
|
options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
|
981
|
-
metadata: call_metadata
|
970
|
+
metadata: call_metadata,
|
971
|
+
retry_policy: @config.rpcs.remove_rule.retry_policy
|
982
972
|
|
983
973
|
options.apply_defaults timeout: @config.timeout,
|
984
|
-
metadata: @config.metadata
|
974
|
+
metadata: @config.metadata,
|
975
|
+
retry_policy: @config.retry_policy
|
985
976
|
|
986
977
|
@security_policies_stub.remove_rule request, options do |result, response|
|
987
978
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -995,12 +986,8 @@ module Google
|
|
995
986
|
yield result, response if block_given?
|
996
987
|
return result
|
997
988
|
end
|
998
|
-
rescue ::
|
999
|
-
|
1000
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1001
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1002
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1003
|
-
end
|
989
|
+
rescue ::Gapic::Rest::Error => e
|
990
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1004
991
|
end
|
1005
992
|
|
1006
993
|
##
|
@@ -1015,8 +1002,6 @@ module Google
|
|
1015
1002
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1016
1003
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1017
1004
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1018
|
-
# Note: currently retry functionality is not implemented. While it is possible
|
1019
|
-
# to set it using ::Gapic::CallOptions, it will not be applied
|
1020
1005
|
#
|
1021
1006
|
# @overload set_labels(global_set_labels_request_resource: nil, project: nil, resource: nil)
|
1022
1007
|
# Pass arguments to `set_labels` via keyword arguments. Note that at
|
@@ -1047,17 +1032,21 @@ module Google
|
|
1047
1032
|
# Customize the options with defaults
|
1048
1033
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
1049
1034
|
|
1050
|
-
# Set x-goog-api-client
|
1035
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1051
1036
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1052
1037
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1053
1038
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1054
1039
|
transports_version_send: [:rest]
|
1055
1040
|
|
1041
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1042
|
+
|
1056
1043
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
1057
|
-
metadata: call_metadata
|
1044
|
+
metadata: call_metadata,
|
1045
|
+
retry_policy: @config.rpcs.set_labels.retry_policy
|
1058
1046
|
|
1059
1047
|
options.apply_defaults timeout: @config.timeout,
|
1060
|
-
metadata: @config.metadata
|
1048
|
+
metadata: @config.metadata,
|
1049
|
+
retry_policy: @config.retry_policy
|
1061
1050
|
|
1062
1051
|
@security_policies_stub.set_labels request, options do |result, response|
|
1063
1052
|
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
@@ -1071,36 +1060,38 @@ module Google
|
|
1071
1060
|
yield result, response if block_given?
|
1072
1061
|
return result
|
1073
1062
|
end
|
1074
|
-
rescue ::
|
1075
|
-
|
1076
|
-
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1077
|
-
rescue ::Gapic::Rest::Error => gapic_error
|
1078
|
-
raise ::Google::Cloud::Error.from_error gapic_error
|
1079
|
-
end
|
1063
|
+
rescue ::Gapic::Rest::Error => e
|
1064
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1080
1065
|
end
|
1081
1066
|
|
1082
1067
|
##
|
1083
1068
|
# Configuration class for the SecurityPolicies REST API.
|
1084
1069
|
#
|
1085
1070
|
# This class represents the configuration for SecurityPolicies REST,
|
1086
|
-
# providing control over
|
1071
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1072
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1073
|
+
# applied individually to specific RPCs. See
|
1074
|
+
# {::Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client::Configuration::Rpcs}
|
1075
|
+
# for a list of RPCs that can be configured independently.
|
1087
1076
|
#
|
1088
1077
|
# Configuration can be applied globally to all clients, or to a single client
|
1089
1078
|
# on construction.
|
1090
1079
|
#
|
1091
|
-
#
|
1092
|
-
#
|
1093
|
-
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
1094
|
-
#
|
1095
|
-
# ::Google::Cloud::Compute::V1::SecurityPolicies::Client.configure do |config|
|
1096
|
-
# config.timeout = 10.0
|
1097
|
-
# end
|
1080
|
+
# @example
|
1098
1081
|
#
|
1099
|
-
#
|
1082
|
+
# # Modify the global config, setting the timeout for
|
1083
|
+
# # add_rule to 20 seconds,
|
1084
|
+
# # and all remaining timeouts to 10 seconds.
|
1085
|
+
# ::Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.configure do |config|
|
1086
|
+
# config.timeout = 10.0
|
1087
|
+
# config.rpcs.add_rule.timeout = 20.0
|
1088
|
+
# end
|
1100
1089
|
#
|
1101
|
-
#
|
1102
|
-
#
|
1103
|
-
#
|
1090
|
+
# # Apply the above configuration only to a new client.
|
1091
|
+
# client = ::Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new do |config|
|
1092
|
+
# config.timeout = 10.0
|
1093
|
+
# config.rpcs.add_rule.timeout = 20.0
|
1094
|
+
# end
|
1104
1095
|
#
|
1105
1096
|
# @!attribute [rw] endpoint
|
1106
1097
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1129,8 +1120,19 @@ module Google
|
|
1129
1120
|
# The call timeout in seconds.
|
1130
1121
|
# @return [::Numeric]
|
1131
1122
|
# @!attribute [rw] metadata
|
1132
|
-
# Additional
|
1123
|
+
# Additional headers to be sent with the call.
|
1133
1124
|
# @return [::Hash{::Symbol=>::String}]
|
1125
|
+
# @!attribute [rw] retry_policy
|
1126
|
+
# The retry policy. The value is a hash with the following keys:
|
1127
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1128
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1129
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1130
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1131
|
+
# trigger a retry.
|
1132
|
+
# @return [::Hash]
|
1133
|
+
# @!attribute [rw] quota_project
|
1134
|
+
# A separate project against which to charge quota.
|
1135
|
+
# @return [::String]
|
1134
1136
|
#
|
1135
1137
|
class Configuration
|
1136
1138
|
extend ::Gapic::Config
|
@@ -1145,6 +1147,8 @@ module Google
|
|
1145
1147
|
config_attr :lib_version, nil, ::String, nil
|
1146
1148
|
config_attr :timeout, nil, ::Numeric, nil
|
1147
1149
|
config_attr :metadata, nil, ::Hash, nil
|
1150
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1151
|
+
config_attr :quota_project, nil, ::String, nil
|
1148
1152
|
|
1149
1153
|
# @private
|
1150
1154
|
def initialize parent_config = nil
|
@@ -1173,9 +1177,14 @@ module Google
|
|
1173
1177
|
# the following configuration fields:
|
1174
1178
|
#
|
1175
1179
|
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1176
|
-
#
|
1177
|
-
#
|
1178
|
-
#
|
1180
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1181
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1182
|
+
# include the following keys:
|
1183
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1184
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1185
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1186
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1187
|
+
# trigger a retry.
|
1179
1188
|
#
|
1180
1189
|
class Rpcs
|
1181
1190
|
##
|