Module: Google::Cloud::Compute

Defined in:
lib/google/cloud/compute.rb,
lib/google/cloud/compute/version.rb

Constant Summary collapse

VERSION =
"0.6.0"

Class Method Summary collapse

Class Method Details

.accelerator_types(version: :v1, &block) ⇒ ::Object

Create a new client object for AcceleratorTypes.

By default, this returns an instance of Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the AcceleratorTypes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About AcceleratorTypes

Services

The AcceleratorTypes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



67
68
69
70
71
72
73
74
75
76
# File 'lib/google/cloud/compute.rb', line 67

def self.accelerator_types version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:AcceleratorTypes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.addresses(version: :v1, &block) ⇒ ::Object

Create a new client object for Addresses.

By default, this returns an instance of Google::Cloud::Compute::V1::Addresses::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Addresses service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Addresses

The Addresses API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



97
98
99
100
101
102
103
104
105
106
# File 'lib/google/cloud/compute.rb', line 97

def self.addresses version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Addresses)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.autoscalers(version: :v1, &block) ⇒ ::Object

Create a new client object for Autoscalers.

By default, this returns an instance of Google::Cloud::Compute::V1::Autoscalers::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Autoscalers service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Autoscalers

The Autoscalers API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



127
128
129
130
131
132
133
134
135
136
# File 'lib/google/cloud/compute.rb', line 127

def self.autoscalers version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Autoscalers)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.backend_buckets(version: :v1, &block) ⇒ ::Object

Create a new client object for BackendBuckets.

By default, this returns an instance of Google::Cloud::Compute::V1::BackendBuckets::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the BackendBuckets service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About BackendBuckets

The BackendBuckets API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/compute.rb', line 157

def self.backend_buckets version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:BackendBuckets)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.backend_services(version: :v1, &block) ⇒ ::Object

Create a new client object for BackendServices.

By default, this returns an instance of Google::Cloud::Compute::V1::BackendServices::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the BackendServices service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About BackendServices

The BackendServices API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



187
188
189
190
191
192
193
194
195
196
# File 'lib/google/cloud/compute.rb', line 187

def self.backend_services version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:BackendServices)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.configure {|::Google::Cloud.configure.compute| ... } ⇒ ::Google::Cloud::Config

Configure the google-cloud-compute library.

The following configuration parameters are supported:

  • credentials (type: String, Hash, Google::Auth::Credentials) - The path to the keyfile as a String, the contents of the keyfile as a Hash, or a Google::Auth::Credentials object.
  • lib_name (type: String) - The library name as recorded in instrumentation and logging.
  • lib_version (type: String) - The library version as recorded in instrumentation and logging.
  • timeout (type: Numeric) - Default timeout in seconds.
  • metadata (type: Hash{Symbol=>String}) - Additional headers to be sent with the call.
  • retry_policy (type: Hash) - The retry policy. The value is a hash with the following keys:
    • :initial_delay (type: Numeric) - The initial delay in seconds.
    • :max_delay (type: Numeric) - The max delay in seconds.
    • :multiplier (type: Numeric) - The incremental backoff multiplier.
    • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Yields:

Returns:

  • (::Google::Cloud::Config)

    The default configuration used by this library



2714
2715
2716
2717
2718
# File 'lib/google/cloud/compute.rb', line 2714

def self.configure
  yield ::Google::Cloud.configure.compute if block_given?

  ::Google::Cloud.configure.compute
end

.disk_types(version: :v1, &block) ⇒ ::Object

Create a new client object for DiskTypes.

By default, this returns an instance of Google::Cloud::Compute::V1::DiskTypes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the DiskTypes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About DiskTypes

The DiskTypes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



217
218
219
220
221
222
223
224
225
226
# File 'lib/google/cloud/compute.rb', line 217

def self.disk_types version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:DiskTypes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.disks(version: :v1, &block) ⇒ ::Object

Create a new client object for Disks.

By default, this returns an instance of Google::Cloud::Compute::V1::Disks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Disks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Disks

The Disks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



247
248
249
250
251
252
253
254
255
256
# File 'lib/google/cloud/compute.rb', line 247

def self.disks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Disks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.external_vpn_gateways(version: :v1, &block) ⇒ ::Object

Create a new client object for ExternalVpnGateways.

By default, this returns an instance of Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ExternalVpnGateways service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ExternalVpnGateways

The ExternalVpnGateways API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



277
278
279
280
281
282
283
284
285
286
# File 'lib/google/cloud/compute.rb', line 277

def self.external_vpn_gateways version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ExternalVpnGateways)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.firewall_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for FirewallPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the FirewallPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About FirewallPolicies

The FirewallPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



307
308
309
310
311
312
313
314
315
316
# File 'lib/google/cloud/compute.rb', line 307

def self.firewall_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:FirewallPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.firewalls(version: :v1, &block) ⇒ ::Object

Create a new client object for Firewalls.

By default, this returns an instance of Google::Cloud::Compute::V1::Firewalls::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Firewalls service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Firewalls

The Firewalls API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



337
338
339
340
341
342
343
344
345
346
# File 'lib/google/cloud/compute.rb', line 337

def self.firewalls version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Firewalls)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.forwarding_rules(version: :v1, &block) ⇒ ::Object

Create a new client object for ForwardingRules.

By default, this returns an instance of Google::Cloud::Compute::V1::ForwardingRules::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ForwardingRules service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ForwardingRules

The ForwardingRules API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



367
368
369
370
371
372
373
374
375
376
# File 'lib/google/cloud/compute.rb', line 367

def self.forwarding_rules version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ForwardingRules)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_addresses(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalAddresses.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalAddresses service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalAddresses

The GlobalAddresses API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



397
398
399
400
401
402
403
404
405
406
# File 'lib/google/cloud/compute.rb', line 397

def self.global_addresses version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalAddresses)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_forwarding_rules(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalForwardingRules.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalForwardingRules service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalForwardingRules

The GlobalForwardingRules API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



427
428
429
430
431
432
433
434
435
436
# File 'lib/google/cloud/compute.rb', line 427

def self.global_forwarding_rules version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalForwardingRules)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_network_endpoint_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalNetworkEndpointGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalNetworkEndpointGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalNetworkEndpointGroups

The GlobalNetworkEndpointGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



457
458
459
460
461
462
463
464
465
466
# File 'lib/google/cloud/compute.rb', line 457

def self.global_network_endpoint_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalNetworkEndpointGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_operations(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalOperations.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalOperations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalOperations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalOperations

The GlobalOperations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



487
488
489
490
491
492
493
494
495
496
# File 'lib/google/cloud/compute.rb', line 487

def self.global_operations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalOperations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_organization_operations(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalOrganizationOperations.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalOrganizationOperations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalOrganizationOperations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalOrganizationOperations

The GlobalOrganizationOperations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



517
518
519
520
521
522
523
524
525
526
# File 'lib/google/cloud/compute.rb', line 517

def self.global_organization_operations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalOrganizationOperations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.global_public_delegated_prefixes(version: :v1, &block) ⇒ ::Object

Create a new client object for GlobalPublicDelegatedPrefixes.

By default, this returns an instance of Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the GlobalPublicDelegatedPrefixes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About GlobalPublicDelegatedPrefixes

The GlobalPublicDelegatedPrefixes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



547
548
549
550
551
552
553
554
555
556
# File 'lib/google/cloud/compute.rb', line 547

def self.global_public_delegated_prefixes version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalPublicDelegatedPrefixes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.health_checks(version: :v1, &block) ⇒ ::Object

Create a new client object for HealthChecks.

By default, this returns an instance of Google::Cloud::Compute::V1::HealthChecks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the HealthChecks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About HealthChecks

The HealthChecks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



577
578
579
580
581
582
583
584
585
586
# File 'lib/google/cloud/compute.rb', line 577

def self.health_checks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:HealthChecks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.image_family_views(version: :v1, &block) ⇒ ::Object

Create a new client object for ImageFamilyViews.

By default, this returns an instance of Google::Cloud::Compute::V1::ImageFamilyViews::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ImageFamilyViews service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ImageFamilyViews

The ImageFamilyViews API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



607
608
609
610
611
612
613
614
615
616
# File 'lib/google/cloud/compute.rb', line 607

def self.image_family_views version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ImageFamilyViews)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.images(version: :v1, &block) ⇒ ::Object

Create a new client object for Images.

By default, this returns an instance of Google::Cloud::Compute::V1::Images::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Images service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Images

The Images API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



637
638
639
640
641
642
643
644
645
646
# File 'lib/google/cloud/compute.rb', line 637

def self.images version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Images)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.instance_group_managers(version: :v1, &block) ⇒ ::Object

Create a new client object for InstanceGroupManagers.

By default, this returns an instance of Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the InstanceGroupManagers service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About InstanceGroupManagers

The InstanceGroupManagers API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



667
668
669
670
671
672
673
674
675
676
# File 'lib/google/cloud/compute.rb', line 667

def self.instance_group_managers version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceGroupManagers)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.instance_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for InstanceGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::InstanceGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the InstanceGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About InstanceGroups

The InstanceGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



697
698
699
700
701
702
703
704
705
706
# File 'lib/google/cloud/compute.rb', line 697

def self.instance_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.instance_templates(version: :v1, &block) ⇒ ::Object

Create a new client object for InstanceTemplates.

By default, this returns an instance of Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the InstanceTemplates service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About InstanceTemplates

The InstanceTemplates API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



727
728
729
730
731
732
733
734
735
736
# File 'lib/google/cloud/compute.rb', line 727

def self.instance_templates version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstanceTemplates)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.instances(version: :v1, &block) ⇒ ::Object

Create a new client object for Instances.

By default, this returns an instance of Google::Cloud::Compute::V1::Instances::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Instances service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Instances

The Instances API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



757
758
759
760
761
762
763
764
765
766
# File 'lib/google/cloud/compute.rb', line 757

def self.instances version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Instances)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.interconnect_attachments(version: :v1, &block) ⇒ ::Object

Create a new client object for InterconnectAttachments.

By default, this returns an instance of Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the InterconnectAttachments service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About InterconnectAttachments

The InterconnectAttachments API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



787
788
789
790
791
792
793
794
795
796
# File 'lib/google/cloud/compute.rb', line 787

def self.interconnect_attachments version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectAttachments)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.interconnect_locations(version: :v1, &block) ⇒ ::Object

Create a new client object for InterconnectLocations.

By default, this returns an instance of Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the InterconnectLocations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About InterconnectLocations

The InterconnectLocations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



817
818
819
820
821
822
823
824
825
826
# File 'lib/google/cloud/compute.rb', line 817

def self.interconnect_locations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectLocations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.interconnects(version: :v1, &block) ⇒ ::Object

Create a new client object for Interconnects.

By default, this returns an instance of Google::Cloud::Compute::V1::Interconnects::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Interconnects service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Interconnects

The Interconnects API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



847
848
849
850
851
852
853
854
855
856
# File 'lib/google/cloud/compute.rb', line 847

def self.interconnects version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Interconnects)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.license_codes(version: :v1, &block) ⇒ ::Object

Create a new client object for LicenseCodes.

By default, this returns an instance of Google::Cloud::Compute::V1::LicenseCodes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the LicenseCodes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About LicenseCodes

The LicenseCodes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



877
878
879
880
881
882
883
884
885
886
# File 'lib/google/cloud/compute.rb', line 877

def self.license_codes version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:LicenseCodes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.licenses(version: :v1, &block) ⇒ ::Object

Create a new client object for Licenses.

By default, this returns an instance of Google::Cloud::Compute::V1::Licenses::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Licenses service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Licenses

The Licenses API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



907
908
909
910
911
912
913
914
915
916
# File 'lib/google/cloud/compute.rb', line 907

def self.licenses version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Licenses)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.machine_images(version: :v1, &block) ⇒ ::Object

Create a new client object for MachineImages.

By default, this returns an instance of Google::Cloud::Compute::V1::MachineImages::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the MachineImages service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About MachineImages

The MachineImages API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



937
938
939
940
941
942
943
944
945
946
# File 'lib/google/cloud/compute.rb', line 937

def self.machine_images version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:MachineImages)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.machine_types(version: :v1, &block) ⇒ ::Object

Create a new client object for MachineTypes.

By default, this returns an instance of Google::Cloud::Compute::V1::MachineTypes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the MachineTypes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About MachineTypes

The MachineTypes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



967
968
969
970
971
972
973
974
975
976
# File 'lib/google/cloud/compute.rb', line 967

def self.machine_types version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:MachineTypes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.network_attachments(version: :v1, &block) ⇒ ::Object

Create a new client object for NetworkAttachments.

By default, this returns an instance of Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NetworkAttachments service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NetworkAttachments

The NetworkAttachments API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



997
998
999
1000
1001
1002
1003
1004
1005
1006
# File 'lib/google/cloud/compute.rb', line 997

def self.network_attachments version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkAttachments)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.network_edge_security_services(version: :v1, &block) ⇒ ::Object

Create a new client object for NetworkEdgeSecurityServices.

By default, this returns an instance of Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NetworkEdgeSecurityServices service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NetworkEdgeSecurityServices

The NetworkEdgeSecurityServices API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
# File 'lib/google/cloud/compute.rb', line 1027

def self.network_edge_security_services version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkEdgeSecurityServices)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.network_endpoint_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for NetworkEndpointGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NetworkEndpointGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NetworkEndpointGroups

The NetworkEndpointGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
# File 'lib/google/cloud/compute.rb', line 1057

def self.network_endpoint_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkEndpointGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.network_firewall_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for NetworkFirewallPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NetworkFirewallPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NetworkFirewallPolicies

The NetworkFirewallPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
# File 'lib/google/cloud/compute.rb', line 1087

def self.network_firewall_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkFirewallPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.networks(version: :v1, &block) ⇒ ::Object

Create a new client object for Networks.

By default, this returns an instance of Google::Cloud::Compute::V1::Networks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Networks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Networks

The Networks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/google/cloud/compute.rb', line 1117

def self.networks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Networks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.node_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for NodeGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::NodeGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NodeGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NodeGroups

The NodeGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
# File 'lib/google/cloud/compute.rb', line 1147

def self.node_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.node_templates(version: :v1, &block) ⇒ ::Object

Create a new client object for NodeTemplates.

By default, this returns an instance of Google::Cloud::Compute::V1::NodeTemplates::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NodeTemplates service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NodeTemplates

The NodeTemplates API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
# File 'lib/google/cloud/compute.rb', line 1177

def self.node_templates version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeTemplates)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.node_types(version: :v1, &block) ⇒ ::Object

Create a new client object for NodeTypes.

By default, this returns an instance of Google::Cloud::Compute::V1::NodeTypes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the NodeTypes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About NodeTypes

The NodeTypes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
# File 'lib/google/cloud/compute.rb', line 1207

def self.node_types version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NodeTypes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.packet_mirrorings(version: :v1, &block) ⇒ ::Object

Create a new client object for PacketMirrorings.

By default, this returns an instance of Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the PacketMirrorings service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About PacketMirrorings

The PacketMirrorings API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/google/cloud/compute.rb', line 1237

def self.packet_mirrorings version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PacketMirrorings)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.projects(version: :v1, &block) ⇒ ::Object

Create a new client object for Projects.

By default, this returns an instance of Google::Cloud::Compute::V1::Projects::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Projects service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Projects

The Projects API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'lib/google/cloud/compute.rb', line 1267

def self.projects version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Projects)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.public_advertised_prefixes(version: :v1, &block) ⇒ ::Object

Create a new client object for PublicAdvertisedPrefixes.

By default, this returns an instance of Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the PublicAdvertisedPrefixes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About PublicAdvertisedPrefixes

The PublicAdvertisedPrefixes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
# File 'lib/google/cloud/compute.rb', line 1297

def self.public_advertised_prefixes version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PublicAdvertisedPrefixes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.public_delegated_prefixes(version: :v1, &block) ⇒ ::Object

Create a new client object for PublicDelegatedPrefixes.

By default, this returns an instance of Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the PublicDelegatedPrefixes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About PublicDelegatedPrefixes

The PublicDelegatedPrefixes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
# File 'lib/google/cloud/compute.rb', line 1327

def self.public_delegated_prefixes version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PublicDelegatedPrefixes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_autoscalers(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionAutoscalers.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionAutoscalers::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionAutoscalers service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionAutoscalers

The RegionAutoscalers API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
# File 'lib/google/cloud/compute.rb', line 1357

def self.region_autoscalers version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionAutoscalers)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_backend_services(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionBackendServices.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionBackendServices service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionBackendServices

The RegionBackendServices API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
# File 'lib/google/cloud/compute.rb', line 1387

def self.region_backend_services version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionBackendServices)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_commitments(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionCommitments.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionCommitments::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionCommitments service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionCommitments

The RegionCommitments API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
# File 'lib/google/cloud/compute.rb', line 1417

def self.region_commitments version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionCommitments)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_disk_types(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionDiskTypes.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionDiskTypes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionDiskTypes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionDiskTypes

The RegionDiskTypes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
# File 'lib/google/cloud/compute.rb', line 1447

def self.region_disk_types version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionDiskTypes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_disks(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionDisks.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionDisks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionDisks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionDisks

The RegionDisks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
# File 'lib/google/cloud/compute.rb', line 1477

def self.region_disks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionDisks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_health_check_services(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionHealthCheckServices.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionHealthCheckServices service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionHealthCheckServices

The RegionHealthCheckServices API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
# File 'lib/google/cloud/compute.rb', line 1507

def self.region_health_check_services version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthCheckServices)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_health_checks(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionHealthChecks.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionHealthChecks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionHealthChecks

The RegionHealthChecks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
# File 'lib/google/cloud/compute.rb', line 1537

def self.region_health_checks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthChecks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_instance_group_managers(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionInstanceGroupManagers.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionInstanceGroupManagers service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionInstanceGroupManagers

The RegionInstanceGroupManagers API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
# File 'lib/google/cloud/compute.rb', line 1567

def self.region_instance_group_managers version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroupManagers)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_instance_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionInstanceGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionInstanceGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionInstanceGroups

The RegionInstanceGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
# File 'lib/google/cloud/compute.rb', line 1597

def self.region_instance_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_instances(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionInstances.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionInstances::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionInstances service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionInstances

The RegionInstances API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
# File 'lib/google/cloud/compute.rb', line 1627

def self.region_instances version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstances)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_network_endpoint_groups(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionNetworkEndpointGroups.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionNetworkEndpointGroups service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionNetworkEndpointGroups

The RegionNetworkEndpointGroups API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
# File 'lib/google/cloud/compute.rb', line 1657

def self.region_network_endpoint_groups version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNetworkEndpointGroups)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_network_firewall_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionNetworkFirewallPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionNetworkFirewallPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionNetworkFirewallPolicies

The RegionNetworkFirewallPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
# File 'lib/google/cloud/compute.rb', line 1687

def self.region_network_firewall_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNetworkFirewallPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_notification_endpoints(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionNotificationEndpoints.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionNotificationEndpoints service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionNotificationEndpoints

The RegionNotificationEndpoints API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
# File 'lib/google/cloud/compute.rb', line 1717

def self.region_notification_endpoints version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionNotificationEndpoints)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_operations(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionOperations.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionOperations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionOperations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionOperations

The RegionOperations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
# File 'lib/google/cloud/compute.rb', line 1747

def self.region_operations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionOperations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_security_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionSecurityPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionSecurityPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionSecurityPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionSecurityPolicies

The RegionSecurityPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
# File 'lib/google/cloud/compute.rb', line 1777

def self.region_security_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSecurityPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_ssl_certificates(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionSslCertificates.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionSslCertificates service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionSslCertificates

The RegionSslCertificates API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
# File 'lib/google/cloud/compute.rb', line 1807

def self.region_ssl_certificates version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSslCertificates)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_ssl_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionSslPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionSslPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionSslPolicies

The RegionSslPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
# File 'lib/google/cloud/compute.rb', line 1837

def self.region_ssl_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSslPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_target_http_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionTargetHttpProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionTargetHttpProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionTargetHttpProxies

The RegionTargetHttpProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
# File 'lib/google/cloud/compute.rb', line 1867

def self.region_target_http_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetHttpProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_target_https_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionTargetHttpsProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionTargetHttpsProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionTargetHttpsProxies

The RegionTargetHttpsProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
# File 'lib/google/cloud/compute.rb', line 1897

def self.region_target_https_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetHttpsProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_target_tcp_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionTargetTcpProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionTargetTcpProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionTargetTcpProxies

The RegionTargetTcpProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
# File 'lib/google/cloud/compute.rb', line 1927

def self.region_target_tcp_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionTargetTcpProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.region_url_maps(version: :v1, &block) ⇒ ::Object

Create a new client object for RegionUrlMaps.

By default, this returns an instance of Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the RegionUrlMaps service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About RegionUrlMaps

The RegionUrlMaps API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
# File 'lib/google/cloud/compute.rb', line 1957

def self.region_url_maps version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionUrlMaps)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.regions(version: :v1, &block) ⇒ ::Object

Create a new client object for Regions.

By default, this returns an instance of Google::Cloud::Compute::V1::Regions::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Regions service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Regions

The Regions API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
# File 'lib/google/cloud/compute.rb', line 1987

def self.regions version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Regions)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.reservations(version: :v1, &block) ⇒ ::Object

Create a new client object for Reservations.

By default, this returns an instance of Google::Cloud::Compute::V1::Reservations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Reservations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Reservations

The Reservations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
# File 'lib/google/cloud/compute.rb', line 2017

def self.reservations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Reservations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.resource_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for ResourcePolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ResourcePolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ResourcePolicies

The ResourcePolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
# File 'lib/google/cloud/compute.rb', line 2047

def self.resource_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ResourcePolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.routers(version: :v1, &block) ⇒ ::Object

Create a new client object for Routers.

By default, this returns an instance of Google::Cloud::Compute::V1::Routers::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Routers service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Routers

The Routers API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
# File 'lib/google/cloud/compute.rb', line 2077

def self.routers version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Routers)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.routes(version: :v1, &block) ⇒ ::Object

Create a new client object for Routes.

By default, this returns an instance of Google::Cloud::Compute::V1::Routes::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Routes service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Routes

The Routes API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
# File 'lib/google/cloud/compute.rb', line 2107

def self.routes version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Routes)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.security_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for SecurityPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the SecurityPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About SecurityPolicies

The SecurityPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
# File 'lib/google/cloud/compute.rb', line 2137

def self.security_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SecurityPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.service_attachments(version: :v1, &block) ⇒ ::Object

Create a new client object for ServiceAttachments.

By default, this returns an instance of Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ServiceAttachments service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ServiceAttachments

The ServiceAttachments API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
# File 'lib/google/cloud/compute.rb', line 2167

def self.service_attachments version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ServiceAttachments)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.snapshots(version: :v1, &block) ⇒ ::Object

Create a new client object for Snapshots.

By default, this returns an instance of Google::Cloud::Compute::V1::Snapshots::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Snapshots service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Snapshots

The Snapshots API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
# File 'lib/google/cloud/compute.rb', line 2197

def self.snapshots version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Snapshots)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.ssl_certificates(version: :v1, &block) ⇒ ::Object

Create a new client object for SslCertificates.

By default, this returns an instance of Google::Cloud::Compute::V1::SslCertificates::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the SslCertificates service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About SslCertificates

The SslCertificates API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
# File 'lib/google/cloud/compute.rb', line 2227

def self.ssl_certificates version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SslCertificates)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.ssl_policies(version: :v1, &block) ⇒ ::Object

Create a new client object for SslPolicies.

By default, this returns an instance of Google::Cloud::Compute::V1::SslPolicies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the SslPolicies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About SslPolicies

The SslPolicies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/google/cloud/compute.rb', line 2257

def self.ssl_policies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SslPolicies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.subnetworks(version: :v1, &block) ⇒ ::Object

Create a new client object for Subnetworks.

By default, this returns an instance of Google::Cloud::Compute::V1::Subnetworks::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Subnetworks service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Subnetworks

The Subnetworks API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
# File 'lib/google/cloud/compute.rb', line 2287

def self.subnetworks version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Subnetworks)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_grpc_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetGrpcProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetGrpcProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetGrpcProxies

The TargetGrpcProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
# File 'lib/google/cloud/compute.rb', line 2317

def self.target_grpc_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetGrpcProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_http_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetHttpProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetHttpProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetHttpProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetHttpProxies

The TargetHttpProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
# File 'lib/google/cloud/compute.rb', line 2347

def self.target_http_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetHttpProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_https_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetHttpsProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetHttpsProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetHttpsProxies

The TargetHttpsProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
# File 'lib/google/cloud/compute.rb', line 2377

def self.target_https_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetHttpsProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_instances(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetInstances.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetInstances::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetInstances service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetInstances

The TargetInstances API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
# File 'lib/google/cloud/compute.rb', line 2407

def self.target_instances version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetInstances)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_pools(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetPools.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetPools::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetPools service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetPools

The TargetPools API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
# File 'lib/google/cloud/compute.rb', line 2437

def self.target_pools version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetPools)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_ssl_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetSslProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetSslProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetSslProxies

The TargetSslProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
# File 'lib/google/cloud/compute.rb', line 2467

def self.target_ssl_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetSslProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_tcp_proxies(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetTcpProxies.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetTcpProxies service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetTcpProxies

The TargetTcpProxies API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
# File 'lib/google/cloud/compute.rb', line 2497

def self.target_tcp_proxies version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetTcpProxies)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.target_vpn_gateways(version: :v1, &block) ⇒ ::Object

Create a new client object for TargetVpnGateways.

By default, this returns an instance of Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the TargetVpnGateways service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About TargetVpnGateways

The TargetVpnGateways API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
# File 'lib/google/cloud/compute.rb', line 2527

def self.target_vpn_gateways version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:TargetVpnGateways)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.url_maps(version: :v1, &block) ⇒ ::Object

Create a new client object for UrlMaps.

By default, this returns an instance of Google::Cloud::Compute::V1::UrlMaps::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the UrlMaps service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About UrlMaps

The UrlMaps API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
# File 'lib/google/cloud/compute.rb', line 2557

def self.url_maps version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:UrlMaps)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.vpn_gateways(version: :v1, &block) ⇒ ::Object

Create a new client object for VpnGateways.

By default, this returns an instance of Google::Cloud::Compute::V1::VpnGateways::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the VpnGateways service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About VpnGateways

The VpnGateways API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
# File 'lib/google/cloud/compute.rb', line 2587

def self.vpn_gateways version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:VpnGateways)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.vpn_tunnels(version: :v1, &block) ⇒ ::Object

Create a new client object for VpnTunnels.

By default, this returns an instance of Google::Cloud::Compute::V1::VpnTunnels::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the VpnTunnels service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About VpnTunnels

The VpnTunnels API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
# File 'lib/google/cloud/compute.rb', line 2617

def self.vpn_tunnels version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:VpnTunnels)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.zone_operations(version: :v1, &block) ⇒ ::Object

Create a new client object for ZoneOperations.

By default, this returns an instance of Google::Cloud::Compute::V1::ZoneOperations::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the ZoneOperations service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About ZoneOperations

The ZoneOperations API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
# File 'lib/google/cloud/compute.rb', line 2647

def self.zone_operations version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ZoneOperations)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end

.zones(version: :v1, &block) ⇒ ::Object

Create a new client object for Zones.

By default, this returns an instance of Google::Cloud::Compute::V1::Zones::Rest::Client for a REST client for version V1 of the API. However, you can specify a different API version by passing it in the version parameter. If the Zones service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.

About Zones

The Zones API.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v1)

    The API version to connect to. Optional. Defaults to :v1.

Returns:

  • (::Object)

    A client object for the specified version.



2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
# File 'lib/google/cloud/compute.rb', line 2677

def self.zones version: :v1, &block
  require "google/cloud/compute/#{version.to_s.downcase}"

  package_name = Google::Cloud::Compute
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Zones)
  service_module.const_get(:Rest).const_get(:Client).new(&block)
end