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.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -2
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +3 -3
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +92 -2
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +68 -6
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +4 -2
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +7 -7
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +4 -2
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +9 -9
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -2
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -14
  12. data/lib/google/cloud/compute/v1/compute_pb.rb +68 -10873
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -2
  14. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +3 -3
  15. data/lib/google/cloud/compute/v1/disks/rest/client.rb +350 -2
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +259 -14
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -2
  18. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +6 -6
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +4 -2
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +18 -18
  21. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +4 -2
  22. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +6 -6
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +4 -2
  24. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +8 -8
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +89 -2
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +66 -5
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +4 -2
  28. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +7 -7
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +4 -2
  30. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +7 -7
  31. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +4 -2
  32. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +5 -5
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +4 -2
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +3 -3
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +4 -2
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +5 -5
  37. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +4 -2
  38. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +7 -7
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -2
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  41. data/lib/google/cloud/compute/v1/images/rest/client.rb +4 -2
  42. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +11 -11
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +4 -2
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +20 -20
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -2
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +9 -9
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -2
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +8 -8
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -3
  50. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +46 -46
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +4 -2
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +7 -7
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +2 -2
  55. data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +53 -0
  56. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +436 -0
  57. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +167 -0
  58. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +51 -0
  59. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +47 -0
  60. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +4 -2
  61. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
  62. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  63. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
  64. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +4 -2
  65. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
  66. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +4 -2
  67. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +7 -7
  68. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -2
  69. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +3 -3
  70. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +4 -2
  71. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +8 -8
  72. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +4 -2
  73. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +5 -5
  74. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -2
  75. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +9 -9
  76. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +4 -2
  77. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +16 -16
  78. data/lib/google/cloud/compute/v1/networks/rest/client.rb +4 -2
  79. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
  80. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +4 -2
  81. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -14
  82. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +4 -2
  83. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +8 -8
  84. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -2
  85. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +3 -3
  86. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +4 -2
  87. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
  88. data/lib/google/cloud/compute/v1/projects/rest/client.rb +5 -3
  89. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +13 -13
  90. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -2
  91. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +5 -5
  92. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +4 -2
  93. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +6 -6
  94. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +4 -2
  95. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +6 -6
  96. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +4 -2
  97. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +9 -9
  98. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +4 -2
  99. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +5 -5
  100. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
  101. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +2 -2
  102. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +350 -2
  103. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +258 -13
  104. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +4 -2
  105. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +5 -5
  106. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +4 -2
  107. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +6 -6
  108. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -2
  109. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +19 -19
  110. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +4 -2
  111. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
  112. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +4 -2
  113. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +4 -4
  114. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
  115. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  116. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -2
  117. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
  118. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +4 -2
  119. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
  120. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -2
  121. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
  122. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +4 -2
  123. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
  124. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +4 -2
  125. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
  126. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -2
  127. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
  128. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +4 -2
  129. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
  130. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +4 -2
  131. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
  132. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +4 -2
  133. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
  134. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +4 -2
  135. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
  136. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +4 -2
  137. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
  138. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
  139. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
  140. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +4 -2
  141. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
  142. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +4 -2
  143. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
  144. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  145. data/lib/google/cloud/compute/v1/routers/rest/client.rb +7 -3
  146. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
  147. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -2
  148. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
  149. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -2
  150. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
  151. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +4 -2
  152. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
  153. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -2
  154. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
  155. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -2
  156. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
  157. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -2
  158. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
  159. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -2
  160. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
  161. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -2
  162. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
  163. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +4 -2
  164. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
  165. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +4 -2
  166. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
  167. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +4 -2
  168. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
  169. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +4 -2
  170. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
  171. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +4 -2
  172. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
  173. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +4 -2
  174. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
  175. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +4 -2
  176. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
  177. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +4 -2
  178. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
  179. data/lib/google/cloud/compute/v1/version.rb +1 -1
  180. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +4 -2
  181. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
  182. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +4 -2
  183. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
  184. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +4 -2
  185. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
  186. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
  187. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
  188. data/lib/google/cloud/compute/v1.rb +1 -0
  189. data/proto_docs/google/api/client.rb +58 -1
  190. data/proto_docs/google/cloud/compute/v1/compute.rb +1025 -102
  191. metadata +9 -4
@@ -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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -240,7 +240,7 @@ module Google
240
240
  credentials = @config.credentials
241
241
  # Use self-signed JWT if the endpoint is unchanged from default,
242
242
  # but only if the default endpoint does not have a region prefix.
243
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
243
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
244
244
  !@config.endpoint.split(".").first.include?("-")
245
245
  credentials ||= Credentials.default scope: @config.scope,
246
246
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -2936,7 +2936,7 @@ module Google
2936
2936
  # @param options [::Gapic::CallOptions, ::Hash]
2937
2937
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2938
2938
  #
2939
- # @overload simulate_maintenance_event(instance: nil, project: nil, zone: nil)
2939
+ # @overload simulate_maintenance_event(instance: nil, project: nil, request_id: nil, zone: nil)
2940
2940
  # Pass arguments to `simulate_maintenance_event` via keyword arguments. Note that at
2941
2941
  # least one keyword argument is required. To specify no parameters, or to keep all
2942
2942
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2945,6 +2945,8 @@ module Google
2945
2945
  # Name of the instance scoping this request.
2946
2946
  # @param project [::String]
2947
2947
  # Project ID for this request.
2948
+ # @param request_id [::String]
2949
+ # 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).
2948
2950
  # @param zone [::String]
2949
2951
  # The name of the zone for this request.
2950
2952
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3858,7 +3860,9 @@ module Google
3858
3860
  class Configuration
3859
3861
  extend ::Gapic::Config
3860
3862
 
3861
- config_attr :endpoint, "compute.googleapis.com", ::String
3863
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
3864
+
3865
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3862
3866
  config_attr :credentials, nil do |value|
3863
3867
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3864
3868
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_add_access_config_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_add_resource_policies_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
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_aggregated_list_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
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_attach_disk_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
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_bulk_insert_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
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_delete_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
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_delete_access_config_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
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_detach_disk_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_effective_firewalls_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_guest_attributes_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_iam_policy_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_screenshot_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_serial_port_output_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_get_shielded_instance_identity_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_list_referrers_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_remove_resource_policies_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -819,7 +819,7 @@ module Google
819
819
 
820
820
  verb, uri, query_string_params, body = ServiceStub.transcode_resume_request request_pb
821
821
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
823
823
  else
824
824
  {}
825
825
  end
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  verb, uri, query_string_params, body = ServiceStub.transcode_send_diagnostic_interrupt_request request_pb
859
859
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
861
  else
862
862
  {}
863
863
  end
@@ -895,7 +895,7 @@ module Google
895
895
 
896
896
  verb, uri, query_string_params, body = ServiceStub.transcode_set_deletion_protection_request request_pb
897
897
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
899
  else
900
900
  {}
901
901
  end
@@ -933,7 +933,7 @@ module Google
933
933
 
934
934
  verb, uri, query_string_params, body = ServiceStub.transcode_set_disk_auto_delete_request request_pb
935
935
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
937
  else
938
938
  {}
939
939
  end
@@ -971,7 +971,7 @@ module Google
971
971
 
972
972
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
973
973
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
975
  else
976
976
  {}
977
977
  end
@@ -1009,7 +1009,7 @@ module Google
1009
1009
 
1010
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
1011
1011
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1013
  else
1014
1014
  {}
1015
1015
  end
@@ -1047,7 +1047,7 @@ module Google
1047
1047
 
1048
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_set_machine_resources_request request_pb
1049
1049
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1051
  else
1052
1052
  {}
1053
1053
  end
@@ -1085,7 +1085,7 @@ module Google
1085
1085
 
1086
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_set_machine_type_request request_pb
1087
1087
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1089
  else
1090
1090
  {}
1091
1091
  end
@@ -1123,7 +1123,7 @@ module Google
1123
1123
 
1124
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_set_metadata_request request_pb
1125
1125
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1127
  else
1128
1128
  {}
1129
1129
  end
@@ -1161,7 +1161,7 @@ module Google
1161
1161
 
1162
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_set_min_cpu_platform_request request_pb
1163
1163
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1165
  else
1166
1166
  {}
1167
1167
  end
@@ -1199,7 +1199,7 @@ module Google
1199
1199
 
1200
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_set_name_request request_pb
1201
1201
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1203
  else
1204
1204
  {}
1205
1205
  end
@@ -1237,7 +1237,7 @@ module Google
1237
1237
 
1238
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_set_scheduling_request request_pb
1239
1239
  query_string_params = if query_string_params.any?
1240
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
1241
  else
1242
1242
  {}
1243
1243
  end
@@ -1275,7 +1275,7 @@ module Google
1275
1275
 
1276
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_set_service_account_request request_pb
1277
1277
  query_string_params = if query_string_params.any?
1278
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
1279
  else
1280
1280
  {}
1281
1281
  end
@@ -1313,7 +1313,7 @@ module Google
1313
1313
 
1314
1314
  verb, uri, query_string_params, body = ServiceStub.transcode_set_shielded_instance_integrity_policy_request request_pb
1315
1315
  query_string_params = if query_string_params.any?
1316
- query_string_params.to_h { |p| p.split("=", 2) }
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
1317
  else
1318
1318
  {}
1319
1319
  end
@@ -1351,7 +1351,7 @@ module Google
1351
1351
 
1352
1352
  verb, uri, query_string_params, body = ServiceStub.transcode_set_tags_request request_pb
1353
1353
  query_string_params = if query_string_params.any?
1354
- query_string_params.to_h { |p| p.split("=", 2) }
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
1355
  else
1356
1356
  {}
1357
1357
  end
@@ -1389,7 +1389,7 @@ module Google
1389
1389
 
1390
1390
  verb, uri, query_string_params, body = ServiceStub.transcode_simulate_maintenance_event_request request_pb
1391
1391
  query_string_params = if query_string_params.any?
1392
- query_string_params.to_h { |p| p.split("=", 2) }
1392
+ query_string_params.to_h { |p| p.split "=", 2 }
1393
1393
  else
1394
1394
  {}
1395
1395
  end
@@ -1427,7 +1427,7 @@ module Google
1427
1427
 
1428
1428
  verb, uri, query_string_params, body = ServiceStub.transcode_start_request request_pb
1429
1429
  query_string_params = if query_string_params.any?
1430
- query_string_params.to_h { |p| p.split("=", 2) }
1430
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
1431
  else
1432
1432
  {}
1433
1433
  end
@@ -1465,7 +1465,7 @@ module Google
1465
1465
 
1466
1466
  verb, uri, query_string_params, body = ServiceStub.transcode_start_with_encryption_key_request request_pb
1467
1467
  query_string_params = if query_string_params.any?
1468
- query_string_params.to_h { |p| p.split("=", 2) }
1468
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
1469
  else
1470
1470
  {}
1471
1471
  end
@@ -1503,7 +1503,7 @@ module Google
1503
1503
 
1504
1504
  verb, uri, query_string_params, body = ServiceStub.transcode_stop_request request_pb
1505
1505
  query_string_params = if query_string_params.any?
1506
- query_string_params.to_h { |p| p.split("=", 2) }
1506
+ query_string_params.to_h { |p| p.split "=", 2 }
1507
1507
  else
1508
1508
  {}
1509
1509
  end
@@ -1541,7 +1541,7 @@ module Google
1541
1541
 
1542
1542
  verb, uri, query_string_params, body = ServiceStub.transcode_suspend_request request_pb
1543
1543
  query_string_params = if query_string_params.any?
1544
- query_string_params.to_h { |p| p.split("=", 2) }
1544
+ query_string_params.to_h { |p| p.split "=", 2 }
1545
1545
  else
1546
1546
  {}
1547
1547
  end
@@ -1579,7 +1579,7 @@ module Google
1579
1579
 
1580
1580
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
1581
1581
  query_string_params = if query_string_params.any?
1582
- query_string_params.to_h { |p| p.split("=", 2) }
1582
+ query_string_params.to_h { |p| p.split "=", 2 }
1583
1583
  else
1584
1584
  {}
1585
1585
  end
@@ -1617,7 +1617,7 @@ module Google
1617
1617
 
1618
1618
  verb, uri, query_string_params, body = ServiceStub.transcode_update_request request_pb
1619
1619
  query_string_params = if query_string_params.any?
1620
- query_string_params.to_h { |p| p.split("=", 2) }
1620
+ query_string_params.to_h { |p| p.split "=", 2 }
1621
1621
  else
1622
1622
  {}
1623
1623
  end
@@ -1655,7 +1655,7 @@ module Google
1655
1655
 
1656
1656
  verb, uri, query_string_params, body = ServiceStub.transcode_update_access_config_request request_pb
1657
1657
  query_string_params = if query_string_params.any?
1658
- query_string_params.to_h { |p| p.split("=", 2) }
1658
+ query_string_params.to_h { |p| p.split "=", 2 }
1659
1659
  else
1660
1660
  {}
1661
1661
  end
@@ -1693,7 +1693,7 @@ module Google
1693
1693
 
1694
1694
  verb, uri, query_string_params, body = ServiceStub.transcode_update_display_device_request request_pb
1695
1695
  query_string_params = if query_string_params.any?
1696
- query_string_params.to_h { |p| p.split("=", 2) }
1696
+ query_string_params.to_h { |p| p.split "=", 2 }
1697
1697
  else
1698
1698
  {}
1699
1699
  end
@@ -1731,7 +1731,7 @@ module Google
1731
1731
 
1732
1732
  verb, uri, query_string_params, body = ServiceStub.transcode_update_network_interface_request request_pb
1733
1733
  query_string_params = if query_string_params.any?
1734
- query_string_params.to_h { |p| p.split("=", 2) }
1734
+ query_string_params.to_h { |p| p.split "=", 2 }
1735
1735
  else
1736
1736
  {}
1737
1737
  end
@@ -1769,7 +1769,7 @@ module Google
1769
1769
 
1770
1770
  verb, uri, query_string_params, body = ServiceStub.transcode_update_shielded_instance_config_request request_pb
1771
1771
  query_string_params = if query_string_params.any?
1772
- query_string_params.to_h { |p| p.split("=", 2) }
1772
+ query_string_params.to_h { |p| p.split "=", 2 }
1773
1773
  else
1774
1774
  {}
1775
1775
  end
@@ -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 == Client.configure.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
@@ -773,7 +773,9 @@ module Google
773
773
  class Configuration
774
774
  extend ::Gapic::Config
775
775
 
776
- config_attr :endpoint, "compute.googleapis.com", ::String
776
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
777
+
778
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
777
779
  config_attr :credentials, nil do |value|
778
780
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
779
781
  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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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_labels_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
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 == Client.configure.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
@@ -353,7 +353,9 @@ module Google
353
353
  class Configuration
354
354
  extend ::Gapic::Config
355
355
 
356
- config_attr :endpoint, "compute.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end