google-cloud-compute-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +10 -8
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
- metadata +37 -12
@@ -0,0 +1,118 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Compute
|
23
|
+
module V1
|
24
|
+
module PublicDelegatedPrefixes
|
25
|
+
module Rest
|
26
|
+
# GRPC transcoding helper methods for the PublicDelegatedPrefixes REST API.
|
27
|
+
module GrpcTranscoding
|
28
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListPublicDelegatedPrefixesRequest]
|
29
|
+
# A request object representing the call parameters. Required.
|
30
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
31
|
+
# Uri, Body, Query string parameters
|
32
|
+
def transcode_aggregated_list request_pb
|
33
|
+
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/publicDelegatedPrefixes"
|
34
|
+
body = nil
|
35
|
+
query_string_params = {}
|
36
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
37
|
+
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
38
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
39
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
40
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
41
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
42
|
+
|
43
|
+
[uri, body, query_string_params]
|
44
|
+
end
|
45
|
+
|
46
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeletePublicDelegatedPrefixeRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
49
|
+
# Uri, Body, Query string parameters
|
50
|
+
def transcode_delete request_pb
|
51
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
|
52
|
+
body = nil
|
53
|
+
query_string_params = {}
|
54
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
55
|
+
|
56
|
+
[uri, body, query_string_params]
|
57
|
+
end
|
58
|
+
|
59
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetPublicDelegatedPrefixeRequest]
|
60
|
+
# A request object representing the call parameters. Required.
|
61
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
62
|
+
# Uri, Body, Query string parameters
|
63
|
+
def transcode_get request_pb
|
64
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
|
65
|
+
body = nil
|
66
|
+
query_string_params = {}
|
67
|
+
|
68
|
+
[uri, body, query_string_params]
|
69
|
+
end
|
70
|
+
|
71
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertPublicDelegatedPrefixeRequest]
|
72
|
+
# A request object representing the call parameters. Required.
|
73
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
74
|
+
# Uri, Body, Query string parameters
|
75
|
+
def transcode_insert request_pb
|
76
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/publicDelegatedPrefixes"
|
77
|
+
body = request_pb.public_delegated_prefix_resource.to_json
|
78
|
+
query_string_params = {}
|
79
|
+
|
80
|
+
[uri, body, query_string_params]
|
81
|
+
end
|
82
|
+
|
83
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListPublicDelegatedPrefixesRequest]
|
84
|
+
# A request object representing the call parameters. Required.
|
85
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
86
|
+
# Uri, Body, Query string parameters
|
87
|
+
def transcode_list request_pb
|
88
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/publicDelegatedPrefixes"
|
89
|
+
body = nil
|
90
|
+
query_string_params = {}
|
91
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
92
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
93
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
94
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
95
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
96
|
+
|
97
|
+
[uri, body, query_string_params]
|
98
|
+
end
|
99
|
+
|
100
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchPublicDelegatedPrefixeRequest]
|
101
|
+
# A request object representing the call parameters. Required.
|
102
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
103
|
+
# Uri, Body, Query string parameters
|
104
|
+
def transcode_patch request_pb
|
105
|
+
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
|
106
|
+
body = request_pb.public_delegated_prefix_resource.to_json
|
107
|
+
query_string_params = {}
|
108
|
+
|
109
|
+
[uri, body, query_string_params]
|
110
|
+
end
|
111
|
+
extend self
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -188,7 +188,8 @@ module Google
|
|
188
188
|
# Set x-goog-api-client header
|
189
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
190
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
191
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
192
|
+
transports_version_send: [:rest]
|
192
193
|
|
193
194
|
options.apply_defaults timeout: @config.timeout,
|
194
195
|
metadata: call_metadata
|
@@ -255,7 +256,8 @@ module Google
|
|
255
256
|
# Set x-goog-api-client header
|
256
257
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
259
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
260
|
+
transports_version_send: [:rest]
|
259
261
|
|
260
262
|
options.apply_defaults timeout: @config.timeout,
|
261
263
|
metadata: call_metadata
|
@@ -327,15 +329,17 @@ module Google
|
|
327
329
|
# Set x-goog-api-client header
|
328
330
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
329
331
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
330
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
332
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
333
|
+
transports_version_send: [:rest]
|
331
334
|
|
332
335
|
options.apply_defaults timeout: @config.timeout,
|
333
336
|
metadata: call_metadata
|
334
337
|
|
335
|
-
uri, body,
|
338
|
+
uri, body, query_string_params = transcode_insert request
|
336
339
|
response = @client_stub.make_post_request(
|
337
340
|
uri: uri,
|
338
341
|
body: body,
|
342
|
+
params: query_string_params,
|
339
343
|
options: options
|
340
344
|
)
|
341
345
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -412,7 +416,8 @@ module Google
|
|
412
416
|
# Set x-goog-api-client header
|
413
417
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
414
418
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
415
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
419
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
420
|
+
transports_version_send: [:rest]
|
416
421
|
|
417
422
|
options.apply_defaults timeout: @config.timeout,
|
418
423
|
metadata: call_metadata
|
@@ -487,15 +492,17 @@ module Google
|
|
487
492
|
# Set x-goog-api-client header
|
488
493
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
489
494
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
490
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
495
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
496
|
+
transports_version_send: [:rest]
|
491
497
|
|
492
498
|
options.apply_defaults timeout: @config.timeout,
|
493
499
|
metadata: call_metadata
|
494
500
|
|
495
|
-
uri, body,
|
501
|
+
uri, body, query_string_params = transcode_patch request
|
496
502
|
response = @client_stub.make_patch_request(
|
497
503
|
uri: uri,
|
498
504
|
body: body,
|
505
|
+
params: query_string_params,
|
499
506
|
options: options
|
500
507
|
)
|
501
508
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -562,15 +569,17 @@ module Google
|
|
562
569
|
# Set x-goog-api-client header
|
563
570
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
564
571
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
565
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
572
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
573
|
+
transports_version_send: [:rest]
|
566
574
|
|
567
575
|
options.apply_defaults timeout: @config.timeout,
|
568
576
|
metadata: call_metadata
|
569
577
|
|
570
|
-
uri, body,
|
578
|
+
uri, body, query_string_params = transcode_update request
|
571
579
|
response = @client_stub.make_put_request(
|
572
580
|
uri: uri,
|
573
581
|
body: body,
|
582
|
+
params: query_string_params,
|
574
583
|
options: options
|
575
584
|
)
|
576
585
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -58,6 +58,7 @@ module Google
|
|
58
58
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/autoscalers"
|
59
59
|
body = request_pb.autoscaler_resource.to_json
|
60
60
|
query_string_params = {}
|
61
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
62
|
|
62
63
|
[uri, body, query_string_params]
|
63
64
|
end
|
@@ -87,6 +88,8 @@ module Google
|
|
87
88
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/autoscalers"
|
88
89
|
body = request_pb.autoscaler_resource.to_json
|
89
90
|
query_string_params = {}
|
91
|
+
query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler?
|
92
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
90
93
|
|
91
94
|
[uri, body, query_string_params]
|
92
95
|
end
|
@@ -99,6 +102,8 @@ module Google
|
|
99
102
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/autoscalers"
|
100
103
|
body = request_pb.autoscaler_resource.to_json
|
101
104
|
query_string_params = {}
|
105
|
+
query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler?
|
106
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
102
107
|
|
103
108
|
[uri, body, query_string_params]
|
104
109
|
end
|
@@ -188,7 +188,8 @@ module Google
|
|
188
188
|
# Set x-goog-api-client header
|
189
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
190
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
191
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
192
|
+
transports_version_send: [:rest]
|
192
193
|
|
193
194
|
options.apply_defaults timeout: @config.timeout,
|
194
195
|
metadata: call_metadata
|
@@ -255,7 +256,8 @@ module Google
|
|
255
256
|
# Set x-goog-api-client header
|
256
257
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
259
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
260
|
+
transports_version_send: [:rest]
|
259
261
|
|
260
262
|
options.apply_defaults timeout: @config.timeout,
|
261
263
|
metadata: call_metadata
|
@@ -322,7 +324,8 @@ module Google
|
|
322
324
|
# Set x-goog-api-client header
|
323
325
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
324
326
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
325
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
327
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
328
|
+
transports_version_send: [:rest]
|
326
329
|
|
327
330
|
options.apply_defaults timeout: @config.timeout,
|
328
331
|
metadata: call_metadata
|
@@ -395,15 +398,17 @@ module Google
|
|
395
398
|
# Set x-goog-api-client header
|
396
399
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
397
400
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
398
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
401
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
402
|
+
transports_version_send: [:rest]
|
399
403
|
|
400
404
|
options.apply_defaults timeout: @config.timeout,
|
401
405
|
metadata: call_metadata
|
402
406
|
|
403
|
-
uri, body,
|
407
|
+
uri, body, query_string_params = transcode_insert request
|
404
408
|
response = @client_stub.make_post_request(
|
405
409
|
uri: uri,
|
406
410
|
body: body,
|
411
|
+
params: query_string_params,
|
407
412
|
options: options
|
408
413
|
)
|
409
414
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -480,7 +485,8 @@ module Google
|
|
480
485
|
# Set x-goog-api-client header
|
481
486
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
487
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
488
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
489
|
+
transports_version_send: [:rest]
|
484
490
|
|
485
491
|
options.apply_defaults timeout: @config.timeout,
|
486
492
|
metadata: call_metadata
|
@@ -555,15 +561,17 @@ module Google
|
|
555
561
|
# Set x-goog-api-client header
|
556
562
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
557
563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
558
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
564
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
565
|
+
transports_version_send: [:rest]
|
559
566
|
|
560
567
|
options.apply_defaults timeout: @config.timeout,
|
561
568
|
metadata: call_metadata
|
562
569
|
|
563
|
-
uri, body,
|
570
|
+
uri, body, query_string_params = transcode_patch request
|
564
571
|
response = @client_stub.make_patch_request(
|
565
572
|
uri: uri,
|
566
573
|
body: body,
|
574
|
+
params: query_string_params,
|
567
575
|
options: options
|
568
576
|
)
|
569
577
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -630,15 +638,17 @@ module Google
|
|
630
638
|
# Set x-goog-api-client header
|
631
639
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
632
640
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
633
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
641
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
642
|
+
transports_version_send: [:rest]
|
634
643
|
|
635
644
|
options.apply_defaults timeout: @config.timeout,
|
636
645
|
metadata: call_metadata
|
637
646
|
|
638
|
-
uri, body,
|
647
|
+
uri, body, query_string_params = transcode_update request
|
639
648
|
response = @client_stub.make_put_request(
|
640
649
|
uri: uri,
|
641
650
|
body: body,
|
651
|
+
params: query_string_params,
|
642
652
|
options: options
|
643
653
|
)
|
644
654
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -70,6 +70,7 @@ module Google
|
|
70
70
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/backendServices"
|
71
71
|
body = request_pb.backend_service_resource.to_json
|
72
72
|
query_string_params = {}
|
73
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
73
74
|
|
74
75
|
[uri, body, query_string_params]
|
75
76
|
end
|
@@ -99,6 +100,7 @@ module Google
|
|
99
100
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/backendServices/#{request_pb.backend_service}"
|
100
101
|
body = request_pb.backend_service_resource.to_json
|
101
102
|
query_string_params = {}
|
103
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
102
104
|
|
103
105
|
[uri, body, query_string_params]
|
104
106
|
end
|
@@ -111,6 +113,7 @@ module Google
|
|
111
113
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/backendServices/#{request_pb.backend_service}"
|
112
114
|
body = request_pb.backend_service_resource.to_json
|
113
115
|
query_string_params = {}
|
116
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
114
117
|
|
115
118
|
[uri, body, query_string_params]
|
116
119
|
end
|
@@ -200,7 +200,8 @@ module Google
|
|
200
200
|
# Set x-goog-api-client header
|
201
201
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
203
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
203
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
204
|
+
transports_version_send: [:rest]
|
204
205
|
|
205
206
|
options.apply_defaults timeout: @config.timeout,
|
206
207
|
metadata: call_metadata
|
@@ -267,7 +268,8 @@ module Google
|
|
267
268
|
# Set x-goog-api-client header
|
268
269
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
269
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
270
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
271
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
272
|
+
transports_version_send: [:rest]
|
271
273
|
|
272
274
|
options.apply_defaults timeout: @config.timeout,
|
273
275
|
metadata: call_metadata
|
@@ -339,15 +341,17 @@ module Google
|
|
339
341
|
# Set x-goog-api-client header
|
340
342
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
341
343
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
342
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
344
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
345
|
+
transports_version_send: [:rest]
|
343
346
|
|
344
347
|
options.apply_defaults timeout: @config.timeout,
|
345
348
|
metadata: call_metadata
|
346
349
|
|
347
|
-
uri, body,
|
350
|
+
uri, body, query_string_params = transcode_insert request
|
348
351
|
response = @client_stub.make_post_request(
|
349
352
|
uri: uri,
|
350
353
|
body: body,
|
354
|
+
params: query_string_params,
|
351
355
|
options: options
|
352
356
|
)
|
353
357
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -424,7 +428,8 @@ module Google
|
|
424
428
|
# Set x-goog-api-client header
|
425
429
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
426
430
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
427
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
431
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
432
|
+
transports_version_send: [:rest]
|
428
433
|
|
429
434
|
options.apply_defaults timeout: @config.timeout,
|
430
435
|
metadata: call_metadata
|
@@ -63,6 +63,7 @@ module Google
|
|
63
63
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/commitments"
|
64
64
|
body = request_pb.commitment_resource.to_json
|
65
65
|
query_string_params = {}
|
66
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
66
67
|
|
67
68
|
[uri, body, query_string_params]
|
68
69
|
end
|
@@ -182,7 +182,8 @@ module Google
|
|
182
182
|
# Set x-goog-api-client header
|
183
183
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
184
184
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
185
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
185
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
186
|
+
transports_version_send: [:rest]
|
186
187
|
|
187
188
|
options.apply_defaults timeout: @config.timeout,
|
188
189
|
metadata: call_metadata
|
@@ -266,7 +267,8 @@ module Google
|
|
266
267
|
# Set x-goog-api-client header
|
267
268
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
268
269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
269
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
270
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
271
|
+
transports_version_send: [:rest]
|
270
272
|
|
271
273
|
options.apply_defaults timeout: @config.timeout,
|
272
274
|
metadata: call_metadata
|
@@ -190,15 +190,17 @@ module Google
|
|
190
190
|
# Set x-goog-api-client header
|
191
191
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
192
192
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
193
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
193
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
194
|
+
transports_version_send: [:rest]
|
194
195
|
|
195
196
|
options.apply_defaults timeout: @config.timeout,
|
196
197
|
metadata: call_metadata
|
197
198
|
|
198
|
-
uri, body,
|
199
|
+
uri, body, query_string_params = transcode_add_resource_policies request
|
199
200
|
response = @client_stub.make_post_request(
|
200
201
|
uri: uri,
|
201
202
|
body: body,
|
203
|
+
params: query_string_params,
|
202
204
|
options: options
|
203
205
|
)
|
204
206
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -265,15 +267,17 @@ module Google
|
|
265
267
|
# Set x-goog-api-client header
|
266
268
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
267
269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
268
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
270
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
271
|
+
transports_version_send: [:rest]
|
269
272
|
|
270
273
|
options.apply_defaults timeout: @config.timeout,
|
271
274
|
metadata: call_metadata
|
272
275
|
|
273
|
-
uri, body,
|
276
|
+
uri, body, query_string_params = transcode_create_snapshot request
|
274
277
|
response = @client_stub.make_post_request(
|
275
278
|
uri: uri,
|
276
279
|
body: body,
|
280
|
+
params: query_string_params,
|
277
281
|
options: options
|
278
282
|
)
|
279
283
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -338,7 +342,8 @@ module Google
|
|
338
342
|
# Set x-goog-api-client header
|
339
343
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
340
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
341
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
345
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
346
|
+
transports_version_send: [:rest]
|
342
347
|
|
343
348
|
options.apply_defaults timeout: @config.timeout,
|
344
349
|
metadata: call_metadata
|
@@ -405,7 +410,8 @@ module Google
|
|
405
410
|
# Set x-goog-api-client header
|
406
411
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
407
412
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
408
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
413
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
414
|
+
transports_version_send: [:rest]
|
409
415
|
|
410
416
|
options.apply_defaults timeout: @config.timeout,
|
411
417
|
metadata: call_metadata
|
@@ -473,7 +479,8 @@ module Google
|
|
473
479
|
# Set x-goog-api-client header
|
474
480
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
482
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
483
|
+
transports_version_send: [:rest]
|
477
484
|
|
478
485
|
options.apply_defaults timeout: @config.timeout,
|
479
486
|
metadata: call_metadata
|
@@ -548,15 +555,17 @@ module Google
|
|
548
555
|
# Set x-goog-api-client header
|
549
556
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
550
557
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
551
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
558
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
559
|
+
transports_version_send: [:rest]
|
552
560
|
|
553
561
|
options.apply_defaults timeout: @config.timeout,
|
554
562
|
metadata: call_metadata
|
555
563
|
|
556
|
-
uri, body,
|
564
|
+
uri, body, query_string_params = transcode_insert request
|
557
565
|
response = @client_stub.make_post_request(
|
558
566
|
uri: uri,
|
559
567
|
body: body,
|
568
|
+
params: query_string_params,
|
560
569
|
options: options
|
561
570
|
)
|
562
571
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -633,7 +642,8 @@ module Google
|
|
633
642
|
# Set x-goog-api-client header
|
634
643
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
635
644
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
636
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
645
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
646
|
+
transports_version_send: [:rest]
|
637
647
|
|
638
648
|
options.apply_defaults timeout: @config.timeout,
|
639
649
|
metadata: call_metadata
|
@@ -708,15 +718,17 @@ module Google
|
|
708
718
|
# Set x-goog-api-client header
|
709
719
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
710
720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
711
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
721
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
722
|
+
transports_version_send: [:rest]
|
712
723
|
|
713
724
|
options.apply_defaults timeout: @config.timeout,
|
714
725
|
metadata: call_metadata
|
715
726
|
|
716
|
-
uri, body,
|
727
|
+
uri, body, query_string_params = transcode_remove_resource_policies request
|
717
728
|
response = @client_stub.make_post_request(
|
718
729
|
uri: uri,
|
719
730
|
body: body,
|
731
|
+
params: query_string_params,
|
720
732
|
options: options
|
721
733
|
)
|
722
734
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -783,15 +795,17 @@ module Google
|
|
783
795
|
# Set x-goog-api-client header
|
784
796
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
785
797
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
786
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
798
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
799
|
+
transports_version_send: [:rest]
|
787
800
|
|
788
801
|
options.apply_defaults timeout: @config.timeout,
|
789
802
|
metadata: call_metadata
|
790
803
|
|
791
|
-
uri, body,
|
804
|
+
uri, body, query_string_params = transcode_resize request
|
792
805
|
response = @client_stub.make_post_request(
|
793
806
|
uri: uri,
|
794
807
|
body: body,
|
808
|
+
params: query_string_params,
|
795
809
|
options: options
|
796
810
|
)
|
797
811
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -852,7 +866,8 @@ module Google
|
|
852
866
|
# Set x-goog-api-client header
|
853
867
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
854
868
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
855
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
869
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
870
|
+
transports_version_send: [:rest]
|
856
871
|
|
857
872
|
options.apply_defaults timeout: @config.timeout,
|
858
873
|
metadata: call_metadata
|
@@ -927,15 +942,17 @@ module Google
|
|
927
942
|
# Set x-goog-api-client header
|
928
943
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
929
944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
930
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
945
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
946
|
+
transports_version_send: [:rest]
|
931
947
|
|
932
948
|
options.apply_defaults timeout: @config.timeout,
|
933
949
|
metadata: call_metadata
|
934
950
|
|
935
|
-
uri, body,
|
951
|
+
uri, body, query_string_params = transcode_set_labels request
|
936
952
|
response = @client_stub.make_post_request(
|
937
953
|
uri: uri,
|
938
954
|
body: body,
|
955
|
+
params: query_string_params,
|
939
956
|
options: options
|
940
957
|
)
|
941
958
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -996,7 +1013,8 @@ module Google
|
|
996
1013
|
# Set x-goog-api-client header
|
997
1014
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
998
1015
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
999
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1016
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1017
|
+
transports_version_send: [:rest]
|
1000
1018
|
|
1001
1019
|
options.apply_defaults timeout: @config.timeout,
|
1002
1020
|
metadata: call_metadata
|