google-cloud-compute-v1 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -4
  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 +6 -4
  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 +7 -5
  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 +7 -5
  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 +7 -5
  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 +42 -10746
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +7 -5
  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 +98 -5
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +75 -13
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +6 -4
  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 +8 -6
  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 +6 -4
  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 +6 -4
  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 +7 -5
  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 +6 -4
  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 +7 -5
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +7 -5
  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 +6 -4
  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 +9 -7
  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 +7 -5
  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 +6 -4
  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 +97 -8
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +66 -7
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +95 -5
  50. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +107 -45
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +6 -4
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +7 -5
  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 +7 -5
  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 +6 -4
  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 +6 -4
  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 +7 -5
  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 +6 -4
  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 +7 -5
  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 +94 -4
  76. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +75 -13
  77. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +7 -5
  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 +7 -5
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +6 -4
  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 +7 -5
  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 +7 -5
  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 +97 -4
  98. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +74 -12
  99. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +6 -4
  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 +7 -5
  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 +6 -4
  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 +6 -4
  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/credentials.rb +52 -0
  108. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +626 -0
  109. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +291 -0
  110. data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +51 -0
  111. data/lib/google/cloud/compute/v1/region_instance_templates.rb +47 -0
  112. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +6 -4
  113. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  114. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +7 -5
  115. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
  116. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +6 -4
  117. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
  118. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +6 -4
  119. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
  120. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +6 -4
  121. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
  122. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +6 -4
  123. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
  124. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +6 -4
  125. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
  126. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +6 -4
  127. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
  128. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +7 -5
  129. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
  130. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +7 -5
  131. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
  132. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +6 -4
  133. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
  134. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +7 -5
  135. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
  136. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -5
  137. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
  138. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +6 -4
  139. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
  140. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -4
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
  142. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  143. data/lib/google/cloud/compute/v1/routers/rest/client.rb +7 -5
  144. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
  145. data/lib/google/cloud/compute/v1/routes/rest/client.rb +7 -5
  146. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
  147. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +6 -4
  148. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
  149. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +6 -4
  150. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
  151. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +7 -5
  152. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
  153. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +7 -5
  154. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
  155. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -5
  156. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
  157. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +7 -5
  158. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
  159. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +6 -4
  160. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
  161. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +7 -5
  162. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
  163. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +7 -5
  164. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
  165. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +7 -5
  166. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
  167. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +7 -5
  168. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
  169. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +7 -5
  170. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
  171. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +7 -5
  172. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
  173. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +7 -5
  174. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
  175. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +7 -5
  176. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
  177. data/lib/google/cloud/compute/v1/version.rb +1 -1
  178. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +7 -5
  179. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
  180. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +7 -5
  181. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
  182. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +6 -4
  183. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
  184. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -5
  185. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
  186. data/lib/google/cloud/compute/v1.rb +1 -0
  187. data/proto_docs/google/api/client.rb +67 -4
  188. data/proto_docs/google/cloud/compute/v1/compute.rb +414 -29
  189. metadata +9 -4
@@ -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
@@ -328,7 +328,7 @@ module Google
328
328
  end
329
329
 
330
330
  ##
331
- # Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request.
331
+ # Returns the specified VPN gateway.
332
332
  #
333
333
  # @overload get(request, options = nil)
334
334
  # Pass arguments to `get` via a request object, either of type
@@ -796,9 +796,9 @@ module Google
796
796
  # * (`String`) The path to a service account key file in JSON format
797
797
  # * (`Hash`) A service account key as a Hash
798
798
  # * (`Google::Auth::Credentials`) A googleauth credentials object
799
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
799
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
800
800
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
801
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
801
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
802
802
  # * (`nil`) indicating no credentials
803
803
  # @return [::Object]
804
804
  # @!attribute [rw] scope
@@ -831,7 +831,9 @@ module Google
831
831
  class Configuration
832
832
  extend ::Gapic::Config
833
833
 
834
- config_attr :endpoint, "compute.googleapis.com", ::String
834
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
835
+
836
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
835
837
  config_attr :credentials, nil do |value|
836
838
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
837
839
  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_status_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_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_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
@@ -139,7 +139,7 @@ module Google
139
139
  credentials = @config.credentials
140
140
  # Use self-signed JWT if the endpoint is unchanged from default,
141
141
  # but only if the default endpoint does not have a region prefix.
142
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
142
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
143
143
  !@config.endpoint.split(".").first.include?("-")
144
144
  credentials ||= Credentials.default scope: @config.scope,
145
145
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -321,7 +321,7 @@ module Google
321
321
  end
322
322
 
323
323
  ##
324
- # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.
324
+ # Returns the specified VpnTunnel resource.
325
325
  #
326
326
  # @overload get(request, options = nil)
327
327
  # Pass arguments to `get` via a request object, either of type
@@ -655,9 +655,9 @@ module Google
655
655
  # * (`String`) The path to a service account key file in JSON format
656
656
  # * (`Hash`) A service account key as a Hash
657
657
  # * (`Google::Auth::Credentials`) A googleauth credentials object
658
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
658
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
659
659
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
660
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
660
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
661
661
  # * (`nil`) indicating no credentials
662
662
  # @return [::Object]
663
663
  # @!attribute [rw] scope
@@ -690,7 +690,9 @@ module Google
690
690
  class Configuration
691
691
  extend ::Gapic::Config
692
692
 
693
- config_attr :endpoint, "compute.googleapis.com", ::String
693
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
694
+
695
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
694
696
  config_attr :credentials, nil do |value|
695
697
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
696
698
  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_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
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -458,9 +458,9 @@ module Google
458
458
  # * (`String`) The path to a service account key file in JSON format
459
459
  # * (`Hash`) A service account key as a Hash
460
460
  # * (`Google::Auth::Credentials`) A googleauth credentials object
461
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
461
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
462
462
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
463
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
463
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
464
464
  # * (`nil`) indicating no credentials
465
465
  # @return [::Object]
466
466
  # @!attribute [rw] scope
@@ -493,7 +493,9 @@ module Google
493
493
  class Configuration
494
494
  extend ::Gapic::Config
495
495
 
496
- config_attr :endpoint, "compute.googleapis.com", ::String
496
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
497
+
498
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
497
499
  config_attr :credentials, nil do |value|
498
500
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
499
501
  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_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_wait_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
@@ -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
@@ -144,7 +144,7 @@ module Google
144
144
  # Service calls
145
145
 
146
146
  ##
147
- # Returns the specified Zone resource. Gets a list of available zones by making a list() request.
147
+ # Returns the specified Zone resource.
148
148
  #
149
149
  # @overload get(request, options = nil)
150
150
  # Pass arguments to `get` via a request object, either of type
@@ -318,9 +318,9 @@ module Google
318
318
  # * (`String`) The path to a service account key file in JSON format
319
319
  # * (`Hash`) A service account key as a Hash
320
320
  # * (`Google::Auth::Credentials`) A googleauth credentials object
321
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
321
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
322
322
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
323
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
323
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
324
324
  # * (`nil`) indicating no credentials
325
325
  # @return [::Object]
326
326
  # @!attribute [rw] scope
@@ -353,7 +353,9 @@ module Google
353
353
  class Configuration
354
354
  extend ::Gapic::Config
355
355
 
356
- 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
@@ -68,6 +68,7 @@ require "google/cloud/compute/v1/region_health_check_services"
68
68
  require "google/cloud/compute/v1/region_health_checks"
69
69
  require "google/cloud/compute/v1/region_instance_group_managers"
70
70
  require "google/cloud/compute/v1/region_instance_groups"
71
+ require "google/cloud/compute/v1/region_instance_templates"
71
72
  require "google/cloud/compute/v1/region_instances"
72
73
  require "google/cloud/compute/v1/region_network_endpoint_groups"
73
74
  require "google/cloud/compute/v1/region_network_firewall_policies"
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?