google-cloud-compute-v1 2.0.0 → 2.2.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 +6 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +7 -5
- 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 +7 -5
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/compute_pb.rb +42 -10746
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +98 -5
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +75 -13
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +6 -4
- 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 +8 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +6 -4
- 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 +7 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +6 -4
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +7 -5
- 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 +6 -4
- 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 +9 -7
- 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 +7 -5
- 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 +6 -4
- 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 +97 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +66 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +95 -5
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +107 -45
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +6 -4
- 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 +6 -4
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +7 -5
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- 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 +7 -5
- 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 +6 -4
- 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 +7 -5
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +94 -4
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +75 -13
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +7 -5
- 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 +7 -5
- 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 +6 -4
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- 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 +97 -4
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +74 -12
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +6 -4
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +626 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +291 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instance_templates.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +6 -4
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -4
- 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 -5
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +6 -4
- 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 +6 -4
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +7 -5
- 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 +7 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +7 -5
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +6 -4
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -5
- 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 +67 -4
- data/proto_docs/google/cloud/compute/v1/compute.rb +414 -29
- metadata +9 -4
|
@@ -138,7 +138,7 @@ module Google
|
|
|
138
138
|
credentials = @config.credentials
|
|
139
139
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
140
140
|
# but only if the default endpoint does not have a region prefix.
|
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
142
142
|
!@config.endpoint.split(".").first.include?("-")
|
|
143
143
|
credentials ||= Credentials.default scope: @config.scope,
|
|
144
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -245,7 +245,7 @@ module Google
|
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
##
|
|
248
|
-
# Returns the specified TargetHttpsProxy resource in the specified region.
|
|
248
|
+
# Returns the specified TargetHttpsProxy resource in the specified region.
|
|
249
249
|
#
|
|
250
250
|
# @overload get(request, options = nil)
|
|
251
251
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -737,9 +737,9 @@ module Google
|
|
|
737
737
|
# * (`String`) The path to a service account key file in JSON format
|
|
738
738
|
# * (`Hash`) A service account key as a Hash
|
|
739
739
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
740
|
-
# (see the [googleauth docs](https://
|
|
740
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
741
741
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
742
|
-
# (see the [signet docs](https://
|
|
742
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
743
743
|
# * (`nil`) indicating no credentials
|
|
744
744
|
# @return [::Object]
|
|
745
745
|
# @!attribute [rw] scope
|
|
@@ -772,7 +772,9 @@ module Google
|
|
|
772
772
|
class Configuration
|
|
773
773
|
extend ::Gapic::Config
|
|
774
774
|
|
|
775
|
-
|
|
775
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
776
|
+
|
|
777
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
776
778
|
config_attr :credentials, nil do |value|
|
|
777
779
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
778
780
|
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_set_ssl_certificates_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_set_url_map_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
|
|
@@ -132,7 +132,7 @@ module Google
|
|
|
132
132
|
credentials = @config.credentials
|
|
133
133
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
134
134
|
# but only if the default endpoint does not have a region prefix.
|
|
135
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
135
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
136
136
|
!@config.endpoint.split(".").first.include?("-")
|
|
137
137
|
credentials ||= Credentials.default scope: @config.scope,
|
|
138
138
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -494,9 +494,9 @@ module Google
|
|
|
494
494
|
# * (`String`) The path to a service account key file in JSON format
|
|
495
495
|
# * (`Hash`) A service account key as a Hash
|
|
496
496
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
497
|
-
# (see the [googleauth docs](https://
|
|
497
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
498
498
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
499
|
-
# (see the [signet docs](https://
|
|
499
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
500
500
|
# * (`nil`) indicating no credentials
|
|
501
501
|
# @return [::Object]
|
|
502
502
|
# @!attribute [rw] scope
|
|
@@ -529,7 +529,9 @@ module Google
|
|
|
529
529
|
class Configuration
|
|
530
530
|
extend ::Gapic::Config
|
|
531
531
|
|
|
532
|
-
|
|
532
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
533
|
+
|
|
534
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
533
535
|
config_attr :credentials, nil do |value|
|
|
534
536
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
535
537
|
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
|
|
@@ -138,7 +138,7 @@ module Google
|
|
|
138
138
|
credentials = @config.credentials
|
|
139
139
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
140
140
|
# but only if the default endpoint does not have a region prefix.
|
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
142
142
|
!@config.endpoint.split(".").first.include?("-")
|
|
143
143
|
credentials ||= Credentials.default scope: @config.scope,
|
|
144
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -245,7 +245,7 @@ module Google
|
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
##
|
|
248
|
-
# Returns the specified UrlMap resource.
|
|
248
|
+
# Returns the specified UrlMap resource.
|
|
249
249
|
#
|
|
250
250
|
# @overload get(request, options = nil)
|
|
251
251
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -726,9 +726,9 @@ module Google
|
|
|
726
726
|
# * (`String`) The path to a service account key file in JSON format
|
|
727
727
|
# * (`Hash`) A service account key as a Hash
|
|
728
728
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
729
|
-
# (see the [googleauth docs](https://
|
|
729
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
730
730
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
731
|
-
# (see the [signet docs](https://
|
|
731
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
732
732
|
# * (`nil`) indicating no credentials
|
|
733
733
|
# @return [::Object]
|
|
734
734
|
# @!attribute [rw] scope
|
|
@@ -761,7 +761,9 @@ module Google
|
|
|
761
761
|
class Configuration
|
|
762
762
|
extend ::Gapic::Config
|
|
763
763
|
|
|
764
|
-
|
|
764
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
765
|
+
|
|
766
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
765
767
|
config_attr :credentials, nil do |value|
|
|
766
768
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
767
769
|
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
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_validate_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
|
|
@@ -127,7 +127,7 @@ module Google
|
|
|
127
127
|
credentials = @config.credentials
|
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -144,7 +144,7 @@ module Google
|
|
|
144
144
|
# Service calls
|
|
145
145
|
|
|
146
146
|
##
|
|
147
|
-
# Returns the specified Region resource.
|
|
147
|
+
# Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
|
|
148
148
|
#
|
|
149
149
|
# @overload get(request, options = nil)
|
|
150
150
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -318,9 +318,9 @@ module Google
|
|
|
318
318
|
# * (`String`) The path to a service account key file in JSON format
|
|
319
319
|
# * (`Hash`) A service account key as a Hash
|
|
320
320
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
321
|
-
# (see the [googleauth docs](https://
|
|
321
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
322
322
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
323
|
-
# (see the [signet docs](https://
|
|
323
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
324
324
|
# * (`nil`) indicating no credentials
|
|
325
325
|
# @return [::Object]
|
|
326
326
|
# @!attribute [rw] scope
|
|
@@ -353,7 +353,9 @@ module Google
|
|
|
353
353
|
class Configuration
|
|
354
354
|
extend ::Gapic::Config
|
|
355
355
|
|
|
356
|
-
|
|
356
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
357
|
+
|
|
358
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
357
359
|
config_attr :credentials, nil do |value|
|
|
358
360
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
359
361
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_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_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
|
|
@@ -150,7 +150,7 @@ module Google
|
|
|
150
150
|
credentials = @config.credentials
|
|
151
151
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
152
152
|
# but only if the default endpoint does not have a region prefix.
|
|
153
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
153
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
154
154
|
!@config.endpoint.split(".").first.include?("-")
|
|
155
155
|
credentials ||= Credentials.default scope: @config.scope,
|
|
156
156
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -952,9 +952,9 @@ module Google
|
|
|
952
952
|
# * (`String`) The path to a service account key file in JSON format
|
|
953
953
|
# * (`Hash`) A service account key as a Hash
|
|
954
954
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
955
|
-
# (see the [googleauth docs](https://
|
|
955
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
956
956
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
957
|
-
# (see the [signet docs](https://
|
|
957
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
958
958
|
# * (`nil`) indicating no credentials
|
|
959
959
|
# @return [::Object]
|
|
960
960
|
# @!attribute [rw] scope
|
|
@@ -987,7 +987,9 @@ module Google
|
|
|
987
987
|
class Configuration
|
|
988
988
|
extend ::Gapic::Config
|
|
989
989
|
|
|
990
|
-
|
|
990
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
991
|
+
|
|
992
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
991
993
|
config_attr :credentials, nil do |value|
|
|
992
994
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
993
995
|
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_get_iam_policy_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_resize_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_iam_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_test_iam_permissions_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_update_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
|
|
@@ -146,7 +146,7 @@ module Google
|
|
|
146
146
|
credentials = @config.credentials
|
|
147
147
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
148
148
|
# but only if the default endpoint does not have a region prefix.
|
|
149
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
149
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
150
150
|
!@config.endpoint.split(".").first.include?("-")
|
|
151
151
|
credentials ||= Credentials.default scope: @config.scope,
|
|
152
152
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -787,9 +787,9 @@ module Google
|
|
|
787
787
|
# * (`String`) The path to a service account key file in JSON format
|
|
788
788
|
# * (`Hash`) A service account key as a Hash
|
|
789
789
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
790
|
-
# (see the [googleauth docs](https://
|
|
790
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
791
791
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
792
|
-
# (see the [signet docs](https://
|
|
792
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
793
793
|
# * (`nil`) indicating no credentials
|
|
794
794
|
# @return [::Object]
|
|
795
795
|
# @!attribute [rw] scope
|
|
@@ -822,7 +822,9 @@ module Google
|
|
|
822
822
|
class Configuration
|
|
823
823
|
extend ::Gapic::Config
|
|
824
824
|
|
|
825
|
-
|
|
825
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
826
|
+
|
|
827
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
826
828
|
config_attr :credentials, nil do |value|
|
|
827
829
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
828
830
|
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_get_iam_policy_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_set_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_test_iam_permissions_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
|
|
@@ -68,6 +68,7 @@ require "google/cloud/compute/v1/region_health_check_services/rest"
|
|
|
68
68
|
require "google/cloud/compute/v1/region_health_checks/rest"
|
|
69
69
|
require "google/cloud/compute/v1/region_instance_group_managers/rest"
|
|
70
70
|
require "google/cloud/compute/v1/region_instance_groups/rest"
|
|
71
|
+
require "google/cloud/compute/v1/region_instance_templates/rest"
|
|
71
72
|
require "google/cloud/compute/v1/region_instances/rest"
|
|
72
73
|
require "google/cloud/compute/v1/region_network_endpoint_groups/rest"
|
|
73
74
|
require "google/cloud/compute/v1/region_network_firewall_policies/rest"
|
|
@@ -153,7 +153,7 @@ module Google
|
|
|
153
153
|
credentials = @config.credentials
|
|
154
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
155
155
|
# but only if the default endpoint does not have a region prefix.
|
|
156
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
157
157
|
!@config.endpoint.split(".").first.include?("-")
|
|
158
158
|
credentials ||= Credentials.default scope: @config.scope,
|
|
159
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -335,7 +335,7 @@ module Google
|
|
|
335
335
|
end
|
|
336
336
|
|
|
337
337
|
##
|
|
338
|
-
# Returns the specified Router resource.
|
|
338
|
+
# Returns the specified Router resource.
|
|
339
339
|
#
|
|
340
340
|
# @overload get(request, options = nil)
|
|
341
341
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -959,9 +959,9 @@ module Google
|
|
|
959
959
|
# * (`String`) The path to a service account key file in JSON format
|
|
960
960
|
# * (`Hash`) A service account key as a Hash
|
|
961
961
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
962
|
-
# (see the [googleauth docs](https://
|
|
962
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
963
963
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
964
|
-
# (see the [signet docs](https://
|
|
964
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
965
965
|
# * (`nil`) indicating no credentials
|
|
966
966
|
# @return [::Object]
|
|
967
967
|
# @!attribute [rw] scope
|
|
@@ -994,7 +994,9 @@ module Google
|
|
|
994
994
|
class Configuration
|
|
995
995
|
extend ::Gapic::Config
|
|
996
996
|
|
|
997
|
-
|
|
997
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
998
|
+
|
|
999
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
998
1000
|
config_attr :credentials, nil do |value|
|
|
999
1001
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1000
1002
|
allowed.any? { |klass| klass === value }
|