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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cdaab745a63d311ff4d3d33a8a9300e9bf2dff2188c1cbfb62f9c5a9ee0f3fd
|
4
|
+
data.tar.gz: '09c55d9933c114f35d2a8d46802769ffd5fd05674da38d364c0a215c948b4dde'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b208a6ad1a29bbe19d689da81db649ce34f6f6f3cda083299f6c6a5e57f5bd9682ca8fa91b167a92607786132db03c478b6072abd2d68776a13c963b736ba11
|
7
|
+
data.tar.gz: 014b184d2b805f87c5fe536a390731f64f32a31d895c052c59c31a34e01b63e52ab241c4db4107d0c82e77bf65a56636dee199fc64d91e489a218d6b807ba9e0
|
@@ -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
|
@@ -439,7 +439,9 @@ module Google
|
|
439
439
|
class Configuration
|
440
440
|
extend ::Gapic::Config
|
441
441
|
|
442
|
-
|
442
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
443
|
+
|
444
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
443
445
|
config_attr :credentials, nil do |value|
|
444
446
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
445
447
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_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_list_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
|
@@ -84,6 +84,8 @@ module Google
|
|
84
84
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
85
85
|
}
|
86
86
|
|
87
|
+
default_config.rpcs.move.timeout = 600.0
|
88
|
+
|
87
89
|
default_config.rpcs.set_labels.timeout = 600.0
|
88
90
|
|
89
91
|
default_config
|
@@ -139,7 +141,7 @@ module Google
|
|
139
141
|
credentials = @config.credentials
|
140
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
141
143
|
# but only if the default endpoint does not have a region prefix.
|
142
|
-
enable_self_signed_jwt = @config.endpoint ==
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
143
145
|
!@config.endpoint.split(".").first.include?("-")
|
144
146
|
credentials ||= Credentials.default scope: @config.scope,
|
145
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -538,6 +540,85 @@ module Google
|
|
538
540
|
raise ::Google::Cloud::Error.from_error(e)
|
539
541
|
end
|
540
542
|
|
543
|
+
##
|
544
|
+
# Moves the specified address resource.
|
545
|
+
#
|
546
|
+
# @overload move(request, options = nil)
|
547
|
+
# Pass arguments to `move` via a request object, either of type
|
548
|
+
# {::Google::Cloud::Compute::V1::MoveAddressRequest} or an equivalent Hash.
|
549
|
+
#
|
550
|
+
# @param request [::Google::Cloud::Compute::V1::MoveAddressRequest, ::Hash]
|
551
|
+
# A request object representing the call parameters. Required. To specify no
|
552
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
553
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
554
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
555
|
+
#
|
556
|
+
# @overload move(address: nil, project: nil, region: nil, region_addresses_move_request_resource: nil, request_id: nil)
|
557
|
+
# Pass arguments to `move` via keyword arguments. Note that at
|
558
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
559
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
560
|
+
#
|
561
|
+
# @param address [::String]
|
562
|
+
# Name of the address resource to move.
|
563
|
+
# @param project [::String]
|
564
|
+
# Source project ID which the Address is moved from.
|
565
|
+
# @param region [::String]
|
566
|
+
# Name of the region for this request.
|
567
|
+
# @param region_addresses_move_request_resource [::Google::Cloud::Compute::V1::RegionAddressesMoveRequest, ::Hash]
|
568
|
+
# The body resource for this request
|
569
|
+
# @param request_id [::String]
|
570
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
571
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
572
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
573
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
574
|
+
#
|
575
|
+
# @return [::Gapic::GenericLRO::Operation]
|
576
|
+
#
|
577
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
578
|
+
def move request, options = nil
|
579
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
|
+
|
581
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::MoveAddressRequest
|
582
|
+
|
583
|
+
# Converts hash and nil to an options object
|
584
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
585
|
+
|
586
|
+
# Customize the options with defaults
|
587
|
+
call_metadata = @config.rpcs.move.metadata.to_h
|
588
|
+
|
589
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
590
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
591
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
592
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
593
|
+
transports_version_send: [:rest]
|
594
|
+
|
595
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
596
|
+
|
597
|
+
options.apply_defaults timeout: @config.rpcs.move.timeout,
|
598
|
+
metadata: call_metadata,
|
599
|
+
retry_policy: @config.rpcs.move.retry_policy
|
600
|
+
|
601
|
+
options.apply_defaults timeout: @config.timeout,
|
602
|
+
metadata: @config.metadata,
|
603
|
+
retry_policy: @config.retry_policy
|
604
|
+
|
605
|
+
@addresses_stub.move request, options do |result, response|
|
606
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
607
|
+
operation: result,
|
608
|
+
client: region_operations,
|
609
|
+
request_values: {
|
610
|
+
"project" => request.project,
|
611
|
+
"region" => request.region
|
612
|
+
},
|
613
|
+
options: options
|
614
|
+
)
|
615
|
+
yield result, response if block_given?
|
616
|
+
return result
|
617
|
+
end
|
618
|
+
rescue ::Gapic::Rest::Error => e
|
619
|
+
raise ::Google::Cloud::Error.from_error(e)
|
620
|
+
end
|
621
|
+
|
541
622
|
##
|
542
623
|
# Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.
|
543
624
|
#
|
@@ -690,7 +771,9 @@ module Google
|
|
690
771
|
class Configuration
|
691
772
|
extend ::Gapic::Config
|
692
773
|
|
693
|
-
|
774
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
775
|
+
|
776
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
694
777
|
config_attr :credentials, nil do |value|
|
695
778
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
696
779
|
allowed.any? { |klass| klass === value }
|
@@ -766,6 +849,11 @@ module Google
|
|
766
849
|
#
|
767
850
|
attr_reader :list
|
768
851
|
##
|
852
|
+
# RPC-specific configuration for `move`
|
853
|
+
# @return [::Gapic::Config::Method]
|
854
|
+
#
|
855
|
+
attr_reader :move
|
856
|
+
##
|
769
857
|
# RPC-specific configuration for `set_labels`
|
770
858
|
# @return [::Gapic::Config::Method]
|
771
859
|
#
|
@@ -783,6 +871,8 @@ module Google
|
|
783
871
|
@insert = ::Gapic::Config::Method.new insert_config
|
784
872
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
785
873
|
@list = ::Gapic::Config::Method.new list_config
|
874
|
+
move_config = parent_rpcs.move if parent_rpcs.respond_to? :move
|
875
|
+
@move = ::Gapic::Config::Method.new move_config
|
786
876
|
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
787
877
|
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
788
878
|
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_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_delete_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_get_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_insert_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_list_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
|
@@ -230,6 +230,44 @@ module Google
|
|
230
230
|
result
|
231
231
|
end
|
232
232
|
|
233
|
+
##
|
234
|
+
# Baseline implementation for the move REST call
|
235
|
+
#
|
236
|
+
# @param request_pb [::Google::Cloud::Compute::V1::MoveAddressRequest]
|
237
|
+
# A request object representing the call parameters. Required.
|
238
|
+
# @param options [::Gapic::CallOptions]
|
239
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
240
|
+
#
|
241
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
242
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
243
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
244
|
+
#
|
245
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
246
|
+
# A result object deserialized from the server's reply
|
247
|
+
def move request_pb, options = nil
|
248
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
249
|
+
|
250
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_move_request request_pb
|
251
|
+
query_string_params = if query_string_params.any?
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
|
+
else
|
254
|
+
{}
|
255
|
+
end
|
256
|
+
|
257
|
+
response = @client_stub.make_http_request(
|
258
|
+
verb,
|
259
|
+
uri: uri,
|
260
|
+
body: body || "",
|
261
|
+
params: query_string_params,
|
262
|
+
options: options
|
263
|
+
)
|
264
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
265
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
266
|
+
|
267
|
+
yield result, operation if block_given?
|
268
|
+
result
|
269
|
+
end
|
270
|
+
|
233
271
|
##
|
234
272
|
# Baseline implementation for the set_labels REST call
|
235
273
|
#
|
@@ -249,7 +287,7 @@ module Google
|
|
249
287
|
|
250
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_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
|
@@ -380,6 +418,30 @@ module Google
|
|
380
418
|
transcoder.transcode request_pb
|
381
419
|
end
|
382
420
|
|
421
|
+
##
|
422
|
+
# @private
|
423
|
+
#
|
424
|
+
# GRPC transcoding helper method for the move REST call
|
425
|
+
#
|
426
|
+
# @param request_pb [::Google::Cloud::Compute::V1::MoveAddressRequest]
|
427
|
+
# A request object representing the call parameters. Required.
|
428
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
429
|
+
# Uri, Body, Query string parameters
|
430
|
+
def self.transcode_move_request request_pb
|
431
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
432
|
+
.with_bindings(
|
433
|
+
uri_method: :post,
|
434
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses/{address}/move",
|
435
|
+
body: "region_addresses_move_request_resource",
|
436
|
+
matches: [
|
437
|
+
["project", %r{^[^/]+/?$}, false],
|
438
|
+
["region", %r{^[^/]+/?$}, false],
|
439
|
+
["address", %r{^[^/]+/?$}, false]
|
440
|
+
]
|
441
|
+
)
|
442
|
+
transcoder.transcode request_pb
|
443
|
+
end
|
444
|
+
|
383
445
|
##
|
384
446
|
# @private
|
385
447
|
#
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
credentials = @config.credentials
|
142
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
143
143
|
# but only if the default endpoint does not have a region prefix.
|
144
|
-
enable_self_signed_jwt = @config.endpoint ==
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
145
145
|
!@config.endpoint.split(".").first.include?("-")
|
146
146
|
credentials ||= Credentials.default scope: @config.scope,
|
147
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -771,7 +771,9 @@ module Google
|
|
771
771
|
class Configuration
|
772
772
|
extend ::Gapic::Config
|
773
773
|
|
774
|
-
|
774
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
775
|
+
|
776
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
775
777
|
config_attr :credentials, nil do |value|
|
776
778
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
777
779
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_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_delete_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_get_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_insert_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_list_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_patch_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_update_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
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
credentials = @config.credentials
|
143
143
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
144
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.endpoint ==
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
146
146
|
!@config.endpoint.split(".").first.include?("-")
|
147
147
|
credentials ||= Credentials.default scope: @config.scope,
|
148
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -909,7 +909,9 @@ module Google
|
|
909
909
|
class Configuration
|
910
910
|
extend ::Gapic::Config
|
911
911
|
|
912
|
-
|
912
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
913
|
+
|
914
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
913
915
|
config_attr :credentials, nil do |value|
|
914
916
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
915
917
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_signed_url_key_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_delete_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_delete_signed_url_key_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_get_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_insert_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_list_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_patch_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_set_edge_security_policy_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_update_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
|
@@ -158,7 +158,7 @@ module Google
|
|
158
158
|
credentials = @config.credentials
|
159
159
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
160
160
|
# but only if the default endpoint does not have a region prefix.
|
161
|
-
enable_self_signed_jwt = @config.endpoint ==
|
161
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
162
162
|
!@config.endpoint.split(".").first.include?("-")
|
163
163
|
credentials ||= Credentials.default scope: @config.scope,
|
164
164
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1273,7 +1273,9 @@ module Google
|
|
1273
1273
|
class Configuration
|
1274
1274
|
extend ::Gapic::Config
|
1275
1275
|
|
1276
|
-
|
1276
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
1277
|
+
|
1278
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1277
1279
|
config_attr :credentials, nil do |value|
|
1278
1280
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1279
1281
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_signed_url_key_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
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_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_signed_url_key_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_health_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_insert_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_list_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_patch_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_set_edge_security_policy_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_set_iam_policy_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_set_security_policy_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_update_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
|