google-cloud-compute-v1 1.3.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +92 -54
- 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 +158 -91
- 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 +224 -131
- 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 +287 -163
- 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 +385 -223
- data/lib/google/cloud/compute/v1/backend_services.rb +3 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +223 -2
- 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 +92 -54
- data/lib/google/cloud/compute/v1/disk_types.rb +3 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +431 -242
- 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 +191 -104
- 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 +557 -332
- 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 +189 -106
- 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 +260 -148
- 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 +123 -68
- 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 +223 -124
- 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 +221 -128
- 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 +156 -88
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +3 -1
- 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 +86 -51
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -1
- 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 +156 -87
- 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 +220 -129
- data/lib/google/cloud/compute/v1/health_checks.rb +3 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +29 -9
- 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 +356 -196
- data/lib/google/cloud/compute/v1/images.rb +3 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +11 -11
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +666 -383
- 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 +294 -171
- 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 +223 -122
- data/lib/google/cloud/compute/v1/instance_templates.rb +3 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +5 -5
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1505 -847
- 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 +192 -111
- 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 +59 -31
- 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 +189 -104
- data/lib/google/cloud/compute/v1/interconnects.rb +3 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +62 -27
- 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 +223 -122
- 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 +223 -123
- 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 +92 -54
- data/lib/google/cloud/compute/v1/machine_types.rb +3 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +160 -91
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +3 -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 +295 -170
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +515 -295
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +3 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +352 -204
- 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 +430 -244
- 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 +261 -145
- 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 +92 -54
- 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 +227 -128
- 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 +408 -240
- 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 +156 -87
- 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 +192 -110
- 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 +193 -108
- 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 +230 -124
- 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 +159 -94
- 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 +61 -31
- 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 +400 -218
- 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 +161 -87
- 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 +195 -106
- 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 +10 -10
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +635 -360
- 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 +129 -73
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +28 -11
- 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 +127 -68
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +563 -313
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +3 -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 +127 -68
- 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 +129 -65
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +161 -88
- data/lib/google/cloud/compute/v1/region_security_policies.rb +3 -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 +127 -68
- 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 +161 -87
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +229 -125
- 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 +230 -124
- 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 +59 -31
- 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 +329 -185
- 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 +261 -145
- 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 +328 -186
- 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 +123 -68
- data/lib/google/cloud/compute/v1/routes.rb +3 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +349 -205
- 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 +295 -164
- 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 +257 -140
- 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 +154 -91
- 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 +187 -109
- 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 +394 -225
- 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 +156 -87
- 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 +220 -129
- 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 +373 -180
- 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 +158 -91
- 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 +363 -205
- 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 +309 -138
- 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 +189 -106
- 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 +158 -91
- 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 +287 -166
- 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 +261 -145
- 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 +158 -91
- 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 +129 -65
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +59 -31
- data/lib/google/cloud/compute/v1/zones.rb +3 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +724 -186
- metadata +12 -12
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the BackendServices service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -55,10 +55,17 @@ module Google
|
|
55
55
|
def add_signed_url_key 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_signed_url_key_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_signed_url_key REST call
|
73
|
-
#
|
74
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AddSignedUrlKeyBackendServiceRequest]
|
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_signed_url_key_request request_pb
|
79
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/addSignedUrlKey"
|
80
|
-
body = request_pb.signed_url_key_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 aggregated_list REST call
|
89
80
|
#
|
@@ -101,9 +92,17 @@ module Google
|
|
101
92
|
def aggregated_list 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_aggregated_list_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,
|
105
|
+
body: body || "",
|
107
106
|
params: query_string_params,
|
108
107
|
options: options
|
109
108
|
)
|
@@ -113,27 +112,6 @@ module Google
|
|
113
112
|
result
|
114
113
|
end
|
115
114
|
|
116
|
-
##
|
117
|
-
# GRPC transcoding helper method for the aggregated_list REST call
|
118
|
-
#
|
119
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListBackendServicesRequest]
|
120
|
-
# A request object representing the call parameters. Required.
|
121
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
122
|
-
# Uri, Body, Query string parameters
|
123
|
-
def transcode_aggregated_list_request request_pb
|
124
|
-
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/backendServices"
|
125
|
-
body = nil
|
126
|
-
query_string_params = {}
|
127
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
128
|
-
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
129
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
130
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
131
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
132
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
133
|
-
|
134
|
-
[uri, body, query_string_params]
|
135
|
-
end
|
136
|
-
|
137
115
|
##
|
138
116
|
# Baseline implementation for the delete REST call
|
139
117
|
#
|
@@ -151,9 +129,17 @@ module Google
|
|
151
129
|
def delete request_pb, options = nil
|
152
130
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
153
131
|
|
154
|
-
|
155
|
-
|
132
|
+
verb, uri, query_string_params, body = transcode_delete_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,
|
156
141
|
uri: uri,
|
142
|
+
body: body || "",
|
157
143
|
params: query_string_params,
|
158
144
|
options: options
|
159
145
|
)
|
@@ -163,22 +149,6 @@ module Google
|
|
163
149
|
result
|
164
150
|
end
|
165
151
|
|
166
|
-
##
|
167
|
-
# GRPC transcoding helper method for the delete REST call
|
168
|
-
#
|
169
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteBackendServiceRequest]
|
170
|
-
# A request object representing the call parameters. Required.
|
171
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
172
|
-
# Uri, Body, Query string parameters
|
173
|
-
def transcode_delete_request request_pb
|
174
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
|
175
|
-
body = nil
|
176
|
-
query_string_params = {}
|
177
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
178
|
-
|
179
|
-
[uri, body, query_string_params]
|
180
|
-
end
|
181
|
-
|
182
152
|
##
|
183
153
|
# Baseline implementation for the delete_signed_url_key REST call
|
184
154
|
#
|
@@ -196,9 +166,17 @@ module Google
|
|
196
166
|
def delete_signed_url_key request_pb, options = nil
|
197
167
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
198
168
|
|
199
|
-
|
200
|
-
|
169
|
+
verb, uri, query_string_params, body = transcode_delete_signed_url_key_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,
|
201
178
|
uri: uri,
|
179
|
+
body: body || "",
|
202
180
|
params: query_string_params,
|
203
181
|
options: options
|
204
182
|
)
|
@@ -208,23 +186,6 @@ module Google
|
|
208
186
|
result
|
209
187
|
end
|
210
188
|
|
211
|
-
##
|
212
|
-
# GRPC transcoding helper method for the delete_signed_url_key REST call
|
213
|
-
#
|
214
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteSignedUrlKeyBackendServiceRequest]
|
215
|
-
# A request object representing the call parameters. Required.
|
216
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
217
|
-
# Uri, Body, Query string parameters
|
218
|
-
def transcode_delete_signed_url_key_request request_pb
|
219
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/deleteSignedUrlKey"
|
220
|
-
body = nil
|
221
|
-
query_string_params = {}
|
222
|
-
query_string_params["keyName"] = request_pb.key_name.to_s
|
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::BackendService.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::GetBackendServiceRequest]
|
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}/global/backendServices/#{request_pb.backend_service}"
|
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::BackendServiceGroupHealth.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::GetHealthBackendServiceRequest]
|
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}/global/backendServices/#{request_pb.backend_service}/getHealth"
|
309
|
-
body = request_pb.resource_group_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::InsertBackendServiceRequest]
|
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}/global/backendServices"
|
354
|
-
body = request_pb.backend_service_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::ListBackendServicesRequest]
|
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}/global/backendServices"
|
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 patch REST call
|
412
339
|
#
|
@@ -424,10 +351,17 @@ module Google
|
|
424
351
|
def patch 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_patch_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 patch REST call
|
442
|
-
#
|
443
|
-
# @param request_pb [::Google::Cloud::Compute::V1::PatchBackendServiceRequest]
|
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_patch_request request_pb
|
448
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
|
449
|
-
body = request_pb.backend_service_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 set_edge_security_policy REST call
|
458
376
|
#
|
@@ -470,10 +388,17 @@ module Google
|
|
470
388
|
def set_edge_security_policy 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_set_edge_security_policy_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 set_edge_security_policy REST call
|
488
|
-
#
|
489
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest]
|
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_set_edge_security_policy_request request_pb
|
494
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/setEdgeSecurityPolicy"
|
495
|
-
body = request_pb.security_policy_reference_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_security_policy REST call
|
504
413
|
#
|
@@ -516,10 +425,17 @@ module Google
|
|
516
425
|
def set_security_policy 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_security_policy_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,22 +445,6 @@ module Google
|
|
529
445
|
result
|
530
446
|
end
|
531
447
|
|
532
|
-
##
|
533
|
-
# GRPC transcoding helper method for the set_security_policy REST call
|
534
|
-
#
|
535
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetSecurityPolicyBackendServiceRequest]
|
536
|
-
# A request object representing the call parameters. Required.
|
537
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
538
|
-
# Uri, Body, Query string parameters
|
539
|
-
def transcode_set_security_policy_request request_pb
|
540
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/setSecurityPolicy"
|
541
|
-
body = request_pb.security_policy_reference_resource.to_json
|
542
|
-
query_string_params = {}
|
543
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
544
|
-
|
545
|
-
[uri, body, query_string_params]
|
546
|
-
end
|
547
|
-
|
548
448
|
##
|
549
449
|
# Baseline implementation for the update REST call
|
550
450
|
#
|
@@ -562,10 +462,17 @@ module Google
|
|
562
462
|
def update request_pb, options = nil
|
563
463
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
564
464
|
|
565
|
-
|
566
|
-
|
465
|
+
verb, uri, query_string_params, body = transcode_update_request request_pb
|
466
|
+
query_string_params = if query_string_params.any?
|
467
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
468
|
+
else
|
469
|
+
{}
|
470
|
+
end
|
471
|
+
|
472
|
+
response = @client_stub.make_http_request(
|
473
|
+
verb,
|
567
474
|
uri: uri,
|
568
|
-
body: body,
|
475
|
+
body: body || "",
|
569
476
|
params: query_string_params,
|
570
477
|
options: options
|
571
478
|
)
|
@@ -575,7 +482,257 @@ module Google
|
|
575
482
|
result
|
576
483
|
end
|
577
484
|
|
485
|
+
|
486
|
+
private
|
487
|
+
|
488
|
+
##
|
489
|
+
# @private
|
490
|
+
#
|
491
|
+
# GRPC transcoding helper method for the add_signed_url_key REST call
|
492
|
+
#
|
493
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddSignedUrlKeyBackendServiceRequest]
|
494
|
+
# A request object representing the call parameters. Required.
|
495
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
496
|
+
# Uri, Body, Query string parameters
|
497
|
+
def transcode_add_signed_url_key_request request_pb
|
498
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
499
|
+
.with_bindings(
|
500
|
+
uri_method: :post,
|
501
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/addSignedUrlKey",
|
502
|
+
body: "signed_url_key_resource",
|
503
|
+
matches: [
|
504
|
+
["project", %r{^[^/]+/?$}, false],
|
505
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
506
|
+
]
|
507
|
+
)
|
508
|
+
transcoder.transcode request_pb
|
509
|
+
end
|
510
|
+
|
578
511
|
##
|
512
|
+
# @private
|
513
|
+
#
|
514
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
515
|
+
#
|
516
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListBackendServicesRequest]
|
517
|
+
# A request object representing the call parameters. Required.
|
518
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
519
|
+
# Uri, Body, Query string parameters
|
520
|
+
def transcode_aggregated_list_request request_pb
|
521
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
522
|
+
.with_bindings(
|
523
|
+
uri_method: :get,
|
524
|
+
uri_template: "/compute/v1/projects/{project}/aggregated/backendServices",
|
525
|
+
matches: [
|
526
|
+
["project", %r{^[^/]+/?$}, false]
|
527
|
+
]
|
528
|
+
)
|
529
|
+
transcoder.transcode request_pb
|
530
|
+
end
|
531
|
+
|
532
|
+
##
|
533
|
+
# @private
|
534
|
+
#
|
535
|
+
# GRPC transcoding helper method for the delete REST call
|
536
|
+
#
|
537
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteBackendServiceRequest]
|
538
|
+
# A request object representing the call parameters. Required.
|
539
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
540
|
+
# Uri, Body, Query string parameters
|
541
|
+
def transcode_delete_request request_pb
|
542
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
543
|
+
.with_bindings(
|
544
|
+
uri_method: :delete,
|
545
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
|
546
|
+
matches: [
|
547
|
+
["project", %r{^[^/]+/?$}, false],
|
548
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
549
|
+
]
|
550
|
+
)
|
551
|
+
transcoder.transcode request_pb
|
552
|
+
end
|
553
|
+
|
554
|
+
##
|
555
|
+
# @private
|
556
|
+
#
|
557
|
+
# GRPC transcoding helper method for the delete_signed_url_key REST call
|
558
|
+
#
|
559
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteSignedUrlKeyBackendServiceRequest]
|
560
|
+
# A request object representing the call parameters. Required.
|
561
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
562
|
+
# Uri, Body, Query string parameters
|
563
|
+
def transcode_delete_signed_url_key_request request_pb
|
564
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
565
|
+
.with_bindings(
|
566
|
+
uri_method: :post,
|
567
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/deleteSignedUrlKey",
|
568
|
+
matches: [
|
569
|
+
["project", %r{^[^/]+/?$}, false],
|
570
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
571
|
+
]
|
572
|
+
)
|
573
|
+
transcoder.transcode request_pb
|
574
|
+
end
|
575
|
+
|
576
|
+
##
|
577
|
+
# @private
|
578
|
+
#
|
579
|
+
# GRPC transcoding helper method for the get REST call
|
580
|
+
#
|
581
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetBackendServiceRequest]
|
582
|
+
# A request object representing the call parameters. Required.
|
583
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
584
|
+
# Uri, Body, Query string parameters
|
585
|
+
def transcode_get_request request_pb
|
586
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
587
|
+
.with_bindings(
|
588
|
+
uri_method: :get,
|
589
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
|
590
|
+
matches: [
|
591
|
+
["project", %r{^[^/]+/?$}, false],
|
592
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
593
|
+
]
|
594
|
+
)
|
595
|
+
transcoder.transcode request_pb
|
596
|
+
end
|
597
|
+
|
598
|
+
##
|
599
|
+
# @private
|
600
|
+
#
|
601
|
+
# GRPC transcoding helper method for the get_health REST call
|
602
|
+
#
|
603
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetHealthBackendServiceRequest]
|
604
|
+
# A request object representing the call parameters. Required.
|
605
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
606
|
+
# Uri, Body, Query string parameters
|
607
|
+
def transcode_get_health_request request_pb
|
608
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
609
|
+
.with_bindings(
|
610
|
+
uri_method: :post,
|
611
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/getHealth",
|
612
|
+
body: "resource_group_reference_resource",
|
613
|
+
matches: [
|
614
|
+
["project", %r{^[^/]+/?$}, false],
|
615
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
616
|
+
]
|
617
|
+
)
|
618
|
+
transcoder.transcode request_pb
|
619
|
+
end
|
620
|
+
|
621
|
+
##
|
622
|
+
# @private
|
623
|
+
#
|
624
|
+
# GRPC transcoding helper method for the insert REST call
|
625
|
+
#
|
626
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertBackendServiceRequest]
|
627
|
+
# A request object representing the call parameters. Required.
|
628
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
629
|
+
# Uri, Body, Query string parameters
|
630
|
+
def transcode_insert_request request_pb
|
631
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
632
|
+
.with_bindings(
|
633
|
+
uri_method: :post,
|
634
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices",
|
635
|
+
body: "backend_service_resource",
|
636
|
+
matches: [
|
637
|
+
["project", %r{^[^/]+/?$}, false]
|
638
|
+
]
|
639
|
+
)
|
640
|
+
transcoder.transcode request_pb
|
641
|
+
end
|
642
|
+
|
643
|
+
##
|
644
|
+
# @private
|
645
|
+
#
|
646
|
+
# GRPC transcoding helper method for the list REST call
|
647
|
+
#
|
648
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListBackendServicesRequest]
|
649
|
+
# A request object representing the call parameters. Required.
|
650
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
651
|
+
# Uri, Body, Query string parameters
|
652
|
+
def transcode_list_request request_pb
|
653
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
654
|
+
.with_bindings(
|
655
|
+
uri_method: :get,
|
656
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices",
|
657
|
+
matches: [
|
658
|
+
["project", %r{^[^/]+/?$}, false]
|
659
|
+
]
|
660
|
+
)
|
661
|
+
transcoder.transcode request_pb
|
662
|
+
end
|
663
|
+
|
664
|
+
##
|
665
|
+
# @private
|
666
|
+
#
|
667
|
+
# GRPC transcoding helper method for the patch REST call
|
668
|
+
#
|
669
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchBackendServiceRequest]
|
670
|
+
# A request object representing the call parameters. Required.
|
671
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
672
|
+
# Uri, Body, Query string parameters
|
673
|
+
def transcode_patch_request request_pb
|
674
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
675
|
+
.with_bindings(
|
676
|
+
uri_method: :patch,
|
677
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
|
678
|
+
body: "backend_service_resource",
|
679
|
+
matches: [
|
680
|
+
["project", %r{^[^/]+/?$}, false],
|
681
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
682
|
+
]
|
683
|
+
)
|
684
|
+
transcoder.transcode request_pb
|
685
|
+
end
|
686
|
+
|
687
|
+
##
|
688
|
+
# @private
|
689
|
+
#
|
690
|
+
# GRPC transcoding helper method for the set_edge_security_policy REST call
|
691
|
+
#
|
692
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest]
|
693
|
+
# A request object representing the call parameters. Required.
|
694
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
695
|
+
# Uri, Body, Query string parameters
|
696
|
+
def transcode_set_edge_security_policy_request request_pb
|
697
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
698
|
+
.with_bindings(
|
699
|
+
uri_method: :post,
|
700
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setEdgeSecurityPolicy",
|
701
|
+
body: "security_policy_reference_resource",
|
702
|
+
matches: [
|
703
|
+
["project", %r{^[^/]+/?$}, false],
|
704
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
705
|
+
]
|
706
|
+
)
|
707
|
+
transcoder.transcode request_pb
|
708
|
+
end
|
709
|
+
|
710
|
+
##
|
711
|
+
# @private
|
712
|
+
#
|
713
|
+
# GRPC transcoding helper method for the set_security_policy REST call
|
714
|
+
#
|
715
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSecurityPolicyBackendServiceRequest]
|
716
|
+
# A request object representing the call parameters. Required.
|
717
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
718
|
+
# Uri, Body, Query string parameters
|
719
|
+
def transcode_set_security_policy_request request_pb
|
720
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
721
|
+
.with_bindings(
|
722
|
+
uri_method: :post,
|
723
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setSecurityPolicy",
|
724
|
+
body: "security_policy_reference_resource",
|
725
|
+
matches: [
|
726
|
+
["project", %r{^[^/]+/?$}, false],
|
727
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
728
|
+
]
|
729
|
+
)
|
730
|
+
transcoder.transcode request_pb
|
731
|
+
end
|
732
|
+
|
733
|
+
##
|
734
|
+
# @private
|
735
|
+
#
|
579
736
|
# GRPC transcoding helper method for the update REST call
|
580
737
|
#
|
581
738
|
# @param request_pb [::Google::Cloud::Compute::V1::UpdateBackendServiceRequest]
|
@@ -583,12 +740,17 @@ module Google
|
|
583
740
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
584
741
|
# Uri, Body, Query string parameters
|
585
742
|
def transcode_update_request request_pb
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
743
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
744
|
+
.with_bindings(
|
745
|
+
uri_method: :put,
|
746
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
|
747
|
+
body: "backend_service_resource",
|
748
|
+
matches: [
|
749
|
+
["project", %r{^[^/]+/?$}, false],
|
750
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
751
|
+
]
|
752
|
+
)
|
753
|
+
transcoder.transcode request_pb
|
592
754
|
end
|
593
755
|
end
|
594
756
|
end
|