google-cloud-compute-v1 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +92 -2
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +68 -6
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/compute_pb.rb +68 -10873
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +350 -2
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +259 -14
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +89 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +66 -5
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +20 -20
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -3
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +46 -46
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +436 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +47 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +5 -3
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +350 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +258 -13
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +19 -19
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +7 -3
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +58 -1
- data/proto_docs/google/cloud/compute/v1/compute.rb +1025 -102
- metadata +9 -4
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_resource_policies_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -116,6 +116,44 @@ module Google
|
|
|
116
116
|
result
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
##
|
|
120
|
+
# Baseline implementation for the bulk_insert REST call
|
|
121
|
+
#
|
|
122
|
+
# @param request_pb [::Google::Cloud::Compute::V1::BulkInsertDiskRequest]
|
|
123
|
+
# A request object representing the call parameters. Required.
|
|
124
|
+
# @param options [::Gapic::CallOptions]
|
|
125
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
126
|
+
#
|
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
128
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
130
|
+
#
|
|
131
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
132
|
+
# A result object deserialized from the server's reply
|
|
133
|
+
def bulk_insert request_pb, options = nil
|
|
134
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
135
|
+
|
|
136
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_insert_request request_pb
|
|
137
|
+
query_string_params = if query_string_params.any?
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
|
+
else
|
|
140
|
+
{}
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
response = @client_stub.make_http_request(
|
|
144
|
+
verb,
|
|
145
|
+
uri: uri,
|
|
146
|
+
body: body || "",
|
|
147
|
+
params: query_string_params,
|
|
148
|
+
options: options
|
|
149
|
+
)
|
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
151
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
152
|
+
|
|
153
|
+
yield result, operation if block_given?
|
|
154
|
+
result
|
|
155
|
+
end
|
|
156
|
+
|
|
119
157
|
##
|
|
120
158
|
# Baseline implementation for the create_snapshot REST call
|
|
121
159
|
#
|
|
@@ -135,7 +173,7 @@ module Google
|
|
|
135
173
|
|
|
136
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_snapshot_request request_pb
|
|
137
175
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
177
|
else
|
|
140
178
|
{}
|
|
141
179
|
end
|
|
@@ -173,7 +211,7 @@ module Google
|
|
|
173
211
|
|
|
174
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
|
175
213
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
215
|
else
|
|
178
216
|
{}
|
|
179
217
|
end
|
|
@@ -211,7 +249,7 @@ module Google
|
|
|
211
249
|
|
|
212
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
213
251
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
253
|
else
|
|
216
254
|
{}
|
|
217
255
|
end
|
|
@@ -249,7 +287,7 @@ module Google
|
|
|
249
287
|
|
|
250
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
|
251
289
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
291
|
else
|
|
254
292
|
{}
|
|
255
293
|
end
|
|
@@ -287,7 +325,7 @@ module Google
|
|
|
287
325
|
|
|
288
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
|
289
327
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
329
|
else
|
|
292
330
|
{}
|
|
293
331
|
end
|
|
@@ -325,7 +363,7 @@ module Google
|
|
|
325
363
|
|
|
326
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
327
365
|
query_string_params = if query_string_params.any?
|
|
328
|
-
query_string_params.to_h { |p| p.split
|
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
367
|
else
|
|
330
368
|
{}
|
|
331
369
|
end
|
|
@@ -363,7 +401,7 @@ module Google
|
|
|
363
401
|
|
|
364
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_remove_resource_policies_request request_pb
|
|
365
403
|
query_string_params = if query_string_params.any?
|
|
366
|
-
query_string_params.to_h { |p| p.split
|
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
367
405
|
else
|
|
368
406
|
{}
|
|
369
407
|
end
|
|
@@ -401,7 +439,7 @@ module Google
|
|
|
401
439
|
|
|
402
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_resize_request request_pb
|
|
403
441
|
query_string_params = if query_string_params.any?
|
|
404
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
405
443
|
else
|
|
406
444
|
{}
|
|
407
445
|
end
|
|
@@ -439,7 +477,7 @@ module Google
|
|
|
439
477
|
|
|
440
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
|
441
479
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
481
|
else
|
|
444
482
|
{}
|
|
445
483
|
end
|
|
@@ -477,7 +515,121 @@ module Google
|
|
|
477
515
|
|
|
478
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
|
|
479
517
|
query_string_params = if query_string_params.any?
|
|
480
|
-
query_string_params.to_h { |p| p.split
|
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
|
+
else
|
|
520
|
+
{}
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
response = @client_stub.make_http_request(
|
|
524
|
+
verb,
|
|
525
|
+
uri: uri,
|
|
526
|
+
body: body || "",
|
|
527
|
+
params: query_string_params,
|
|
528
|
+
options: options
|
|
529
|
+
)
|
|
530
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
531
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
532
|
+
|
|
533
|
+
yield result, operation if block_given?
|
|
534
|
+
result
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
##
|
|
538
|
+
# Baseline implementation for the start_async_replication REST call
|
|
539
|
+
#
|
|
540
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationDiskRequest]
|
|
541
|
+
# A request object representing the call parameters. Required.
|
|
542
|
+
# @param options [::Gapic::CallOptions]
|
|
543
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
544
|
+
#
|
|
545
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
546
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
547
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
548
|
+
#
|
|
549
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
550
|
+
# A result object deserialized from the server's reply
|
|
551
|
+
def start_async_replication request_pb, options = nil
|
|
552
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
553
|
+
|
|
554
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_start_async_replication_request request_pb
|
|
555
|
+
query_string_params = if query_string_params.any?
|
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
|
+
else
|
|
558
|
+
{}
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
response = @client_stub.make_http_request(
|
|
562
|
+
verb,
|
|
563
|
+
uri: uri,
|
|
564
|
+
body: body || "",
|
|
565
|
+
params: query_string_params,
|
|
566
|
+
options: options
|
|
567
|
+
)
|
|
568
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
569
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
570
|
+
|
|
571
|
+
yield result, operation if block_given?
|
|
572
|
+
result
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
##
|
|
576
|
+
# Baseline implementation for the stop_async_replication REST call
|
|
577
|
+
#
|
|
578
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationDiskRequest]
|
|
579
|
+
# A request object representing the call parameters. Required.
|
|
580
|
+
# @param options [::Gapic::CallOptions]
|
|
581
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
582
|
+
#
|
|
583
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
584
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
585
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
586
|
+
#
|
|
587
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
588
|
+
# A result object deserialized from the server's reply
|
|
589
|
+
def stop_async_replication request_pb, options = nil
|
|
590
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
591
|
+
|
|
592
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_stop_async_replication_request request_pb
|
|
593
|
+
query_string_params = if query_string_params.any?
|
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
595
|
+
else
|
|
596
|
+
{}
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
response = @client_stub.make_http_request(
|
|
600
|
+
verb,
|
|
601
|
+
uri: uri,
|
|
602
|
+
body: body || "",
|
|
603
|
+
params: query_string_params,
|
|
604
|
+
options: options
|
|
605
|
+
)
|
|
606
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
607
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
608
|
+
|
|
609
|
+
yield result, operation if block_given?
|
|
610
|
+
result
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
##
|
|
614
|
+
# Baseline implementation for the stop_group_async_replication REST call
|
|
615
|
+
#
|
|
616
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationDiskRequest]
|
|
617
|
+
# A request object representing the call parameters. Required.
|
|
618
|
+
# @param options [::Gapic::CallOptions]
|
|
619
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
620
|
+
#
|
|
621
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
622
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
623
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
624
|
+
#
|
|
625
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
626
|
+
# A result object deserialized from the server's reply
|
|
627
|
+
def stop_group_async_replication request_pb, options = nil
|
|
628
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
629
|
+
|
|
630
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_stop_group_async_replication_request request_pb
|
|
631
|
+
query_string_params = if query_string_params.any?
|
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
481
633
|
else
|
|
482
634
|
{}
|
|
483
635
|
end
|
|
@@ -515,7 +667,7 @@ module Google
|
|
|
515
667
|
|
|
516
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
517
669
|
query_string_params = if query_string_params.any?
|
|
518
|
-
query_string_params.to_h { |p| p.split
|
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
671
|
else
|
|
520
672
|
{}
|
|
521
673
|
end
|
|
@@ -553,7 +705,7 @@ module Google
|
|
|
553
705
|
|
|
554
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_request request_pb
|
|
555
707
|
query_string_params = if query_string_params.any?
|
|
556
|
-
query_string_params.to_h { |p| p.split
|
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
709
|
else
|
|
558
710
|
{}
|
|
559
711
|
end
|
|
@@ -617,6 +769,29 @@ module Google
|
|
|
617
769
|
transcoder.transcode request_pb
|
|
618
770
|
end
|
|
619
771
|
|
|
772
|
+
##
|
|
773
|
+
# @private
|
|
774
|
+
#
|
|
775
|
+
# GRPC transcoding helper method for the bulk_insert REST call
|
|
776
|
+
#
|
|
777
|
+
# @param request_pb [::Google::Cloud::Compute::V1::BulkInsertDiskRequest]
|
|
778
|
+
# A request object representing the call parameters. Required.
|
|
779
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
780
|
+
# Uri, Body, Query string parameters
|
|
781
|
+
def self.transcode_bulk_insert_request request_pb
|
|
782
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
783
|
+
.with_bindings(
|
|
784
|
+
uri_method: :post,
|
|
785
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/bulkInsert",
|
|
786
|
+
body: "bulk_insert_disk_resource_resource",
|
|
787
|
+
matches: [
|
|
788
|
+
["project", %r{^[^/]+/?$}, false],
|
|
789
|
+
["zone", %r{^[^/]+/?$}, false]
|
|
790
|
+
]
|
|
791
|
+
)
|
|
792
|
+
transcoder.transcode request_pb
|
|
793
|
+
end
|
|
794
|
+
|
|
620
795
|
##
|
|
621
796
|
# @private
|
|
622
797
|
#
|
|
@@ -851,6 +1026,76 @@ module Google
|
|
|
851
1026
|
transcoder.transcode request_pb
|
|
852
1027
|
end
|
|
853
1028
|
|
|
1029
|
+
##
|
|
1030
|
+
# @private
|
|
1031
|
+
#
|
|
1032
|
+
# GRPC transcoding helper method for the start_async_replication REST call
|
|
1033
|
+
#
|
|
1034
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationDiskRequest]
|
|
1035
|
+
# A request object representing the call parameters. Required.
|
|
1036
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1037
|
+
# Uri, Body, Query string parameters
|
|
1038
|
+
def self.transcode_start_async_replication_request request_pb
|
|
1039
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1040
|
+
.with_bindings(
|
|
1041
|
+
uri_method: :post,
|
|
1042
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication",
|
|
1043
|
+
body: "disks_start_async_replication_request_resource",
|
|
1044
|
+
matches: [
|
|
1045
|
+
["project", %r{^[^/]+/?$}, false],
|
|
1046
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
1047
|
+
["disk", %r{^[^/]+/?$}, false]
|
|
1048
|
+
]
|
|
1049
|
+
)
|
|
1050
|
+
transcoder.transcode request_pb
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
##
|
|
1054
|
+
# @private
|
|
1055
|
+
#
|
|
1056
|
+
# GRPC transcoding helper method for the stop_async_replication REST call
|
|
1057
|
+
#
|
|
1058
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationDiskRequest]
|
|
1059
|
+
# A request object representing the call parameters. Required.
|
|
1060
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1061
|
+
# Uri, Body, Query string parameters
|
|
1062
|
+
def self.transcode_stop_async_replication_request request_pb
|
|
1063
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1064
|
+
.with_bindings(
|
|
1065
|
+
uri_method: :post,
|
|
1066
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication",
|
|
1067
|
+
matches: [
|
|
1068
|
+
["project", %r{^[^/]+/?$}, false],
|
|
1069
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
1070
|
+
["disk", %r{^[^/]+/?$}, false]
|
|
1071
|
+
]
|
|
1072
|
+
)
|
|
1073
|
+
transcoder.transcode request_pb
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
##
|
|
1077
|
+
# @private
|
|
1078
|
+
#
|
|
1079
|
+
# GRPC transcoding helper method for the stop_group_async_replication REST call
|
|
1080
|
+
#
|
|
1081
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationDiskRequest]
|
|
1082
|
+
# A request object representing the call parameters. Required.
|
|
1083
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1084
|
+
# Uri, Body, Query string parameters
|
|
1085
|
+
def self.transcode_stop_group_async_replication_request request_pb
|
|
1086
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1087
|
+
.with_bindings(
|
|
1088
|
+
uri_method: :post,
|
|
1089
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication",
|
|
1090
|
+
body: "disks_stop_group_async_replication_resource_resource",
|
|
1091
|
+
matches: [
|
|
1092
|
+
["project", %r{^[^/]+/?$}, false],
|
|
1093
|
+
["zone", %r{^[^/]+/?$}, false]
|
|
1094
|
+
]
|
|
1095
|
+
)
|
|
1096
|
+
transcoder.transcode request_pb
|
|
1097
|
+
end
|
|
1098
|
+
|
|
854
1099
|
##
|
|
855
1100
|
# @private
|
|
856
1101
|
#
|
|
@@ -136,7 +136,7 @@ module Google
|
|
|
136
136
|
credentials = @config.credentials
|
|
137
137
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
138
138
|
# but only if the default endpoint does not have a region prefix.
|
|
139
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
139
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
140
140
|
!@config.endpoint.split(".").first.include?("-")
|
|
141
141
|
credentials ||= Credentials.default scope: @config.scope,
|
|
142
142
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -663,7 +663,9 @@ module Google
|
|
|
663
663
|
class Configuration
|
|
664
664
|
extend ::Gapic::Config
|
|
665
665
|
|
|
666
|
-
|
|
666
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
667
|
+
|
|
668
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
667
669
|
config_attr :credentials, nil do |value|
|
|
668
670
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
669
671
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -172,7 +172,7 @@ module Google
|
|
|
172
172
|
credentials = @config.credentials
|
|
173
173
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
174
174
|
# but only if the default endpoint does not have a region prefix.
|
|
175
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
175
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
176
176
|
!@config.endpoint.split(".").first.include?("-")
|
|
177
177
|
credentials ||= Credentials.default scope: @config.scope,
|
|
178
178
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1517,7 +1517,9 @@ module Google
|
|
|
1517
1517
|
class Configuration
|
|
1518
1518
|
extend ::Gapic::Config
|
|
1519
1519
|
|
|
1520
|
-
|
|
1520
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
1521
|
+
|
|
1522
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1521
1523
|
config_attr :credentials, nil do |value|
|
|
1522
1524
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1523
1525
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_association_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_rule_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_clone_rules_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_association_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
|
289
289
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
291
|
else
|
|
292
292
|
{}
|
|
293
293
|
end
|
|
@@ -325,7 +325,7 @@ module Google
|
|
|
325
325
|
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_rule_request request_pb
|
|
327
327
|
query_string_params = if query_string_params.any?
|
|
328
|
-
query_string_params.to_h { |p| p.split
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
329
|
else
|
|
330
330
|
{}
|
|
331
331
|
end
|
|
@@ -363,7 +363,7 @@ module Google
|
|
|
363
363
|
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
|
365
365
|
query_string_params = if query_string_params.any?
|
|
366
|
-
query_string_params.to_h { |p| p.split
|
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
367
367
|
else
|
|
368
368
|
{}
|
|
369
369
|
end
|
|
@@ -401,7 +401,7 @@ module Google
|
|
|
401
401
|
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
403
403
|
query_string_params = if query_string_params.any?
|
|
404
|
-
query_string_params.to_h { |p| p.split
|
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
405
405
|
else
|
|
406
406
|
{}
|
|
407
407
|
end
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_associations_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -477,7 +477,7 @@ module Google
|
|
|
477
477
|
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_move_request request_pb
|
|
479
479
|
query_string_params = if query_string_params.any?
|
|
480
|
-
query_string_params.to_h { |p| p.split
|
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
481
481
|
else
|
|
482
482
|
{}
|
|
483
483
|
end
|
|
@@ -515,7 +515,7 @@ module Google
|
|
|
515
515
|
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
|
|
517
517
|
query_string_params = if query_string_params.any?
|
|
518
|
-
query_string_params.to_h { |p| p.split
|
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
519
|
else
|
|
520
520
|
{}
|
|
521
521
|
end
|
|
@@ -553,7 +553,7 @@ module Google
|
|
|
553
553
|
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_patch_rule_request request_pb
|
|
555
555
|
query_string_params = if query_string_params.any?
|
|
556
|
-
query_string_params.to_h { |p| p.split
|
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
557
|
else
|
|
558
558
|
{}
|
|
559
559
|
end
|
|
@@ -591,7 +591,7 @@ module Google
|
|
|
591
591
|
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_remove_association_request request_pb
|
|
593
593
|
query_string_params = if query_string_params.any?
|
|
594
|
-
query_string_params.to_h { |p| p.split
|
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
595
595
|
else
|
|
596
596
|
{}
|
|
597
597
|
end
|
|
@@ -629,7 +629,7 @@ module Google
|
|
|
629
629
|
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_remove_rule_request request_pb
|
|
631
631
|
query_string_params = if query_string_params.any?
|
|
632
|
-
query_string_params.to_h { |p| p.split
|
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
633
633
|
else
|
|
634
634
|
{}
|
|
635
635
|
end
|
|
@@ -667,7 +667,7 @@ module Google
|
|
|
667
667
|
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
|
669
669
|
query_string_params = if query_string_params.any?
|
|
670
|
-
query_string_params.to_h { |p| p.split
|
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
671
671
|
else
|
|
672
672
|
{}
|
|
673
673
|
end
|
|
@@ -705,7 +705,7 @@ module Google
|
|
|
705
705
|
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
707
707
|
query_string_params = if query_string_params.any?
|
|
708
|
-
query_string_params.to_h { |p| p.split
|
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
709
709
|
else
|
|
710
710
|
{}
|
|
711
711
|
end
|
|
@@ -136,7 +136,7 @@ module Google
|
|
|
136
136
|
credentials = @config.credentials
|
|
137
137
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
138
138
|
# but only if the default endpoint does not have a region prefix.
|
|
139
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
139
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
140
140
|
!@config.endpoint.split(".").first.include?("-")
|
|
141
141
|
credentials ||= Credentials.default scope: @config.scope,
|
|
142
142
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -675,7 +675,9 @@ module Google
|
|
|
675
675
|
class Configuration
|
|
676
676
|
extend ::Gapic::Config
|
|
677
677
|
|
|
678
|
-
|
|
678
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
679
|
+
|
|
680
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
679
681
|
config_attr :credentials, nil do |value|
|
|
680
682
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
681
683
|
allowed.any? { |klass| klass === value }
|