google-cloud-compute-v1 1.2.0 → 1.5.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 +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,9 +55,17 @@ module Google
|
|
55
55
|
def aggregated_list 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_aggregated_list_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,
|
68
|
+
body: body || "",
|
61
69
|
params: query_string_params,
|
62
70
|
options: options
|
63
71
|
)
|
@@ -67,27 +75,6 @@ module Google
|
|
67
75
|
result
|
68
76
|
end
|
69
77
|
|
70
|
-
##
|
71
|
-
# GRPC transcoding helper method for the aggregated_list REST call
|
72
|
-
#
|
73
|
-
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListTargetHttpsProxiesRequest]
|
74
|
-
# A request object representing the call parameters. Required.
|
75
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
76
|
-
# Uri, Body, Query string parameters
|
77
|
-
def transcode_aggregated_list_request request_pb
|
78
|
-
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/targetHttpsProxies"
|
79
|
-
body = nil
|
80
|
-
query_string_params = {}
|
81
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
82
|
-
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
83
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
84
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
85
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
86
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
87
|
-
|
88
|
-
[uri, body, query_string_params]
|
89
|
-
end
|
90
|
-
|
91
78
|
##
|
92
79
|
# Baseline implementation for the delete REST call
|
93
80
|
#
|
@@ -105,9 +92,17 @@ module Google
|
|
105
92
|
def delete request_pb, options = nil
|
106
93
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
107
94
|
|
108
|
-
|
109
|
-
|
95
|
+
verb, uri, query_string_params, body = transcode_delete_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,
|
110
104
|
uri: uri,
|
105
|
+
body: body || "",
|
111
106
|
params: query_string_params,
|
112
107
|
options: options
|
113
108
|
)
|
@@ -117,22 +112,6 @@ module Google
|
|
117
112
|
result
|
118
113
|
end
|
119
114
|
|
120
|
-
##
|
121
|
-
# GRPC transcoding helper method for the delete REST call
|
122
|
-
#
|
123
|
-
# @param request_pb [::Google::Cloud::Compute::V1::DeleteTargetHttpsProxyRequest]
|
124
|
-
# A request object representing the call parameters. Required.
|
125
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
126
|
-
# Uri, Body, Query string parameters
|
127
|
-
def transcode_delete_request request_pb
|
128
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies/#{request_pb.target_https_proxy}"
|
129
|
-
body = nil
|
130
|
-
query_string_params = {}
|
131
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
132
|
-
|
133
|
-
[uri, body, query_string_params]
|
134
|
-
end
|
135
|
-
|
136
115
|
##
|
137
116
|
# Baseline implementation for the get REST call
|
138
117
|
#
|
@@ -150,9 +129,18 @@ module Google
|
|
150
129
|
def get request_pb, options = nil
|
151
130
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
152
131
|
|
153
|
-
uri,
|
154
|
-
|
132
|
+
verb, uri, query_string_params, body = transcode_get_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,
|
155
141
|
uri: uri,
|
142
|
+
body: body || "",
|
143
|
+
params: query_string_params,
|
156
144
|
options: options
|
157
145
|
)
|
158
146
|
result = ::Google::Cloud::Compute::V1::TargetHttpsProxy.decode_json response.body, ignore_unknown_fields: true
|
@@ -161,21 +149,6 @@ module Google
|
|
161
149
|
result
|
162
150
|
end
|
163
151
|
|
164
|
-
##
|
165
|
-
# GRPC transcoding helper method for the get REST call
|
166
|
-
#
|
167
|
-
# @param request_pb [::Google::Cloud::Compute::V1::GetTargetHttpsProxyRequest]
|
168
|
-
# A request object representing the call parameters. Required.
|
169
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
170
|
-
# Uri, Body, Query string parameters
|
171
|
-
def transcode_get_request request_pb
|
172
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies/#{request_pb.target_https_proxy}"
|
173
|
-
body = nil
|
174
|
-
query_string_params = {}
|
175
|
-
|
176
|
-
[uri, body, query_string_params]
|
177
|
-
end
|
178
|
-
|
179
152
|
##
|
180
153
|
# Baseline implementation for the insert REST call
|
181
154
|
#
|
@@ -193,10 +166,17 @@ module Google
|
|
193
166
|
def insert request_pb, options = nil
|
194
167
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
195
168
|
|
196
|
-
|
197
|
-
|
169
|
+
verb, uri, query_string_params, body = transcode_insert_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,
|
198
178
|
uri: uri,
|
199
|
-
body: body,
|
179
|
+
body: body || "",
|
200
180
|
params: query_string_params,
|
201
181
|
options: options
|
202
182
|
)
|
@@ -206,22 +186,6 @@ module Google
|
|
206
186
|
result
|
207
187
|
end
|
208
188
|
|
209
|
-
##
|
210
|
-
# GRPC transcoding helper method for the insert REST call
|
211
|
-
#
|
212
|
-
# @param request_pb [::Google::Cloud::Compute::V1::InsertTargetHttpsProxyRequest]
|
213
|
-
# A request object representing the call parameters. Required.
|
214
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
215
|
-
# Uri, Body, Query string parameters
|
216
|
-
def transcode_insert_request request_pb
|
217
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies"
|
218
|
-
body = request_pb.target_https_proxy_resource.to_json
|
219
|
-
query_string_params = {}
|
220
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
221
|
-
|
222
|
-
[uri, body, query_string_params]
|
223
|
-
end
|
224
|
-
|
225
189
|
##
|
226
190
|
# Baseline implementation for the list REST call
|
227
191
|
#
|
@@ -239,9 +203,17 @@ module Google
|
|
239
203
|
def list request_pb, options = nil
|
240
204
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
241
205
|
|
242
|
-
|
243
|
-
|
206
|
+
verb, uri, query_string_params, body = transcode_list_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,
|
244
215
|
uri: uri,
|
216
|
+
body: body || "",
|
245
217
|
params: query_string_params,
|
246
218
|
options: options
|
247
219
|
)
|
@@ -251,26 +223,6 @@ module Google
|
|
251
223
|
result
|
252
224
|
end
|
253
225
|
|
254
|
-
##
|
255
|
-
# GRPC transcoding helper method for the list REST call
|
256
|
-
#
|
257
|
-
# @param request_pb [::Google::Cloud::Compute::V1::ListTargetHttpsProxiesRequest]
|
258
|
-
# A request object representing the call parameters. Required.
|
259
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
260
|
-
# Uri, Body, Query string parameters
|
261
|
-
def transcode_list_request request_pb
|
262
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies"
|
263
|
-
body = nil
|
264
|
-
query_string_params = {}
|
265
|
-
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
266
|
-
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
267
|
-
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
268
|
-
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
269
|
-
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
270
|
-
|
271
|
-
[uri, body, query_string_params]
|
272
|
-
end
|
273
|
-
|
274
226
|
##
|
275
227
|
# Baseline implementation for the patch REST call
|
276
228
|
#
|
@@ -288,10 +240,17 @@ module Google
|
|
288
240
|
def patch request_pb, options = nil
|
289
241
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
290
242
|
|
291
|
-
|
292
|
-
|
243
|
+
verb, uri, query_string_params, body = transcode_patch_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,
|
293
252
|
uri: uri,
|
294
|
-
body: body,
|
253
|
+
body: body || "",
|
295
254
|
params: query_string_params,
|
296
255
|
options: options
|
297
256
|
)
|
@@ -302,19 +261,40 @@ module Google
|
|
302
261
|
end
|
303
262
|
|
304
263
|
##
|
305
|
-
#
|
264
|
+
# Baseline implementation for the set_certificate_map REST call
|
306
265
|
#
|
307
|
-
# @param request_pb [::Google::Cloud::Compute::V1::
|
266
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetCertificateMapTargetHttpsProxyRequest]
|
308
267
|
# A request object representing the call parameters. Required.
|
309
|
-
# @
|
310
|
-
#
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
268
|
+
# @param options [::Gapic::CallOptions]
|
269
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
270
|
+
#
|
271
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
272
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
273
|
+
# @yieldparam response [::Faraday::Response]
|
274
|
+
#
|
275
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
276
|
+
# A result object deserialized from the server's reply
|
277
|
+
def set_certificate_map request_pb, options = nil
|
278
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
279
|
+
|
280
|
+
verb, uri, query_string_params, body = transcode_set_certificate_map_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,
|
289
|
+
uri: uri,
|
290
|
+
body: body || "",
|
291
|
+
params: query_string_params,
|
292
|
+
options: options
|
293
|
+
)
|
294
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
316
295
|
|
317
|
-
|
296
|
+
yield result, response if block_given?
|
297
|
+
result
|
318
298
|
end
|
319
299
|
|
320
300
|
##
|
@@ -334,10 +314,17 @@ module Google
|
|
334
314
|
def set_quic_override request_pb, options = nil
|
335
315
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
336
316
|
|
337
|
-
|
338
|
-
|
317
|
+
verb, uri, query_string_params, body = transcode_set_quic_override_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,
|
339
326
|
uri: uri,
|
340
|
-
body: body,
|
327
|
+
body: body || "",
|
341
328
|
params: query_string_params,
|
342
329
|
options: options
|
343
330
|
)
|
@@ -347,22 +334,6 @@ module Google
|
|
347
334
|
result
|
348
335
|
end
|
349
336
|
|
350
|
-
##
|
351
|
-
# GRPC transcoding helper method for the set_quic_override REST call
|
352
|
-
#
|
353
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetQuicOverrideTargetHttpsProxyRequest]
|
354
|
-
# A request object representing the call parameters. Required.
|
355
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
356
|
-
# Uri, Body, Query string parameters
|
357
|
-
def transcode_set_quic_override_request request_pb
|
358
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies/#{request_pb.target_https_proxy}/setQuicOverride"
|
359
|
-
body = request_pb.target_https_proxies_set_quic_override_request_resource.to_json
|
360
|
-
query_string_params = {}
|
361
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
362
|
-
|
363
|
-
[uri, body, query_string_params]
|
364
|
-
end
|
365
|
-
|
366
337
|
##
|
367
338
|
# Baseline implementation for the set_ssl_certificates REST call
|
368
339
|
#
|
@@ -380,10 +351,17 @@ module Google
|
|
380
351
|
def set_ssl_certificates request_pb, options = nil
|
381
352
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
382
353
|
|
383
|
-
|
384
|
-
|
354
|
+
verb, uri, query_string_params, body = transcode_set_ssl_certificates_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,
|
385
363
|
uri: uri,
|
386
|
-
body: body,
|
364
|
+
body: body || "",
|
387
365
|
params: query_string_params,
|
388
366
|
options: options
|
389
367
|
)
|
@@ -393,22 +371,6 @@ module Google
|
|
393
371
|
result
|
394
372
|
end
|
395
373
|
|
396
|
-
##
|
397
|
-
# GRPC transcoding helper method for the set_ssl_certificates REST call
|
398
|
-
#
|
399
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetSslCertificatesTargetHttpsProxyRequest]
|
400
|
-
# A request object representing the call parameters. Required.
|
401
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
402
|
-
# Uri, Body, Query string parameters
|
403
|
-
def transcode_set_ssl_certificates_request request_pb
|
404
|
-
uri = "/compute/v1/projects/#{request_pb.project}/targetHttpsProxies/#{request_pb.target_https_proxy}/setSslCertificates"
|
405
|
-
body = request_pb.target_https_proxies_set_ssl_certificates_request_resource.to_json
|
406
|
-
query_string_params = {}
|
407
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
408
|
-
|
409
|
-
[uri, body, query_string_params]
|
410
|
-
end
|
411
|
-
|
412
374
|
##
|
413
375
|
# Baseline implementation for the set_ssl_policy REST call
|
414
376
|
#
|
@@ -426,10 +388,17 @@ module Google
|
|
426
388
|
def set_ssl_policy request_pb, options = nil
|
427
389
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
428
390
|
|
429
|
-
|
430
|
-
|
391
|
+
verb, uri, query_string_params, body = transcode_set_ssl_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,
|
431
400
|
uri: uri,
|
432
|
-
body: body,
|
401
|
+
body: body || "",
|
433
402
|
params: query_string_params,
|
434
403
|
options: options
|
435
404
|
)
|
@@ -439,22 +408,6 @@ module Google
|
|
439
408
|
result
|
440
409
|
end
|
441
410
|
|
442
|
-
##
|
443
|
-
# GRPC transcoding helper method for the set_ssl_policy REST call
|
444
|
-
#
|
445
|
-
# @param request_pb [::Google::Cloud::Compute::V1::SetSslPolicyTargetHttpsProxyRequest]
|
446
|
-
# A request object representing the call parameters. Required.
|
447
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
448
|
-
# Uri, Body, Query string parameters
|
449
|
-
def transcode_set_ssl_policy_request request_pb
|
450
|
-
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies/#{request_pb.target_https_proxy}/setSslPolicy"
|
451
|
-
body = request_pb.ssl_policy_reference_resource.to_json
|
452
|
-
query_string_params = {}
|
453
|
-
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
454
|
-
|
455
|
-
[uri, body, query_string_params]
|
456
|
-
end
|
457
|
-
|
458
411
|
##
|
459
412
|
# Baseline implementation for the set_url_map REST call
|
460
413
|
#
|
@@ -472,10 +425,17 @@ module Google
|
|
472
425
|
def set_url_map request_pb, options = nil
|
473
426
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
474
427
|
|
475
|
-
|
476
|
-
|
428
|
+
verb, uri, query_string_params, body = transcode_set_url_map_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,
|
477
437
|
uri: uri,
|
478
|
-
body: body,
|
438
|
+
body: body || "",
|
479
439
|
params: query_string_params,
|
480
440
|
options: options
|
481
441
|
)
|
@@ -485,7 +445,235 @@ module Google
|
|
485
445
|
result
|
486
446
|
end
|
487
447
|
|
448
|
+
|
449
|
+
private
|
450
|
+
|
451
|
+
##
|
452
|
+
# @private
|
453
|
+
#
|
454
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
455
|
+
#
|
456
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListTargetHttpsProxiesRequest]
|
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_aggregated_list_request request_pb
|
461
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
462
|
+
.with_bindings(
|
463
|
+
uri_method: :get,
|
464
|
+
uri_template: "/compute/v1/projects/{project}/aggregated/targetHttpsProxies",
|
465
|
+
matches: [
|
466
|
+
["project", %r{[^/]+}, false]
|
467
|
+
]
|
468
|
+
)
|
469
|
+
transcoder.transcode request_pb
|
470
|
+
end
|
471
|
+
|
472
|
+
##
|
473
|
+
# @private
|
474
|
+
#
|
475
|
+
# GRPC transcoding helper method for the delete REST call
|
476
|
+
#
|
477
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteTargetHttpsProxyRequest]
|
478
|
+
# A request object representing the call parameters. Required.
|
479
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
480
|
+
# Uri, Body, Query string parameters
|
481
|
+
def transcode_delete_request request_pb
|
482
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
483
|
+
.with_bindings(
|
484
|
+
uri_method: :delete,
|
485
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}",
|
486
|
+
matches: [
|
487
|
+
["project", %r{[^/]+}, false],
|
488
|
+
["target_https_proxy", %r{[^/]+}, false]
|
489
|
+
]
|
490
|
+
)
|
491
|
+
transcoder.transcode request_pb
|
492
|
+
end
|
493
|
+
|
494
|
+
##
|
495
|
+
# @private
|
496
|
+
#
|
497
|
+
# GRPC transcoding helper method for the get REST call
|
498
|
+
#
|
499
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetTargetHttpsProxyRequest]
|
500
|
+
# A request object representing the call parameters. Required.
|
501
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
502
|
+
# Uri, Body, Query string parameters
|
503
|
+
def transcode_get_request request_pb
|
504
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
505
|
+
.with_bindings(
|
506
|
+
uri_method: :get,
|
507
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}",
|
508
|
+
matches: [
|
509
|
+
["project", %r{[^/]+}, false],
|
510
|
+
["target_https_proxy", %r{[^/]+}, false]
|
511
|
+
]
|
512
|
+
)
|
513
|
+
transcoder.transcode request_pb
|
514
|
+
end
|
515
|
+
|
488
516
|
##
|
517
|
+
# @private
|
518
|
+
#
|
519
|
+
# GRPC transcoding helper method for the insert REST call
|
520
|
+
#
|
521
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertTargetHttpsProxyRequest]
|
522
|
+
# A request object representing the call parameters. Required.
|
523
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
524
|
+
# Uri, Body, Query string parameters
|
525
|
+
def transcode_insert_request request_pb
|
526
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
527
|
+
.with_bindings(
|
528
|
+
uri_method: :post,
|
529
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies",
|
530
|
+
body: "target_https_proxy_resource",
|
531
|
+
matches: [
|
532
|
+
["project", %r{[^/]+}, false]
|
533
|
+
]
|
534
|
+
)
|
535
|
+
transcoder.transcode request_pb
|
536
|
+
end
|
537
|
+
|
538
|
+
##
|
539
|
+
# @private
|
540
|
+
#
|
541
|
+
# GRPC transcoding helper method for the list REST call
|
542
|
+
#
|
543
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListTargetHttpsProxiesRequest]
|
544
|
+
# A request object representing the call parameters. Required.
|
545
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
546
|
+
# Uri, Body, Query string parameters
|
547
|
+
def transcode_list_request request_pb
|
548
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
549
|
+
.with_bindings(
|
550
|
+
uri_method: :get,
|
551
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies",
|
552
|
+
matches: [
|
553
|
+
["project", %r{[^/]+}, false]
|
554
|
+
]
|
555
|
+
)
|
556
|
+
transcoder.transcode request_pb
|
557
|
+
end
|
558
|
+
|
559
|
+
##
|
560
|
+
# @private
|
561
|
+
#
|
562
|
+
# GRPC transcoding helper method for the patch REST call
|
563
|
+
#
|
564
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest]
|
565
|
+
# A request object representing the call parameters. Required.
|
566
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
567
|
+
# Uri, Body, Query string parameters
|
568
|
+
def transcode_patch_request request_pb
|
569
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
570
|
+
.with_bindings(
|
571
|
+
uri_method: :patch,
|
572
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}",
|
573
|
+
body: "target_https_proxy_resource",
|
574
|
+
matches: [
|
575
|
+
["project", %r{[^/]+}, false],
|
576
|
+
["target_https_proxy", %r{[^/]+}, false]
|
577
|
+
]
|
578
|
+
)
|
579
|
+
transcoder.transcode request_pb
|
580
|
+
end
|
581
|
+
|
582
|
+
##
|
583
|
+
# @private
|
584
|
+
#
|
585
|
+
# GRPC transcoding helper method for the set_certificate_map REST call
|
586
|
+
#
|
587
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetCertificateMapTargetHttpsProxyRequest]
|
588
|
+
# A request object representing the call parameters. Required.
|
589
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
590
|
+
# Uri, Body, Query string parameters
|
591
|
+
def transcode_set_certificate_map_request request_pb
|
592
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
593
|
+
.with_bindings(
|
594
|
+
uri_method: :post,
|
595
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}/setCertificateMap",
|
596
|
+
body: "target_https_proxies_set_certificate_map_request_resource",
|
597
|
+
matches: [
|
598
|
+
["project", %r{[^/]+}, false],
|
599
|
+
["target_https_proxy", %r{[^/]+}, false]
|
600
|
+
]
|
601
|
+
)
|
602
|
+
transcoder.transcode request_pb
|
603
|
+
end
|
604
|
+
|
605
|
+
##
|
606
|
+
# @private
|
607
|
+
#
|
608
|
+
# GRPC transcoding helper method for the set_quic_override REST call
|
609
|
+
#
|
610
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetQuicOverrideTargetHttpsProxyRequest]
|
611
|
+
# A request object representing the call parameters. Required.
|
612
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
613
|
+
# Uri, Body, Query string parameters
|
614
|
+
def transcode_set_quic_override_request request_pb
|
615
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
616
|
+
.with_bindings(
|
617
|
+
uri_method: :post,
|
618
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}/setQuicOverride",
|
619
|
+
body: "target_https_proxies_set_quic_override_request_resource",
|
620
|
+
matches: [
|
621
|
+
["project", %r{[^/]+}, false],
|
622
|
+
["target_https_proxy", %r{[^/]+}, false]
|
623
|
+
]
|
624
|
+
)
|
625
|
+
transcoder.transcode request_pb
|
626
|
+
end
|
627
|
+
|
628
|
+
##
|
629
|
+
# @private
|
630
|
+
#
|
631
|
+
# GRPC transcoding helper method for the set_ssl_certificates REST call
|
632
|
+
#
|
633
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSslCertificatesTargetHttpsProxyRequest]
|
634
|
+
# A request object representing the call parameters. Required.
|
635
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
636
|
+
# Uri, Body, Query string parameters
|
637
|
+
def transcode_set_ssl_certificates_request request_pb
|
638
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
639
|
+
.with_bindings(
|
640
|
+
uri_method: :post,
|
641
|
+
uri_template: "/compute/v1/projects/{project}/targetHttpsProxies/{target_https_proxy}/setSslCertificates",
|
642
|
+
body: "target_https_proxies_set_ssl_certificates_request_resource",
|
643
|
+
matches: [
|
644
|
+
["project", %r{[^/]+}, false],
|
645
|
+
["target_https_proxy", %r{[^/]+}, false]
|
646
|
+
]
|
647
|
+
)
|
648
|
+
transcoder.transcode request_pb
|
649
|
+
end
|
650
|
+
|
651
|
+
##
|
652
|
+
# @private
|
653
|
+
#
|
654
|
+
# GRPC transcoding helper method for the set_ssl_policy REST call
|
655
|
+
#
|
656
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSslPolicyTargetHttpsProxyRequest]
|
657
|
+
# A request object representing the call parameters. Required.
|
658
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
659
|
+
# Uri, Body, Query string parameters
|
660
|
+
def transcode_set_ssl_policy_request request_pb
|
661
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
662
|
+
.with_bindings(
|
663
|
+
uri_method: :post,
|
664
|
+
uri_template: "/compute/v1/projects/{project}/global/targetHttpsProxies/{target_https_proxy}/setSslPolicy",
|
665
|
+
body: "ssl_policy_reference_resource",
|
666
|
+
matches: [
|
667
|
+
["project", %r{[^/]+}, false],
|
668
|
+
["target_https_proxy", %r{[^/]+}, false]
|
669
|
+
]
|
670
|
+
)
|
671
|
+
transcoder.transcode request_pb
|
672
|
+
end
|
673
|
+
|
674
|
+
##
|
675
|
+
# @private
|
676
|
+
#
|
489
677
|
# GRPC transcoding helper method for the set_url_map REST call
|
490
678
|
#
|
491
679
|
# @param request_pb [::Google::Cloud::Compute::V1::SetUrlMapTargetHttpsProxyRequest]
|
@@ -493,12 +681,17 @@ module Google
|
|
493
681
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
494
682
|
# Uri, Body, Query string parameters
|
495
683
|
def transcode_set_url_map_request request_pb
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
684
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
685
|
+
.with_bindings(
|
686
|
+
uri_method: :post,
|
687
|
+
uri_template: "/compute/v1/projects/{project}/targetHttpsProxies/{target_https_proxy}/setUrlMap",
|
688
|
+
body: "url_map_reference_resource",
|
689
|
+
matches: [
|
690
|
+
["project", %r{[^/]+}, false],
|
691
|
+
["target_https_proxy", %r{[^/]+}, false]
|
692
|
+
]
|
693
|
+
)
|
694
|
+
transcoder.transcode request_pb
|
502
695
|
end
|
503
696
|
end
|
504
697
|
end
|