google-cloud-compute-v1 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,45 @@ 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
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Baseline implementation for the bulk_insert REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def bulk_insert request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_insert_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
101
|
else
|
64
102
|
{}
|
65
103
|
end
|
@@ -97,7 +135,7 @@ module Google
|
|
97
135
|
|
98
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_snapshot_request request_pb
|
99
137
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
139
|
else
|
102
140
|
{}
|
103
141
|
end
|
@@ -135,7 +173,7 @@ module Google
|
|
135
173
|
|
136
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_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_get_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_iam_policy_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_insert_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_list_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_remove_resource_policies_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_resize_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_set_iam_policy_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,121 @@ module Google
|
|
439
477
|
|
440
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_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 }
|
481
|
+
else
|
482
|
+
{}
|
483
|
+
end
|
484
|
+
|
485
|
+
response = @client_stub.make_http_request(
|
486
|
+
verb,
|
487
|
+
uri: uri,
|
488
|
+
body: body || "",
|
489
|
+
params: query_string_params,
|
490
|
+
options: options
|
491
|
+
)
|
492
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
493
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
494
|
+
|
495
|
+
yield result, operation if block_given?
|
496
|
+
result
|
497
|
+
end
|
498
|
+
|
499
|
+
##
|
500
|
+
# Baseline implementation for the start_async_replication REST call
|
501
|
+
#
|
502
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest]
|
503
|
+
# A request object representing the call parameters. Required.
|
504
|
+
# @param options [::Gapic::CallOptions]
|
505
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
506
|
+
#
|
507
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
508
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
509
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
510
|
+
#
|
511
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
512
|
+
# A result object deserialized from the server's reply
|
513
|
+
def start_async_replication request_pb, options = nil
|
514
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
515
|
+
|
516
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_start_async_replication_request request_pb
|
517
|
+
query_string_params = if query_string_params.any?
|
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 stop_async_replication REST call
|
539
|
+
#
|
540
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest]
|
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 stop_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_stop_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_group_async_replication REST call
|
577
|
+
#
|
578
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest]
|
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_group_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_group_async_replication_request request_pb
|
593
|
+
query_string_params = if query_string_params.any?
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
595
|
else
|
444
596
|
{}
|
445
597
|
end
|
@@ -477,7 +629,7 @@ module Google
|
|
477
629
|
|
478
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
479
631
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
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_update_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
|
@@ -558,6 +710,29 @@ module Google
|
|
558
710
|
transcoder.transcode request_pb
|
559
711
|
end
|
560
712
|
|
713
|
+
##
|
714
|
+
# @private
|
715
|
+
#
|
716
|
+
# GRPC transcoding helper method for the bulk_insert REST call
|
717
|
+
#
|
718
|
+
# @param request_pb [::Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest]
|
719
|
+
# A request object representing the call parameters. Required.
|
720
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
721
|
+
# Uri, Body, Query string parameters
|
722
|
+
def self.transcode_bulk_insert_request request_pb
|
723
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
724
|
+
.with_bindings(
|
725
|
+
uri_method: :post,
|
726
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/bulkInsert",
|
727
|
+
body: "bulk_insert_disk_resource_resource",
|
728
|
+
matches: [
|
729
|
+
["project", %r{^[^/]+/?$}, false],
|
730
|
+
["region", %r{^[^/]+/?$}, false]
|
731
|
+
]
|
732
|
+
)
|
733
|
+
transcoder.transcode request_pb
|
734
|
+
end
|
735
|
+
|
561
736
|
##
|
562
737
|
# @private
|
563
738
|
#
|
@@ -792,6 +967,76 @@ module Google
|
|
792
967
|
transcoder.transcode request_pb
|
793
968
|
end
|
794
969
|
|
970
|
+
##
|
971
|
+
# @private
|
972
|
+
#
|
973
|
+
# GRPC transcoding helper method for the start_async_replication REST call
|
974
|
+
#
|
975
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest]
|
976
|
+
# A request object representing the call parameters. Required.
|
977
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
978
|
+
# Uri, Body, Query string parameters
|
979
|
+
def self.transcode_start_async_replication_request request_pb
|
980
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
981
|
+
.with_bindings(
|
982
|
+
uri_method: :post,
|
983
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication",
|
984
|
+
body: "region_disks_start_async_replication_request_resource",
|
985
|
+
matches: [
|
986
|
+
["project", %r{^[^/]+/?$}, false],
|
987
|
+
["region", %r{^[^/]+/?$}, false],
|
988
|
+
["disk", %r{^[^/]+/?$}, false]
|
989
|
+
]
|
990
|
+
)
|
991
|
+
transcoder.transcode request_pb
|
992
|
+
end
|
993
|
+
|
994
|
+
##
|
995
|
+
# @private
|
996
|
+
#
|
997
|
+
# GRPC transcoding helper method for the stop_async_replication REST call
|
998
|
+
#
|
999
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest]
|
1000
|
+
# A request object representing the call parameters. Required.
|
1001
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1002
|
+
# Uri, Body, Query string parameters
|
1003
|
+
def self.transcode_stop_async_replication_request request_pb
|
1004
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1005
|
+
.with_bindings(
|
1006
|
+
uri_method: :post,
|
1007
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication",
|
1008
|
+
matches: [
|
1009
|
+
["project", %r{^[^/]+/?$}, false],
|
1010
|
+
["region", %r{^[^/]+/?$}, false],
|
1011
|
+
["disk", %r{^[^/]+/?$}, false]
|
1012
|
+
]
|
1013
|
+
)
|
1014
|
+
transcoder.transcode request_pb
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
##
|
1018
|
+
# @private
|
1019
|
+
#
|
1020
|
+
# GRPC transcoding helper method for the stop_group_async_replication REST call
|
1021
|
+
#
|
1022
|
+
# @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest]
|
1023
|
+
# A request object representing the call parameters. Required.
|
1024
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1025
|
+
# Uri, Body, Query string parameters
|
1026
|
+
def self.transcode_stop_group_async_replication_request request_pb
|
1027
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1028
|
+
.with_bindings(
|
1029
|
+
uri_method: :post,
|
1030
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication",
|
1031
|
+
body: "disks_stop_group_async_replication_resource_resource",
|
1032
|
+
matches: [
|
1033
|
+
["project", %r{^[^/]+/?$}, false],
|
1034
|
+
["region", %r{^[^/]+/?$}, false]
|
1035
|
+
]
|
1036
|
+
)
|
1037
|
+
transcoder.transcode request_pb
|
1038
|
+
end
|
1039
|
+
|
795
1040
|
##
|
796
1041
|
# @private
|
797
1042
|
#
|
@@ -134,7 +134,7 @@ module Google
|
|
134
134
|
credentials = @config.credentials
|
135
135
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
136
136
|
# but only if the default endpoint does not have a region prefix.
|
137
|
-
enable_self_signed_jwt = @config.endpoint ==
|
137
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
138
138
|
!@config.endpoint.split(".").first.include?("-")
|
139
139
|
credentials ||= Credentials.default scope: @config.scope,
|
140
140
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -610,7 +610,9 @@ module Google
|
|
610
610
|
class Configuration
|
611
611
|
extend ::Gapic::Config
|
612
612
|
|
613
|
-
|
613
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
614
|
+
|
615
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
614
616
|
config_attr :credentials, nil do |value|
|
615
617
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
616
618
|
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_patch_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
|
@@ -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
|
@@ -691,7 +691,9 @@ module Google
|
|
691
691
|
class Configuration
|
692
692
|
extend ::Gapic::Config
|
693
693
|
|
694
|
-
|
694
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
695
|
+
|
696
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
695
697
|
config_attr :credentials, nil do |value|
|
696
698
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
697
699
|
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_patch_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_update_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
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
credentials = @config.credentials
|
166
166
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
167
167
|
# but only if the default endpoint does not have a region prefix.
|
168
|
-
enable_self_signed_jwt = @config.endpoint ==
|
168
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
169
169
|
!@config.endpoint.split(".").first.include?("-")
|
170
170
|
credentials ||= Credentials.default scope: @config.scope,
|
171
171
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1737,7 +1737,9 @@ module Google
|
|
1737
1737
|
class Configuration
|
1738
1738
|
extend ::Gapic::Config
|
1739
1739
|
|
1740
|
-
|
1740
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
1741
|
+
|
1742
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1741
1743
|
config_attr :credentials, nil do |value|
|
1742
1744
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1743
1745
|
allowed.any? { |klass| klass === value }
|