google-cloud-compute 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,8 @@ require "google/cloud/config"
36
36
  config.add_field! :lib_version, nil, match: ::String
37
37
  config.add_field! :timeout, nil, match: ::Numeric
38
38
  config.add_field! :metadata, nil, match: ::Hash
39
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
40
+ config.add_field! :quota_project, nil, match: ::String
39
41
  end
40
42
 
41
43
  module Google
@@ -46,8 +48,8 @@ module Google
46
48
  #
47
49
  # By default, this returns an instance of
48
50
  # [Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/AcceleratorTypes/Rest/Client.html)
49
- # for version V1 of the API.
50
- # However, you can specify specify a different API version by passing it in the
51
+ # for a REST client for version V1 of the API.
52
+ # However, you can specify a different API version by passing it in the
51
53
  # `version` parameter. If the AcceleratorTypes service is
52
54
  # supported by that API version, and the corresponding gem is available, the
53
55
  # appropriate versioned client will be returned.
@@ -60,7 +62,7 @@ module Google
60
62
  #
61
63
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
62
64
  # Defaults to `:v1`.
63
- # @return [AcceleratorTypes::Rest::Client] A client object for the specified version.
65
+ # @return [::Object] A client object for the specified version.
64
66
  #
65
67
  def self.accelerator_types version: :v1, &block
66
68
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -69,8 +71,8 @@ module Google
69
71
  .constants
70
72
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
71
73
  .first
72
- package_module = Google::Cloud::Compute.const_get package_name
73
- package_module.const_get(:AcceleratorTypes).const_get(:Rest).const_get(:Client).new(&block)
74
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:AcceleratorTypes)
75
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
74
76
  end
75
77
 
76
78
  ##
@@ -78,8 +80,8 @@ module Google
78
80
  #
79
81
  # By default, this returns an instance of
80
82
  # [Google::Cloud::Compute::V1::Addresses::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Addresses/Rest/Client.html)
81
- # for version V1 of the API.
82
- # However, you can specify specify a different API version by passing it in the
83
+ # for a REST client for version V1 of the API.
84
+ # However, you can specify a different API version by passing it in the
83
85
  # `version` parameter. If the Addresses service is
84
86
  # supported by that API version, and the corresponding gem is available, the
85
87
  # appropriate versioned client will be returned.
@@ -90,7 +92,7 @@ module Google
90
92
  #
91
93
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
92
94
  # Defaults to `:v1`.
93
- # @return [Addresses::Rest::Client] A client object for the specified version.
95
+ # @return [::Object] A client object for the specified version.
94
96
  #
95
97
  def self.addresses version: :v1, &block
96
98
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -99,8 +101,8 @@ module Google
99
101
  .constants
100
102
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
101
103
  .first
102
- package_module = Google::Cloud::Compute.const_get package_name
103
- package_module.const_get(:Addresses).const_get(:Rest).const_get(:Client).new(&block)
104
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Addresses)
105
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
104
106
  end
105
107
 
106
108
  ##
@@ -108,8 +110,8 @@ module Google
108
110
  #
109
111
  # By default, this returns an instance of
110
112
  # [Google::Cloud::Compute::V1::Autoscalers::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Autoscalers/Rest/Client.html)
111
- # for version V1 of the API.
112
- # However, you can specify specify a different API version by passing it in the
113
+ # for a REST client for version V1 of the API.
114
+ # However, you can specify a different API version by passing it in the
113
115
  # `version` parameter. If the Autoscalers service is
114
116
  # supported by that API version, and the corresponding gem is available, the
115
117
  # appropriate versioned client will be returned.
@@ -120,7 +122,7 @@ module Google
120
122
  #
121
123
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
122
124
  # Defaults to `:v1`.
123
- # @return [Autoscalers::Rest::Client] A client object for the specified version.
125
+ # @return [::Object] A client object for the specified version.
124
126
  #
125
127
  def self.autoscalers version: :v1, &block
126
128
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -129,8 +131,8 @@ module Google
129
131
  .constants
130
132
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
131
133
  .first
132
- package_module = Google::Cloud::Compute.const_get package_name
133
- package_module.const_get(:Autoscalers).const_get(:Rest).const_get(:Client).new(&block)
134
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Autoscalers)
135
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
134
136
  end
135
137
 
136
138
  ##
@@ -138,8 +140,8 @@ module Google
138
140
  #
139
141
  # By default, this returns an instance of
140
142
  # [Google::Cloud::Compute::V1::BackendBuckets::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/BackendBuckets/Rest/Client.html)
141
- # for version V1 of the API.
142
- # However, you can specify specify a different API version by passing it in the
143
+ # for a REST client for version V1 of the API.
144
+ # However, you can specify a different API version by passing it in the
143
145
  # `version` parameter. If the BackendBuckets service is
144
146
  # supported by that API version, and the corresponding gem is available, the
145
147
  # appropriate versioned client will be returned.
@@ -150,7 +152,7 @@ module Google
150
152
  #
151
153
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
152
154
  # Defaults to `:v1`.
153
- # @return [BackendBuckets::Rest::Client] A client object for the specified version.
155
+ # @return [::Object] A client object for the specified version.
154
156
  #
155
157
  def self.backend_buckets version: :v1, &block
156
158
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -159,8 +161,8 @@ module Google
159
161
  .constants
160
162
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
161
163
  .first
162
- package_module = Google::Cloud::Compute.const_get package_name
163
- package_module.const_get(:BackendBuckets).const_get(:Rest).const_get(:Client).new(&block)
164
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:BackendBuckets)
165
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
164
166
  end
165
167
 
166
168
  ##
@@ -168,8 +170,8 @@ module Google
168
170
  #
169
171
  # By default, this returns an instance of
170
172
  # [Google::Cloud::Compute::V1::BackendServices::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/BackendServices/Rest/Client.html)
171
- # for version V1 of the API.
172
- # However, you can specify specify a different API version by passing it in the
173
+ # for a REST client for version V1 of the API.
174
+ # However, you can specify a different API version by passing it in the
173
175
  # `version` parameter. If the BackendServices service is
174
176
  # supported by that API version, and the corresponding gem is available, the
175
177
  # appropriate versioned client will be returned.
@@ -180,7 +182,7 @@ module Google
180
182
  #
181
183
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
182
184
  # Defaults to `:v1`.
183
- # @return [BackendServices::Rest::Client] A client object for the specified version.
185
+ # @return [::Object] A client object for the specified version.
184
186
  #
185
187
  def self.backend_services version: :v1, &block
186
188
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -189,8 +191,8 @@ module Google
189
191
  .constants
190
192
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
191
193
  .first
192
- package_module = Google::Cloud::Compute.const_get package_name
193
- package_module.const_get(:BackendServices).const_get(:Rest).const_get(:Client).new(&block)
194
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:BackendServices)
195
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
194
196
  end
195
197
 
196
198
  ##
@@ -198,8 +200,8 @@ module Google
198
200
  #
199
201
  # By default, this returns an instance of
200
202
  # [Google::Cloud::Compute::V1::DiskTypes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/DiskTypes/Rest/Client.html)
201
- # for version V1 of the API.
202
- # However, you can specify specify a different API version by passing it in the
203
+ # for a REST client for version V1 of the API.
204
+ # However, you can specify a different API version by passing it in the
203
205
  # `version` parameter. If the DiskTypes service is
204
206
  # supported by that API version, and the corresponding gem is available, the
205
207
  # appropriate versioned client will be returned.
@@ -210,7 +212,7 @@ module Google
210
212
  #
211
213
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
212
214
  # Defaults to `:v1`.
213
- # @return [DiskTypes::Rest::Client] A client object for the specified version.
215
+ # @return [::Object] A client object for the specified version.
214
216
  #
215
217
  def self.disk_types version: :v1, &block
216
218
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -219,8 +221,8 @@ module Google
219
221
  .constants
220
222
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
221
223
  .first
222
- package_module = Google::Cloud::Compute.const_get package_name
223
- package_module.const_get(:DiskTypes).const_get(:Rest).const_get(:Client).new(&block)
224
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:DiskTypes)
225
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
224
226
  end
225
227
 
226
228
  ##
@@ -228,8 +230,8 @@ module Google
228
230
  #
229
231
  # By default, this returns an instance of
230
232
  # [Google::Cloud::Compute::V1::Disks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Disks/Rest/Client.html)
231
- # for version V1 of the API.
232
- # However, you can specify specify a different API version by passing it in the
233
+ # for a REST client for version V1 of the API.
234
+ # However, you can specify a different API version by passing it in the
233
235
  # `version` parameter. If the Disks service is
234
236
  # supported by that API version, and the corresponding gem is available, the
235
237
  # appropriate versioned client will be returned.
@@ -240,7 +242,7 @@ module Google
240
242
  #
241
243
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
242
244
  # Defaults to `:v1`.
243
- # @return [Disks::Rest::Client] A client object for the specified version.
245
+ # @return [::Object] A client object for the specified version.
244
246
  #
245
247
  def self.disks version: :v1, &block
246
248
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -249,8 +251,8 @@ module Google
249
251
  .constants
250
252
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
251
253
  .first
252
- package_module = Google::Cloud::Compute.const_get package_name
253
- package_module.const_get(:Disks).const_get(:Rest).const_get(:Client).new(&block)
254
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Disks)
255
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
254
256
  end
255
257
 
256
258
  ##
@@ -258,8 +260,8 @@ module Google
258
260
  #
259
261
  # By default, this returns an instance of
260
262
  # [Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ExternalVpnGateways/Rest/Client.html)
261
- # for version V1 of the API.
262
- # However, you can specify specify a different API version by passing it in the
263
+ # for a REST client for version V1 of the API.
264
+ # However, you can specify a different API version by passing it in the
263
265
  # `version` parameter. If the ExternalVpnGateways service is
264
266
  # supported by that API version, and the corresponding gem is available, the
265
267
  # appropriate versioned client will be returned.
@@ -270,7 +272,7 @@ module Google
270
272
  #
271
273
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
272
274
  # Defaults to `:v1`.
273
- # @return [ExternalVpnGateways::Rest::Client] A client object for the specified version.
275
+ # @return [::Object] A client object for the specified version.
274
276
  #
275
277
  def self.external_vpn_gateways version: :v1, &block
276
278
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -279,8 +281,8 @@ module Google
279
281
  .constants
280
282
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
281
283
  .first
282
- package_module = Google::Cloud::Compute.const_get package_name
283
- package_module.const_get(:ExternalVpnGateways).const_get(:Rest).const_get(:Client).new(&block)
284
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ExternalVpnGateways)
285
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
284
286
  end
285
287
 
286
288
  ##
@@ -288,8 +290,8 @@ module Google
288
290
  #
289
291
  # By default, this returns an instance of
290
292
  # [Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/FirewallPolicies/Rest/Client.html)
291
- # for version V1 of the API.
292
- # However, you can specify specify a different API version by passing it in the
293
+ # for a REST client for version V1 of the API.
294
+ # However, you can specify a different API version by passing it in the
293
295
  # `version` parameter. If the FirewallPolicies service is
294
296
  # supported by that API version, and the corresponding gem is available, the
295
297
  # appropriate versioned client will be returned.
@@ -300,7 +302,7 @@ module Google
300
302
  #
301
303
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
302
304
  # Defaults to `:v1`.
303
- # @return [FirewallPolicies::Rest::Client] A client object for the specified version.
305
+ # @return [::Object] A client object for the specified version.
304
306
  #
305
307
  def self.firewall_policies version: :v1, &block
306
308
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -309,8 +311,8 @@ module Google
309
311
  .constants
310
312
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
311
313
  .first
312
- package_module = Google::Cloud::Compute.const_get package_name
313
- package_module.const_get(:FirewallPolicies).const_get(:Rest).const_get(:Client).new(&block)
314
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:FirewallPolicies)
315
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
314
316
  end
315
317
 
316
318
  ##
@@ -318,8 +320,8 @@ module Google
318
320
  #
319
321
  # By default, this returns an instance of
320
322
  # [Google::Cloud::Compute::V1::Firewalls::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Firewalls/Rest/Client.html)
321
- # for version V1 of the API.
322
- # However, you can specify specify a different API version by passing it in the
323
+ # for a REST client for version V1 of the API.
324
+ # However, you can specify a different API version by passing it in the
323
325
  # `version` parameter. If the Firewalls service is
324
326
  # supported by that API version, and the corresponding gem is available, the
325
327
  # appropriate versioned client will be returned.
@@ -330,7 +332,7 @@ module Google
330
332
  #
331
333
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
332
334
  # Defaults to `:v1`.
333
- # @return [Firewalls::Rest::Client] A client object for the specified version.
335
+ # @return [::Object] A client object for the specified version.
334
336
  #
335
337
  def self.firewalls version: :v1, &block
336
338
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -339,8 +341,8 @@ module Google
339
341
  .constants
340
342
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
341
343
  .first
342
- package_module = Google::Cloud::Compute.const_get package_name
343
- package_module.const_get(:Firewalls).const_get(:Rest).const_get(:Client).new(&block)
344
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Firewalls)
345
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
344
346
  end
345
347
 
346
348
  ##
@@ -348,8 +350,8 @@ module Google
348
350
  #
349
351
  # By default, this returns an instance of
350
352
  # [Google::Cloud::Compute::V1::ForwardingRules::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ForwardingRules/Rest/Client.html)
351
- # for version V1 of the API.
352
- # However, you can specify specify a different API version by passing it in the
353
+ # for a REST client for version V1 of the API.
354
+ # However, you can specify a different API version by passing it in the
353
355
  # `version` parameter. If the ForwardingRules service is
354
356
  # supported by that API version, and the corresponding gem is available, the
355
357
  # appropriate versioned client will be returned.
@@ -360,7 +362,7 @@ module Google
360
362
  #
361
363
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
362
364
  # Defaults to `:v1`.
363
- # @return [ForwardingRules::Rest::Client] A client object for the specified version.
365
+ # @return [::Object] A client object for the specified version.
364
366
  #
365
367
  def self.forwarding_rules version: :v1, &block
366
368
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -369,8 +371,8 @@ module Google
369
371
  .constants
370
372
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
371
373
  .first
372
- package_module = Google::Cloud::Compute.const_get package_name
373
- package_module.const_get(:ForwardingRules).const_get(:Rest).const_get(:Client).new(&block)
374
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ForwardingRules)
375
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
374
376
  end
375
377
 
376
378
  ##
@@ -378,8 +380,8 @@ module Google
378
380
  #
379
381
  # By default, this returns an instance of
380
382
  # [Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalAddresses/Rest/Client.html)
381
- # for version V1 of the API.
382
- # However, you can specify specify a different API version by passing it in the
383
+ # for a REST client for version V1 of the API.
384
+ # However, you can specify a different API version by passing it in the
383
385
  # `version` parameter. If the GlobalAddresses service is
384
386
  # supported by that API version, and the corresponding gem is available, the
385
387
  # appropriate versioned client will be returned.
@@ -390,7 +392,7 @@ module Google
390
392
  #
391
393
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
392
394
  # Defaults to `:v1`.
393
- # @return [GlobalAddresses::Rest::Client] A client object for the specified version.
395
+ # @return [::Object] A client object for the specified version.
394
396
  #
395
397
  def self.global_addresses version: :v1, &block
396
398
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -399,8 +401,8 @@ module Google
399
401
  .constants
400
402
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
401
403
  .first
402
- package_module = Google::Cloud::Compute.const_get package_name
403
- package_module.const_get(:GlobalAddresses).const_get(:Rest).const_get(:Client).new(&block)
404
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalAddresses)
405
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
404
406
  end
405
407
 
406
408
  ##
@@ -408,8 +410,8 @@ module Google
408
410
  #
409
411
  # By default, this returns an instance of
410
412
  # [Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalForwardingRules/Rest/Client.html)
411
- # for version V1 of the API.
412
- # However, you can specify specify a different API version by passing it in the
413
+ # for a REST client for version V1 of the API.
414
+ # However, you can specify a different API version by passing it in the
413
415
  # `version` parameter. If the GlobalForwardingRules service is
414
416
  # supported by that API version, and the corresponding gem is available, the
415
417
  # appropriate versioned client will be returned.
@@ -420,7 +422,7 @@ module Google
420
422
  #
421
423
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
422
424
  # Defaults to `:v1`.
423
- # @return [GlobalForwardingRules::Rest::Client] A client object for the specified version.
425
+ # @return [::Object] A client object for the specified version.
424
426
  #
425
427
  def self.global_forwarding_rules version: :v1, &block
426
428
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -429,8 +431,8 @@ module Google
429
431
  .constants
430
432
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
431
433
  .first
432
- package_module = Google::Cloud::Compute.const_get package_name
433
- package_module.const_get(:GlobalForwardingRules).const_get(:Rest).const_get(:Client).new(&block)
434
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalForwardingRules)
435
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
434
436
  end
435
437
 
436
438
  ##
@@ -438,8 +440,8 @@ module Google
438
440
  #
439
441
  # By default, this returns an instance of
440
442
  # [Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalNetworkEndpointGroups/Rest/Client.html)
441
- # for version V1 of the API.
442
- # However, you can specify specify a different API version by passing it in the
443
+ # for a REST client for version V1 of the API.
444
+ # However, you can specify a different API version by passing it in the
443
445
  # `version` parameter. If the GlobalNetworkEndpointGroups service is
444
446
  # supported by that API version, and the corresponding gem is available, the
445
447
  # appropriate versioned client will be returned.
@@ -450,7 +452,7 @@ module Google
450
452
  #
451
453
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
452
454
  # Defaults to `:v1`.
453
- # @return [GlobalNetworkEndpointGroups::Rest::Client] A client object for the specified version.
455
+ # @return [::Object] A client object for the specified version.
454
456
  #
455
457
  def self.global_network_endpoint_groups version: :v1, &block
456
458
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -459,8 +461,8 @@ module Google
459
461
  .constants
460
462
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
461
463
  .first
462
- package_module = Google::Cloud::Compute.const_get package_name
463
- package_module.const_get(:GlobalNetworkEndpointGroups).const_get(:Rest).const_get(:Client).new(&block)
464
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalNetworkEndpointGroups)
465
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
464
466
  end
465
467
 
466
468
  ##
@@ -468,8 +470,8 @@ module Google
468
470
  #
469
471
  # By default, this returns an instance of
470
472
  # [Google::Cloud::Compute::V1::GlobalOperations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalOperations/Rest/Client.html)
471
- # for version V1 of the API.
472
- # However, you can specify specify a different API version by passing it in the
473
+ # for a REST client for version V1 of the API.
474
+ # However, you can specify a different API version by passing it in the
473
475
  # `version` parameter. If the GlobalOperations service is
474
476
  # supported by that API version, and the corresponding gem is available, the
475
477
  # appropriate versioned client will be returned.
@@ -480,7 +482,7 @@ module Google
480
482
  #
481
483
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
482
484
  # Defaults to `:v1`.
483
- # @return [GlobalOperations::Rest::Client] A client object for the specified version.
485
+ # @return [::Object] A client object for the specified version.
484
486
  #
485
487
  def self.global_operations version: :v1, &block
486
488
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -489,8 +491,8 @@ module Google
489
491
  .constants
490
492
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
491
493
  .first
492
- package_module = Google::Cloud::Compute.const_get package_name
493
- package_module.const_get(:GlobalOperations).const_get(:Rest).const_get(:Client).new(&block)
494
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalOperations)
495
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
494
496
  end
495
497
 
496
498
  ##
@@ -498,8 +500,8 @@ module Google
498
500
  #
499
501
  # By default, this returns an instance of
500
502
  # [Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalOrganizationOperations/Rest/Client.html)
501
- # for version V1 of the API.
502
- # However, you can specify specify a different API version by passing it in the
503
+ # for a REST client for version V1 of the API.
504
+ # However, you can specify a different API version by passing it in the
503
505
  # `version` parameter. If the GlobalOrganizationOperations service is
504
506
  # supported by that API version, and the corresponding gem is available, the
505
507
  # appropriate versioned client will be returned.
@@ -510,7 +512,7 @@ module Google
510
512
  #
511
513
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
512
514
  # Defaults to `:v1`.
513
- # @return [GlobalOrganizationOperations::Rest::Client] A client object for the specified version.
515
+ # @return [::Object] A client object for the specified version.
514
516
  #
515
517
  def self.global_organization_operations version: :v1, &block
516
518
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -519,8 +521,8 @@ module Google
519
521
  .constants
520
522
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
521
523
  .first
522
- package_module = Google::Cloud::Compute.const_get package_name
523
- package_module.const_get(:GlobalOrganizationOperations).const_get(:Rest).const_get(:Client).new(&block)
524
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalOrganizationOperations)
525
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
524
526
  end
525
527
 
526
528
  ##
@@ -528,8 +530,8 @@ module Google
528
530
  #
529
531
  # By default, this returns an instance of
530
532
  # [Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/GlobalPublicDelegatedPrefixes/Rest/Client.html)
531
- # for version V1 of the API.
532
- # However, you can specify specify a different API version by passing it in the
533
+ # for a REST client for version V1 of the API.
534
+ # However, you can specify a different API version by passing it in the
533
535
  # `version` parameter. If the GlobalPublicDelegatedPrefixes service is
534
536
  # supported by that API version, and the corresponding gem is available, the
535
537
  # appropriate versioned client will be returned.
@@ -540,7 +542,7 @@ module Google
540
542
  #
541
543
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
542
544
  # Defaults to `:v1`.
543
- # @return [GlobalPublicDelegatedPrefixes::Rest::Client] A client object for the specified version.
545
+ # @return [::Object] A client object for the specified version.
544
546
  #
545
547
  def self.global_public_delegated_prefixes version: :v1, &block
546
548
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -549,8 +551,8 @@ module Google
549
551
  .constants
550
552
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
551
553
  .first
552
- package_module = Google::Cloud::Compute.const_get package_name
553
- package_module.const_get(:GlobalPublicDelegatedPrefixes).const_get(:Rest).const_get(:Client).new(&block)
554
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalPublicDelegatedPrefixes)
555
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
554
556
  end
555
557
 
556
558
  ##
@@ -558,8 +560,8 @@ module Google
558
560
  #
559
561
  # By default, this returns an instance of
560
562
  # [Google::Cloud::Compute::V1::HealthChecks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/HealthChecks/Rest/Client.html)
561
- # for version V1 of the API.
562
- # However, you can specify specify a different API version by passing it in the
563
+ # for a REST client for version V1 of the API.
564
+ # However, you can specify a different API version by passing it in the
563
565
  # `version` parameter. If the HealthChecks service is
564
566
  # supported by that API version, and the corresponding gem is available, the
565
567
  # appropriate versioned client will be returned.
@@ -570,7 +572,7 @@ module Google
570
572
  #
571
573
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
572
574
  # Defaults to `:v1`.
573
- # @return [HealthChecks::Rest::Client] A client object for the specified version.
575
+ # @return [::Object] A client object for the specified version.
574
576
  #
575
577
  def self.health_checks version: :v1, &block
576
578
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -579,8 +581,8 @@ module Google
579
581
  .constants
580
582
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
581
583
  .first
582
- package_module = Google::Cloud::Compute.const_get package_name
583
- package_module.const_get(:HealthChecks).const_get(:Rest).const_get(:Client).new(&block)
584
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:HealthChecks)
585
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
584
586
  end
585
587
 
586
588
  ##
@@ -588,8 +590,8 @@ module Google
588
590
  #
589
591
  # By default, this returns an instance of
590
592
  # [Google::Cloud::Compute::V1::ImageFamilyViews::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ImageFamilyViews/Rest/Client.html)
591
- # for version V1 of the API.
592
- # However, you can specify specify a different API version by passing it in the
593
+ # for a REST client for version V1 of the API.
594
+ # However, you can specify a different API version by passing it in the
593
595
  # `version` parameter. If the ImageFamilyViews service is
594
596
  # supported by that API version, and the corresponding gem is available, the
595
597
  # appropriate versioned client will be returned.
@@ -600,7 +602,7 @@ module Google
600
602
  #
601
603
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
602
604
  # Defaults to `:v1`.
603
- # @return [ImageFamilyViews::Rest::Client] A client object for the specified version.
605
+ # @return [::Object] A client object for the specified version.
604
606
  #
605
607
  def self.image_family_views version: :v1, &block
606
608
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -609,8 +611,8 @@ module Google
609
611
  .constants
610
612
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
611
613
  .first
612
- package_module = Google::Cloud::Compute.const_get package_name
613
- package_module.const_get(:ImageFamilyViews).const_get(:Rest).const_get(:Client).new(&block)
614
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ImageFamilyViews)
615
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
614
616
  end
615
617
 
616
618
  ##
@@ -618,8 +620,8 @@ module Google
618
620
  #
619
621
  # By default, this returns an instance of
620
622
  # [Google::Cloud::Compute::V1::Images::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Images/Rest/Client.html)
621
- # for version V1 of the API.
622
- # However, you can specify specify a different API version by passing it in the
623
+ # for a REST client for version V1 of the API.
624
+ # However, you can specify a different API version by passing it in the
623
625
  # `version` parameter. If the Images service is
624
626
  # supported by that API version, and the corresponding gem is available, the
625
627
  # appropriate versioned client will be returned.
@@ -630,7 +632,7 @@ module Google
630
632
  #
631
633
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
632
634
  # Defaults to `:v1`.
633
- # @return [Images::Rest::Client] A client object for the specified version.
635
+ # @return [::Object] A client object for the specified version.
634
636
  #
635
637
  def self.images version: :v1, &block
636
638
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -639,8 +641,8 @@ module Google
639
641
  .constants
640
642
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
641
643
  .first
642
- package_module = Google::Cloud::Compute.const_get package_name
643
- package_module.const_get(:Images).const_get(:Rest).const_get(:Client).new(&block)
644
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Images)
645
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
644
646
  end
645
647
 
646
648
  ##
@@ -648,8 +650,8 @@ module Google
648
650
  #
649
651
  # By default, this returns an instance of
650
652
  # [Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/InstanceGroupManagers/Rest/Client.html)
651
- # for version V1 of the API.
652
- # However, you can specify specify a different API version by passing it in the
653
+ # for a REST client for version V1 of the API.
654
+ # However, you can specify a different API version by passing it in the
653
655
  # `version` parameter. If the InstanceGroupManagers service is
654
656
  # supported by that API version, and the corresponding gem is available, the
655
657
  # appropriate versioned client will be returned.
@@ -660,7 +662,7 @@ module Google
660
662
  #
661
663
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
662
664
  # Defaults to `:v1`.
663
- # @return [InstanceGroupManagers::Rest::Client] A client object for the specified version.
665
+ # @return [::Object] A client object for the specified version.
664
666
  #
665
667
  def self.instance_group_managers version: :v1, &block
666
668
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -669,8 +671,8 @@ module Google
669
671
  .constants
670
672
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
671
673
  .first
672
- package_module = Google::Cloud::Compute.const_get package_name
673
- package_module.const_get(:InstanceGroupManagers).const_get(:Rest).const_get(:Client).new(&block)
674
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceGroupManagers)
675
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
674
676
  end
675
677
 
676
678
  ##
@@ -678,8 +680,8 @@ module Google
678
680
  #
679
681
  # By default, this returns an instance of
680
682
  # [Google::Cloud::Compute::V1::InstanceGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/InstanceGroups/Rest/Client.html)
681
- # for version V1 of the API.
682
- # However, you can specify specify a different API version by passing it in the
683
+ # for a REST client for version V1 of the API.
684
+ # However, you can specify a different API version by passing it in the
683
685
  # `version` parameter. If the InstanceGroups service is
684
686
  # supported by that API version, and the corresponding gem is available, the
685
687
  # appropriate versioned client will be returned.
@@ -690,7 +692,7 @@ module Google
690
692
  #
691
693
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
692
694
  # Defaults to `:v1`.
693
- # @return [InstanceGroups::Rest::Client] A client object for the specified version.
695
+ # @return [::Object] A client object for the specified version.
694
696
  #
695
697
  def self.instance_groups version: :v1, &block
696
698
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -699,8 +701,8 @@ module Google
699
701
  .constants
700
702
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
701
703
  .first
702
- package_module = Google::Cloud::Compute.const_get package_name
703
- package_module.const_get(:InstanceGroups).const_get(:Rest).const_get(:Client).new(&block)
704
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceGroups)
705
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
704
706
  end
705
707
 
706
708
  ##
@@ -708,8 +710,8 @@ module Google
708
710
  #
709
711
  # By default, this returns an instance of
710
712
  # [Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/InstanceTemplates/Rest/Client.html)
711
- # for version V1 of the API.
712
- # However, you can specify specify a different API version by passing it in the
713
+ # for a REST client for version V1 of the API.
714
+ # However, you can specify a different API version by passing it in the
713
715
  # `version` parameter. If the InstanceTemplates service is
714
716
  # supported by that API version, and the corresponding gem is available, the
715
717
  # appropriate versioned client will be returned.
@@ -720,7 +722,7 @@ module Google
720
722
  #
721
723
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
722
724
  # Defaults to `:v1`.
723
- # @return [InstanceTemplates::Rest::Client] A client object for the specified version.
725
+ # @return [::Object] A client object for the specified version.
724
726
  #
725
727
  def self.instance_templates version: :v1, &block
726
728
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -729,8 +731,8 @@ module Google
729
731
  .constants
730
732
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
731
733
  .first
732
- package_module = Google::Cloud::Compute.const_get package_name
733
- package_module.const_get(:InstanceTemplates).const_get(:Rest).const_get(:Client).new(&block)
734
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceTemplates)
735
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
734
736
  end
735
737
 
736
738
  ##
@@ -738,8 +740,8 @@ module Google
738
740
  #
739
741
  # By default, this returns an instance of
740
742
  # [Google::Cloud::Compute::V1::Instances::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Instances/Rest/Client.html)
741
- # for version V1 of the API.
742
- # However, you can specify specify a different API version by passing it in the
743
+ # for a REST client for version V1 of the API.
744
+ # However, you can specify a different API version by passing it in the
743
745
  # `version` parameter. If the Instances service is
744
746
  # supported by that API version, and the corresponding gem is available, the
745
747
  # appropriate versioned client will be returned.
@@ -750,7 +752,7 @@ module Google
750
752
  #
751
753
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
752
754
  # Defaults to `:v1`.
753
- # @return [Instances::Rest::Client] A client object for the specified version.
755
+ # @return [::Object] A client object for the specified version.
754
756
  #
755
757
  def self.instances version: :v1, &block
756
758
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -759,8 +761,8 @@ module Google
759
761
  .constants
760
762
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
761
763
  .first
762
- package_module = Google::Cloud::Compute.const_get package_name
763
- package_module.const_get(:Instances).const_get(:Rest).const_get(:Client).new(&block)
764
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Instances)
765
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
764
766
  end
765
767
 
766
768
  ##
@@ -768,8 +770,8 @@ module Google
768
770
  #
769
771
  # By default, this returns an instance of
770
772
  # [Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/InterconnectAttachments/Rest/Client.html)
771
- # for version V1 of the API.
772
- # However, you can specify specify a different API version by passing it in the
773
+ # for a REST client for version V1 of the API.
774
+ # However, you can specify a different API version by passing it in the
773
775
  # `version` parameter. If the InterconnectAttachments service is
774
776
  # supported by that API version, and the corresponding gem is available, the
775
777
  # appropriate versioned client will be returned.
@@ -780,7 +782,7 @@ module Google
780
782
  #
781
783
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
782
784
  # Defaults to `:v1`.
783
- # @return [InterconnectAttachments::Rest::Client] A client object for the specified version.
785
+ # @return [::Object] A client object for the specified version.
784
786
  #
785
787
  def self.interconnect_attachments version: :v1, &block
786
788
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -789,8 +791,8 @@ module Google
789
791
  .constants
790
792
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
791
793
  .first
792
- package_module = Google::Cloud::Compute.const_get package_name
793
- package_module.const_get(:InterconnectAttachments).const_get(:Rest).const_get(:Client).new(&block)
794
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectAttachments)
795
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
794
796
  end
795
797
 
796
798
  ##
@@ -798,8 +800,8 @@ module Google
798
800
  #
799
801
  # By default, this returns an instance of
800
802
  # [Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/InterconnectLocations/Rest/Client.html)
801
- # for version V1 of the API.
802
- # However, you can specify specify a different API version by passing it in the
803
+ # for a REST client for version V1 of the API.
804
+ # However, you can specify a different API version by passing it in the
803
805
  # `version` parameter. If the InterconnectLocations service is
804
806
  # supported by that API version, and the corresponding gem is available, the
805
807
  # appropriate versioned client will be returned.
@@ -810,7 +812,7 @@ module Google
810
812
  #
811
813
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
812
814
  # Defaults to `:v1`.
813
- # @return [InterconnectLocations::Rest::Client] A client object for the specified version.
815
+ # @return [::Object] A client object for the specified version.
814
816
  #
815
817
  def self.interconnect_locations version: :v1, &block
816
818
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -819,8 +821,8 @@ module Google
819
821
  .constants
820
822
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
821
823
  .first
822
- package_module = Google::Cloud::Compute.const_get package_name
823
- package_module.const_get(:InterconnectLocations).const_get(:Rest).const_get(:Client).new(&block)
824
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectLocations)
825
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
824
826
  end
825
827
 
826
828
  ##
@@ -828,8 +830,8 @@ module Google
828
830
  #
829
831
  # By default, this returns an instance of
830
832
  # [Google::Cloud::Compute::V1::Interconnects::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Interconnects/Rest/Client.html)
831
- # for version V1 of the API.
832
- # However, you can specify specify a different API version by passing it in the
833
+ # for a REST client for version V1 of the API.
834
+ # However, you can specify a different API version by passing it in the
833
835
  # `version` parameter. If the Interconnects service is
834
836
  # supported by that API version, and the corresponding gem is available, the
835
837
  # appropriate versioned client will be returned.
@@ -840,7 +842,7 @@ module Google
840
842
  #
841
843
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
842
844
  # Defaults to `:v1`.
843
- # @return [Interconnects::Rest::Client] A client object for the specified version.
845
+ # @return [::Object] A client object for the specified version.
844
846
  #
845
847
  def self.interconnects version: :v1, &block
846
848
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -849,8 +851,8 @@ module Google
849
851
  .constants
850
852
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
851
853
  .first
852
- package_module = Google::Cloud::Compute.const_get package_name
853
- package_module.const_get(:Interconnects).const_get(:Rest).const_get(:Client).new(&block)
854
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Interconnects)
855
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
854
856
  end
855
857
 
856
858
  ##
@@ -858,8 +860,8 @@ module Google
858
860
  #
859
861
  # By default, this returns an instance of
860
862
  # [Google::Cloud::Compute::V1::LicenseCodes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/LicenseCodes/Rest/Client.html)
861
- # for version V1 of the API.
862
- # However, you can specify specify a different API version by passing it in the
863
+ # for a REST client for version V1 of the API.
864
+ # However, you can specify a different API version by passing it in the
863
865
  # `version` parameter. If the LicenseCodes service is
864
866
  # supported by that API version, and the corresponding gem is available, the
865
867
  # appropriate versioned client will be returned.
@@ -870,7 +872,7 @@ module Google
870
872
  #
871
873
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
872
874
  # Defaults to `:v1`.
873
- # @return [LicenseCodes::Rest::Client] A client object for the specified version.
875
+ # @return [::Object] A client object for the specified version.
874
876
  #
875
877
  def self.license_codes version: :v1, &block
876
878
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -879,8 +881,8 @@ module Google
879
881
  .constants
880
882
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
881
883
  .first
882
- package_module = Google::Cloud::Compute.const_get package_name
883
- package_module.const_get(:LicenseCodes).const_get(:Rest).const_get(:Client).new(&block)
884
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:LicenseCodes)
885
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
884
886
  end
885
887
 
886
888
  ##
@@ -888,8 +890,8 @@ module Google
888
890
  #
889
891
  # By default, this returns an instance of
890
892
  # [Google::Cloud::Compute::V1::Licenses::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Licenses/Rest/Client.html)
891
- # for version V1 of the API.
892
- # However, you can specify specify a different API version by passing it in the
893
+ # for a REST client for version V1 of the API.
894
+ # However, you can specify a different API version by passing it in the
893
895
  # `version` parameter. If the Licenses service is
894
896
  # supported by that API version, and the corresponding gem is available, the
895
897
  # appropriate versioned client will be returned.
@@ -900,7 +902,7 @@ module Google
900
902
  #
901
903
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
902
904
  # Defaults to `:v1`.
903
- # @return [Licenses::Rest::Client] A client object for the specified version.
905
+ # @return [::Object] A client object for the specified version.
904
906
  #
905
907
  def self.licenses version: :v1, &block
906
908
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -909,8 +911,8 @@ module Google
909
911
  .constants
910
912
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
911
913
  .first
912
- package_module = Google::Cloud::Compute.const_get package_name
913
- package_module.const_get(:Licenses).const_get(:Rest).const_get(:Client).new(&block)
914
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Licenses)
915
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
914
916
  end
915
917
 
916
918
  ##
@@ -918,8 +920,8 @@ module Google
918
920
  #
919
921
  # By default, this returns an instance of
920
922
  # [Google::Cloud::Compute::V1::MachineImages::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/MachineImages/Rest/Client.html)
921
- # for version V1 of the API.
922
- # However, you can specify specify a different API version by passing it in the
923
+ # for a REST client for version V1 of the API.
924
+ # However, you can specify a different API version by passing it in the
923
925
  # `version` parameter. If the MachineImages service is
924
926
  # supported by that API version, and the corresponding gem is available, the
925
927
  # appropriate versioned client will be returned.
@@ -930,7 +932,7 @@ module Google
930
932
  #
931
933
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
932
934
  # Defaults to `:v1`.
933
- # @return [MachineImages::Rest::Client] A client object for the specified version.
935
+ # @return [::Object] A client object for the specified version.
934
936
  #
935
937
  def self.machine_images version: :v1, &block
936
938
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -939,8 +941,8 @@ module Google
939
941
  .constants
940
942
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
941
943
  .first
942
- package_module = Google::Cloud::Compute.const_get package_name
943
- package_module.const_get(:MachineImages).const_get(:Rest).const_get(:Client).new(&block)
944
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:MachineImages)
945
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
944
946
  end
945
947
 
946
948
  ##
@@ -948,8 +950,8 @@ module Google
948
950
  #
949
951
  # By default, this returns an instance of
950
952
  # [Google::Cloud::Compute::V1::MachineTypes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/MachineTypes/Rest/Client.html)
951
- # for version V1 of the API.
952
- # However, you can specify specify a different API version by passing it in the
953
+ # for a REST client for version V1 of the API.
954
+ # However, you can specify a different API version by passing it in the
953
955
  # `version` parameter. If the MachineTypes service is
954
956
  # supported by that API version, and the corresponding gem is available, the
955
957
  # appropriate versioned client will be returned.
@@ -960,7 +962,7 @@ module Google
960
962
  #
961
963
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
962
964
  # Defaults to `:v1`.
963
- # @return [MachineTypes::Rest::Client] A client object for the specified version.
965
+ # @return [::Object] A client object for the specified version.
964
966
  #
965
967
  def self.machine_types version: :v1, &block
966
968
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -969,8 +971,38 @@ module Google
969
971
  .constants
970
972
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
971
973
  .first
972
- package_module = Google::Cloud::Compute.const_get package_name
973
- package_module.const_get(:MachineTypes).const_get(:Rest).const_get(:Client).new(&block)
974
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:MachineTypes)
975
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
976
+ end
977
+
978
+ ##
979
+ # Create a new client object for NetworkAttachments.
980
+ #
981
+ # By default, this returns an instance of
982
+ # [Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkAttachments/Rest/Client.html)
983
+ # for a REST client for version V1 of the API.
984
+ # However, you can specify a different API version by passing it in the
985
+ # `version` parameter. If the NetworkAttachments service is
986
+ # supported by that API version, and the corresponding gem is available, the
987
+ # appropriate versioned client will be returned.
988
+ #
989
+ # ## About NetworkAttachments
990
+ #
991
+ # The NetworkAttachments API.
992
+ #
993
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
994
+ # Defaults to `:v1`.
995
+ # @return [::Object] A client object for the specified version.
996
+ #
997
+ def self.network_attachments version: :v1, &block
998
+ require "google/cloud/compute/#{version.to_s.downcase}"
999
+
1000
+ package_name = Google::Cloud::Compute
1001
+ .constants
1002
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1003
+ .first
1004
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkAttachments)
1005
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
974
1006
  end
975
1007
 
976
1008
  ##
@@ -978,8 +1010,8 @@ module Google
978
1010
  #
979
1011
  # By default, this returns an instance of
980
1012
  # [Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkEdgeSecurityServices/Rest/Client.html)
981
- # for version V1 of the API.
982
- # However, you can specify specify a different API version by passing it in the
1013
+ # for a REST client for version V1 of the API.
1014
+ # However, you can specify a different API version by passing it in the
983
1015
  # `version` parameter. If the NetworkEdgeSecurityServices service is
984
1016
  # supported by that API version, and the corresponding gem is available, the
985
1017
  # appropriate versioned client will be returned.
@@ -990,7 +1022,7 @@ module Google
990
1022
  #
991
1023
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
992
1024
  # Defaults to `:v1`.
993
- # @return [NetworkEdgeSecurityServices::Rest::Client] A client object for the specified version.
1025
+ # @return [::Object] A client object for the specified version.
994
1026
  #
995
1027
  def self.network_edge_security_services version: :v1, &block
996
1028
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -999,8 +1031,8 @@ module Google
999
1031
  .constants
1000
1032
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1001
1033
  .first
1002
- package_module = Google::Cloud::Compute.const_get package_name
1003
- package_module.const_get(:NetworkEdgeSecurityServices).const_get(:Rest).const_get(:Client).new(&block)
1034
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkEdgeSecurityServices)
1035
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1004
1036
  end
1005
1037
 
1006
1038
  ##
@@ -1008,8 +1040,8 @@ module Google
1008
1040
  #
1009
1041
  # By default, this returns an instance of
1010
1042
  # [Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkEndpointGroups/Rest/Client.html)
1011
- # for version V1 of the API.
1012
- # However, you can specify specify a different API version by passing it in the
1043
+ # for a REST client for version V1 of the API.
1044
+ # However, you can specify a different API version by passing it in the
1013
1045
  # `version` parameter. If the NetworkEndpointGroups service is
1014
1046
  # supported by that API version, and the corresponding gem is available, the
1015
1047
  # appropriate versioned client will be returned.
@@ -1020,7 +1052,7 @@ module Google
1020
1052
  #
1021
1053
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1022
1054
  # Defaults to `:v1`.
1023
- # @return [NetworkEndpointGroups::Rest::Client] A client object for the specified version.
1055
+ # @return [::Object] A client object for the specified version.
1024
1056
  #
1025
1057
  def self.network_endpoint_groups version: :v1, &block
1026
1058
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1029,8 +1061,8 @@ module Google
1029
1061
  .constants
1030
1062
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1031
1063
  .first
1032
- package_module = Google::Cloud::Compute.const_get package_name
1033
- package_module.const_get(:NetworkEndpointGroups).const_get(:Rest).const_get(:Client).new(&block)
1064
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkEndpointGroups)
1065
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1034
1066
  end
1035
1067
 
1036
1068
  ##
@@ -1038,8 +1070,8 @@ module Google
1038
1070
  #
1039
1071
  # By default, this returns an instance of
1040
1072
  # [Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkFirewallPolicies/Rest/Client.html)
1041
- # for version V1 of the API.
1042
- # However, you can specify specify a different API version by passing it in the
1073
+ # for a REST client for version V1 of the API.
1074
+ # However, you can specify a different API version by passing it in the
1043
1075
  # `version` parameter. If the NetworkFirewallPolicies service is
1044
1076
  # supported by that API version, and the corresponding gem is available, the
1045
1077
  # appropriate versioned client will be returned.
@@ -1050,7 +1082,7 @@ module Google
1050
1082
  #
1051
1083
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1052
1084
  # Defaults to `:v1`.
1053
- # @return [NetworkFirewallPolicies::Rest::Client] A client object for the specified version.
1085
+ # @return [::Object] A client object for the specified version.
1054
1086
  #
1055
1087
  def self.network_firewall_policies version: :v1, &block
1056
1088
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1059,8 +1091,8 @@ module Google
1059
1091
  .constants
1060
1092
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1061
1093
  .first
1062
- package_module = Google::Cloud::Compute.const_get package_name
1063
- package_module.const_get(:NetworkFirewallPolicies).const_get(:Rest).const_get(:Client).new(&block)
1094
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkFirewallPolicies)
1095
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1064
1096
  end
1065
1097
 
1066
1098
  ##
@@ -1068,8 +1100,8 @@ module Google
1068
1100
  #
1069
1101
  # By default, this returns an instance of
1070
1102
  # [Google::Cloud::Compute::V1::Networks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Networks/Rest/Client.html)
1071
- # for version V1 of the API.
1072
- # However, you can specify specify a different API version by passing it in the
1103
+ # for a REST client for version V1 of the API.
1104
+ # However, you can specify a different API version by passing it in the
1073
1105
  # `version` parameter. If the Networks service is
1074
1106
  # supported by that API version, and the corresponding gem is available, the
1075
1107
  # appropriate versioned client will be returned.
@@ -1080,7 +1112,7 @@ module Google
1080
1112
  #
1081
1113
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1082
1114
  # Defaults to `:v1`.
1083
- # @return [Networks::Rest::Client] A client object for the specified version.
1115
+ # @return [::Object] A client object for the specified version.
1084
1116
  #
1085
1117
  def self.networks version: :v1, &block
1086
1118
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1089,8 +1121,8 @@ module Google
1089
1121
  .constants
1090
1122
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1091
1123
  .first
1092
- package_module = Google::Cloud::Compute.const_get package_name
1093
- package_module.const_get(:Networks).const_get(:Rest).const_get(:Client).new(&block)
1124
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Networks)
1125
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1094
1126
  end
1095
1127
 
1096
1128
  ##
@@ -1098,8 +1130,8 @@ module Google
1098
1130
  #
1099
1131
  # By default, this returns an instance of
1100
1132
  # [Google::Cloud::Compute::V1::NodeGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NodeGroups/Rest/Client.html)
1101
- # for version V1 of the API.
1102
- # However, you can specify specify a different API version by passing it in the
1133
+ # for a REST client for version V1 of the API.
1134
+ # However, you can specify a different API version by passing it in the
1103
1135
  # `version` parameter. If the NodeGroups service is
1104
1136
  # supported by that API version, and the corresponding gem is available, the
1105
1137
  # appropriate versioned client will be returned.
@@ -1110,7 +1142,7 @@ module Google
1110
1142
  #
1111
1143
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1112
1144
  # Defaults to `:v1`.
1113
- # @return [NodeGroups::Rest::Client] A client object for the specified version.
1145
+ # @return [::Object] A client object for the specified version.
1114
1146
  #
1115
1147
  def self.node_groups version: :v1, &block
1116
1148
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1119,8 +1151,8 @@ module Google
1119
1151
  .constants
1120
1152
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1121
1153
  .first
1122
- package_module = Google::Cloud::Compute.const_get package_name
1123
- package_module.const_get(:NodeGroups).const_get(:Rest).const_get(:Client).new(&block)
1154
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeGroups)
1155
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1124
1156
  end
1125
1157
 
1126
1158
  ##
@@ -1128,8 +1160,8 @@ module Google
1128
1160
  #
1129
1161
  # By default, this returns an instance of
1130
1162
  # [Google::Cloud::Compute::V1::NodeTemplates::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NodeTemplates/Rest/Client.html)
1131
- # for version V1 of the API.
1132
- # However, you can specify specify a different API version by passing it in the
1163
+ # for a REST client for version V1 of the API.
1164
+ # However, you can specify a different API version by passing it in the
1133
1165
  # `version` parameter. If the NodeTemplates service is
1134
1166
  # supported by that API version, and the corresponding gem is available, the
1135
1167
  # appropriate versioned client will be returned.
@@ -1140,7 +1172,7 @@ module Google
1140
1172
  #
1141
1173
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1142
1174
  # Defaults to `:v1`.
1143
- # @return [NodeTemplates::Rest::Client] A client object for the specified version.
1175
+ # @return [::Object] A client object for the specified version.
1144
1176
  #
1145
1177
  def self.node_templates version: :v1, &block
1146
1178
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1149,8 +1181,8 @@ module Google
1149
1181
  .constants
1150
1182
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1151
1183
  .first
1152
- package_module = Google::Cloud::Compute.const_get package_name
1153
- package_module.const_get(:NodeTemplates).const_get(:Rest).const_get(:Client).new(&block)
1184
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeTemplates)
1185
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1154
1186
  end
1155
1187
 
1156
1188
  ##
@@ -1158,8 +1190,8 @@ module Google
1158
1190
  #
1159
1191
  # By default, this returns an instance of
1160
1192
  # [Google::Cloud::Compute::V1::NodeTypes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NodeTypes/Rest/Client.html)
1161
- # for version V1 of the API.
1162
- # However, you can specify specify a different API version by passing it in the
1193
+ # for a REST client for version V1 of the API.
1194
+ # However, you can specify a different API version by passing it in the
1163
1195
  # `version` parameter. If the NodeTypes service is
1164
1196
  # supported by that API version, and the corresponding gem is available, the
1165
1197
  # appropriate versioned client will be returned.
@@ -1170,7 +1202,7 @@ module Google
1170
1202
  #
1171
1203
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1172
1204
  # Defaults to `:v1`.
1173
- # @return [NodeTypes::Rest::Client] A client object for the specified version.
1205
+ # @return [::Object] A client object for the specified version.
1174
1206
  #
1175
1207
  def self.node_types version: :v1, &block
1176
1208
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1179,8 +1211,8 @@ module Google
1179
1211
  .constants
1180
1212
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1181
1213
  .first
1182
- package_module = Google::Cloud::Compute.const_get package_name
1183
- package_module.const_get(:NodeTypes).const_get(:Rest).const_get(:Client).new(&block)
1214
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeTypes)
1215
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1184
1216
  end
1185
1217
 
1186
1218
  ##
@@ -1188,8 +1220,8 @@ module Google
1188
1220
  #
1189
1221
  # By default, this returns an instance of
1190
1222
  # [Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/PacketMirrorings/Rest/Client.html)
1191
- # for version V1 of the API.
1192
- # However, you can specify specify a different API version by passing it in the
1223
+ # for a REST client for version V1 of the API.
1224
+ # However, you can specify a different API version by passing it in the
1193
1225
  # `version` parameter. If the PacketMirrorings service is
1194
1226
  # supported by that API version, and the corresponding gem is available, the
1195
1227
  # appropriate versioned client will be returned.
@@ -1200,7 +1232,7 @@ module Google
1200
1232
  #
1201
1233
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1202
1234
  # Defaults to `:v1`.
1203
- # @return [PacketMirrorings::Rest::Client] A client object for the specified version.
1235
+ # @return [::Object] A client object for the specified version.
1204
1236
  #
1205
1237
  def self.packet_mirrorings version: :v1, &block
1206
1238
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1209,8 +1241,8 @@ module Google
1209
1241
  .constants
1210
1242
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1211
1243
  .first
1212
- package_module = Google::Cloud::Compute.const_get package_name
1213
- package_module.const_get(:PacketMirrorings).const_get(:Rest).const_get(:Client).new(&block)
1244
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PacketMirrorings)
1245
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1214
1246
  end
1215
1247
 
1216
1248
  ##
@@ -1218,8 +1250,8 @@ module Google
1218
1250
  #
1219
1251
  # By default, this returns an instance of
1220
1252
  # [Google::Cloud::Compute::V1::Projects::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Projects/Rest/Client.html)
1221
- # for version V1 of the API.
1222
- # However, you can specify specify a different API version by passing it in the
1253
+ # for a REST client for version V1 of the API.
1254
+ # However, you can specify a different API version by passing it in the
1223
1255
  # `version` parameter. If the Projects service is
1224
1256
  # supported by that API version, and the corresponding gem is available, the
1225
1257
  # appropriate versioned client will be returned.
@@ -1230,7 +1262,7 @@ module Google
1230
1262
  #
1231
1263
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1232
1264
  # Defaults to `:v1`.
1233
- # @return [Projects::Rest::Client] A client object for the specified version.
1265
+ # @return [::Object] A client object for the specified version.
1234
1266
  #
1235
1267
  def self.projects version: :v1, &block
1236
1268
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1239,8 +1271,8 @@ module Google
1239
1271
  .constants
1240
1272
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1241
1273
  .first
1242
- package_module = Google::Cloud::Compute.const_get package_name
1243
- package_module.const_get(:Projects).const_get(:Rest).const_get(:Client).new(&block)
1274
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Projects)
1275
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1244
1276
  end
1245
1277
 
1246
1278
  ##
@@ -1248,8 +1280,8 @@ module Google
1248
1280
  #
1249
1281
  # By default, this returns an instance of
1250
1282
  # [Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/PublicAdvertisedPrefixes/Rest/Client.html)
1251
- # for version V1 of the API.
1252
- # However, you can specify specify a different API version by passing it in the
1283
+ # for a REST client for version V1 of the API.
1284
+ # However, you can specify a different API version by passing it in the
1253
1285
  # `version` parameter. If the PublicAdvertisedPrefixes service is
1254
1286
  # supported by that API version, and the corresponding gem is available, the
1255
1287
  # appropriate versioned client will be returned.
@@ -1260,7 +1292,7 @@ module Google
1260
1292
  #
1261
1293
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1262
1294
  # Defaults to `:v1`.
1263
- # @return [PublicAdvertisedPrefixes::Rest::Client] A client object for the specified version.
1295
+ # @return [::Object] A client object for the specified version.
1264
1296
  #
1265
1297
  def self.public_advertised_prefixes version: :v1, &block
1266
1298
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1269,8 +1301,8 @@ module Google
1269
1301
  .constants
1270
1302
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1271
1303
  .first
1272
- package_module = Google::Cloud::Compute.const_get package_name
1273
- package_module.const_get(:PublicAdvertisedPrefixes).const_get(:Rest).const_get(:Client).new(&block)
1304
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PublicAdvertisedPrefixes)
1305
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1274
1306
  end
1275
1307
 
1276
1308
  ##
@@ -1278,8 +1310,8 @@ module Google
1278
1310
  #
1279
1311
  # By default, this returns an instance of
1280
1312
  # [Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/PublicDelegatedPrefixes/Rest/Client.html)
1281
- # for version V1 of the API.
1282
- # However, you can specify specify a different API version by passing it in the
1313
+ # for a REST client for version V1 of the API.
1314
+ # However, you can specify a different API version by passing it in the
1283
1315
  # `version` parameter. If the PublicDelegatedPrefixes service is
1284
1316
  # supported by that API version, and the corresponding gem is available, the
1285
1317
  # appropriate versioned client will be returned.
@@ -1290,7 +1322,7 @@ module Google
1290
1322
  #
1291
1323
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1292
1324
  # Defaults to `:v1`.
1293
- # @return [PublicDelegatedPrefixes::Rest::Client] A client object for the specified version.
1325
+ # @return [::Object] A client object for the specified version.
1294
1326
  #
1295
1327
  def self.public_delegated_prefixes version: :v1, &block
1296
1328
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1299,8 +1331,8 @@ module Google
1299
1331
  .constants
1300
1332
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1301
1333
  .first
1302
- package_module = Google::Cloud::Compute.const_get package_name
1303
- package_module.const_get(:PublicDelegatedPrefixes).const_get(:Rest).const_get(:Client).new(&block)
1334
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PublicDelegatedPrefixes)
1335
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1304
1336
  end
1305
1337
 
1306
1338
  ##
@@ -1308,8 +1340,8 @@ module Google
1308
1340
  #
1309
1341
  # By default, this returns an instance of
1310
1342
  # [Google::Cloud::Compute::V1::RegionAutoscalers::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionAutoscalers/Rest/Client.html)
1311
- # for version V1 of the API.
1312
- # However, you can specify specify a different API version by passing it in the
1343
+ # for a REST client for version V1 of the API.
1344
+ # However, you can specify a different API version by passing it in the
1313
1345
  # `version` parameter. If the RegionAutoscalers service is
1314
1346
  # supported by that API version, and the corresponding gem is available, the
1315
1347
  # appropriate versioned client will be returned.
@@ -1320,7 +1352,7 @@ module Google
1320
1352
  #
1321
1353
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1322
1354
  # Defaults to `:v1`.
1323
- # @return [RegionAutoscalers::Rest::Client] A client object for the specified version.
1355
+ # @return [::Object] A client object for the specified version.
1324
1356
  #
1325
1357
  def self.region_autoscalers version: :v1, &block
1326
1358
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1329,8 +1361,8 @@ module Google
1329
1361
  .constants
1330
1362
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1331
1363
  .first
1332
- package_module = Google::Cloud::Compute.const_get package_name
1333
- package_module.const_get(:RegionAutoscalers).const_get(:Rest).const_get(:Client).new(&block)
1364
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionAutoscalers)
1365
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1334
1366
  end
1335
1367
 
1336
1368
  ##
@@ -1338,8 +1370,8 @@ module Google
1338
1370
  #
1339
1371
  # By default, this returns an instance of
1340
1372
  # [Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionBackendServices/Rest/Client.html)
1341
- # for version V1 of the API.
1342
- # However, you can specify specify a different API version by passing it in the
1373
+ # for a REST client for version V1 of the API.
1374
+ # However, you can specify a different API version by passing it in the
1343
1375
  # `version` parameter. If the RegionBackendServices service is
1344
1376
  # supported by that API version, and the corresponding gem is available, the
1345
1377
  # appropriate versioned client will be returned.
@@ -1350,7 +1382,7 @@ module Google
1350
1382
  #
1351
1383
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1352
1384
  # Defaults to `:v1`.
1353
- # @return [RegionBackendServices::Rest::Client] A client object for the specified version.
1385
+ # @return [::Object] A client object for the specified version.
1354
1386
  #
1355
1387
  def self.region_backend_services version: :v1, &block
1356
1388
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1359,8 +1391,8 @@ module Google
1359
1391
  .constants
1360
1392
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1361
1393
  .first
1362
- package_module = Google::Cloud::Compute.const_get package_name
1363
- package_module.const_get(:RegionBackendServices).const_get(:Rest).const_get(:Client).new(&block)
1394
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionBackendServices)
1395
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1364
1396
  end
1365
1397
 
1366
1398
  ##
@@ -1368,8 +1400,8 @@ module Google
1368
1400
  #
1369
1401
  # By default, this returns an instance of
1370
1402
  # [Google::Cloud::Compute::V1::RegionCommitments::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionCommitments/Rest/Client.html)
1371
- # for version V1 of the API.
1372
- # However, you can specify specify a different API version by passing it in the
1403
+ # for a REST client for version V1 of the API.
1404
+ # However, you can specify a different API version by passing it in the
1373
1405
  # `version` parameter. If the RegionCommitments service is
1374
1406
  # supported by that API version, and the corresponding gem is available, the
1375
1407
  # appropriate versioned client will be returned.
@@ -1380,7 +1412,7 @@ module Google
1380
1412
  #
1381
1413
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1382
1414
  # Defaults to `:v1`.
1383
- # @return [RegionCommitments::Rest::Client] A client object for the specified version.
1415
+ # @return [::Object] A client object for the specified version.
1384
1416
  #
1385
1417
  def self.region_commitments version: :v1, &block
1386
1418
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1389,8 +1421,8 @@ module Google
1389
1421
  .constants
1390
1422
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1391
1423
  .first
1392
- package_module = Google::Cloud::Compute.const_get package_name
1393
- package_module.const_get(:RegionCommitments).const_get(:Rest).const_get(:Client).new(&block)
1424
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionCommitments)
1425
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1394
1426
  end
1395
1427
 
1396
1428
  ##
@@ -1398,8 +1430,8 @@ module Google
1398
1430
  #
1399
1431
  # By default, this returns an instance of
1400
1432
  # [Google::Cloud::Compute::V1::RegionDiskTypes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionDiskTypes/Rest/Client.html)
1401
- # for version V1 of the API.
1402
- # However, you can specify specify a different API version by passing it in the
1433
+ # for a REST client for version V1 of the API.
1434
+ # However, you can specify a different API version by passing it in the
1403
1435
  # `version` parameter. If the RegionDiskTypes service is
1404
1436
  # supported by that API version, and the corresponding gem is available, the
1405
1437
  # appropriate versioned client will be returned.
@@ -1410,7 +1442,7 @@ module Google
1410
1442
  #
1411
1443
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1412
1444
  # Defaults to `:v1`.
1413
- # @return [RegionDiskTypes::Rest::Client] A client object for the specified version.
1445
+ # @return [::Object] A client object for the specified version.
1414
1446
  #
1415
1447
  def self.region_disk_types version: :v1, &block
1416
1448
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1419,8 +1451,8 @@ module Google
1419
1451
  .constants
1420
1452
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1421
1453
  .first
1422
- package_module = Google::Cloud::Compute.const_get package_name
1423
- package_module.const_get(:RegionDiskTypes).const_get(:Rest).const_get(:Client).new(&block)
1454
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionDiskTypes)
1455
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1424
1456
  end
1425
1457
 
1426
1458
  ##
@@ -1428,8 +1460,8 @@ module Google
1428
1460
  #
1429
1461
  # By default, this returns an instance of
1430
1462
  # [Google::Cloud::Compute::V1::RegionDisks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionDisks/Rest/Client.html)
1431
- # for version V1 of the API.
1432
- # However, you can specify specify a different API version by passing it in the
1463
+ # for a REST client for version V1 of the API.
1464
+ # However, you can specify a different API version by passing it in the
1433
1465
  # `version` parameter. If the RegionDisks service is
1434
1466
  # supported by that API version, and the corresponding gem is available, the
1435
1467
  # appropriate versioned client will be returned.
@@ -1440,7 +1472,7 @@ module Google
1440
1472
  #
1441
1473
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1442
1474
  # Defaults to `:v1`.
1443
- # @return [RegionDisks::Rest::Client] A client object for the specified version.
1475
+ # @return [::Object] A client object for the specified version.
1444
1476
  #
1445
1477
  def self.region_disks version: :v1, &block
1446
1478
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1449,8 +1481,8 @@ module Google
1449
1481
  .constants
1450
1482
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1451
1483
  .first
1452
- package_module = Google::Cloud::Compute.const_get package_name
1453
- package_module.const_get(:RegionDisks).const_get(:Rest).const_get(:Client).new(&block)
1484
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionDisks)
1485
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1454
1486
  end
1455
1487
 
1456
1488
  ##
@@ -1458,8 +1490,8 @@ module Google
1458
1490
  #
1459
1491
  # By default, this returns an instance of
1460
1492
  # [Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionHealthCheckServices/Rest/Client.html)
1461
- # for version V1 of the API.
1462
- # However, you can specify specify a different API version by passing it in the
1493
+ # for a REST client for version V1 of the API.
1494
+ # However, you can specify a different API version by passing it in the
1463
1495
  # `version` parameter. If the RegionHealthCheckServices service is
1464
1496
  # supported by that API version, and the corresponding gem is available, the
1465
1497
  # appropriate versioned client will be returned.
@@ -1470,7 +1502,7 @@ module Google
1470
1502
  #
1471
1503
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1472
1504
  # Defaults to `:v1`.
1473
- # @return [RegionHealthCheckServices::Rest::Client] A client object for the specified version.
1505
+ # @return [::Object] A client object for the specified version.
1474
1506
  #
1475
1507
  def self.region_health_check_services version: :v1, &block
1476
1508
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1479,8 +1511,8 @@ module Google
1479
1511
  .constants
1480
1512
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1481
1513
  .first
1482
- package_module = Google::Cloud::Compute.const_get package_name
1483
- package_module.const_get(:RegionHealthCheckServices).const_get(:Rest).const_get(:Client).new(&block)
1514
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthCheckServices)
1515
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1484
1516
  end
1485
1517
 
1486
1518
  ##
@@ -1488,8 +1520,8 @@ module Google
1488
1520
  #
1489
1521
  # By default, this returns an instance of
1490
1522
  # [Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionHealthChecks/Rest/Client.html)
1491
- # for version V1 of the API.
1492
- # However, you can specify specify a different API version by passing it in the
1523
+ # for a REST client for version V1 of the API.
1524
+ # However, you can specify a different API version by passing it in the
1493
1525
  # `version` parameter. If the RegionHealthChecks service is
1494
1526
  # supported by that API version, and the corresponding gem is available, the
1495
1527
  # appropriate versioned client will be returned.
@@ -1500,7 +1532,7 @@ module Google
1500
1532
  #
1501
1533
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1502
1534
  # Defaults to `:v1`.
1503
- # @return [RegionHealthChecks::Rest::Client] A client object for the specified version.
1535
+ # @return [::Object] A client object for the specified version.
1504
1536
  #
1505
1537
  def self.region_health_checks version: :v1, &block
1506
1538
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1509,8 +1541,8 @@ module Google
1509
1541
  .constants
1510
1542
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1511
1543
  .first
1512
- package_module = Google::Cloud::Compute.const_get package_name
1513
- package_module.const_get(:RegionHealthChecks).const_get(:Rest).const_get(:Client).new(&block)
1544
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthChecks)
1545
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1514
1546
  end
1515
1547
 
1516
1548
  ##
@@ -1518,8 +1550,8 @@ module Google
1518
1550
  #
1519
1551
  # By default, this returns an instance of
1520
1552
  # [Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionInstanceGroupManagers/Rest/Client.html)
1521
- # for version V1 of the API.
1522
- # However, you can specify specify a different API version by passing it in the
1553
+ # for a REST client for version V1 of the API.
1554
+ # However, you can specify a different API version by passing it in the
1523
1555
  # `version` parameter. If the RegionInstanceGroupManagers service is
1524
1556
  # supported by that API version, and the corresponding gem is available, the
1525
1557
  # appropriate versioned client will be returned.
@@ -1530,7 +1562,7 @@ module Google
1530
1562
  #
1531
1563
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1532
1564
  # Defaults to `:v1`.
1533
- # @return [RegionInstanceGroupManagers::Rest::Client] A client object for the specified version.
1565
+ # @return [::Object] A client object for the specified version.
1534
1566
  #
1535
1567
  def self.region_instance_group_managers version: :v1, &block
1536
1568
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1539,8 +1571,8 @@ module Google
1539
1571
  .constants
1540
1572
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1541
1573
  .first
1542
- package_module = Google::Cloud::Compute.const_get package_name
1543
- package_module.const_get(:RegionInstanceGroupManagers).const_get(:Rest).const_get(:Client).new(&block)
1574
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroupManagers)
1575
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1544
1576
  end
1545
1577
 
1546
1578
  ##
@@ -1548,8 +1580,8 @@ module Google
1548
1580
  #
1549
1581
  # By default, this returns an instance of
1550
1582
  # [Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionInstanceGroups/Rest/Client.html)
1551
- # for version V1 of the API.
1552
- # However, you can specify specify a different API version by passing it in the
1583
+ # for a REST client for version V1 of the API.
1584
+ # However, you can specify a different API version by passing it in the
1553
1585
  # `version` parameter. If the RegionInstanceGroups service is
1554
1586
  # supported by that API version, and the corresponding gem is available, the
1555
1587
  # appropriate versioned client will be returned.
@@ -1560,7 +1592,7 @@ module Google
1560
1592
  #
1561
1593
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1562
1594
  # Defaults to `:v1`.
1563
- # @return [RegionInstanceGroups::Rest::Client] A client object for the specified version.
1595
+ # @return [::Object] A client object for the specified version.
1564
1596
  #
1565
1597
  def self.region_instance_groups version: :v1, &block
1566
1598
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1569,8 +1601,8 @@ module Google
1569
1601
  .constants
1570
1602
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1571
1603
  .first
1572
- package_module = Google::Cloud::Compute.const_get package_name
1573
- package_module.const_get(:RegionInstanceGroups).const_get(:Rest).const_get(:Client).new(&block)
1604
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroups)
1605
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1574
1606
  end
1575
1607
 
1576
1608
  ##
@@ -1578,8 +1610,8 @@ module Google
1578
1610
  #
1579
1611
  # By default, this returns an instance of
1580
1612
  # [Google::Cloud::Compute::V1::RegionInstances::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionInstances/Rest/Client.html)
1581
- # for version V1 of the API.
1582
- # However, you can specify specify a different API version by passing it in the
1613
+ # for a REST client for version V1 of the API.
1614
+ # However, you can specify a different API version by passing it in the
1583
1615
  # `version` parameter. If the RegionInstances service is
1584
1616
  # supported by that API version, and the corresponding gem is available, the
1585
1617
  # appropriate versioned client will be returned.
@@ -1590,7 +1622,7 @@ module Google
1590
1622
  #
1591
1623
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1592
1624
  # Defaults to `:v1`.
1593
- # @return [RegionInstances::Rest::Client] A client object for the specified version.
1625
+ # @return [::Object] A client object for the specified version.
1594
1626
  #
1595
1627
  def self.region_instances version: :v1, &block
1596
1628
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1599,8 +1631,8 @@ module Google
1599
1631
  .constants
1600
1632
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1601
1633
  .first
1602
- package_module = Google::Cloud::Compute.const_get package_name
1603
- package_module.const_get(:RegionInstances).const_get(:Rest).const_get(:Client).new(&block)
1634
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstances)
1635
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1604
1636
  end
1605
1637
 
1606
1638
  ##
@@ -1608,8 +1640,8 @@ module Google
1608
1640
  #
1609
1641
  # By default, this returns an instance of
1610
1642
  # [Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionNetworkEndpointGroups/Rest/Client.html)
1611
- # for version V1 of the API.
1612
- # However, you can specify specify a different API version by passing it in the
1643
+ # for a REST client for version V1 of the API.
1644
+ # However, you can specify a different API version by passing it in the
1613
1645
  # `version` parameter. If the RegionNetworkEndpointGroups service is
1614
1646
  # supported by that API version, and the corresponding gem is available, the
1615
1647
  # appropriate versioned client will be returned.
@@ -1620,7 +1652,7 @@ module Google
1620
1652
  #
1621
1653
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1622
1654
  # Defaults to `:v1`.
1623
- # @return [RegionNetworkEndpointGroups::Rest::Client] A client object for the specified version.
1655
+ # @return [::Object] A client object for the specified version.
1624
1656
  #
1625
1657
  def self.region_network_endpoint_groups version: :v1, &block
1626
1658
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1629,8 +1661,8 @@ module Google
1629
1661
  .constants
1630
1662
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1631
1663
  .first
1632
- package_module = Google::Cloud::Compute.const_get package_name
1633
- package_module.const_get(:RegionNetworkEndpointGroups).const_get(:Rest).const_get(:Client).new(&block)
1664
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNetworkEndpointGroups)
1665
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1634
1666
  end
1635
1667
 
1636
1668
  ##
@@ -1638,8 +1670,8 @@ module Google
1638
1670
  #
1639
1671
  # By default, this returns an instance of
1640
1672
  # [Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionNetworkFirewallPolicies/Rest/Client.html)
1641
- # for version V1 of the API.
1642
- # However, you can specify specify a different API version by passing it in the
1673
+ # for a REST client for version V1 of the API.
1674
+ # However, you can specify a different API version by passing it in the
1643
1675
  # `version` parameter. If the RegionNetworkFirewallPolicies service is
1644
1676
  # supported by that API version, and the corresponding gem is available, the
1645
1677
  # appropriate versioned client will be returned.
@@ -1650,7 +1682,7 @@ module Google
1650
1682
  #
1651
1683
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1652
1684
  # Defaults to `:v1`.
1653
- # @return [RegionNetworkFirewallPolicies::Rest::Client] A client object for the specified version.
1685
+ # @return [::Object] A client object for the specified version.
1654
1686
  #
1655
1687
  def self.region_network_firewall_policies version: :v1, &block
1656
1688
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1659,8 +1691,8 @@ module Google
1659
1691
  .constants
1660
1692
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1661
1693
  .first
1662
- package_module = Google::Cloud::Compute.const_get package_name
1663
- package_module.const_get(:RegionNetworkFirewallPolicies).const_get(:Rest).const_get(:Client).new(&block)
1694
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNetworkFirewallPolicies)
1695
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1664
1696
  end
1665
1697
 
1666
1698
  ##
@@ -1668,8 +1700,8 @@ module Google
1668
1700
  #
1669
1701
  # By default, this returns an instance of
1670
1702
  # [Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionNotificationEndpoints/Rest/Client.html)
1671
- # for version V1 of the API.
1672
- # However, you can specify specify a different API version by passing it in the
1703
+ # for a REST client for version V1 of the API.
1704
+ # However, you can specify a different API version by passing it in the
1673
1705
  # `version` parameter. If the RegionNotificationEndpoints service is
1674
1706
  # supported by that API version, and the corresponding gem is available, the
1675
1707
  # appropriate versioned client will be returned.
@@ -1680,7 +1712,7 @@ module Google
1680
1712
  #
1681
1713
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1682
1714
  # Defaults to `:v1`.
1683
- # @return [RegionNotificationEndpoints::Rest::Client] A client object for the specified version.
1715
+ # @return [::Object] A client object for the specified version.
1684
1716
  #
1685
1717
  def self.region_notification_endpoints version: :v1, &block
1686
1718
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1689,8 +1721,8 @@ module Google
1689
1721
  .constants
1690
1722
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1691
1723
  .first
1692
- package_module = Google::Cloud::Compute.const_get package_name
1693
- package_module.const_get(:RegionNotificationEndpoints).const_get(:Rest).const_get(:Client).new(&block)
1724
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNotificationEndpoints)
1725
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1694
1726
  end
1695
1727
 
1696
1728
  ##
@@ -1698,8 +1730,8 @@ module Google
1698
1730
  #
1699
1731
  # By default, this returns an instance of
1700
1732
  # [Google::Cloud::Compute::V1::RegionOperations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionOperations/Rest/Client.html)
1701
- # for version V1 of the API.
1702
- # However, you can specify specify a different API version by passing it in the
1733
+ # for a REST client for version V1 of the API.
1734
+ # However, you can specify a different API version by passing it in the
1703
1735
  # `version` parameter. If the RegionOperations service is
1704
1736
  # supported by that API version, and the corresponding gem is available, the
1705
1737
  # appropriate versioned client will be returned.
@@ -1710,7 +1742,7 @@ module Google
1710
1742
  #
1711
1743
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1712
1744
  # Defaults to `:v1`.
1713
- # @return [RegionOperations::Rest::Client] A client object for the specified version.
1745
+ # @return [::Object] A client object for the specified version.
1714
1746
  #
1715
1747
  def self.region_operations version: :v1, &block
1716
1748
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1719,8 +1751,8 @@ module Google
1719
1751
  .constants
1720
1752
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1721
1753
  .first
1722
- package_module = Google::Cloud::Compute.const_get package_name
1723
- package_module.const_get(:RegionOperations).const_get(:Rest).const_get(:Client).new(&block)
1754
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionOperations)
1755
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1724
1756
  end
1725
1757
 
1726
1758
  ##
@@ -1728,8 +1760,8 @@ module Google
1728
1760
  #
1729
1761
  # By default, this returns an instance of
1730
1762
  # [Google::Cloud::Compute::V1::RegionSecurityPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionSecurityPolicies/Rest/Client.html)
1731
- # for version V1 of the API.
1732
- # However, you can specify specify a different API version by passing it in the
1763
+ # for a REST client for version V1 of the API.
1764
+ # However, you can specify a different API version by passing it in the
1733
1765
  # `version` parameter. If the RegionSecurityPolicies service is
1734
1766
  # supported by that API version, and the corresponding gem is available, the
1735
1767
  # appropriate versioned client will be returned.
@@ -1740,7 +1772,7 @@ module Google
1740
1772
  #
1741
1773
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1742
1774
  # Defaults to `:v1`.
1743
- # @return [RegionSecurityPolicies::Rest::Client] A client object for the specified version.
1775
+ # @return [::Object] A client object for the specified version.
1744
1776
  #
1745
1777
  def self.region_security_policies version: :v1, &block
1746
1778
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1749,8 +1781,8 @@ module Google
1749
1781
  .constants
1750
1782
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1751
1783
  .first
1752
- package_module = Google::Cloud::Compute.const_get package_name
1753
- package_module.const_get(:RegionSecurityPolicies).const_get(:Rest).const_get(:Client).new(&block)
1784
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSecurityPolicies)
1785
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1754
1786
  end
1755
1787
 
1756
1788
  ##
@@ -1758,8 +1790,8 @@ module Google
1758
1790
  #
1759
1791
  # By default, this returns an instance of
1760
1792
  # [Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionSslCertificates/Rest/Client.html)
1761
- # for version V1 of the API.
1762
- # However, you can specify specify a different API version by passing it in the
1793
+ # for a REST client for version V1 of the API.
1794
+ # However, you can specify a different API version by passing it in the
1763
1795
  # `version` parameter. If the RegionSslCertificates service is
1764
1796
  # supported by that API version, and the corresponding gem is available, the
1765
1797
  # appropriate versioned client will be returned.
@@ -1770,7 +1802,7 @@ module Google
1770
1802
  #
1771
1803
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1772
1804
  # Defaults to `:v1`.
1773
- # @return [RegionSslCertificates::Rest::Client] A client object for the specified version.
1805
+ # @return [::Object] A client object for the specified version.
1774
1806
  #
1775
1807
  def self.region_ssl_certificates version: :v1, &block
1776
1808
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1779,8 +1811,8 @@ module Google
1779
1811
  .constants
1780
1812
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1781
1813
  .first
1782
- package_module = Google::Cloud::Compute.const_get package_name
1783
- package_module.const_get(:RegionSslCertificates).const_get(:Rest).const_get(:Client).new(&block)
1814
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSslCertificates)
1815
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1784
1816
  end
1785
1817
 
1786
1818
  ##
@@ -1788,8 +1820,8 @@ module Google
1788
1820
  #
1789
1821
  # By default, this returns an instance of
1790
1822
  # [Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionSslPolicies/Rest/Client.html)
1791
- # for version V1 of the API.
1792
- # However, you can specify specify a different API version by passing it in the
1823
+ # for a REST client for version V1 of the API.
1824
+ # However, you can specify a different API version by passing it in the
1793
1825
  # `version` parameter. If the RegionSslPolicies service is
1794
1826
  # supported by that API version, and the corresponding gem is available, the
1795
1827
  # appropriate versioned client will be returned.
@@ -1800,7 +1832,7 @@ module Google
1800
1832
  #
1801
1833
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1802
1834
  # Defaults to `:v1`.
1803
- # @return [RegionSslPolicies::Rest::Client] A client object for the specified version.
1835
+ # @return [::Object] A client object for the specified version.
1804
1836
  #
1805
1837
  def self.region_ssl_policies version: :v1, &block
1806
1838
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1809,8 +1841,8 @@ module Google
1809
1841
  .constants
1810
1842
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1811
1843
  .first
1812
- package_module = Google::Cloud::Compute.const_get package_name
1813
- package_module.const_get(:RegionSslPolicies).const_get(:Rest).const_get(:Client).new(&block)
1844
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSslPolicies)
1845
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1814
1846
  end
1815
1847
 
1816
1848
  ##
@@ -1818,8 +1850,8 @@ module Google
1818
1850
  #
1819
1851
  # By default, this returns an instance of
1820
1852
  # [Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionTargetHttpProxies/Rest/Client.html)
1821
- # for version V1 of the API.
1822
- # However, you can specify specify a different API version by passing it in the
1853
+ # for a REST client for version V1 of the API.
1854
+ # However, you can specify a different API version by passing it in the
1823
1855
  # `version` parameter. If the RegionTargetHttpProxies service is
1824
1856
  # supported by that API version, and the corresponding gem is available, the
1825
1857
  # appropriate versioned client will be returned.
@@ -1830,7 +1862,7 @@ module Google
1830
1862
  #
1831
1863
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1832
1864
  # Defaults to `:v1`.
1833
- # @return [RegionTargetHttpProxies::Rest::Client] A client object for the specified version.
1865
+ # @return [::Object] A client object for the specified version.
1834
1866
  #
1835
1867
  def self.region_target_http_proxies version: :v1, &block
1836
1868
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1839,8 +1871,8 @@ module Google
1839
1871
  .constants
1840
1872
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1841
1873
  .first
1842
- package_module = Google::Cloud::Compute.const_get package_name
1843
- package_module.const_get(:RegionTargetHttpProxies).const_get(:Rest).const_get(:Client).new(&block)
1874
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetHttpProxies)
1875
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1844
1876
  end
1845
1877
 
1846
1878
  ##
@@ -1848,8 +1880,8 @@ module Google
1848
1880
  #
1849
1881
  # By default, this returns an instance of
1850
1882
  # [Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionTargetHttpsProxies/Rest/Client.html)
1851
- # for version V1 of the API.
1852
- # However, you can specify specify a different API version by passing it in the
1883
+ # for a REST client for version V1 of the API.
1884
+ # However, you can specify a different API version by passing it in the
1853
1885
  # `version` parameter. If the RegionTargetHttpsProxies service is
1854
1886
  # supported by that API version, and the corresponding gem is available, the
1855
1887
  # appropriate versioned client will be returned.
@@ -1860,7 +1892,7 @@ module Google
1860
1892
  #
1861
1893
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1862
1894
  # Defaults to `:v1`.
1863
- # @return [RegionTargetHttpsProxies::Rest::Client] A client object for the specified version.
1895
+ # @return [::Object] A client object for the specified version.
1864
1896
  #
1865
1897
  def self.region_target_https_proxies version: :v1, &block
1866
1898
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1869,8 +1901,8 @@ module Google
1869
1901
  .constants
1870
1902
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1871
1903
  .first
1872
- package_module = Google::Cloud::Compute.const_get package_name
1873
- package_module.const_get(:RegionTargetHttpsProxies).const_get(:Rest).const_get(:Client).new(&block)
1904
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetHttpsProxies)
1905
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1874
1906
  end
1875
1907
 
1876
1908
  ##
@@ -1878,8 +1910,8 @@ module Google
1878
1910
  #
1879
1911
  # By default, this returns an instance of
1880
1912
  # [Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionTargetTcpProxies/Rest/Client.html)
1881
- # for version V1 of the API.
1882
- # However, you can specify specify a different API version by passing it in the
1913
+ # for a REST client for version V1 of the API.
1914
+ # However, you can specify a different API version by passing it in the
1883
1915
  # `version` parameter. If the RegionTargetTcpProxies service is
1884
1916
  # supported by that API version, and the corresponding gem is available, the
1885
1917
  # appropriate versioned client will be returned.
@@ -1890,7 +1922,7 @@ module Google
1890
1922
  #
1891
1923
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1892
1924
  # Defaults to `:v1`.
1893
- # @return [RegionTargetTcpProxies::Rest::Client] A client object for the specified version.
1925
+ # @return [::Object] A client object for the specified version.
1894
1926
  #
1895
1927
  def self.region_target_tcp_proxies version: :v1, &block
1896
1928
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1899,8 +1931,8 @@ module Google
1899
1931
  .constants
1900
1932
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1901
1933
  .first
1902
- package_module = Google::Cloud::Compute.const_get package_name
1903
- package_module.const_get(:RegionTargetTcpProxies).const_get(:Rest).const_get(:Client).new(&block)
1934
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetTcpProxies)
1935
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1904
1936
  end
1905
1937
 
1906
1938
  ##
@@ -1908,8 +1940,8 @@ module Google
1908
1940
  #
1909
1941
  # By default, this returns an instance of
1910
1942
  # [Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionUrlMaps/Rest/Client.html)
1911
- # for version V1 of the API.
1912
- # However, you can specify specify a different API version by passing it in the
1943
+ # for a REST client for version V1 of the API.
1944
+ # However, you can specify a different API version by passing it in the
1913
1945
  # `version` parameter. If the RegionUrlMaps service is
1914
1946
  # supported by that API version, and the corresponding gem is available, the
1915
1947
  # appropriate versioned client will be returned.
@@ -1920,7 +1952,7 @@ module Google
1920
1952
  #
1921
1953
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1922
1954
  # Defaults to `:v1`.
1923
- # @return [RegionUrlMaps::Rest::Client] A client object for the specified version.
1955
+ # @return [::Object] A client object for the specified version.
1924
1956
  #
1925
1957
  def self.region_url_maps version: :v1, &block
1926
1958
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1929,8 +1961,8 @@ module Google
1929
1961
  .constants
1930
1962
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1931
1963
  .first
1932
- package_module = Google::Cloud::Compute.const_get package_name
1933
- package_module.const_get(:RegionUrlMaps).const_get(:Rest).const_get(:Client).new(&block)
1964
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionUrlMaps)
1965
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1934
1966
  end
1935
1967
 
1936
1968
  ##
@@ -1938,8 +1970,8 @@ module Google
1938
1970
  #
1939
1971
  # By default, this returns an instance of
1940
1972
  # [Google::Cloud::Compute::V1::Regions::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Regions/Rest/Client.html)
1941
- # for version V1 of the API.
1942
- # However, you can specify specify a different API version by passing it in the
1973
+ # for a REST client for version V1 of the API.
1974
+ # However, you can specify a different API version by passing it in the
1943
1975
  # `version` parameter. If the Regions service is
1944
1976
  # supported by that API version, and the corresponding gem is available, the
1945
1977
  # appropriate versioned client will be returned.
@@ -1950,7 +1982,7 @@ module Google
1950
1982
  #
1951
1983
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1952
1984
  # Defaults to `:v1`.
1953
- # @return [Regions::Rest::Client] A client object for the specified version.
1985
+ # @return [::Object] A client object for the specified version.
1954
1986
  #
1955
1987
  def self.regions version: :v1, &block
1956
1988
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1959,8 +1991,8 @@ module Google
1959
1991
  .constants
1960
1992
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1961
1993
  .first
1962
- package_module = Google::Cloud::Compute.const_get package_name
1963
- package_module.const_get(:Regions).const_get(:Rest).const_get(:Client).new(&block)
1994
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Regions)
1995
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1964
1996
  end
1965
1997
 
1966
1998
  ##
@@ -1968,8 +2000,8 @@ module Google
1968
2000
  #
1969
2001
  # By default, this returns an instance of
1970
2002
  # [Google::Cloud::Compute::V1::Reservations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Reservations/Rest/Client.html)
1971
- # for version V1 of the API.
1972
- # However, you can specify specify a different API version by passing it in the
2003
+ # for a REST client for version V1 of the API.
2004
+ # However, you can specify a different API version by passing it in the
1973
2005
  # `version` parameter. If the Reservations service is
1974
2006
  # supported by that API version, and the corresponding gem is available, the
1975
2007
  # appropriate versioned client will be returned.
@@ -1980,7 +2012,7 @@ module Google
1980
2012
  #
1981
2013
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1982
2014
  # Defaults to `:v1`.
1983
- # @return [Reservations::Rest::Client] A client object for the specified version.
2015
+ # @return [::Object] A client object for the specified version.
1984
2016
  #
1985
2017
  def self.reservations version: :v1, &block
1986
2018
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -1989,8 +2021,8 @@ module Google
1989
2021
  .constants
1990
2022
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1991
2023
  .first
1992
- package_module = Google::Cloud::Compute.const_get package_name
1993
- package_module.const_get(:Reservations).const_get(:Rest).const_get(:Client).new(&block)
2024
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Reservations)
2025
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1994
2026
  end
1995
2027
 
1996
2028
  ##
@@ -1998,8 +2030,8 @@ module Google
1998
2030
  #
1999
2031
  # By default, this returns an instance of
2000
2032
  # [Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ResourcePolicies/Rest/Client.html)
2001
- # for version V1 of the API.
2002
- # However, you can specify specify a different API version by passing it in the
2033
+ # for a REST client for version V1 of the API.
2034
+ # However, you can specify a different API version by passing it in the
2003
2035
  # `version` parameter. If the ResourcePolicies service is
2004
2036
  # supported by that API version, and the corresponding gem is available, the
2005
2037
  # appropriate versioned client will be returned.
@@ -2010,7 +2042,7 @@ module Google
2010
2042
  #
2011
2043
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2012
2044
  # Defaults to `:v1`.
2013
- # @return [ResourcePolicies::Rest::Client] A client object for the specified version.
2045
+ # @return [::Object] A client object for the specified version.
2014
2046
  #
2015
2047
  def self.resource_policies version: :v1, &block
2016
2048
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2019,8 +2051,8 @@ module Google
2019
2051
  .constants
2020
2052
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2021
2053
  .first
2022
- package_module = Google::Cloud::Compute.const_get package_name
2023
- package_module.const_get(:ResourcePolicies).const_get(:Rest).const_get(:Client).new(&block)
2054
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ResourcePolicies)
2055
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2024
2056
  end
2025
2057
 
2026
2058
  ##
@@ -2028,8 +2060,8 @@ module Google
2028
2060
  #
2029
2061
  # By default, this returns an instance of
2030
2062
  # [Google::Cloud::Compute::V1::Routers::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Routers/Rest/Client.html)
2031
- # for version V1 of the API.
2032
- # However, you can specify specify a different API version by passing it in the
2063
+ # for a REST client for version V1 of the API.
2064
+ # However, you can specify a different API version by passing it in the
2033
2065
  # `version` parameter. If the Routers service is
2034
2066
  # supported by that API version, and the corresponding gem is available, the
2035
2067
  # appropriate versioned client will be returned.
@@ -2040,7 +2072,7 @@ module Google
2040
2072
  #
2041
2073
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2042
2074
  # Defaults to `:v1`.
2043
- # @return [Routers::Rest::Client] A client object for the specified version.
2075
+ # @return [::Object] A client object for the specified version.
2044
2076
  #
2045
2077
  def self.routers version: :v1, &block
2046
2078
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2049,8 +2081,8 @@ module Google
2049
2081
  .constants
2050
2082
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2051
2083
  .first
2052
- package_module = Google::Cloud::Compute.const_get package_name
2053
- package_module.const_get(:Routers).const_get(:Rest).const_get(:Client).new(&block)
2084
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Routers)
2085
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2054
2086
  end
2055
2087
 
2056
2088
  ##
@@ -2058,8 +2090,8 @@ module Google
2058
2090
  #
2059
2091
  # By default, this returns an instance of
2060
2092
  # [Google::Cloud::Compute::V1::Routes::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Routes/Rest/Client.html)
2061
- # for version V1 of the API.
2062
- # However, you can specify specify a different API version by passing it in the
2093
+ # for a REST client for version V1 of the API.
2094
+ # However, you can specify a different API version by passing it in the
2063
2095
  # `version` parameter. If the Routes service is
2064
2096
  # supported by that API version, and the corresponding gem is available, the
2065
2097
  # appropriate versioned client will be returned.
@@ -2070,7 +2102,7 @@ module Google
2070
2102
  #
2071
2103
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2072
2104
  # Defaults to `:v1`.
2073
- # @return [Routes::Rest::Client] A client object for the specified version.
2105
+ # @return [::Object] A client object for the specified version.
2074
2106
  #
2075
2107
  def self.routes version: :v1, &block
2076
2108
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2079,8 +2111,8 @@ module Google
2079
2111
  .constants
2080
2112
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2081
2113
  .first
2082
- package_module = Google::Cloud::Compute.const_get package_name
2083
- package_module.const_get(:Routes).const_get(:Rest).const_get(:Client).new(&block)
2114
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Routes)
2115
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2084
2116
  end
2085
2117
 
2086
2118
  ##
@@ -2088,8 +2120,8 @@ module Google
2088
2120
  #
2089
2121
  # By default, this returns an instance of
2090
2122
  # [Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/SecurityPolicies/Rest/Client.html)
2091
- # for version V1 of the API.
2092
- # However, you can specify specify a different API version by passing it in the
2123
+ # for a REST client for version V1 of the API.
2124
+ # However, you can specify a different API version by passing it in the
2093
2125
  # `version` parameter. If the SecurityPolicies service is
2094
2126
  # supported by that API version, and the corresponding gem is available, the
2095
2127
  # appropriate versioned client will be returned.
@@ -2100,7 +2132,7 @@ module Google
2100
2132
  #
2101
2133
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2102
2134
  # Defaults to `:v1`.
2103
- # @return [SecurityPolicies::Rest::Client] A client object for the specified version.
2135
+ # @return [::Object] A client object for the specified version.
2104
2136
  #
2105
2137
  def self.security_policies version: :v1, &block
2106
2138
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2109,8 +2141,8 @@ module Google
2109
2141
  .constants
2110
2142
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2111
2143
  .first
2112
- package_module = Google::Cloud::Compute.const_get package_name
2113
- package_module.const_get(:SecurityPolicies).const_get(:Rest).const_get(:Client).new(&block)
2144
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SecurityPolicies)
2145
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2114
2146
  end
2115
2147
 
2116
2148
  ##
@@ -2118,8 +2150,8 @@ module Google
2118
2150
  #
2119
2151
  # By default, this returns an instance of
2120
2152
  # [Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ServiceAttachments/Rest/Client.html)
2121
- # for version V1 of the API.
2122
- # However, you can specify specify a different API version by passing it in the
2153
+ # for a REST client for version V1 of the API.
2154
+ # However, you can specify a different API version by passing it in the
2123
2155
  # `version` parameter. If the ServiceAttachments service is
2124
2156
  # supported by that API version, and the corresponding gem is available, the
2125
2157
  # appropriate versioned client will be returned.
@@ -2130,7 +2162,7 @@ module Google
2130
2162
  #
2131
2163
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2132
2164
  # Defaults to `:v1`.
2133
- # @return [ServiceAttachments::Rest::Client] A client object for the specified version.
2165
+ # @return [::Object] A client object for the specified version.
2134
2166
  #
2135
2167
  def self.service_attachments version: :v1, &block
2136
2168
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2139,8 +2171,8 @@ module Google
2139
2171
  .constants
2140
2172
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2141
2173
  .first
2142
- package_module = Google::Cloud::Compute.const_get package_name
2143
- package_module.const_get(:ServiceAttachments).const_get(:Rest).const_get(:Client).new(&block)
2174
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ServiceAttachments)
2175
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2144
2176
  end
2145
2177
 
2146
2178
  ##
@@ -2148,8 +2180,8 @@ module Google
2148
2180
  #
2149
2181
  # By default, this returns an instance of
2150
2182
  # [Google::Cloud::Compute::V1::Snapshots::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Snapshots/Rest/Client.html)
2151
- # for version V1 of the API.
2152
- # However, you can specify specify a different API version by passing it in the
2183
+ # for a REST client for version V1 of the API.
2184
+ # However, you can specify a different API version by passing it in the
2153
2185
  # `version` parameter. If the Snapshots service is
2154
2186
  # supported by that API version, and the corresponding gem is available, the
2155
2187
  # appropriate versioned client will be returned.
@@ -2160,7 +2192,7 @@ module Google
2160
2192
  #
2161
2193
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2162
2194
  # Defaults to `:v1`.
2163
- # @return [Snapshots::Rest::Client] A client object for the specified version.
2195
+ # @return [::Object] A client object for the specified version.
2164
2196
  #
2165
2197
  def self.snapshots version: :v1, &block
2166
2198
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2169,8 +2201,8 @@ module Google
2169
2201
  .constants
2170
2202
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2171
2203
  .first
2172
- package_module = Google::Cloud::Compute.const_get package_name
2173
- package_module.const_get(:Snapshots).const_get(:Rest).const_get(:Client).new(&block)
2204
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Snapshots)
2205
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2174
2206
  end
2175
2207
 
2176
2208
  ##
@@ -2178,8 +2210,8 @@ module Google
2178
2210
  #
2179
2211
  # By default, this returns an instance of
2180
2212
  # [Google::Cloud::Compute::V1::SslCertificates::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/SslCertificates/Rest/Client.html)
2181
- # for version V1 of the API.
2182
- # However, you can specify specify a different API version by passing it in the
2213
+ # for a REST client for version V1 of the API.
2214
+ # However, you can specify a different API version by passing it in the
2183
2215
  # `version` parameter. If the SslCertificates service is
2184
2216
  # supported by that API version, and the corresponding gem is available, the
2185
2217
  # appropriate versioned client will be returned.
@@ -2190,7 +2222,7 @@ module Google
2190
2222
  #
2191
2223
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2192
2224
  # Defaults to `:v1`.
2193
- # @return [SslCertificates::Rest::Client] A client object for the specified version.
2225
+ # @return [::Object] A client object for the specified version.
2194
2226
  #
2195
2227
  def self.ssl_certificates version: :v1, &block
2196
2228
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2199,8 +2231,8 @@ module Google
2199
2231
  .constants
2200
2232
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2201
2233
  .first
2202
- package_module = Google::Cloud::Compute.const_get package_name
2203
- package_module.const_get(:SslCertificates).const_get(:Rest).const_get(:Client).new(&block)
2234
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SslCertificates)
2235
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2204
2236
  end
2205
2237
 
2206
2238
  ##
@@ -2208,8 +2240,8 @@ module Google
2208
2240
  #
2209
2241
  # By default, this returns an instance of
2210
2242
  # [Google::Cloud::Compute::V1::SslPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/SslPolicies/Rest/Client.html)
2211
- # for version V1 of the API.
2212
- # However, you can specify specify a different API version by passing it in the
2243
+ # for a REST client for version V1 of the API.
2244
+ # However, you can specify a different API version by passing it in the
2213
2245
  # `version` parameter. If the SslPolicies service is
2214
2246
  # supported by that API version, and the corresponding gem is available, the
2215
2247
  # appropriate versioned client will be returned.
@@ -2220,7 +2252,7 @@ module Google
2220
2252
  #
2221
2253
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2222
2254
  # Defaults to `:v1`.
2223
- # @return [SslPolicies::Rest::Client] A client object for the specified version.
2255
+ # @return [::Object] A client object for the specified version.
2224
2256
  #
2225
2257
  def self.ssl_policies version: :v1, &block
2226
2258
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2229,8 +2261,8 @@ module Google
2229
2261
  .constants
2230
2262
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2231
2263
  .first
2232
- package_module = Google::Cloud::Compute.const_get package_name
2233
- package_module.const_get(:SslPolicies).const_get(:Rest).const_get(:Client).new(&block)
2264
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SslPolicies)
2265
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2234
2266
  end
2235
2267
 
2236
2268
  ##
@@ -2238,8 +2270,8 @@ module Google
2238
2270
  #
2239
2271
  # By default, this returns an instance of
2240
2272
  # [Google::Cloud::Compute::V1::Subnetworks::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Subnetworks/Rest/Client.html)
2241
- # for version V1 of the API.
2242
- # However, you can specify specify a different API version by passing it in the
2273
+ # for a REST client for version V1 of the API.
2274
+ # However, you can specify a different API version by passing it in the
2243
2275
  # `version` parameter. If the Subnetworks service is
2244
2276
  # supported by that API version, and the corresponding gem is available, the
2245
2277
  # appropriate versioned client will be returned.
@@ -2250,7 +2282,7 @@ module Google
2250
2282
  #
2251
2283
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2252
2284
  # Defaults to `:v1`.
2253
- # @return [Subnetworks::Rest::Client] A client object for the specified version.
2285
+ # @return [::Object] A client object for the specified version.
2254
2286
  #
2255
2287
  def self.subnetworks version: :v1, &block
2256
2288
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2259,8 +2291,8 @@ module Google
2259
2291
  .constants
2260
2292
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2261
2293
  .first
2262
- package_module = Google::Cloud::Compute.const_get package_name
2263
- package_module.const_get(:Subnetworks).const_get(:Rest).const_get(:Client).new(&block)
2294
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Subnetworks)
2295
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2264
2296
  end
2265
2297
 
2266
2298
  ##
@@ -2268,8 +2300,8 @@ module Google
2268
2300
  #
2269
2301
  # By default, this returns an instance of
2270
2302
  # [Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetGrpcProxies/Rest/Client.html)
2271
- # for version V1 of the API.
2272
- # However, you can specify specify a different API version by passing it in the
2303
+ # for a REST client for version V1 of the API.
2304
+ # However, you can specify a different API version by passing it in the
2273
2305
  # `version` parameter. If the TargetGrpcProxies service is
2274
2306
  # supported by that API version, and the corresponding gem is available, the
2275
2307
  # appropriate versioned client will be returned.
@@ -2280,7 +2312,7 @@ module Google
2280
2312
  #
2281
2313
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2282
2314
  # Defaults to `:v1`.
2283
- # @return [TargetGrpcProxies::Rest::Client] A client object for the specified version.
2315
+ # @return [::Object] A client object for the specified version.
2284
2316
  #
2285
2317
  def self.target_grpc_proxies version: :v1, &block
2286
2318
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2289,8 +2321,8 @@ module Google
2289
2321
  .constants
2290
2322
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2291
2323
  .first
2292
- package_module = Google::Cloud::Compute.const_get package_name
2293
- package_module.const_get(:TargetGrpcProxies).const_get(:Rest).const_get(:Client).new(&block)
2324
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetGrpcProxies)
2325
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2294
2326
  end
2295
2327
 
2296
2328
  ##
@@ -2298,8 +2330,8 @@ module Google
2298
2330
  #
2299
2331
  # By default, this returns an instance of
2300
2332
  # [Google::Cloud::Compute::V1::TargetHttpProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetHttpProxies/Rest/Client.html)
2301
- # for version V1 of the API.
2302
- # However, you can specify specify a different API version by passing it in the
2333
+ # for a REST client for version V1 of the API.
2334
+ # However, you can specify a different API version by passing it in the
2303
2335
  # `version` parameter. If the TargetHttpProxies service is
2304
2336
  # supported by that API version, and the corresponding gem is available, the
2305
2337
  # appropriate versioned client will be returned.
@@ -2310,7 +2342,7 @@ module Google
2310
2342
  #
2311
2343
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2312
2344
  # Defaults to `:v1`.
2313
- # @return [TargetHttpProxies::Rest::Client] A client object for the specified version.
2345
+ # @return [::Object] A client object for the specified version.
2314
2346
  #
2315
2347
  def self.target_http_proxies version: :v1, &block
2316
2348
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2319,8 +2351,8 @@ module Google
2319
2351
  .constants
2320
2352
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2321
2353
  .first
2322
- package_module = Google::Cloud::Compute.const_get package_name
2323
- package_module.const_get(:TargetHttpProxies).const_get(:Rest).const_get(:Client).new(&block)
2354
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetHttpProxies)
2355
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2324
2356
  end
2325
2357
 
2326
2358
  ##
@@ -2328,8 +2360,8 @@ module Google
2328
2360
  #
2329
2361
  # By default, this returns an instance of
2330
2362
  # [Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetHttpsProxies/Rest/Client.html)
2331
- # for version V1 of the API.
2332
- # However, you can specify specify a different API version by passing it in the
2363
+ # for a REST client for version V1 of the API.
2364
+ # However, you can specify a different API version by passing it in the
2333
2365
  # `version` parameter. If the TargetHttpsProxies service is
2334
2366
  # supported by that API version, and the corresponding gem is available, the
2335
2367
  # appropriate versioned client will be returned.
@@ -2340,7 +2372,7 @@ module Google
2340
2372
  #
2341
2373
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2342
2374
  # Defaults to `:v1`.
2343
- # @return [TargetHttpsProxies::Rest::Client] A client object for the specified version.
2375
+ # @return [::Object] A client object for the specified version.
2344
2376
  #
2345
2377
  def self.target_https_proxies version: :v1, &block
2346
2378
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2349,8 +2381,8 @@ module Google
2349
2381
  .constants
2350
2382
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2351
2383
  .first
2352
- package_module = Google::Cloud::Compute.const_get package_name
2353
- package_module.const_get(:TargetHttpsProxies).const_get(:Rest).const_get(:Client).new(&block)
2384
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetHttpsProxies)
2385
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2354
2386
  end
2355
2387
 
2356
2388
  ##
@@ -2358,8 +2390,8 @@ module Google
2358
2390
  #
2359
2391
  # By default, this returns an instance of
2360
2392
  # [Google::Cloud::Compute::V1::TargetInstances::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetInstances/Rest/Client.html)
2361
- # for version V1 of the API.
2362
- # However, you can specify specify a different API version by passing it in the
2393
+ # for a REST client for version V1 of the API.
2394
+ # However, you can specify a different API version by passing it in the
2363
2395
  # `version` parameter. If the TargetInstances service is
2364
2396
  # supported by that API version, and the corresponding gem is available, the
2365
2397
  # appropriate versioned client will be returned.
@@ -2370,7 +2402,7 @@ module Google
2370
2402
  #
2371
2403
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2372
2404
  # Defaults to `:v1`.
2373
- # @return [TargetInstances::Rest::Client] A client object for the specified version.
2405
+ # @return [::Object] A client object for the specified version.
2374
2406
  #
2375
2407
  def self.target_instances version: :v1, &block
2376
2408
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2379,8 +2411,8 @@ module Google
2379
2411
  .constants
2380
2412
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2381
2413
  .first
2382
- package_module = Google::Cloud::Compute.const_get package_name
2383
- package_module.const_get(:TargetInstances).const_get(:Rest).const_get(:Client).new(&block)
2414
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetInstances)
2415
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2384
2416
  end
2385
2417
 
2386
2418
  ##
@@ -2388,8 +2420,8 @@ module Google
2388
2420
  #
2389
2421
  # By default, this returns an instance of
2390
2422
  # [Google::Cloud::Compute::V1::TargetPools::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetPools/Rest/Client.html)
2391
- # for version V1 of the API.
2392
- # However, you can specify specify a different API version by passing it in the
2423
+ # for a REST client for version V1 of the API.
2424
+ # However, you can specify a different API version by passing it in the
2393
2425
  # `version` parameter. If the TargetPools service is
2394
2426
  # supported by that API version, and the corresponding gem is available, the
2395
2427
  # appropriate versioned client will be returned.
@@ -2400,7 +2432,7 @@ module Google
2400
2432
  #
2401
2433
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2402
2434
  # Defaults to `:v1`.
2403
- # @return [TargetPools::Rest::Client] A client object for the specified version.
2435
+ # @return [::Object] A client object for the specified version.
2404
2436
  #
2405
2437
  def self.target_pools version: :v1, &block
2406
2438
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2409,8 +2441,8 @@ module Google
2409
2441
  .constants
2410
2442
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2411
2443
  .first
2412
- package_module = Google::Cloud::Compute.const_get package_name
2413
- package_module.const_get(:TargetPools).const_get(:Rest).const_get(:Client).new(&block)
2444
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetPools)
2445
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2414
2446
  end
2415
2447
 
2416
2448
  ##
@@ -2418,8 +2450,8 @@ module Google
2418
2450
  #
2419
2451
  # By default, this returns an instance of
2420
2452
  # [Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetSslProxies/Rest/Client.html)
2421
- # for version V1 of the API.
2422
- # However, you can specify specify a different API version by passing it in the
2453
+ # for a REST client for version V1 of the API.
2454
+ # However, you can specify a different API version by passing it in the
2423
2455
  # `version` parameter. If the TargetSslProxies service is
2424
2456
  # supported by that API version, and the corresponding gem is available, the
2425
2457
  # appropriate versioned client will be returned.
@@ -2430,7 +2462,7 @@ module Google
2430
2462
  #
2431
2463
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2432
2464
  # Defaults to `:v1`.
2433
- # @return [TargetSslProxies::Rest::Client] A client object for the specified version.
2465
+ # @return [::Object] A client object for the specified version.
2434
2466
  #
2435
2467
  def self.target_ssl_proxies version: :v1, &block
2436
2468
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2439,8 +2471,8 @@ module Google
2439
2471
  .constants
2440
2472
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2441
2473
  .first
2442
- package_module = Google::Cloud::Compute.const_get package_name
2443
- package_module.const_get(:TargetSslProxies).const_get(:Rest).const_get(:Client).new(&block)
2474
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetSslProxies)
2475
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2444
2476
  end
2445
2477
 
2446
2478
  ##
@@ -2448,8 +2480,8 @@ module Google
2448
2480
  #
2449
2481
  # By default, this returns an instance of
2450
2482
  # [Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetTcpProxies/Rest/Client.html)
2451
- # for version V1 of the API.
2452
- # However, you can specify specify a different API version by passing it in the
2483
+ # for a REST client for version V1 of the API.
2484
+ # However, you can specify a different API version by passing it in the
2453
2485
  # `version` parameter. If the TargetTcpProxies service is
2454
2486
  # supported by that API version, and the corresponding gem is available, the
2455
2487
  # appropriate versioned client will be returned.
@@ -2460,7 +2492,7 @@ module Google
2460
2492
  #
2461
2493
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2462
2494
  # Defaults to `:v1`.
2463
- # @return [TargetTcpProxies::Rest::Client] A client object for the specified version.
2495
+ # @return [::Object] A client object for the specified version.
2464
2496
  #
2465
2497
  def self.target_tcp_proxies version: :v1, &block
2466
2498
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2469,8 +2501,8 @@ module Google
2469
2501
  .constants
2470
2502
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2471
2503
  .first
2472
- package_module = Google::Cloud::Compute.const_get package_name
2473
- package_module.const_get(:TargetTcpProxies).const_get(:Rest).const_get(:Client).new(&block)
2504
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetTcpProxies)
2505
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2474
2506
  end
2475
2507
 
2476
2508
  ##
@@ -2478,8 +2510,8 @@ module Google
2478
2510
  #
2479
2511
  # By default, this returns an instance of
2480
2512
  # [Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/TargetVpnGateways/Rest/Client.html)
2481
- # for version V1 of the API.
2482
- # However, you can specify specify a different API version by passing it in the
2513
+ # for a REST client for version V1 of the API.
2514
+ # However, you can specify a different API version by passing it in the
2483
2515
  # `version` parameter. If the TargetVpnGateways service is
2484
2516
  # supported by that API version, and the corresponding gem is available, the
2485
2517
  # appropriate versioned client will be returned.
@@ -2490,7 +2522,7 @@ module Google
2490
2522
  #
2491
2523
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2492
2524
  # Defaults to `:v1`.
2493
- # @return [TargetVpnGateways::Rest::Client] A client object for the specified version.
2525
+ # @return [::Object] A client object for the specified version.
2494
2526
  #
2495
2527
  def self.target_vpn_gateways version: :v1, &block
2496
2528
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2499,8 +2531,8 @@ module Google
2499
2531
  .constants
2500
2532
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2501
2533
  .first
2502
- package_module = Google::Cloud::Compute.const_get package_name
2503
- package_module.const_get(:TargetVpnGateways).const_get(:Rest).const_get(:Client).new(&block)
2534
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetVpnGateways)
2535
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2504
2536
  end
2505
2537
 
2506
2538
  ##
@@ -2508,8 +2540,8 @@ module Google
2508
2540
  #
2509
2541
  # By default, this returns an instance of
2510
2542
  # [Google::Cloud::Compute::V1::UrlMaps::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/UrlMaps/Rest/Client.html)
2511
- # for version V1 of the API.
2512
- # However, you can specify specify a different API version by passing it in the
2543
+ # for a REST client for version V1 of the API.
2544
+ # However, you can specify a different API version by passing it in the
2513
2545
  # `version` parameter. If the UrlMaps service is
2514
2546
  # supported by that API version, and the corresponding gem is available, the
2515
2547
  # appropriate versioned client will be returned.
@@ -2520,7 +2552,7 @@ module Google
2520
2552
  #
2521
2553
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2522
2554
  # Defaults to `:v1`.
2523
- # @return [UrlMaps::Rest::Client] A client object for the specified version.
2555
+ # @return [::Object] A client object for the specified version.
2524
2556
  #
2525
2557
  def self.url_maps version: :v1, &block
2526
2558
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2529,8 +2561,8 @@ module Google
2529
2561
  .constants
2530
2562
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2531
2563
  .first
2532
- package_module = Google::Cloud::Compute.const_get package_name
2533
- package_module.const_get(:UrlMaps).const_get(:Rest).const_get(:Client).new(&block)
2564
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:UrlMaps)
2565
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2534
2566
  end
2535
2567
 
2536
2568
  ##
@@ -2538,8 +2570,8 @@ module Google
2538
2570
  #
2539
2571
  # By default, this returns an instance of
2540
2572
  # [Google::Cloud::Compute::V1::VpnGateways::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/VpnGateways/Rest/Client.html)
2541
- # for version V1 of the API.
2542
- # However, you can specify specify a different API version by passing it in the
2573
+ # for a REST client for version V1 of the API.
2574
+ # However, you can specify a different API version by passing it in the
2543
2575
  # `version` parameter. If the VpnGateways service is
2544
2576
  # supported by that API version, and the corresponding gem is available, the
2545
2577
  # appropriate versioned client will be returned.
@@ -2550,7 +2582,7 @@ module Google
2550
2582
  #
2551
2583
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2552
2584
  # Defaults to `:v1`.
2553
- # @return [VpnGateways::Rest::Client] A client object for the specified version.
2585
+ # @return [::Object] A client object for the specified version.
2554
2586
  #
2555
2587
  def self.vpn_gateways version: :v1, &block
2556
2588
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2559,8 +2591,8 @@ module Google
2559
2591
  .constants
2560
2592
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2561
2593
  .first
2562
- package_module = Google::Cloud::Compute.const_get package_name
2563
- package_module.const_get(:VpnGateways).const_get(:Rest).const_get(:Client).new(&block)
2594
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:VpnGateways)
2595
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2564
2596
  end
2565
2597
 
2566
2598
  ##
@@ -2568,8 +2600,8 @@ module Google
2568
2600
  #
2569
2601
  # By default, this returns an instance of
2570
2602
  # [Google::Cloud::Compute::V1::VpnTunnels::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/VpnTunnels/Rest/Client.html)
2571
- # for version V1 of the API.
2572
- # However, you can specify specify a different API version by passing it in the
2603
+ # for a REST client for version V1 of the API.
2604
+ # However, you can specify a different API version by passing it in the
2573
2605
  # `version` parameter. If the VpnTunnels service is
2574
2606
  # supported by that API version, and the corresponding gem is available, the
2575
2607
  # appropriate versioned client will be returned.
@@ -2580,7 +2612,7 @@ module Google
2580
2612
  #
2581
2613
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2582
2614
  # Defaults to `:v1`.
2583
- # @return [VpnTunnels::Rest::Client] A client object for the specified version.
2615
+ # @return [::Object] A client object for the specified version.
2584
2616
  #
2585
2617
  def self.vpn_tunnels version: :v1, &block
2586
2618
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2589,8 +2621,8 @@ module Google
2589
2621
  .constants
2590
2622
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2591
2623
  .first
2592
- package_module = Google::Cloud::Compute.const_get package_name
2593
- package_module.const_get(:VpnTunnels).const_get(:Rest).const_get(:Client).new(&block)
2624
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:VpnTunnels)
2625
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2594
2626
  end
2595
2627
 
2596
2628
  ##
@@ -2598,8 +2630,8 @@ module Google
2598
2630
  #
2599
2631
  # By default, this returns an instance of
2600
2632
  # [Google::Cloud::Compute::V1::ZoneOperations::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/ZoneOperations/Rest/Client.html)
2601
- # for version V1 of the API.
2602
- # However, you can specify specify a different API version by passing it in the
2633
+ # for a REST client for version V1 of the API.
2634
+ # However, you can specify a different API version by passing it in the
2603
2635
  # `version` parameter. If the ZoneOperations service is
2604
2636
  # supported by that API version, and the corresponding gem is available, the
2605
2637
  # appropriate versioned client will be returned.
@@ -2610,7 +2642,7 @@ module Google
2610
2642
  #
2611
2643
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2612
2644
  # Defaults to `:v1`.
2613
- # @return [ZoneOperations::Rest::Client] A client object for the specified version.
2645
+ # @return [::Object] A client object for the specified version.
2614
2646
  #
2615
2647
  def self.zone_operations version: :v1, &block
2616
2648
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2619,8 +2651,8 @@ module Google
2619
2651
  .constants
2620
2652
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2621
2653
  .first
2622
- package_module = Google::Cloud::Compute.const_get package_name
2623
- package_module.const_get(:ZoneOperations).const_get(:Rest).const_get(:Client).new(&block)
2654
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ZoneOperations)
2655
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2624
2656
  end
2625
2657
 
2626
2658
  ##
@@ -2628,8 +2660,8 @@ module Google
2628
2660
  #
2629
2661
  # By default, this returns an instance of
2630
2662
  # [Google::Cloud::Compute::V1::Zones::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/Zones/Rest/Client.html)
2631
- # for version V1 of the API.
2632
- # However, you can specify specify a different API version by passing it in the
2663
+ # for a REST client for version V1 of the API.
2664
+ # However, you can specify a different API version by passing it in the
2633
2665
  # `version` parameter. If the Zones service is
2634
2666
  # supported by that API version, and the corresponding gem is available, the
2635
2667
  # appropriate versioned client will be returned.
@@ -2640,7 +2672,7 @@ module Google
2640
2672
  #
2641
2673
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2642
2674
  # Defaults to `:v1`.
2643
- # @return [Zones::Rest::Client] A client object for the specified version.
2675
+ # @return [::Object] A client object for the specified version.
2644
2676
  #
2645
2677
  def self.zones version: :v1, &block
2646
2678
  require "google/cloud/compute/#{version.to_s.downcase}"
@@ -2649,8 +2681,8 @@ module Google
2649
2681
  .constants
2650
2682
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2651
2683
  .first
2652
- package_module = Google::Cloud::Compute.const_get package_name
2653
- package_module.const_get(:Zones).const_get(:Rest).const_get(:Client).new(&block)
2684
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Zones)
2685
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2654
2686
  end
2655
2687
 
2656
2688
  ##
@@ -2668,7 +2700,14 @@ module Google
2668
2700
  # * `timeout` (*type:* `Numeric`) -
2669
2701
  # Default timeout in seconds.
2670
2702
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
2671
- # Additional REST headers to be sent with the call.
2703
+ # Additional headers to be sent with the call.
2704
+ # * `retry_policy` (*type:* `Hash`) -
2705
+ # The retry policy. The value is a hash with the following keys:
2706
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2707
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2708
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2709
+ # * `:retry_codes` (*type:* `Array<String>`) -
2710
+ # The error codes that should trigger a retry.
2672
2711
  #
2673
2712
  # @return [::Google::Cloud::Config] The default configuration used by this library
2674
2713
  #