google-cloud-compute-v1 1.2.0 → 1.5.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 +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/accelerator_types.rb +5 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/addresses.rb +3 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +222 -129
- data/lib/google/cloud/compute/v1/autoscalers.rb +3 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +285 -161
- data/lib/google/cloud/compute/v1/backend_buckets.rb +3 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +383 -221
- data/lib/google/cloud/compute/v1/backend_services.rb +3 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/disk_types.rb +3 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +429 -240
- data/lib/google/cloud/compute/v1/disks.rb +3 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +189 -102
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +555 -330
- data/lib/google/cloud/compute/v1/firewall_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +187 -104
- data/lib/google/cloud/compute/v1/firewalls.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +258 -146
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +121 -66
- data/lib/google/cloud/compute/v1/global_addresses.rb +3 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +221 -122
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +219 -126
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +154 -86
- data/lib/google/cloud/compute/v1/global_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +84 -49
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +218 -127
- data/lib/google/cloud/compute/v1/health_checks.rb +3 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +27 -7
- data/lib/google/cloud/compute/v1/image_family_views.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +354 -194
- data/lib/google/cloud/compute/v1/images.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +10 -10
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +664 -381
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +292 -169
- data/lib/google/cloud/compute/v1/instance_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +221 -120
- data/lib/google/cloud/compute/v1/instance_templates.rb +3 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1503 -845
- data/lib/google/cloud/compute/v1/instances.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +190 -109
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +187 -102
- data/lib/google/cloud/compute/v1/interconnects.rb +3 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +60 -25
- data/lib/google/cloud/compute/v1/license_codes.rb +3 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +221 -120
- data/lib/google/cloud/compute/v1/licenses.rb +3 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +221 -121
- data/lib/google/cloud/compute/v1/machine_images.rb +3 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/machine_types.rb +3 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +348 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +47 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +293 -168
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +998 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +350 -202
- data/lib/google/cloud/compute/v1/networks.rb +3 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +428 -242
- data/lib/google/cloud/compute/v1/node_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/node_templates.rb +3 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +90 -52
- data/lib/google/cloud/compute/v1/node_types.rb +3 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +225 -126
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +3 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +406 -238
- data/lib/google/cloud/compute/v1/projects.rb +3 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +190 -108
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +3 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +191 -106
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +3 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +228 -122
- data/lib/google/cloud/compute/v1/region_backend_services.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +157 -92
- data/lib/google/cloud/compute/v1/region_commitments.rb +3 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +59 -29
- data/lib/google/cloud/compute/v1/region_disk_types.rb +3 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +398 -216
- data/lib/google/cloud/compute/v1/region_disks.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +159 -85
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +3 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +193 -104
- data/lib/google/cloud/compute/v1/region_health_checks.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +9 -9
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +633 -358
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +127 -71
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +26 -9
- data/lib/google/cloud/compute/v1/region_instances.rb +3 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1073 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +3 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +127 -63
- data/lib/google/cloud/compute/v1/region_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +349 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +125 -66
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +159 -85
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +88 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +249 -99
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +228 -122
- data/lib/google/cloud/compute/v1/region_url_maps.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/regions.rb +3 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +327 -183
- data/lib/google/cloud/compute/v1/reservations.rb +3 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/resource_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +326 -184
- data/lib/google/cloud/compute/v1/routers.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +121 -66
- data/lib/google/cloud/compute/v1/routes.rb +3 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +97 -5
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +368 -174
- data/lib/google/cloud/compute/v1/security_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +293 -162
- data/lib/google/cloud/compute/v1/service_attachments.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +255 -138
- data/lib/google/cloud/compute/v1/snapshots.rb +3 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +152 -89
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +3 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +185 -107
- data/lib/google/cloud/compute/v1/ssl_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +392 -223
- data/lib/google/cloud/compute/v1/subnetworks.rb +3 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +154 -85
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +218 -127
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +371 -178
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/target_instances.rb +3 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +361 -203
- data/lib/google/cloud/compute/v1/target_pools.rb +3 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +85 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +307 -136
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +187 -104
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +285 -164
- data/lib/google/cloud/compute/v1/url_maps.rb +3 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +259 -143
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +3 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +156 -89
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +3 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +127 -63
- data/lib/google/cloud/compute/v1/zone_operations.rb +3 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +57 -29
- data/lib/google/cloud/compute/v1/zones.rb +3 -0
- data/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
- metadata +32 -12
@@ -55,10 +55,17 @@ module Google
|
|
55
55
|
def add_health_check request_pb, options = nil
|
56
56
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
57
|
|
58
|
-
|
59
|
-
|
58
|
+
verb, uri, query_string_params, body = transcode_add_health_check_request request_pb
|
59
|
+
query_string_params = if query_string_params.any?
|
60
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
61
|
+
else
|
62
|
+
{}
|
63
|
+
end
|
64
|
+
|
65
|
+
response = @client_stub.make_http_request(
|
66
|
+
verb,
|
60
67
|
uri: uri,
|
61
|
-
body: body,
|
68
|
+
body: body || "",
|
62
69
|
params: query_string_params,
|
63
70
|
options: options
|
64
71
|
)
|
@@ -68,22 +75,6 @@ module Google
|
|
68
75
|
result
|
69
76
|
end
|
70
77
|
|
71
|
-
##
|
72
|
-
# GRPC transcoding helper method for the add_health_check REST call
|
73
|
-
#
|
74
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AddHealthCheckTargetPoolRequest]
|
75
|
-
# A request object representing the call parameters. Required.
|
76
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
77
|
-
# Uri, Body, Query string parameters
|
78
|
-
def transcode_add_health_check_request request_pb
|
79
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}/addHealthCheck"
|
80
|
-
body = request_pb.target_pools_add_health_check_request_resource.to_json
|
81
|
-
query_string_params = {}
|
82
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
83
|
-
|
84
|
-
[uri, body, query_string_params]
|
85
|
-
end
|
86
|
-
|
87
78
|
##
|
88
79
|
# Baseline implementation for the add_instance REST call
|
89
80
|
#
|
@@ -101,10 +92,17 @@ module Google
|
|
101
92
|
def add_instance request_pb, options = nil
|
102
93
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
103
94
|
|
104
|
-
|
105
|
-
|
95
|
+
verb, uri, query_string_params, body = transcode_add_instance_request request_pb
|
96
|
+
query_string_params = if query_string_params.any?
|
97
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
98
|
+
else
|
99
|
+
{}
|
100
|
+
end
|
101
|
+
|
102
|
+
response = @client_stub.make_http_request(
|
103
|
+
verb,
|
106
104
|
uri: uri,
|
107
|
-
body: body,
|
105
|
+
body: body || "",
|
108
106
|
params: query_string_params,
|
109
107
|
options: options
|
110
108
|
)
|
@@ -114,22 +112,6 @@ module Google
|
|
114
112
|
result
|
115
113
|
end
|
116
114
|
|
117
|
-
##
|
118
|
-
# GRPC transcoding helper method for the add_instance REST call
|
119
|
-
#
|
120
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AddInstanceTargetPoolRequest]
|
121
|
-
# A request object representing the call parameters. Required.
|
122
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
123
|
-
# Uri, Body, Query string parameters
|
124
|
-
def transcode_add_instance_request request_pb
|
125
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}/addInstance"
|
126
|
-
body = request_pb.target_pools_add_instance_request_resource.to_json
|
127
|
-
query_string_params = {}
|
128
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
129
|
-
|
130
|
-
[uri, body, query_string_params]
|
131
|
-
end
|
132
|
-
|
133
115
|
##
|
134
116
|
# Baseline implementation for the aggregated_list REST call
|
135
117
|
#
|
@@ -147,9 +129,17 @@ module Google
|
|
147
129
|
def aggregated_list request_pb, options = nil
|
148
130
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
149
131
|
|
150
|
-
|
151
|
-
|
132
|
+
verb, uri, query_string_params, body = transcode_aggregated_list_request request_pb
|
133
|
+
query_string_params = if query_string_params.any?
|
134
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
135
|
+
else
|
136
|
+
{}
|
137
|
+
end
|
138
|
+
|
139
|
+
response = @client_stub.make_http_request(
|
140
|
+
verb,
|
152
141
|
uri: uri,
|
142
|
+
body: body || "",
|
153
143
|
params: query_string_params,
|
154
144
|
options: options
|
155
145
|
)
|
@@ -159,27 +149,6 @@ module Google
|
|
159
149
|
result
|
160
150
|
end
|
161
151
|
|
162
|
-
##
|
163
|
-
# GRPC transcoding helper method for the aggregated_list REST call
|
164
|
-
#
|
165
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListTargetPoolsRequest]
|
166
|
-
# A request object representing the call parameters. Required.
|
167
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
168
|
-
# Uri, Body, Query string parameters
|
169
|
-
def transcode_aggregated_list_request request_pb
|
170
|
-
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/targetPools"
|
171
|
-
body = nil
|
172
|
-
query_string_params = {}
|
173
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
174
|
-
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
175
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
176
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
177
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
178
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
179
|
-
|
180
|
-
[uri, body, query_string_params]
|
181
|
-
end
|
182
|
-
|
183
152
|
##
|
184
153
|
# Baseline implementation for the delete REST call
|
185
154
|
#
|
@@ -197,9 +166,17 @@ module Google
|
|
197
166
|
def delete request_pb, options = nil
|
198
167
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
199
168
|
|
200
|
-
|
201
|
-
|
169
|
+
verb, uri, query_string_params, body = transcode_delete_request request_pb
|
170
|
+
query_string_params = if query_string_params.any?
|
171
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
172
|
+
else
|
173
|
+
{}
|
174
|
+
end
|
175
|
+
|
176
|
+
response = @client_stub.make_http_request(
|
177
|
+
verb,
|
202
178
|
uri: uri,
|
179
|
+
body: body || "",
|
203
180
|
params: query_string_params,
|
204
181
|
options: options
|
205
182
|
)
|
@@ -209,22 +186,6 @@ module Google
|
|
209
186
|
result
|
210
187
|
end
|
211
188
|
|
212
|
-
##
|
213
|
-
# GRPC transcoding helper method for the delete REST call
|
214
|
-
#
|
215
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteTargetPoolRequest]
|
216
|
-
# A request object representing the call parameters. Required.
|
217
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
218
|
-
# Uri, Body, Query string parameters
|
219
|
-
def transcode_delete_request request_pb
|
220
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}"
|
221
|
-
body = nil
|
222
|
-
query_string_params = {}
|
223
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
224
|
-
|
225
|
-
[uri, body, query_string_params]
|
226
|
-
end
|
227
|
-
|
228
189
|
##
|
229
190
|
# Baseline implementation for the get REST call
|
230
191
|
#
|
@@ -242,9 +203,18 @@ module Google
|
|
242
203
|
def get request_pb, options = nil
|
243
204
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
244
205
|
|
245
|
-
uri,
|
246
|
-
|
206
|
+
verb, uri, query_string_params, body = transcode_get_request request_pb
|
207
|
+
query_string_params = if query_string_params.any?
|
208
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
209
|
+
else
|
210
|
+
{}
|
211
|
+
end
|
212
|
+
|
213
|
+
response = @client_stub.make_http_request(
|
214
|
+
verb,
|
247
215
|
uri: uri,
|
216
|
+
body: body || "",
|
217
|
+
params: query_string_params,
|
248
218
|
options: options
|
249
219
|
)
|
250
220
|
result = ::Google::Cloud::Compute::V1::TargetPool.decode_json response.body, ignore_unknown_fields: true
|
@@ -253,21 +223,6 @@ module Google
|
|
253
223
|
result
|
254
224
|
end
|
255
225
|
|
256
|
-
##
|
257
|
-
# GRPC transcoding helper method for the get REST call
|
258
|
-
#
|
259
|
-
# @param request_pb [::Google::Cloud::Compute::V1::GetTargetPoolRequest]
|
260
|
-
# A request object representing the call parameters. Required.
|
261
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
262
|
-
# Uri, Body, Query string parameters
|
263
|
-
def transcode_get_request request_pb
|
264
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}"
|
265
|
-
body = nil
|
266
|
-
query_string_params = {}
|
267
|
-
|
268
|
-
[uri, body, query_string_params]
|
269
|
-
end
|
270
|
-
|
271
226
|
##
|
272
227
|
# Baseline implementation for the get_health REST call
|
273
228
|
#
|
@@ -285,10 +240,18 @@ module Google
|
|
285
240
|
def get_health request_pb, options = nil
|
286
241
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
287
242
|
|
288
|
-
uri,
|
289
|
-
|
243
|
+
verb, uri, query_string_params, body = transcode_get_health_request request_pb
|
244
|
+
query_string_params = if query_string_params.any?
|
245
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
246
|
+
else
|
247
|
+
{}
|
248
|
+
end
|
249
|
+
|
250
|
+
response = @client_stub.make_http_request(
|
251
|
+
verb,
|
290
252
|
uri: uri,
|
291
|
-
body: body,
|
253
|
+
body: body || "",
|
254
|
+
params: query_string_params,
|
292
255
|
options: options
|
293
256
|
)
|
294
257
|
result = ::Google::Cloud::Compute::V1::TargetPoolInstanceHealth.decode_json response.body, ignore_unknown_fields: true
|
@@ -297,21 +260,6 @@ module Google
|
|
297
260
|
result
|
298
261
|
end
|
299
262
|
|
300
|
-
##
|
301
|
-
# GRPC transcoding helper method for the get_health REST call
|
302
|
-
#
|
303
|
-
# @param request_pb [::Google::Cloud::Compute::V1::GetHealthTargetPoolRequest]
|
304
|
-
# A request object representing the call parameters. Required.
|
305
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
306
|
-
# Uri, Body, Query string parameters
|
307
|
-
def transcode_get_health_request request_pb
|
308
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}/getHealth"
|
309
|
-
body = request_pb.instance_reference_resource.to_json
|
310
|
-
query_string_params = {}
|
311
|
-
|
312
|
-
[uri, body, query_string_params]
|
313
|
-
end
|
314
|
-
|
315
263
|
##
|
316
264
|
# Baseline implementation for the insert REST call
|
317
265
|
#
|
@@ -329,10 +277,17 @@ module Google
|
|
329
277
|
def insert request_pb, options = nil
|
330
278
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
331
279
|
|
332
|
-
|
333
|
-
|
280
|
+
verb, uri, query_string_params, body = transcode_insert_request request_pb
|
281
|
+
query_string_params = if query_string_params.any?
|
282
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
283
|
+
else
|
284
|
+
{}
|
285
|
+
end
|
286
|
+
|
287
|
+
response = @client_stub.make_http_request(
|
288
|
+
verb,
|
334
289
|
uri: uri,
|
335
|
-
body: body,
|
290
|
+
body: body || "",
|
336
291
|
params: query_string_params,
|
337
292
|
options: options
|
338
293
|
)
|
@@ -342,22 +297,6 @@ module Google
|
|
342
297
|
result
|
343
298
|
end
|
344
299
|
|
345
|
-
##
|
346
|
-
# GRPC transcoding helper method for the insert REST call
|
347
|
-
#
|
348
|
-
# @param request_pb [::Google::Cloud::Compute::V1::InsertTargetPoolRequest]
|
349
|
-
# A request object representing the call parameters. Required.
|
350
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
351
|
-
# Uri, Body, Query string parameters
|
352
|
-
def transcode_insert_request request_pb
|
353
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools"
|
354
|
-
body = request_pb.target_pool_resource.to_json
|
355
|
-
query_string_params = {}
|
356
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
357
|
-
|
358
|
-
[uri, body, query_string_params]
|
359
|
-
end
|
360
|
-
|
361
300
|
##
|
362
301
|
# Baseline implementation for the list REST call
|
363
302
|
#
|
@@ -375,9 +314,17 @@ module Google
|
|
375
314
|
def list request_pb, options = nil
|
376
315
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
377
316
|
|
378
|
-
|
379
|
-
|
317
|
+
verb, uri, query_string_params, body = transcode_list_request request_pb
|
318
|
+
query_string_params = if query_string_params.any?
|
319
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
320
|
+
else
|
321
|
+
{}
|
322
|
+
end
|
323
|
+
|
324
|
+
response = @client_stub.make_http_request(
|
325
|
+
verb,
|
380
326
|
uri: uri,
|
327
|
+
body: body || "",
|
381
328
|
params: query_string_params,
|
382
329
|
options: options
|
383
330
|
)
|
@@ -387,26 +334,6 @@ module Google
|
|
387
334
|
result
|
388
335
|
end
|
389
336
|
|
390
|
-
##
|
391
|
-
# GRPC transcoding helper method for the list REST call
|
392
|
-
#
|
393
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListTargetPoolsRequest]
|
394
|
-
# A request object representing the call parameters. Required.
|
395
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
396
|
-
# Uri, Body, Query string parameters
|
397
|
-
def transcode_list_request request_pb
|
398
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools"
|
399
|
-
body = nil
|
400
|
-
query_string_params = {}
|
401
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
402
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
403
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
404
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
405
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
406
|
-
|
407
|
-
[uri, body, query_string_params]
|
408
|
-
end
|
409
|
-
|
410
337
|
##
|
411
338
|
# Baseline implementation for the remove_health_check REST call
|
412
339
|
#
|
@@ -424,10 +351,17 @@ module Google
|
|
424
351
|
def remove_health_check request_pb, options = nil
|
425
352
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
426
353
|
|
427
|
-
|
428
|
-
|
354
|
+
verb, uri, query_string_params, body = transcode_remove_health_check_request request_pb
|
355
|
+
query_string_params = if query_string_params.any?
|
356
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
357
|
+
else
|
358
|
+
{}
|
359
|
+
end
|
360
|
+
|
361
|
+
response = @client_stub.make_http_request(
|
362
|
+
verb,
|
429
363
|
uri: uri,
|
430
|
-
body: body,
|
364
|
+
body: body || "",
|
431
365
|
params: query_string_params,
|
432
366
|
options: options
|
433
367
|
)
|
@@ -437,22 +371,6 @@ module Google
|
|
437
371
|
result
|
438
372
|
end
|
439
373
|
|
440
|
-
##
|
441
|
-
# GRPC transcoding helper method for the remove_health_check REST call
|
442
|
-
#
|
443
|
-
# @param request_pb [::Google::Cloud::Compute::V1::RemoveHealthCheckTargetPoolRequest]
|
444
|
-
# A request object representing the call parameters. Required.
|
445
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
446
|
-
# Uri, Body, Query string parameters
|
447
|
-
def transcode_remove_health_check_request request_pb
|
448
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}/removeHealthCheck"
|
449
|
-
body = request_pb.target_pools_remove_health_check_request_resource.to_json
|
450
|
-
query_string_params = {}
|
451
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
452
|
-
|
453
|
-
[uri, body, query_string_params]
|
454
|
-
end
|
455
|
-
|
456
374
|
##
|
457
375
|
# Baseline implementation for the remove_instance REST call
|
458
376
|
#
|
@@ -470,10 +388,17 @@ module Google
|
|
470
388
|
def remove_instance request_pb, options = nil
|
471
389
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
472
390
|
|
473
|
-
|
474
|
-
|
391
|
+
verb, uri, query_string_params, body = transcode_remove_instance_request request_pb
|
392
|
+
query_string_params = if query_string_params.any?
|
393
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
394
|
+
else
|
395
|
+
{}
|
396
|
+
end
|
397
|
+
|
398
|
+
response = @client_stub.make_http_request(
|
399
|
+
verb,
|
475
400
|
uri: uri,
|
476
|
-
body: body,
|
401
|
+
body: body || "",
|
477
402
|
params: query_string_params,
|
478
403
|
options: options
|
479
404
|
)
|
@@ -483,22 +408,6 @@ module Google
|
|
483
408
|
result
|
484
409
|
end
|
485
410
|
|
486
|
-
##
|
487
|
-
# GRPC transcoding helper method for the remove_instance REST call
|
488
|
-
#
|
489
|
-
# @param request_pb [::Google::Cloud::Compute::V1::RemoveInstanceTargetPoolRequest]
|
490
|
-
# A request object representing the call parameters. Required.
|
491
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
492
|
-
# Uri, Body, Query string parameters
|
493
|
-
def transcode_remove_instance_request request_pb
|
494
|
-
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetPools/#{request_pb.target_pool}/removeInstance"
|
495
|
-
body = request_pb.target_pools_remove_instance_request_resource.to_json
|
496
|
-
query_string_params = {}
|
497
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
498
|
-
|
499
|
-
[uri, body, query_string_params]
|
500
|
-
end
|
501
|
-
|
502
411
|
##
|
503
412
|
# Baseline implementation for the set_backup REST call
|
504
413
|
#
|
@@ -516,10 +425,17 @@ module Google
|
|
516
425
|
def set_backup request_pb, options = nil
|
517
426
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
518
427
|
|
519
|
-
|
520
|
-
|
428
|
+
verb, uri, query_string_params, body = transcode_set_backup_request request_pb
|
429
|
+
query_string_params = if query_string_params.any?
|
430
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
431
|
+
else
|
432
|
+
{}
|
433
|
+
end
|
434
|
+
|
435
|
+
response = @client_stub.make_http_request(
|
436
|
+
verb,
|
521
437
|
uri: uri,
|
522
|
-
body: body,
|
438
|
+
body: body || "",
|
523
439
|
params: query_string_params,
|
524
440
|
options: options
|
525
441
|
)
|
@@ -529,7 +445,244 @@ module Google
|
|
529
445
|
result
|
530
446
|
end
|
531
447
|
|
448
|
+
|
449
|
+
private
|
450
|
+
|
451
|
+
##
|
452
|
+
# @private
|
453
|
+
#
|
454
|
+
# GRPC transcoding helper method for the add_health_check REST call
|
455
|
+
#
|
456
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddHealthCheckTargetPoolRequest]
|
457
|
+
# A request object representing the call parameters. Required.
|
458
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
459
|
+
# Uri, Body, Query string parameters
|
460
|
+
def transcode_add_health_check_request request_pb
|
461
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
462
|
+
.with_bindings(
|
463
|
+
uri_method: :post,
|
464
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addHealthCheck",
|
465
|
+
body: "target_pools_add_health_check_request_resource",
|
466
|
+
matches: [
|
467
|
+
["project", %r{[^/]+}, false],
|
468
|
+
["region", %r{[^/]+}, false],
|
469
|
+
["target_pool", %r{[^/]+}, false]
|
470
|
+
]
|
471
|
+
)
|
472
|
+
transcoder.transcode request_pb
|
473
|
+
end
|
474
|
+
|
532
475
|
##
|
476
|
+
# @private
|
477
|
+
#
|
478
|
+
# GRPC transcoding helper method for the add_instance REST call
|
479
|
+
#
|
480
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddInstanceTargetPoolRequest]
|
481
|
+
# A request object representing the call parameters. Required.
|
482
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
483
|
+
# Uri, Body, Query string parameters
|
484
|
+
def transcode_add_instance_request request_pb
|
485
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
486
|
+
.with_bindings(
|
487
|
+
uri_method: :post,
|
488
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addInstance",
|
489
|
+
body: "target_pools_add_instance_request_resource",
|
490
|
+
matches: [
|
491
|
+
["project", %r{[^/]+}, false],
|
492
|
+
["region", %r{[^/]+}, false],
|
493
|
+
["target_pool", %r{[^/]+}, false]
|
494
|
+
]
|
495
|
+
)
|
496
|
+
transcoder.transcode request_pb
|
497
|
+
end
|
498
|
+
|
499
|
+
##
|
500
|
+
# @private
|
501
|
+
#
|
502
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
503
|
+
#
|
504
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListTargetPoolsRequest]
|
505
|
+
# A request object representing the call parameters. Required.
|
506
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
507
|
+
# Uri, Body, Query string parameters
|
508
|
+
def transcode_aggregated_list_request request_pb
|
509
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
510
|
+
.with_bindings(
|
511
|
+
uri_method: :get,
|
512
|
+
uri_template: "/compute/v1/projects/{project}/aggregated/targetPools",
|
513
|
+
matches: [
|
514
|
+
["project", %r{[^/]+}, false]
|
515
|
+
]
|
516
|
+
)
|
517
|
+
transcoder.transcode request_pb
|
518
|
+
end
|
519
|
+
|
520
|
+
##
|
521
|
+
# @private
|
522
|
+
#
|
523
|
+
# GRPC transcoding helper method for the delete REST call
|
524
|
+
#
|
525
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteTargetPoolRequest]
|
526
|
+
# A request object representing the call parameters. Required.
|
527
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
528
|
+
# Uri, Body, Query string parameters
|
529
|
+
def transcode_delete_request request_pb
|
530
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
531
|
+
.with_bindings(
|
532
|
+
uri_method: :delete,
|
533
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
|
534
|
+
matches: [
|
535
|
+
["project", %r{[^/]+}, false],
|
536
|
+
["region", %r{[^/]+}, false],
|
537
|
+
["target_pool", %r{[^/]+}, false]
|
538
|
+
]
|
539
|
+
)
|
540
|
+
transcoder.transcode request_pb
|
541
|
+
end
|
542
|
+
|
543
|
+
##
|
544
|
+
# @private
|
545
|
+
#
|
546
|
+
# GRPC transcoding helper method for the get REST call
|
547
|
+
#
|
548
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetTargetPoolRequest]
|
549
|
+
# A request object representing the call parameters. Required.
|
550
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
551
|
+
# Uri, Body, Query string parameters
|
552
|
+
def transcode_get_request request_pb
|
553
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
554
|
+
.with_bindings(
|
555
|
+
uri_method: :get,
|
556
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
|
557
|
+
matches: [
|
558
|
+
["project", %r{[^/]+}, false],
|
559
|
+
["region", %r{[^/]+}, false],
|
560
|
+
["target_pool", %r{[^/]+}, false]
|
561
|
+
]
|
562
|
+
)
|
563
|
+
transcoder.transcode request_pb
|
564
|
+
end
|
565
|
+
|
566
|
+
##
|
567
|
+
# @private
|
568
|
+
#
|
569
|
+
# GRPC transcoding helper method for the get_health REST call
|
570
|
+
#
|
571
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetHealthTargetPoolRequest]
|
572
|
+
# A request object representing the call parameters. Required.
|
573
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
574
|
+
# Uri, Body, Query string parameters
|
575
|
+
def transcode_get_health_request request_pb
|
576
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
577
|
+
.with_bindings(
|
578
|
+
uri_method: :post,
|
579
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/getHealth",
|
580
|
+
body: "instance_reference_resource",
|
581
|
+
matches: [
|
582
|
+
["project", %r{[^/]+}, false],
|
583
|
+
["region", %r{[^/]+}, false],
|
584
|
+
["target_pool", %r{[^/]+}, false]
|
585
|
+
]
|
586
|
+
)
|
587
|
+
transcoder.transcode request_pb
|
588
|
+
end
|
589
|
+
|
590
|
+
##
|
591
|
+
# @private
|
592
|
+
#
|
593
|
+
# GRPC transcoding helper method for the insert REST call
|
594
|
+
#
|
595
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertTargetPoolRequest]
|
596
|
+
# A request object representing the call parameters. Required.
|
597
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
598
|
+
# Uri, Body, Query string parameters
|
599
|
+
def transcode_insert_request request_pb
|
600
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
601
|
+
.with_bindings(
|
602
|
+
uri_method: :post,
|
603
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
|
604
|
+
body: "target_pool_resource",
|
605
|
+
matches: [
|
606
|
+
["project", %r{[^/]+}, false],
|
607
|
+
["region", %r{[^/]+}, false]
|
608
|
+
]
|
609
|
+
)
|
610
|
+
transcoder.transcode request_pb
|
611
|
+
end
|
612
|
+
|
613
|
+
##
|
614
|
+
# @private
|
615
|
+
#
|
616
|
+
# GRPC transcoding helper method for the list REST call
|
617
|
+
#
|
618
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListTargetPoolsRequest]
|
619
|
+
# A request object representing the call parameters. Required.
|
620
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
621
|
+
# Uri, Body, Query string parameters
|
622
|
+
def transcode_list_request request_pb
|
623
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
624
|
+
.with_bindings(
|
625
|
+
uri_method: :get,
|
626
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
|
627
|
+
matches: [
|
628
|
+
["project", %r{[^/]+}, false],
|
629
|
+
["region", %r{[^/]+}, false]
|
630
|
+
]
|
631
|
+
)
|
632
|
+
transcoder.transcode request_pb
|
633
|
+
end
|
634
|
+
|
635
|
+
##
|
636
|
+
# @private
|
637
|
+
#
|
638
|
+
# GRPC transcoding helper method for the remove_health_check REST call
|
639
|
+
#
|
640
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveHealthCheckTargetPoolRequest]
|
641
|
+
# A request object representing the call parameters. Required.
|
642
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
643
|
+
# Uri, Body, Query string parameters
|
644
|
+
def transcode_remove_health_check_request request_pb
|
645
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
646
|
+
.with_bindings(
|
647
|
+
uri_method: :post,
|
648
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeHealthCheck",
|
649
|
+
body: "target_pools_remove_health_check_request_resource",
|
650
|
+
matches: [
|
651
|
+
["project", %r{[^/]+}, false],
|
652
|
+
["region", %r{[^/]+}, false],
|
653
|
+
["target_pool", %r{[^/]+}, false]
|
654
|
+
]
|
655
|
+
)
|
656
|
+
transcoder.transcode request_pb
|
657
|
+
end
|
658
|
+
|
659
|
+
##
|
660
|
+
# @private
|
661
|
+
#
|
662
|
+
# GRPC transcoding helper method for the remove_instance REST call
|
663
|
+
#
|
664
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveInstanceTargetPoolRequest]
|
665
|
+
# A request object representing the call parameters. Required.
|
666
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
667
|
+
# Uri, Body, Query string parameters
|
668
|
+
def transcode_remove_instance_request request_pb
|
669
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
670
|
+
.with_bindings(
|
671
|
+
uri_method: :post,
|
672
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeInstance",
|
673
|
+
body: "target_pools_remove_instance_request_resource",
|
674
|
+
matches: [
|
675
|
+
["project", %r{[^/]+}, false],
|
676
|
+
["region", %r{[^/]+}, false],
|
677
|
+
["target_pool", %r{[^/]+}, false]
|
678
|
+
]
|
679
|
+
)
|
680
|
+
transcoder.transcode request_pb
|
681
|
+
end
|
682
|
+
|
683
|
+
##
|
684
|
+
# @private
|
685
|
+
#
|
533
686
|
# GRPC transcoding helper method for the set_backup REST call
|
534
687
|
#
|
535
688
|
# @param request_pb [::Google::Cloud::Compute::V1::SetBackupTargetPoolRequest]
|
@@ -537,13 +690,18 @@ module Google
|
|
537
690
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
538
691
|
# Uri, Body, Query string parameters
|
539
692
|
def transcode_set_backup_request request_pb
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
693
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
694
|
+
.with_bindings(
|
695
|
+
uri_method: :post,
|
696
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/setBackup",
|
697
|
+
body: "target_reference_resource",
|
698
|
+
matches: [
|
699
|
+
["project", %r{[^/]+}, false],
|
700
|
+
["region", %r{[^/]+}, false],
|
701
|
+
["target_pool", %r{[^/]+}, false]
|
702
|
+
]
|
703
|
+
)
|
704
|
+
transcoder.transcode request_pb
|
547
705
|
end
|
548
706
|
end
|
549
707
|
end
|