google-cloud-compute-v1 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) 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 +4 -2
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +6 -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 +24 -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 +4 -2
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +14 -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 +4 -2
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +5 -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 +4 -2
  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/interconnects/rest/client.rb +4 -2
  56. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
  57. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  58. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
  59. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +4 -2
  60. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +4 -2
  62. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +7 -7
  63. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -2
  64. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +3 -3
  65. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +4 -2
  66. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +8 -8
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +4 -2
  68. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +5 -5
  69. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -2
  70. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +9 -9
  71. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +4 -2
  72. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +16 -16
  73. data/lib/google/cloud/compute/v1/networks/rest/client.rb +4 -2
  74. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
  75. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +4 -2
  76. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -14
  77. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +4 -2
  78. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +8 -8
  79. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -2
  80. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +3 -3
  81. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +4 -2
  82. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
  83. data/lib/google/cloud/compute/v1/projects/rest/client.rb +4 -2
  84. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +13 -13
  85. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -2
  86. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +5 -5
  87. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +4 -2
  88. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +6 -6
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +4 -2
  90. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +6 -6
  91. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +4 -2
  92. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +9 -9
  93. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +4 -2
  94. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +5 -5
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
  96. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +2 -2
  97. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +4 -2
  98. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +13 -13
  99. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +4 -2
  100. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +5 -5
  101. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +4 -2
  102. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +6 -6
  103. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -2
  104. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +19 -19
  105. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +4 -2
  106. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
  107. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +4 -2
  108. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +4 -4
  109. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
  110. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  111. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -2
  112. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
  113. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +4 -2
  114. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
  115. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -2
  116. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
  117. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +4 -2
  118. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
  119. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +4 -2
  120. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
  121. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -2
  122. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
  123. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +4 -2
  124. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
  125. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +4 -2
  126. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
  127. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +4 -2
  128. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
  129. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +4 -2
  130. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
  131. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +4 -2
  132. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
  133. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
  134. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
  135. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +4 -2
  136. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
  137. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +4 -2
  138. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
  139. data/lib/google/cloud/compute/v1/routers/rest/client.rb +4 -2
  140. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
  141. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -2
  142. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
  143. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -2
  144. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
  145. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +4 -2
  146. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
  147. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -2
  148. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
  149. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -2
  150. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
  151. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -2
  152. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
  153. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -2
  154. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
  155. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -2
  156. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
  157. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +4 -2
  158. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
  159. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +4 -2
  160. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
  161. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +4 -2
  162. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
  163. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +4 -2
  164. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
  165. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +4 -2
  166. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
  167. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +4 -2
  168. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
  169. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +4 -2
  170. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
  171. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +4 -2
  172. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
  173. data/lib/google/cloud/compute/v1/version.rb +1 -1
  174. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +4 -2
  175. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
  176. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +4 -2
  177. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
  178. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +4 -2
  179. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
  180. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
  181. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
  182. data/proto_docs/google/api/client.rb +58 -1
  183. metadata +4 -4
@@ -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 == Client.configure.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
@@ -987,7 +987,9 @@ module Google
987
987
  class Configuration
988
988
  extend ::Gapic::Config
989
989
 
990
- config_attr :endpoint, "compute.googleapis.com", ::String
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("=", 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_resize_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_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("=", 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_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("=", 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_update_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
@@ -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 == Client.configure.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
@@ -822,7 +822,9 @@ module Google
822
822
  class Configuration
823
823
  extend ::Gapic::Config
824
824
 
825
- config_attr :endpoint, "compute.googleapis.com", ::String
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("=", 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
@@ -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 == Client.configure.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
@@ -994,7 +994,9 @@ module Google
994
994
  class Configuration
995
995
  extend ::Gapic::Config
996
996
 
997
- config_attr :endpoint, "compute.googleapis.com", ::String
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 }
@@ -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_nat_mapping_info_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_get_router_status_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_insert_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_list_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_patch_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_preview_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_update_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
@@ -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 == Client.configure.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
@@ -519,7 +519,9 @@ module Google
519
519
  class Configuration
520
520
  extend ::Gapic::Config
521
521
 
522
- config_attr :endpoint, "compute.googleapis.com", ::String
522
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
523
+
524
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
523
525
  config_attr :credentials, nil do |value|
524
526
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
525
527
  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("=", 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_get_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_insert_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_list_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
@@ -157,7 +157,7 @@ module Google
157
157
  credentials = @config.credentials
158
158
  # Use self-signed JWT if the endpoint is unchanged from default,
159
159
  # but only if the default endpoint does not have a region prefix.
160
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
160
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
161
161
  !@config.endpoint.split(".").first.include?("-")
162
162
  credentials ||= Credentials.default scope: @config.scope,
163
163
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1137,7 +1137,9 @@ module Google
1137
1137
  class Configuration
1138
1138
  extend ::Gapic::Config
1139
1139
 
1140
- config_attr :endpoint, "compute.googleapis.com", ::String
1140
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
1141
+
1142
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1141
1143
  config_attr :credentials, nil do |value|
1142
1144
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1143
1145
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_add_rule_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_aggregated_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
@@ -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("=", 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_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_get_rule_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_insert_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_list_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_list_preconfigured_expression_sets_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_patch_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_patch_rule_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_remove_rule_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_set_labels_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
@@ -148,7 +148,7 @@ module Google
148
148
  credentials = @config.credentials
149
149
  # Use self-signed JWT if the endpoint is unchanged from default,
150
150
  # but only if the default endpoint does not have a region prefix.
151
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
152
152
  !@config.endpoint.split(".").first.include?("-")
153
153
  credentials ||= Credentials.default scope: @config.scope,
154
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -903,7 +903,9 @@ module Google
903
903
  class Configuration
904
904
  extend ::Gapic::Config
905
905
 
906
- config_attr :endpoint, "compute.googleapis.com", ::String
906
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
907
+
908
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
907
909
  config_attr :credentials, nil do |value|
908
910
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
909
911
  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_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_patch_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_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("=", 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_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("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -143,7 +143,7 @@ module Google
143
143
  credentials = @config.credentials
144
144
  # Use self-signed JWT if the endpoint is unchanged from default,
145
145
  # but only if the default endpoint does not have a region prefix.
146
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
146
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
147
147
  !@config.endpoint.split(".").first.include?("-")
148
148
  credentials ||= Credentials.default scope: @config.scope,
149
149
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -802,7 +802,9 @@ module Google
802
802
  class Configuration
803
803
  extend ::Gapic::Config
804
804
 
805
- config_attr :endpoint, "compute.googleapis.com", ::String
805
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
806
+
807
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
806
808
  config_attr :credentials, nil do |value|
807
809
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
808
810
  allowed.any? { |klass| klass === value }