google-cloud-compute-v1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +12 -12
- data/README.md +4 -30
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +123 -66
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +166 -96
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +210 -128
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +228 -143
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +294 -187
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +816 -135
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +123 -66
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +334 -213
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +180 -107
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +463 -280
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +185 -113
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +292 -127
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +141 -81
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +259 -112
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +207 -128
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +159 -88
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +116 -64
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +170 -97
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +210 -128
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +284 -174
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +497 -328
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +255 -161
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +198 -117
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1079 -609
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1975 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +188 -112
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +98 -51
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +184 -108
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +91 -48
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +198 -117
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +123 -66
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +251 -157
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +349 -173
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +333 -211
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +223 -132
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +123 -66
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +206 -124
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +338 -219
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +170 -97
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +196 -112
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +185 -113
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +203 -125
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +145 -82
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +98 -51
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +309 -198
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +163 -97
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +185 -113
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +472 -313
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +143 -84
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +75 -40
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +141 -81
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +141 -81
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +134 -73
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +141 -81
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +163 -97
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +185 -113
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +203 -125
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +98 -51
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +245 -148
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +223 -132
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +274 -166
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +141 -81
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +270 -166
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +197 -115
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +166 -96
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +185 -110
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +314 -195
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +163 -97
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +210 -128
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +334 -159
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +166 -96
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -188
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +229 -145
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +185 -113
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +166 -96
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +250 -156
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +227 -135
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +166 -96
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +134 -73
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +98 -51
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
- data/lib/google/cloud/compute/v1.rb +5 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/cloud/compute/v1/compute.rb +2526 -640
- metadata +84 -8
@@ -0,0 +1,509 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/compute/v1/compute_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module TargetHttpsProxies
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the TargetHttpsProxies service.
|
29
|
+
# service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call and deserialing the response
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# Baseline implementation for the aggregated_list REST call
|
43
|
+
#
|
44
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListTargetHttpsProxiesRequest]
|
45
|
+
# A request object representing the call parameters. Required.
|
46
|
+
# @param options [::Gapic::CallOptions]
|
47
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
48
|
+
#
|
49
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
50
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TargetHttpsProxyAggregatedList]
|
51
|
+
# @yieldparam response [::Faraday::Response]
|
52
|
+
#
|
53
|
+
# @return [::Google::Cloud::Compute::V1::TargetHttpsProxyAggregatedList]
|
54
|
+
# A result object deserialized from the server's reply
|
55
|
+
def aggregated_list request_pb, options = nil
|
56
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
57
|
+
|
58
|
+
uri, _body, query_string_params = transcode_aggregated_list_request request_pb
|
59
|
+
response = @client_stub.make_get_request(
|
60
|
+
uri: uri,
|
61
|
+
params: query_string_params,
|
62
|
+
options: options
|
63
|
+
)
|
64
|
+
result = ::Google::Cloud::Compute::V1::TargetHttpsProxyAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
65
|
+
|
66
|
+
yield result, response if block_given?
|
67
|
+
result
|
68
|
+
end
|
69
|
+
|
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
|
+
##
|
92
|
+
# Baseline implementation for the delete REST call
|
93
|
+
#
|
94
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteTargetHttpsProxyRequest]
|
95
|
+
# A request object representing the call parameters. Required.
|
96
|
+
# @param options [::Gapic::CallOptions]
|
97
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
98
|
+
#
|
99
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
100
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
101
|
+
# @yieldparam response [::Faraday::Response]
|
102
|
+
#
|
103
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
104
|
+
# A result object deserialized from the server's reply
|
105
|
+
def delete request_pb, options = nil
|
106
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
107
|
+
|
108
|
+
uri, _body, query_string_params = transcode_delete_request request_pb
|
109
|
+
response = @client_stub.make_delete_request(
|
110
|
+
uri: uri,
|
111
|
+
params: query_string_params,
|
112
|
+
options: options
|
113
|
+
)
|
114
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
115
|
+
|
116
|
+
yield result, response if block_given?
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
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
|
+
##
|
137
|
+
# Baseline implementation for the get REST call
|
138
|
+
#
|
139
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetTargetHttpsProxyRequest]
|
140
|
+
# A request object representing the call parameters. Required.
|
141
|
+
# @param options [::Gapic::CallOptions]
|
142
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
143
|
+
#
|
144
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
145
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TargetHttpsProxy]
|
146
|
+
# @yieldparam response [::Faraday::Response]
|
147
|
+
#
|
148
|
+
# @return [::Google::Cloud::Compute::V1::TargetHttpsProxy]
|
149
|
+
# A result object deserialized from the server's reply
|
150
|
+
def get request_pb, options = nil
|
151
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
152
|
+
|
153
|
+
uri, _body, _query_string_params = transcode_get_request request_pb
|
154
|
+
response = @client_stub.make_get_request(
|
155
|
+
uri: uri,
|
156
|
+
options: options
|
157
|
+
)
|
158
|
+
result = ::Google::Cloud::Compute::V1::TargetHttpsProxy.decode_json response.body, ignore_unknown_fields: true
|
159
|
+
|
160
|
+
yield result, response if block_given?
|
161
|
+
result
|
162
|
+
end
|
163
|
+
|
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
|
+
##
|
180
|
+
# Baseline implementation for the insert REST call
|
181
|
+
#
|
182
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertTargetHttpsProxyRequest]
|
183
|
+
# A request object representing the call parameters. Required.
|
184
|
+
# @param options [::Gapic::CallOptions]
|
185
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
186
|
+
#
|
187
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
188
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
189
|
+
# @yieldparam response [::Faraday::Response]
|
190
|
+
#
|
191
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
192
|
+
# A result object deserialized from the server's reply
|
193
|
+
def insert request_pb, options = nil
|
194
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
195
|
+
|
196
|
+
uri, body, query_string_params = transcode_insert_request request_pb
|
197
|
+
response = @client_stub.make_post_request(
|
198
|
+
uri: uri,
|
199
|
+
body: body,
|
200
|
+
params: query_string_params,
|
201
|
+
options: options
|
202
|
+
)
|
203
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
204
|
+
|
205
|
+
yield result, response if block_given?
|
206
|
+
result
|
207
|
+
end
|
208
|
+
|
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
|
+
##
|
226
|
+
# Baseline implementation for the list REST call
|
227
|
+
#
|
228
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListTargetHttpsProxiesRequest]
|
229
|
+
# A request object representing the call parameters. Required.
|
230
|
+
# @param options [::Gapic::CallOptions]
|
231
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
232
|
+
#
|
233
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
234
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TargetHttpsProxyList]
|
235
|
+
# @yieldparam response [::Faraday::Response]
|
236
|
+
#
|
237
|
+
# @return [::Google::Cloud::Compute::V1::TargetHttpsProxyList]
|
238
|
+
# A result object deserialized from the server's reply
|
239
|
+
def list request_pb, options = nil
|
240
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
241
|
+
|
242
|
+
uri, _body, query_string_params = transcode_list_request request_pb
|
243
|
+
response = @client_stub.make_get_request(
|
244
|
+
uri: uri,
|
245
|
+
params: query_string_params,
|
246
|
+
options: options
|
247
|
+
)
|
248
|
+
result = ::Google::Cloud::Compute::V1::TargetHttpsProxyList.decode_json response.body, ignore_unknown_fields: true
|
249
|
+
|
250
|
+
yield result, response if block_given?
|
251
|
+
result
|
252
|
+
end
|
253
|
+
|
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
|
+
##
|
275
|
+
# Baseline implementation for the patch REST call
|
276
|
+
#
|
277
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest]
|
278
|
+
# A request object representing the call parameters. Required.
|
279
|
+
# @param options [::Gapic::CallOptions]
|
280
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
281
|
+
#
|
282
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
283
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
284
|
+
# @yieldparam response [::Faraday::Response]
|
285
|
+
#
|
286
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
287
|
+
# A result object deserialized from the server's reply
|
288
|
+
def patch request_pb, options = nil
|
289
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
290
|
+
|
291
|
+
uri, body, query_string_params = transcode_patch_request request_pb
|
292
|
+
response = @client_stub.make_patch_request(
|
293
|
+
uri: uri,
|
294
|
+
body: body,
|
295
|
+
params: query_string_params,
|
296
|
+
options: options
|
297
|
+
)
|
298
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
299
|
+
|
300
|
+
yield result, response if block_given?
|
301
|
+
result
|
302
|
+
end
|
303
|
+
|
304
|
+
##
|
305
|
+
# GRPC transcoding helper method for the patch REST call
|
306
|
+
#
|
307
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest]
|
308
|
+
# A request object representing the call parameters. Required.
|
309
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
310
|
+
# Uri, Body, Query string parameters
|
311
|
+
def transcode_patch_request request_pb
|
312
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/targetHttpsProxies/#{request_pb.target_https_proxy}"
|
313
|
+
body = request_pb.target_https_proxy_resource.to_json
|
314
|
+
query_string_params = {}
|
315
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
316
|
+
|
317
|
+
[uri, body, query_string_params]
|
318
|
+
end
|
319
|
+
|
320
|
+
##
|
321
|
+
# Baseline implementation for the set_quic_override REST call
|
322
|
+
#
|
323
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetQuicOverrideTargetHttpsProxyRequest]
|
324
|
+
# A request object representing the call parameters. Required.
|
325
|
+
# @param options [::Gapic::CallOptions]
|
326
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
327
|
+
#
|
328
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
329
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
330
|
+
# @yieldparam response [::Faraday::Response]
|
331
|
+
#
|
332
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
333
|
+
# A result object deserialized from the server's reply
|
334
|
+
def set_quic_override request_pb, options = nil
|
335
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
336
|
+
|
337
|
+
uri, body, query_string_params = transcode_set_quic_override_request request_pb
|
338
|
+
response = @client_stub.make_post_request(
|
339
|
+
uri: uri,
|
340
|
+
body: body,
|
341
|
+
params: query_string_params,
|
342
|
+
options: options
|
343
|
+
)
|
344
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
345
|
+
|
346
|
+
yield result, response if block_given?
|
347
|
+
result
|
348
|
+
end
|
349
|
+
|
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
|
+
##
|
367
|
+
# Baseline implementation for the set_ssl_certificates REST call
|
368
|
+
#
|
369
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSslCertificatesTargetHttpsProxyRequest]
|
370
|
+
# A request object representing the call parameters. Required.
|
371
|
+
# @param options [::Gapic::CallOptions]
|
372
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
373
|
+
#
|
374
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
375
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
376
|
+
# @yieldparam response [::Faraday::Response]
|
377
|
+
#
|
378
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
379
|
+
# A result object deserialized from the server's reply
|
380
|
+
def set_ssl_certificates request_pb, options = nil
|
381
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
382
|
+
|
383
|
+
uri, body, query_string_params = transcode_set_ssl_certificates_request request_pb
|
384
|
+
response = @client_stub.make_post_request(
|
385
|
+
uri: uri,
|
386
|
+
body: body,
|
387
|
+
params: query_string_params,
|
388
|
+
options: options
|
389
|
+
)
|
390
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
391
|
+
|
392
|
+
yield result, response if block_given?
|
393
|
+
result
|
394
|
+
end
|
395
|
+
|
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
|
+
##
|
413
|
+
# Baseline implementation for the set_ssl_policy REST call
|
414
|
+
#
|
415
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSslPolicyTargetHttpsProxyRequest]
|
416
|
+
# A request object representing the call parameters. Required.
|
417
|
+
# @param options [::Gapic::CallOptions]
|
418
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
419
|
+
#
|
420
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
421
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
422
|
+
# @yieldparam response [::Faraday::Response]
|
423
|
+
#
|
424
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
425
|
+
# A result object deserialized from the server's reply
|
426
|
+
def set_ssl_policy request_pb, options = nil
|
427
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
428
|
+
|
429
|
+
uri, body, query_string_params = transcode_set_ssl_policy_request request_pb
|
430
|
+
response = @client_stub.make_post_request(
|
431
|
+
uri: uri,
|
432
|
+
body: body,
|
433
|
+
params: query_string_params,
|
434
|
+
options: options
|
435
|
+
)
|
436
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
437
|
+
|
438
|
+
yield result, response if block_given?
|
439
|
+
result
|
440
|
+
end
|
441
|
+
|
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
|
+
##
|
459
|
+
# Baseline implementation for the set_url_map REST call
|
460
|
+
#
|
461
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetUrlMapTargetHttpsProxyRequest]
|
462
|
+
# A request object representing the call parameters. Required.
|
463
|
+
# @param options [::Gapic::CallOptions]
|
464
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
465
|
+
#
|
466
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
467
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
468
|
+
# @yieldparam response [::Faraday::Response]
|
469
|
+
#
|
470
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
471
|
+
# A result object deserialized from the server's reply
|
472
|
+
def set_url_map request_pb, options = nil
|
473
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
474
|
+
|
475
|
+
uri, body, query_string_params = transcode_set_url_map_request request_pb
|
476
|
+
response = @client_stub.make_post_request(
|
477
|
+
uri: uri,
|
478
|
+
body: body,
|
479
|
+
params: query_string_params,
|
480
|
+
options: options
|
481
|
+
)
|
482
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
483
|
+
|
484
|
+
yield result, response if block_given?
|
485
|
+
result
|
486
|
+
end
|
487
|
+
|
488
|
+
##
|
489
|
+
# GRPC transcoding helper method for the set_url_map REST call
|
490
|
+
#
|
491
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetUrlMapTargetHttpsProxyRequest]
|
492
|
+
# A request object representing the call parameters. Required.
|
493
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
494
|
+
# Uri, Body, Query string parameters
|
495
|
+
def transcode_set_url_map_request request_pb
|
496
|
+
uri = "/compute/v1/projects/#{request_pb.project}/targetHttpsProxies/#{request_pb.target_https_proxy}/setUrlMap"
|
497
|
+
body = request_pb.url_map_reference_resource.to_json
|
498
|
+
query_string_params = {}
|
499
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
500
|
+
|
501
|
+
[uri, body, query_string_params]
|
502
|
+
end
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|
506
|
+
end
|
507
|
+
end
|
508
|
+
end
|
509
|
+
end
|