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_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
@@ -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("=", 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_update_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
@@ -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
@@ -852,7 +852,9 @@ module Google
852
852
  class Configuration
853
853
  extend ::Gapic::Config
854
854
 
855
- config_attr :endpoint, "compute.googleapis.com", ::String
855
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
856
+
857
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
856
858
  config_attr :credentials, nil do |value|
857
859
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
858
860
  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
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_set_target_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
@@ -79,6 +79,8 @@ module Google
79
79
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
80
80
  }
81
81
 
82
+ default_config.rpcs.move.timeout = 600.0
83
+
82
84
  default_config.rpcs.set_labels.timeout = 600.0
83
85
 
84
86
  default_config
@@ -134,7 +136,7 @@ module Google
134
136
  credentials = @config.credentials
135
137
  # Use self-signed JWT if the endpoint is unchanged from default,
136
138
  # but only if the default endpoint does not have a region prefix.
137
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
139
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
138
140
  !@config.endpoint.split(".").first.include?("-")
139
141
  credentials ||= Credentials.default scope: @config.scope,
140
142
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -448,6 +450,82 @@ module Google
448
450
  raise ::Google::Cloud::Error.from_error(e)
449
451
  end
450
452
 
453
+ ##
454
+ # Moves the specified address resource from one project to another project.
455
+ #
456
+ # @overload move(request, options = nil)
457
+ # Pass arguments to `move` via a request object, either of type
458
+ # {::Google::Cloud::Compute::V1::MoveGlobalAddressRequest} or an equivalent Hash.
459
+ #
460
+ # @param request [::Google::Cloud::Compute::V1::MoveGlobalAddressRequest, ::Hash]
461
+ # A request object representing the call parameters. Required. To specify no
462
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
463
+ # @param options [::Gapic::CallOptions, ::Hash]
464
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
465
+ #
466
+ # @overload move(address: nil, global_addresses_move_request_resource: nil, project: nil, request_id: nil)
467
+ # Pass arguments to `move` via keyword arguments. Note that at
468
+ # least one keyword argument is required. To specify no parameters, or to keep all
469
+ # the default parameter values, pass an empty Hash as a request object (see above).
470
+ #
471
+ # @param address [::String]
472
+ # Name of the address resource to move.
473
+ # @param global_addresses_move_request_resource [::Google::Cloud::Compute::V1::GlobalAddressesMoveRequest, ::Hash]
474
+ # The body resource for this request
475
+ # @param project [::String]
476
+ # Source project ID which the Address is moved from.
477
+ # @param request_id [::String]
478
+ # 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).
479
+ # @yield [result, operation] Access the result along with the TransportOperation object
480
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
481
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
482
+ #
483
+ # @return [::Gapic::GenericLRO::Operation]
484
+ #
485
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
486
+ def move request, options = nil
487
+ raise ::ArgumentError, "request must be provided" if request.nil?
488
+
489
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::MoveGlobalAddressRequest
490
+
491
+ # Converts hash and nil to an options object
492
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
493
+
494
+ # Customize the options with defaults
495
+ call_metadata = @config.rpcs.move.metadata.to_h
496
+
497
+ # Set x-goog-api-client and x-goog-user-project headers
498
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
499
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
500
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
501
+ transports_version_send: [:rest]
502
+
503
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
504
+
505
+ options.apply_defaults timeout: @config.rpcs.move.timeout,
506
+ metadata: call_metadata,
507
+ retry_policy: @config.rpcs.move.retry_policy
508
+
509
+ options.apply_defaults timeout: @config.timeout,
510
+ metadata: @config.metadata,
511
+ retry_policy: @config.retry_policy
512
+
513
+ @global_addresses_stub.move request, options do |result, response|
514
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
515
+ operation: result,
516
+ client: global_operations,
517
+ request_values: {
518
+ "project" => request.project
519
+ },
520
+ options: options
521
+ )
522
+ yield result, response if block_given?
523
+ return result
524
+ end
525
+ rescue ::Gapic::Rest::Error => e
526
+ raise ::Google::Cloud::Error.from_error(e)
527
+ end
528
+
451
529
  ##
452
530
  # Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.
453
531
  #
@@ -595,7 +673,9 @@ module Google
595
673
  class Configuration
596
674
  extend ::Gapic::Config
597
675
 
598
- config_attr :endpoint, "compute.googleapis.com", ::String
676
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
677
+
678
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
599
679
  config_attr :credentials, nil do |value|
600
680
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
601
681
  allowed.any? { |klass| klass === value }
@@ -666,6 +746,11 @@ module Google
666
746
  #
667
747
  attr_reader :list
668
748
  ##
749
+ # RPC-specific configuration for `move`
750
+ # @return [::Gapic::Config::Method]
751
+ #
752
+ attr_reader :move
753
+ ##
669
754
  # RPC-specific configuration for `set_labels`
670
755
  # @return [::Gapic::Config::Method]
671
756
  #
@@ -681,6 +766,8 @@ module Google
681
766
  @insert = ::Gapic::Config::Method.new insert_config
682
767
  list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
683
768
  @list = ::Gapic::Config::Method.new list_config
769
+ move_config = parent_rpcs.move if parent_rpcs.respond_to? :move
770
+ @move = ::Gapic::Config::Method.new move_config
684
771
  set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
685
772
  @set_labels = ::Gapic::Config::Method.new set_labels_config
686
773
 
@@ -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
@@ -192,6 +192,44 @@ module Google
192
192
  result
193
193
  end
194
194
 
195
+ ##
196
+ # Baseline implementation for the move REST call
197
+ #
198
+ # @param request_pb [::Google::Cloud::Compute::V1::MoveGlobalAddressRequest]
199
+ # A request object representing the call parameters. Required.
200
+ # @param options [::Gapic::CallOptions]
201
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
202
+ #
203
+ # @yield [result, operation] Access the result along with the TransportOperation object
204
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
206
+ #
207
+ # @return [::Google::Cloud::Compute::V1::Operation]
208
+ # A result object deserialized from the server's reply
209
+ def move request_pb, options = nil
210
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
211
+
212
+ verb, uri, query_string_params, body = ServiceStub.transcode_move_request request_pb
213
+ query_string_params = if query_string_params.any?
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
+ else
216
+ {}
217
+ end
218
+
219
+ response = @client_stub.make_http_request(
220
+ verb,
221
+ uri: uri,
222
+ body: body || "",
223
+ params: query_string_params,
224
+ options: options
225
+ )
226
+ operation = ::Gapic::Rest::TransportOperation.new response
227
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
228
+
229
+ yield result, operation if block_given?
230
+ result
231
+ end
232
+
195
233
  ##
196
234
  # Baseline implementation for the set_labels REST call
197
235
  #
@@ -211,7 +249,7 @@ module Google
211
249
 
212
250
  verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
213
251
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
215
253
  else
216
254
  {}
217
255
  end
@@ -317,6 +355,29 @@ module Google
317
355
  transcoder.transcode request_pb
318
356
  end
319
357
 
358
+ ##
359
+ # @private
360
+ #
361
+ # GRPC transcoding helper method for the move REST call
362
+ #
363
+ # @param request_pb [::Google::Cloud::Compute::V1::MoveGlobalAddressRequest]
364
+ # A request object representing the call parameters. Required.
365
+ # @return [Array(String, [String, nil], Hash{String => String})]
366
+ # Uri, Body, Query string parameters
367
+ def self.transcode_move_request request_pb
368
+ transcoder = Gapic::Rest::GrpcTranscoder.new
369
+ .with_bindings(
370
+ uri_method: :post,
371
+ uri_template: "/compute/v1/projects/{project}/global/addresses/{address}/move",
372
+ body: "global_addresses_move_request_resource",
373
+ matches: [
374
+ ["project", %r{^[^/]+/?$}, false],
375
+ ["address", %r{^[^/]+/?$}, false]
376
+ ]
377
+ )
378
+ transcoder.transcode request_pb
379
+ end
380
+
320
381
  ##
321
382
  # @private
322
383
  #
@@ -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 == Client.configure.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
@@ -751,7 +751,9 @@ module Google
751
751
  class Configuration
752
752
  extend ::Gapic::Config
753
753
 
754
- config_attr :endpoint, "compute.googleapis.com", ::String
754
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
755
+
756
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
755
757
  config_attr :credentials, nil do |value|
756
758
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
757
759
  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
@@ -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("=", 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_set_labels_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_target_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
@@ -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 == Client.configure.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
@@ -752,7 +752,9 @@ module Google
752
752
  class Configuration
753
753
  extend ::Gapic::Config
754
754
 
755
- config_attr :endpoint, "compute.googleapis.com", ::String
755
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
756
+
757
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
756
758
  config_attr :credentials, nil do |value|
757
759
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
758
760
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_attach_network_endpoints_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_detach_network_endpoints_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_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_list_network_endpoints_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
@@ -136,7 +136,7 @@ module Google
136
136
  credentials = @config.credentials
137
137
  # Use self-signed JWT if the endpoint is unchanged from default,
138
138
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
139
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
140
140
  !@config.endpoint.split(".").first.include?("-")
141
141
  credentials ||= Credentials.default scope: @config.scope,
142
142
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -565,7 +565,9 @@ module Google
565
565
  class Configuration
566
566
  extend ::Gapic::Config
567
567
 
568
- config_attr :endpoint, "compute.googleapis.com", ::String
568
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
569
+
570
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
569
571
  config_attr :credentials, nil do |value|
570
572
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
571
573
  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_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
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_wait_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
@@ -129,7 +129,7 @@ module Google
129
129
  credentials = @config.credentials
130
130
  # Use self-signed JWT if the endpoint is unchanged from default,
131
131
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
132
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
133
133
  !@config.endpoint.split(".").first.include?("-")
134
134
  credentials ||= Credentials.default scope: @config.scope,
135
135
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -419,7 +419,9 @@ module Google
419
419
  class Configuration
420
420
  extend ::Gapic::Config
421
421
 
422
- config_attr :endpoint, "compute.googleapis.com", ::String
422
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
423
+
424
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
423
425
  config_attr :credentials, nil do |value|
424
426
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
425
427
  allowed.any? { |klass| klass === value }