google-cloud-compute-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +73 -0
- data/lib/google-cloud-compute-v1.rb +21 -0
- data/lib/google/cloud/compute/v1.rb +110 -0
- data/lib/google/cloud/compute/v1/accelerator_types.rb +44 -0
- data/lib/google/cloud/compute/v1/accelerator_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +452 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/addresses.rb +44 -0
- data/lib/google/cloud/compute/v1/addresses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/autoscalers.rb +44 -0
- data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +746 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/backend_buckets.rb +44 -0
- data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +795 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +138 -0
- data/lib/google/cloud/compute/v1/backend_services.rb +44 -0
- data/lib/google/cloud/compute/v1/backend_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1023 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +180 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +9482 -0
- data/lib/google/cloud/compute/v1/disk_types.rb +44 -0
- data/lib/google/cloud/compute/v1/disk_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/disks.rb +44 -0
- data/lib/google/cloud/compute/v1/disks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1182 -0
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +203 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +637 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/firewalls.rb +44 -0
- data/lib/google/cloud/compute/v1/firewalls/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +44 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +746 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/global_addresses.rb +44 -0
- data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +503 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +44 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +129 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/global_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +578 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/grpc_transcoding.rb +105 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +427 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/grpc_transcoding.rb +78 -0
- data/lib/google/cloud/compute/v1/health_checks.rb +44 -0
- data/lib/google/cloud/compute/v1/health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/images.rb +44 -0
- data/lib/google/cloud/compute/v1/images/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +985 -0
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +173 -0
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1767 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +303 -0
- data/lib/google/cloud/compute/v1/instance_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +916 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/instance_templates.rb +44 -0
- data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +704 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/instances.rb +44 -0
- data/lib/google/cloud/compute/v1/instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +3201 -0
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +549 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +673 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/interconnects.rb +44 -0
- data/lib/google/cloud/compute/v1/interconnects/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +640 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes.rb +44 -0
- data/lib/google/cloud/compute/v1/license_codes/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +345 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb +58 -0
- data/lib/google/cloud/compute/v1/licenses.rb +44 -0
- data/lib/google/cloud/compute/v1/licenses/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +704 -0
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/machine_types.rb +44 -0
- data/lib/google/cloud/compute/v1/machine_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +904 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/networks.rb +44 -0
- data/lib/google/cloud/compute/v1/networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +957 -0
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +169 -0
- data/lib/google/cloud/compute/v1/node_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/node_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1192 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +208 -0
- data/lib/google/cloud/compute/v1/node_templates.rb +44 -0
- data/lib/google/cloud/compute/v1/node_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +803 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +143 -0
- data/lib/google/cloud/compute/v1/node_types.rb +44 -0
- data/lib/google/cloud/compute/v1/node_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +450 -0
- data/lib/google/cloud/compute/v1/node_types/rest/grpc_transcoding.rb +81 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +44 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +740 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/projects.rb +44 -0
- data/lib/google/cloud/compute/v1/projects/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +1141 -0
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +197 -0
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +44 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_backend_services.rb +44 -0
- data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +729 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +124 -0
- data/lib/google/cloud/compute/v1/region_commitments.rb +44 -0
- data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +523 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +93 -0
- data/lib/google/cloud/compute/v1/region_disk_types.rb +44 -0
- data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +365 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/region_disks.rb +44 -0
- data/lib/google/cloud/compute/v1/region_disks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1095 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +185 -0
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +44 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +586 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/region_health_checks.rb +44 -0
- data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1678 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +285 -0
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +529 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +44 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/region_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +501 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +44 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +511 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +586 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/region_url_maps.rb +44 -0
- data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +714 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +124 -0
- data/lib/google/cloud/compute/v1/regions.rb +44 -0
- data/lib/google/cloud/compute/v1/regions/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/regions/rest/grpc_transcoding.rb +63 -0
- data/lib/google/cloud/compute/v1/reservations.rb +44 -0
- data/lib/google/cloud/compute/v1/reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +878 -0
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +155 -0
- data/lib/google/cloud/compute/v1/resource_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +803 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +143 -0
- data/lib/google/cloud/compute/v1/routers.rb +44 -0
- data/lib/google/cloud/compute/v1/routers/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +968 -0
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +171 -0
- data/lib/google/cloud/compute/v1/routes.rb +44 -0
- data/lib/google/cloud/compute/v1/routes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +503 -0
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +88 -0
- data/lib/google/cloud/compute/v1/security_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +929 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshots.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +702 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/grpc_transcoding.rb +125 -0
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +44 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +588 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/ssl_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +659 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +117 -0
- data/lib/google/cloud/compute/v1/subnetworks.rb +44 -0
- data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1113 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +196 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +734 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +130 -0
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +880 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/target_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/target_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/target_pools.rb +44 -0
- data/lib/google/cloud/compute/v1/target_pools/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1042 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +178 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +795 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +136 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +44 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +649 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/url_maps.rb +44 -0
- data/lib/google/cloud/compute/v1/url_maps/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +876 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +154 -0
- data/lib/google/cloud/compute/v1/version.rb +28 -0
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +44 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +806 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +142 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +44 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +596 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +106 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +44 -0
- data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +501 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/grpc_transcoding.rb +87 -0
- data/lib/google/cloud/compute/v1/zones.rb +44 -0
- data/lib/google/cloud/compute/v1/zones/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +361 -0
- data/lib/google/cloud/compute/v1/zones/rest/grpc_transcoding.rb +63 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +27425 -0
- metadata +568 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Compute
|
|
23
|
+
module V1
|
|
24
|
+
module RegionTargetHttpsProxies
|
|
25
|
+
module Rest
|
|
26
|
+
# GRPC transcoding helper methods for the RegionTargetHttpsProxies REST API.
|
|
27
|
+
module GrpcTranscoding
|
|
28
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteRegionTargetHttpsProxyRequest]
|
|
29
|
+
# A request object representing the call parameters. Required.
|
|
30
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
31
|
+
# Uri, Body, Query string parameters
|
|
32
|
+
def transcode_delete request_pb
|
|
33
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies/#{request_pb.target_https_proxy}"
|
|
34
|
+
body = nil
|
|
35
|
+
query_string_params = {}
|
|
36
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
37
|
+
|
|
38
|
+
[uri, body, query_string_params]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRegionTargetHttpsProxyRequest]
|
|
42
|
+
# A request object representing the call parameters. Required.
|
|
43
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
44
|
+
# Uri, Body, Query string parameters
|
|
45
|
+
def transcode_get request_pb
|
|
46
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies/#{request_pb.target_https_proxy}"
|
|
47
|
+
body = nil
|
|
48
|
+
query_string_params = {}
|
|
49
|
+
|
|
50
|
+
[uri, body, query_string_params]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertRegionTargetHttpsProxyRequest]
|
|
54
|
+
# A request object representing the call parameters. Required.
|
|
55
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
56
|
+
# Uri, Body, Query string parameters
|
|
57
|
+
def transcode_insert request_pb
|
|
58
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies"
|
|
59
|
+
body = request_pb.target_https_proxy_resource.to_json
|
|
60
|
+
query_string_params = {}
|
|
61
|
+
|
|
62
|
+
[uri, body, query_string_params]
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListRegionTargetHttpsProxiesRequest]
|
|
66
|
+
# A request object representing the call parameters. Required.
|
|
67
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
68
|
+
# Uri, Body, Query string parameters
|
|
69
|
+
def transcode_list request_pb
|
|
70
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies"
|
|
71
|
+
body = nil
|
|
72
|
+
query_string_params = {}
|
|
73
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
|
74
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
|
75
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
|
76
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
|
77
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
|
78
|
+
|
|
79
|
+
[uri, body, query_string_params]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSslCertificatesRegionTargetHttpsProxyRequest]
|
|
83
|
+
# A request object representing the call parameters. Required.
|
|
84
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
85
|
+
# Uri, Body, Query string parameters
|
|
86
|
+
def transcode_set_ssl_certificates request_pb
|
|
87
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies/#{request_pb.target_https_proxy}/setSslCertificates"
|
|
88
|
+
body = request_pb.region_target_https_proxies_set_ssl_certificates_request_resource.to_json
|
|
89
|
+
query_string_params = {}
|
|
90
|
+
|
|
91
|
+
[uri, body, query_string_params]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetUrlMapRegionTargetHttpsProxyRequest]
|
|
95
|
+
# A request object representing the call parameters. Required.
|
|
96
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
97
|
+
# Uri, Body, Query string parameters
|
|
98
|
+
def transcode_set_url_map request_pb
|
|
99
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetHttpsProxies/#{request_pb.target_https_proxy}/setUrlMap"
|
|
100
|
+
body = request_pb.url_map_reference_resource.to_json
|
|
101
|
+
query_string_params = {}
|
|
102
|
+
|
|
103
|
+
[uri, body, query_string_params]
|
|
104
|
+
end
|
|
105
|
+
extend self
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/config"
|
|
20
|
+
require "gapic/config/method"
|
|
21
|
+
|
|
22
|
+
require "google/cloud/compute/v1/version"
|
|
23
|
+
|
|
24
|
+
require "google/cloud/compute/v1/region_url_maps/credentials"
|
|
25
|
+
require "google/cloud/compute/v1/region_url_maps/rest"
|
|
26
|
+
|
|
27
|
+
module Google
|
|
28
|
+
module Cloud
|
|
29
|
+
module Compute
|
|
30
|
+
module V1
|
|
31
|
+
# To load this service and instantiate a REST client:
|
|
32
|
+
#
|
|
33
|
+
# require "google/cloud/compute/v1/region_url_maps"
|
|
34
|
+
# client = ::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
|
35
|
+
#
|
|
36
|
+
module RegionUrlMaps
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
helper_path = ::File.join __dir__, "region_url_maps", "helpers.rb"
|
|
44
|
+
require "google/cloud/compute/v1/region_url_maps/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Compute
|
|
24
|
+
module V1
|
|
25
|
+
module RegionUrlMaps
|
|
26
|
+
# Credentials for the RegionUrlMaps API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"COMPUTE_CREDENTIALS",
|
|
34
|
+
"COMPUTE_KEYFILE",
|
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
37
|
+
"GCLOUD_KEYFILE",
|
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
|
43
|
+
]
|
|
44
|
+
self.paths = [
|
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
46
|
+
]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding"
|
|
21
|
+
require "google/cloud/compute/v1/region_url_maps/rest/client"
|
|
22
|
+
|
|
23
|
+
module Google
|
|
24
|
+
module Cloud
|
|
25
|
+
module Compute
|
|
26
|
+
module V1
|
|
27
|
+
module RegionUrlMaps
|
|
28
|
+
# Client for the REST transport
|
|
29
|
+
module Rest
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,714 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/errors"
|
|
20
|
+
require "google/cloud/compute/v1/compute_pb"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Compute
|
|
25
|
+
module V1
|
|
26
|
+
module RegionUrlMaps
|
|
27
|
+
module Rest
|
|
28
|
+
##
|
|
29
|
+
# REST client for the RegionUrlMaps service.
|
|
30
|
+
#
|
|
31
|
+
# The RegionUrlMaps API.
|
|
32
|
+
#
|
|
33
|
+
class Client
|
|
34
|
+
include GrpcTranscoding
|
|
35
|
+
|
|
36
|
+
# @private
|
|
37
|
+
attr_reader :region_url_maps_stub
|
|
38
|
+
|
|
39
|
+
##
|
|
40
|
+
# Configure the RegionUrlMaps Client class.
|
|
41
|
+
#
|
|
42
|
+
# See {::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client::Configuration}
|
|
43
|
+
# for a description of the configuration fields.
|
|
44
|
+
#
|
|
45
|
+
# ## Example
|
|
46
|
+
#
|
|
47
|
+
# To modify the configuration for all RegionUrlMaps clients:
|
|
48
|
+
#
|
|
49
|
+
# ::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.configure do |config|
|
|
50
|
+
# config.timeout = 10.0
|
|
51
|
+
# end
|
|
52
|
+
#
|
|
53
|
+
# @yield [config] Configure the Client client.
|
|
54
|
+
# @yieldparam config [Client::Configuration]
|
|
55
|
+
#
|
|
56
|
+
# @return [Client::Configuration]
|
|
57
|
+
#
|
|
58
|
+
def self.configure
|
|
59
|
+
@configure ||= begin
|
|
60
|
+
namespace = ["Google", "Cloud", "Compute", "V1"]
|
|
61
|
+
parent_config = while namespace.any?
|
|
62
|
+
parent_name = namespace.join "::"
|
|
63
|
+
parent_const = const_get parent_name
|
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
65
|
+
namespace.pop
|
|
66
|
+
end
|
|
67
|
+
default_config = Client::Configuration.new parent_config
|
|
68
|
+
|
|
69
|
+
default_config
|
|
70
|
+
end
|
|
71
|
+
yield @configure if block_given?
|
|
72
|
+
@configure
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
##
|
|
76
|
+
# Configure the RegionUrlMaps Client instance.
|
|
77
|
+
#
|
|
78
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
79
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
80
|
+
# should be made on {Client.configure}.
|
|
81
|
+
#
|
|
82
|
+
# See {::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client::Configuration}
|
|
83
|
+
# for a description of the configuration fields.
|
|
84
|
+
#
|
|
85
|
+
# @yield [config] Configure the Client client.
|
|
86
|
+
# @yieldparam config [Client::Configuration]
|
|
87
|
+
#
|
|
88
|
+
# @return [Client::Configuration]
|
|
89
|
+
#
|
|
90
|
+
def configure
|
|
91
|
+
yield @config if block_given?
|
|
92
|
+
@config
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
##
|
|
96
|
+
# Create a new RegionUrlMaps REST client object.
|
|
97
|
+
#
|
|
98
|
+
# ## Examples
|
|
99
|
+
#
|
|
100
|
+
# To create a new RegionUrlMaps REST client with the default
|
|
101
|
+
# configuration:
|
|
102
|
+
#
|
|
103
|
+
# client = ::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
|
104
|
+
#
|
|
105
|
+
# To create a new RegionUrlMaps REST client with a custom
|
|
106
|
+
# configuration:
|
|
107
|
+
#
|
|
108
|
+
# client = ::Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new do |config|
|
|
109
|
+
# config.timeout = 10.0
|
|
110
|
+
# end
|
|
111
|
+
#
|
|
112
|
+
# @yield [config] Configure the RegionUrlMaps client.
|
|
113
|
+
# @yieldparam config [Client::Configuration]
|
|
114
|
+
#
|
|
115
|
+
def initialize
|
|
116
|
+
# These require statements are intentionally placed here to initialize
|
|
117
|
+
# the REST modules only when it's required.
|
|
118
|
+
require "gapic/rest"
|
|
119
|
+
|
|
120
|
+
# Create the configuration object
|
|
121
|
+
@config = Configuration.new Client.configure
|
|
122
|
+
|
|
123
|
+
# Yield the configuration if needed
|
|
124
|
+
yield @config if block_given?
|
|
125
|
+
|
|
126
|
+
# Create credentials
|
|
127
|
+
credentials = @config.credentials
|
|
128
|
+
credentials ||= Credentials.default scope: @config.scope
|
|
129
|
+
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
130
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: @config.endpoint, credentials: credentials
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Service calls
|
|
137
|
+
|
|
138
|
+
##
|
|
139
|
+
# Deletes the specified UrlMap resource.
|
|
140
|
+
#
|
|
141
|
+
# @overload delete(request, options = nil)
|
|
142
|
+
# Pass arguments to `delete` via a request object, either of type
|
|
143
|
+
# {::Google::Cloud::Compute::V1::DeleteRegionUrlMapRequest} or an equivalent Hash.
|
|
144
|
+
#
|
|
145
|
+
# @param request [::Google::Cloud::Compute::V1::DeleteRegionUrlMapRequest, ::Hash]
|
|
146
|
+
# A request object representing the call parameters. Required. To specify no
|
|
147
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
148
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
149
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
150
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
151
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
152
|
+
#
|
|
153
|
+
# @overload delete(project: nil, region: nil, request_id: nil, url_map: nil)
|
|
154
|
+
# Pass arguments to `delete` via keyword arguments. Note that at
|
|
155
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
156
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
157
|
+
#
|
|
158
|
+
# @param project [::String]
|
|
159
|
+
# Project ID for this request.
|
|
160
|
+
# @param region [::String]
|
|
161
|
+
# Name of the region scoping this request.
|
|
162
|
+
# @param request_id [::String]
|
|
163
|
+
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
|
164
|
+
# @param url_map [::String]
|
|
165
|
+
# Name of the UrlMap resource to delete.
|
|
166
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
167
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
168
|
+
# @yieldparam response [::Faraday::Response]
|
|
169
|
+
#
|
|
170
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
171
|
+
#
|
|
172
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
173
|
+
def delete request, options = nil
|
|
174
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
175
|
+
|
|
176
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteRegionUrlMapRequest
|
|
177
|
+
|
|
178
|
+
# Converts hash and nil to an options object
|
|
179
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
180
|
+
|
|
181
|
+
# Customize the options with defaults
|
|
182
|
+
call_metadata = {}
|
|
183
|
+
|
|
184
|
+
# Set x-goog-api-client header
|
|
185
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
186
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
187
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
188
|
+
|
|
189
|
+
options.apply_defaults timeout: @config.timeout,
|
|
190
|
+
metadata: call_metadata
|
|
191
|
+
|
|
192
|
+
uri, _body, query_string_params = transcode_delete request
|
|
193
|
+
response = @client_stub.make_delete_request(
|
|
194
|
+
uri: uri,
|
|
195
|
+
params: query_string_params,
|
|
196
|
+
options: options
|
|
197
|
+
)
|
|
198
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
199
|
+
|
|
200
|
+
yield result, response if block_given?
|
|
201
|
+
result
|
|
202
|
+
rescue ::Faraday::Error => e
|
|
203
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
204
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
##
|
|
208
|
+
# Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() request.
|
|
209
|
+
#
|
|
210
|
+
# @overload get(request, options = nil)
|
|
211
|
+
# Pass arguments to `get` via a request object, either of type
|
|
212
|
+
# {::Google::Cloud::Compute::V1::GetRegionUrlMapRequest} or an equivalent Hash.
|
|
213
|
+
#
|
|
214
|
+
# @param request [::Google::Cloud::Compute::V1::GetRegionUrlMapRequest, ::Hash]
|
|
215
|
+
# A request object representing the call parameters. Required. To specify no
|
|
216
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
217
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
218
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
219
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
220
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
221
|
+
#
|
|
222
|
+
# @overload get(project: nil, region: nil, url_map: nil)
|
|
223
|
+
# Pass arguments to `get` via keyword arguments. Note that at
|
|
224
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
225
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
226
|
+
#
|
|
227
|
+
# @param project [::String]
|
|
228
|
+
# Project ID for this request.
|
|
229
|
+
# @param region [::String]
|
|
230
|
+
# Name of the region scoping this request.
|
|
231
|
+
# @param url_map [::String]
|
|
232
|
+
# Name of the UrlMap resource to return.
|
|
233
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
234
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::UrlMap]
|
|
235
|
+
# @yieldparam response [::Faraday::Response]
|
|
236
|
+
#
|
|
237
|
+
# @return [::Google::Cloud::Compute::V1::UrlMap]
|
|
238
|
+
#
|
|
239
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
240
|
+
def get request, options = nil
|
|
241
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
242
|
+
|
|
243
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetRegionUrlMapRequest
|
|
244
|
+
|
|
245
|
+
# Converts hash and nil to an options object
|
|
246
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
247
|
+
|
|
248
|
+
# Customize the options with defaults
|
|
249
|
+
call_metadata = {}
|
|
250
|
+
|
|
251
|
+
# Set x-goog-api-client header
|
|
252
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
253
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
254
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
255
|
+
|
|
256
|
+
options.apply_defaults timeout: @config.timeout,
|
|
257
|
+
metadata: call_metadata
|
|
258
|
+
|
|
259
|
+
uri, _body, _query_string_params = transcode_get request
|
|
260
|
+
response = @client_stub.make_get_request(
|
|
261
|
+
uri: uri,
|
|
262
|
+
options: options
|
|
263
|
+
)
|
|
264
|
+
result = ::Google::Cloud::Compute::V1::UrlMap.decode_json response.body, ignore_unknown_fields: true
|
|
265
|
+
|
|
266
|
+
yield result, response if block_given?
|
|
267
|
+
result
|
|
268
|
+
rescue ::Faraday::Error => e
|
|
269
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
270
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
##
|
|
274
|
+
# Creates a UrlMap resource in the specified project using the data included in the request.
|
|
275
|
+
#
|
|
276
|
+
# @overload insert(request, options = nil)
|
|
277
|
+
# Pass arguments to `insert` via a request object, either of type
|
|
278
|
+
# {::Google::Cloud::Compute::V1::InsertRegionUrlMapRequest} or an equivalent Hash.
|
|
279
|
+
#
|
|
280
|
+
# @param request [::Google::Cloud::Compute::V1::InsertRegionUrlMapRequest, ::Hash]
|
|
281
|
+
# A request object representing the call parameters. Required. To specify no
|
|
282
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
283
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
284
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
285
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
286
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
287
|
+
#
|
|
288
|
+
# @overload insert(project: nil, region: nil, request_id: nil, url_map_resource: nil)
|
|
289
|
+
# Pass arguments to `insert` via keyword arguments. Note that at
|
|
290
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
291
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
292
|
+
#
|
|
293
|
+
# @param project [::String]
|
|
294
|
+
# Project ID for this request.
|
|
295
|
+
# @param region [::String]
|
|
296
|
+
# Name of the region scoping this request.
|
|
297
|
+
# @param request_id [::String]
|
|
298
|
+
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
|
299
|
+
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
300
|
+
# The body resource for this request
|
|
301
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
302
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
303
|
+
# @yieldparam response [::Faraday::Response]
|
|
304
|
+
#
|
|
305
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
306
|
+
#
|
|
307
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
308
|
+
def insert request, options = nil
|
|
309
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
310
|
+
|
|
311
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::InsertRegionUrlMapRequest
|
|
312
|
+
|
|
313
|
+
# Converts hash and nil to an options object
|
|
314
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
315
|
+
|
|
316
|
+
# Customize the options with defaults
|
|
317
|
+
call_metadata = {}
|
|
318
|
+
|
|
319
|
+
# Set x-goog-api-client header
|
|
320
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
321
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
322
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
323
|
+
|
|
324
|
+
options.apply_defaults timeout: @config.timeout,
|
|
325
|
+
metadata: call_metadata
|
|
326
|
+
|
|
327
|
+
uri, body, _query_string_params = transcode_insert request
|
|
328
|
+
response = @client_stub.make_post_request(
|
|
329
|
+
uri: uri,
|
|
330
|
+
body: body,
|
|
331
|
+
options: options
|
|
332
|
+
)
|
|
333
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
334
|
+
|
|
335
|
+
yield result, response if block_given?
|
|
336
|
+
result
|
|
337
|
+
rescue ::Faraday::Error => e
|
|
338
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
339
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
##
|
|
343
|
+
# Retrieves the list of UrlMap resources available to the specified project in the specified region.
|
|
344
|
+
#
|
|
345
|
+
# @overload list(request, options = nil)
|
|
346
|
+
# Pass arguments to `list` via a request object, either of type
|
|
347
|
+
# {::Google::Cloud::Compute::V1::ListRegionUrlMapsRequest} or an equivalent Hash.
|
|
348
|
+
#
|
|
349
|
+
# @param request [::Google::Cloud::Compute::V1::ListRegionUrlMapsRequest, ::Hash]
|
|
350
|
+
# A request object representing the call parameters. Required. To specify no
|
|
351
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
352
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
353
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
354
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
355
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
356
|
+
#
|
|
357
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
|
|
358
|
+
# Pass arguments to `list` via keyword arguments. Note that at
|
|
359
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
360
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
361
|
+
#
|
|
362
|
+
# @param filter [::String]
|
|
363
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
|
364
|
+
#
|
|
365
|
+
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
|
366
|
+
#
|
|
367
|
+
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
|
368
|
+
#
|
|
369
|
+
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
370
|
+
# @param max_results [::Integer]
|
|
371
|
+
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
|
372
|
+
# @param order_by [::String]
|
|
373
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
|
374
|
+
#
|
|
375
|
+
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
|
376
|
+
#
|
|
377
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
|
378
|
+
# @param page_token [::String]
|
|
379
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
|
380
|
+
# @param project [::String]
|
|
381
|
+
# Project ID for this request.
|
|
382
|
+
# @param region [::String]
|
|
383
|
+
# Name of the region scoping this request.
|
|
384
|
+
# @param return_partial_success [::Boolean]
|
|
385
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
|
|
386
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
387
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::UrlMapList]
|
|
388
|
+
# @yieldparam response [::Faraday::Response]
|
|
389
|
+
#
|
|
390
|
+
# @return [::Google::Cloud::Compute::V1::UrlMapList]
|
|
391
|
+
#
|
|
392
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
393
|
+
def list request, options = nil
|
|
394
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
395
|
+
|
|
396
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListRegionUrlMapsRequest
|
|
397
|
+
|
|
398
|
+
# Converts hash and nil to an options object
|
|
399
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
400
|
+
|
|
401
|
+
# Customize the options with defaults
|
|
402
|
+
call_metadata = {}
|
|
403
|
+
|
|
404
|
+
# Set x-goog-api-client header
|
|
405
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
406
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
407
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
408
|
+
|
|
409
|
+
options.apply_defaults timeout: @config.timeout,
|
|
410
|
+
metadata: call_metadata
|
|
411
|
+
|
|
412
|
+
uri, _body, query_string_params = transcode_list request
|
|
413
|
+
response = @client_stub.make_get_request(
|
|
414
|
+
uri: uri,
|
|
415
|
+
params: query_string_params,
|
|
416
|
+
options: options
|
|
417
|
+
)
|
|
418
|
+
result = ::Google::Cloud::Compute::V1::UrlMapList.decode_json response.body, ignore_unknown_fields: true
|
|
419
|
+
|
|
420
|
+
yield result, response if block_given?
|
|
421
|
+
result
|
|
422
|
+
rescue ::Faraday::Error => e
|
|
423
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
424
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
##
|
|
428
|
+
# Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
|
|
429
|
+
#
|
|
430
|
+
# @overload patch(request, options = nil)
|
|
431
|
+
# Pass arguments to `patch` via a request object, either of type
|
|
432
|
+
# {::Google::Cloud::Compute::V1::PatchRegionUrlMapRequest} or an equivalent Hash.
|
|
433
|
+
#
|
|
434
|
+
# @param request [::Google::Cloud::Compute::V1::PatchRegionUrlMapRequest, ::Hash]
|
|
435
|
+
# A request object representing the call parameters. Required. To specify no
|
|
436
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
437
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
438
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
439
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
440
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
441
|
+
#
|
|
442
|
+
# @overload patch(project: nil, region: nil, request_id: nil, url_map: nil, url_map_resource: nil)
|
|
443
|
+
# Pass arguments to `patch` via keyword arguments. Note that at
|
|
444
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
445
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
446
|
+
#
|
|
447
|
+
# @param project [::String]
|
|
448
|
+
# Project ID for this request.
|
|
449
|
+
# @param region [::String]
|
|
450
|
+
# Name of the region scoping this request.
|
|
451
|
+
# @param request_id [::String]
|
|
452
|
+
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
|
453
|
+
# @param url_map [::String]
|
|
454
|
+
# Name of the UrlMap resource to patch.
|
|
455
|
+
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
456
|
+
# The body resource for this request
|
|
457
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
458
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
459
|
+
# @yieldparam response [::Faraday::Response]
|
|
460
|
+
#
|
|
461
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
462
|
+
#
|
|
463
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
464
|
+
def patch request, options = nil
|
|
465
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
466
|
+
|
|
467
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchRegionUrlMapRequest
|
|
468
|
+
|
|
469
|
+
# Converts hash and nil to an options object
|
|
470
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
471
|
+
|
|
472
|
+
# Customize the options with defaults
|
|
473
|
+
call_metadata = {}
|
|
474
|
+
|
|
475
|
+
# Set x-goog-api-client header
|
|
476
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
477
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
478
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
479
|
+
|
|
480
|
+
options.apply_defaults timeout: @config.timeout,
|
|
481
|
+
metadata: call_metadata
|
|
482
|
+
|
|
483
|
+
uri, body, _query_string_params = transcode_patch request
|
|
484
|
+
response = @client_stub.make_patch_request(
|
|
485
|
+
uri: uri,
|
|
486
|
+
body: body,
|
|
487
|
+
options: options
|
|
488
|
+
)
|
|
489
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
490
|
+
|
|
491
|
+
yield result, response if block_given?
|
|
492
|
+
result
|
|
493
|
+
rescue ::Faraday::Error => e
|
|
494
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
495
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
##
|
|
499
|
+
# Updates the specified UrlMap resource with the data included in the request.
|
|
500
|
+
#
|
|
501
|
+
# @overload update(request, options = nil)
|
|
502
|
+
# Pass arguments to `update` via a request object, either of type
|
|
503
|
+
# {::Google::Cloud::Compute::V1::UpdateRegionUrlMapRequest} or an equivalent Hash.
|
|
504
|
+
#
|
|
505
|
+
# @param request [::Google::Cloud::Compute::V1::UpdateRegionUrlMapRequest, ::Hash]
|
|
506
|
+
# A request object representing the call parameters. Required. To specify no
|
|
507
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
508
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
509
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
510
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
511
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
512
|
+
#
|
|
513
|
+
# @overload update(project: nil, region: nil, request_id: nil, url_map: nil, url_map_resource: nil)
|
|
514
|
+
# Pass arguments to `update` via keyword arguments. Note that at
|
|
515
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
516
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
517
|
+
#
|
|
518
|
+
# @param project [::String]
|
|
519
|
+
# Project ID for this request.
|
|
520
|
+
# @param region [::String]
|
|
521
|
+
# Name of the region scoping this request.
|
|
522
|
+
# @param request_id [::String]
|
|
523
|
+
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
|
524
|
+
# @param url_map [::String]
|
|
525
|
+
# Name of the UrlMap resource to update.
|
|
526
|
+
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
527
|
+
# The body resource for this request
|
|
528
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
529
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
530
|
+
# @yieldparam response [::Faraday::Response]
|
|
531
|
+
#
|
|
532
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
533
|
+
#
|
|
534
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
535
|
+
def update request, options = nil
|
|
536
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
537
|
+
|
|
538
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::UpdateRegionUrlMapRequest
|
|
539
|
+
|
|
540
|
+
# Converts hash and nil to an options object
|
|
541
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
542
|
+
|
|
543
|
+
# Customize the options with defaults
|
|
544
|
+
call_metadata = {}
|
|
545
|
+
|
|
546
|
+
# Set x-goog-api-client header
|
|
547
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
548
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
549
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
550
|
+
|
|
551
|
+
options.apply_defaults timeout: @config.timeout,
|
|
552
|
+
metadata: call_metadata
|
|
553
|
+
|
|
554
|
+
uri, body, _query_string_params = transcode_update request
|
|
555
|
+
response = @client_stub.make_put_request(
|
|
556
|
+
uri: uri,
|
|
557
|
+
body: body,
|
|
558
|
+
options: options
|
|
559
|
+
)
|
|
560
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
561
|
+
|
|
562
|
+
yield result, response if block_given?
|
|
563
|
+
result
|
|
564
|
+
rescue ::Faraday::Error => e
|
|
565
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
566
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
##
|
|
570
|
+
# Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
|
|
571
|
+
#
|
|
572
|
+
# @overload validate(request, options = nil)
|
|
573
|
+
# Pass arguments to `validate` via a request object, either of type
|
|
574
|
+
# {::Google::Cloud::Compute::V1::ValidateRegionUrlMapRequest} or an equivalent Hash.
|
|
575
|
+
#
|
|
576
|
+
# @param request [::Google::Cloud::Compute::V1::ValidateRegionUrlMapRequest, ::Hash]
|
|
577
|
+
# A request object representing the call parameters. Required. To specify no
|
|
578
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
579
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
580
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
581
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
|
582
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
|
583
|
+
#
|
|
584
|
+
# @overload validate(project: nil, region: nil, region_url_maps_validate_request_resource: nil, url_map: nil)
|
|
585
|
+
# Pass arguments to `validate` via keyword arguments. Note that at
|
|
586
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
587
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
588
|
+
#
|
|
589
|
+
# @param project [::String]
|
|
590
|
+
# Project ID for this request.
|
|
591
|
+
# @param region [::String]
|
|
592
|
+
# Name of the region scoping this request.
|
|
593
|
+
# @param region_url_maps_validate_request_resource [::Google::Cloud::Compute::V1::RegionUrlMapsValidateRequest, ::Hash]
|
|
594
|
+
# The body resource for this request
|
|
595
|
+
# @param url_map [::String]
|
|
596
|
+
# Name of the UrlMap resource to be validated as.
|
|
597
|
+
# @yield [result, env] Access the result along with the Faraday environment object
|
|
598
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
|
|
599
|
+
# @yieldparam response [::Faraday::Response]
|
|
600
|
+
#
|
|
601
|
+
# @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
|
|
602
|
+
#
|
|
603
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
604
|
+
def validate request, options = nil
|
|
605
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
606
|
+
|
|
607
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ValidateRegionUrlMapRequest
|
|
608
|
+
|
|
609
|
+
# Converts hash and nil to an options object
|
|
610
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
611
|
+
|
|
612
|
+
# Customize the options with defaults
|
|
613
|
+
call_metadata = {}
|
|
614
|
+
|
|
615
|
+
# Set x-goog-api-client header
|
|
616
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
617
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
618
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
619
|
+
|
|
620
|
+
options.apply_defaults timeout: @config.timeout,
|
|
621
|
+
metadata: call_metadata
|
|
622
|
+
|
|
623
|
+
uri, body, _query_string_params = transcode_validate request
|
|
624
|
+
response = @client_stub.make_post_request(
|
|
625
|
+
uri: uri,
|
|
626
|
+
body: body,
|
|
627
|
+
options: options
|
|
628
|
+
)
|
|
629
|
+
result = ::Google::Cloud::Compute::V1::UrlMapsValidateResponse.decode_json response.body, ignore_unknown_fields: true
|
|
630
|
+
|
|
631
|
+
yield result, response if block_given?
|
|
632
|
+
result
|
|
633
|
+
rescue ::Faraday::Error => e
|
|
634
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
|
635
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
##
|
|
639
|
+
# Configuration class for the RegionUrlMaps REST API.
|
|
640
|
+
#
|
|
641
|
+
# This class represents the configuration for RegionUrlMaps REST,
|
|
642
|
+
# providing control over credentials, timeouts, retry behavior, logging.
|
|
643
|
+
#
|
|
644
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
645
|
+
# on construction.
|
|
646
|
+
#
|
|
647
|
+
# # Examples
|
|
648
|
+
#
|
|
649
|
+
# To modify the global config, setting the timeout for all calls to 10 seconds:
|
|
650
|
+
#
|
|
651
|
+
# ::Google::Cloud::Compute::V1::RegionUrlMaps::Client.configure do |config|
|
|
652
|
+
# config.timeout = 10.0
|
|
653
|
+
# end
|
|
654
|
+
#
|
|
655
|
+
# To apply the above configuration only to a new client:
|
|
656
|
+
#
|
|
657
|
+
# client = ::Google::Cloud::Compute::V1::RegionUrlMaps::Client.new do |config|
|
|
658
|
+
# config.timeout = 10.0
|
|
659
|
+
# end
|
|
660
|
+
#
|
|
661
|
+
# @!attribute [rw] endpoint
|
|
662
|
+
# The hostname or hostname:port of the service endpoint.
|
|
663
|
+
# Defaults to `"compute.googleapis.com"`.
|
|
664
|
+
# @return [::String]
|
|
665
|
+
# @!attribute [rw] credentials
|
|
666
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
667
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
668
|
+
# * (`Hash`) A service account key as a Hash
|
|
669
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
670
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
|
671
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
672
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
|
673
|
+
# * (`nil`) indicating no credentials
|
|
674
|
+
# @return [::Object]
|
|
675
|
+
# @!attribute [rw] scope
|
|
676
|
+
# The OAuth scopes
|
|
677
|
+
# @return [::Array<::String>]
|
|
678
|
+
# @!attribute [rw] lib_name
|
|
679
|
+
# The library name as recorded in instrumentation and logging
|
|
680
|
+
# @return [::String]
|
|
681
|
+
# @!attribute [rw] lib_version
|
|
682
|
+
# The library version as recorded in instrumentation and logging
|
|
683
|
+
# @return [::String]
|
|
684
|
+
# @!attribute [rw] timeout
|
|
685
|
+
# The call timeout in seconds.
|
|
686
|
+
# @return [::Numeric]
|
|
687
|
+
#
|
|
688
|
+
class Configuration
|
|
689
|
+
extend ::Gapic::Config
|
|
690
|
+
|
|
691
|
+
config_attr :endpoint, "compute.googleapis.com", ::String
|
|
692
|
+
config_attr :credentials, nil do |value|
|
|
693
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
694
|
+
allowed.any? { |klass| klass === value }
|
|
695
|
+
end
|
|
696
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
697
|
+
config_attr :lib_name, nil, ::String, nil
|
|
698
|
+
config_attr :lib_version, nil, ::String, nil
|
|
699
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
700
|
+
|
|
701
|
+
# @private
|
|
702
|
+
def initialize parent_config = nil
|
|
703
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
704
|
+
|
|
705
|
+
yield self if block_given?
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
end
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
end
|