Module: Google::Cloud::Compute
- Defined in:
- lib/google/cloud/compute.rb,
lib/google/cloud/compute/version.rb
Constant Summary collapse
- VERSION =
"1.8.1"
Class Method Summary collapse
-
.accelerator_types(version: :v1, &block) ⇒ ::Object
Create a new client object for AcceleratorTypes.
-
.addresses(version: :v1, &block) ⇒ ::Object
Create a new client object for Addresses.
-
.autoscalers(version: :v1, &block) ⇒ ::Object
Create a new client object for Autoscalers.
-
.backend_buckets(version: :v1, &block) ⇒ ::Object
Create a new client object for BackendBuckets.
-
.backend_services(version: :v1, &block) ⇒ ::Object
Create a new client object for BackendServices.
-
.configure {|::Google::Cloud.configure.compute| ... } ⇒ ::Google::Cloud::Config
Configure the google-cloud-compute library.
-
.disk_types(version: :v1, &block) ⇒ ::Object
Create a new client object for DiskTypes.
-
.disks(version: :v1, &block) ⇒ ::Object
Create a new client object for Disks.
-
.external_vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for ExternalVpnGateways.
-
.firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for FirewallPolicies.
-
.firewalls(version: :v1, &block) ⇒ ::Object
Create a new client object for Firewalls.
-
.forwarding_rules(version: :v1, &block) ⇒ ::Object
Create a new client object for ForwardingRules.
-
.global_addresses(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalAddresses.
-
.global_forwarding_rules(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalForwardingRules.
-
.global_network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalNetworkEndpointGroups.
-
.global_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalOperations.
-
.global_organization_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalOrganizationOperations.
-
.global_public_delegated_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalPublicDelegatedPrefixes.
-
.health_checks(version: :v1, &block) ⇒ ::Object
Create a new client object for HealthChecks.
-
.image_family_views(version: :v1, &block) ⇒ ::Object
Create a new client object for ImageFamilyViews.
-
.images(version: :v1, &block) ⇒ ::Object
Create a new client object for Images.
-
.instance_group_manager_resize_requests(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroupManagerResizeRequests.
-
.instance_group_managers(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroupManagers.
-
.instance_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroups.
-
.instance_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceSettingsService.
-
.instance_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceTemplates.
-
.instances(version: :v1, &block) ⇒ ::Object
Create a new client object for Instances.
-
.instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for InstantSnapshots.
-
.interconnect_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectAttachments.
-
.interconnect_locations(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectLocations.
-
.interconnect_remote_locations(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectRemoteLocations.
-
.interconnects(version: :v1, &block) ⇒ ::Object
Create a new client object for Interconnects.
-
.license_codes(version: :v1, &block) ⇒ ::Object
Create a new client object for LicenseCodes.
-
.licenses(version: :v1, &block) ⇒ ::Object
Create a new client object for Licenses.
-
.machine_images(version: :v1, &block) ⇒ ::Object
Create a new client object for MachineImages.
-
.machine_types(version: :v1, &block) ⇒ ::Object
Create a new client object for MachineTypes.
-
.network_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkAttachments.
-
.network_edge_security_services(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkEdgeSecurityServices.
-
.network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkEndpointGroups.
-
.network_firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkFirewallPolicies.
-
.networks(version: :v1, &block) ⇒ ::Object
Create a new client object for Networks.
-
.node_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeGroups.
-
.node_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeTemplates.
-
.node_types(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeTypes.
-
.packet_mirrorings(version: :v1, &block) ⇒ ::Object
Create a new client object for PacketMirrorings.
-
.projects(version: :v1, &block) ⇒ ::Object
Create a new client object for Projects.
-
.public_advertised_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for PublicAdvertisedPrefixes.
-
.public_delegated_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for PublicDelegatedPrefixes.
-
.region_autoscalers(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionAutoscalers.
-
.region_backend_services(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionBackendServices.
-
.region_commitments(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionCommitments.
-
.region_disk_types(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionDiskTypes.
-
.region_disks(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionDisks.
-
.region_health_check_services(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionHealthCheckServices.
-
.region_health_checks(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionHealthChecks.
-
.region_instance_group_managers(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceGroupManagers.
-
.region_instance_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceGroups.
-
.region_instance_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceTemplates.
-
.region_instances(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstances.
-
.region_instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstantSnapshots.
-
.region_network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNetworkEndpointGroups.
-
.region_network_firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNetworkFirewallPolicies.
-
.region_notification_endpoints(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNotificationEndpoints.
-
.region_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionOperations.
-
.region_security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSecurityPolicies.
-
.region_ssl_certificates(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSslCertificates.
-
.region_ssl_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSslPolicies.
-
.region_target_http_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetHttpProxies.
-
.region_target_https_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetHttpsProxies.
-
.region_target_tcp_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetTcpProxies.
-
.region_url_maps(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionUrlMaps.
-
.region_zones(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionZones.
-
.regions(version: :v1, &block) ⇒ ::Object
Create a new client object for Regions.
-
.reservations(version: :v1, &block) ⇒ ::Object
Create a new client object for Reservations.
-
.resource_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for ResourcePolicies.
-
.routers(version: :v1, &block) ⇒ ::Object
Create a new client object for Routers.
-
.routes(version: :v1, &block) ⇒ ::Object
Create a new client object for Routes.
-
.security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for SecurityPolicies.
-
.service_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for ServiceAttachments.
-
.snapshot_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for SnapshotSettingsService.
-
.snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for Snapshots.
-
.ssl_certificates(version: :v1, &block) ⇒ ::Object
Create a new client object for SslCertificates.
-
.ssl_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for SslPolicies.
-
.storage_pool_types(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePoolTypes.
-
.storage_pools(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePools.
-
.subnetworks(version: :v1, &block) ⇒ ::Object
Create a new client object for Subnetworks.
-
.target_grpc_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetGrpcProxies.
-
.target_http_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetHttpProxies.
-
.target_https_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetHttpsProxies.
-
.target_instances(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetInstances.
-
.target_pools(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetPools.
-
.target_ssl_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetSslProxies.
-
.target_tcp_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetTcpProxies.
-
.target_vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetVpnGateways.
-
.url_maps(version: :v1, &block) ⇒ ::Object
Create a new client object for UrlMaps.
-
.vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for VpnGateways.
-
.vpn_tunnels(version: :v1, &block) ⇒ ::Object
Create a new client object for VpnTunnels.
-
.zone_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for ZoneOperations.
-
.zones(version: :v1, &block) ⇒ ::Object
Create a new client object for Zones.
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.
68 69 70 71 72 73 74 75 76 77 |
# File 'lib/google/cloud/compute.rb', line 68 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.
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/google/cloud/compute.rb', line 98 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.
128 129 130 131 132 133 134 135 136 137 |
# File 'lib/google/cloud/compute.rb', line 128 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.
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/google/cloud/compute.rb', line 158 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.
188 189 190 191 192 193 194 195 196 197 |
# File 'lib/google/cloud/compute.rb', line 188 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.
3015 3016 3017 3018 3019 |
# File 'lib/google/cloud/compute.rb', line 3015 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.
218 219 220 221 222 223 224 225 226 227 |
# File 'lib/google/cloud/compute.rb', line 218 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.
248 249 250 251 252 253 254 255 256 257 |
# File 'lib/google/cloud/compute.rb', line 248 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.
278 279 280 281 282 283 284 285 286 287 |
# File 'lib/google/cloud/compute.rb', line 278 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.
308 309 310 311 312 313 314 315 316 317 |
# File 'lib/google/cloud/compute.rb', line 308 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.
338 339 340 341 342 343 344 345 346 347 |
# File 'lib/google/cloud/compute.rb', line 338 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.
368 369 370 371 372 373 374 375 376 377 |
# File 'lib/google/cloud/compute.rb', line 368 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.
398 399 400 401 402 403 404 405 406 407 |
# File 'lib/google/cloud/compute.rb', line 398 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.
428 429 430 431 432 433 434 435 436 437 |
# File 'lib/google/cloud/compute.rb', line 428 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.
458 459 460 461 462 463 464 465 466 467 |
# File 'lib/google/cloud/compute.rb', line 458 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.
488 489 490 491 492 493 494 495 496 497 |
# File 'lib/google/cloud/compute.rb', line 488 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.
518 519 520 521 522 523 524 525 526 527 |
# File 'lib/google/cloud/compute.rb', line 518 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.
548 549 550 551 552 553 554 555 556 557 |
# File 'lib/google/cloud/compute.rb', line 548 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.
578 579 580 581 582 583 584 585 586 587 |
# File 'lib/google/cloud/compute.rb', line 578 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.
608 609 610 611 612 613 614 615 616 617 |
# File 'lib/google/cloud/compute.rb', line 608 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.
638 639 640 641 642 643 644 645 646 647 |
# File 'lib/google/cloud/compute.rb', line 638 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_manager_resize_requests(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroupManagerResizeRequests.
By default, this returns an instance of
Google::Cloud::Compute::V1::InstanceGroupManagerResizeRequests::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 InstanceGroupManagerResizeRequests service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About InstanceGroupManagerResizeRequests
The InstanceGroupManagerResizeRequests API.
668 669 670 671 672 673 674 675 676 677 |
# File 'lib/google/cloud/compute.rb', line 668 def self.instance_group_manager_resize_requests 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(:InstanceGroupManagerResizeRequests) 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.
698 699 700 701 702 703 704 705 706 707 |
# File 'lib/google/cloud/compute.rb', line 698 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.
728 729 730 731 732 733 734 735 736 737 |
# File 'lib/google/cloud/compute.rb', line 728 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_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceSettingsService.
By default, this returns an instance of
Google::Cloud::Compute::V1::InstanceSettingsService::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 InstanceSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About InstanceSettingsService
The InstanceSettings API.
758 759 760 761 762 763 764 765 766 767 |
# File 'lib/google/cloud/compute.rb', line 758 def self.instance_settings_service 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(:InstanceSettingsService) 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.
788 789 790 791 792 793 794 795 796 797 |
# File 'lib/google/cloud/compute.rb', line 788 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.
818 819 820 821 822 823 824 825 826 827 |
# File 'lib/google/cloud/compute.rb', line 818 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 |
.instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for InstantSnapshots.
By default, this returns an instance of
Google::Cloud::Compute::V1::InstantSnapshots::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 InstantSnapshots service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About InstantSnapshots
The InstantSnapshots API.
848 849 850 851 852 853 854 855 856 857 |
# File 'lib/google/cloud/compute.rb', line 848 def self.instant_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(:InstantSnapshots) 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.
878 879 880 881 882 883 884 885 886 887 |
# File 'lib/google/cloud/compute.rb', line 878 def self. 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.
908 909 910 911 912 913 914 915 916 917 |
# File 'lib/google/cloud/compute.rb', line 908 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 |
.interconnect_remote_locations(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectRemoteLocations.
By default, this returns an instance of
Google::Cloud::Compute::V1::InterconnectRemoteLocations::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 InterconnectRemoteLocations service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About InterconnectRemoteLocations
The InterconnectRemoteLocations API.
938 939 940 941 942 943 944 945 946 947 |
# File 'lib/google/cloud/compute.rb', line 938 def self.interconnect_remote_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(:InterconnectRemoteLocations) 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.
968 969 970 971 972 973 974 975 976 977 |
# File 'lib/google/cloud/compute.rb', line 968 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.
998 999 1000 1001 1002 1003 1004 1005 1006 1007 |
# File 'lib/google/cloud/compute.rb', line 998 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.
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 |
# File 'lib/google/cloud/compute.rb', line 1028 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.
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'lib/google/cloud/compute.rb', line 1058 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.
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/google/cloud/compute.rb', line 1088 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.
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/google/cloud/compute.rb', line 1118 def self. 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.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/google/cloud/compute.rb', line 1148 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.
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/google/cloud/compute.rb', line 1178 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.
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 |
# File 'lib/google/cloud/compute.rb', line 1208 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.
1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 |
# File 'lib/google/cloud/compute.rb', line 1238 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.
1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 |
# File 'lib/google/cloud/compute.rb', line 1268 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.
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/google/cloud/compute.rb', line 1298 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.
1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 |
# File 'lib/google/cloud/compute.rb', line 1328 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.
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 |
# File 'lib/google/cloud/compute.rb', line 1358 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.
1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 |
# File 'lib/google/cloud/compute.rb', line 1388 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.
1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 |
# File 'lib/google/cloud/compute.rb', line 1418 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.
1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 |
# File 'lib/google/cloud/compute.rb', line 1448 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.
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 |
# File 'lib/google/cloud/compute.rb', line 1478 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.
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 |
# File 'lib/google/cloud/compute.rb', line 1508 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.
1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 |
# File 'lib/google/cloud/compute.rb', line 1538 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.
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 |
# File 'lib/google/cloud/compute.rb', line 1568 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.
1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 |
# File 'lib/google/cloud/compute.rb', line 1598 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.
1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 |
# File 'lib/google/cloud/compute.rb', line 1628 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.
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 |
# File 'lib/google/cloud/compute.rb', line 1658 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.
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 |
# File 'lib/google/cloud/compute.rb', line 1688 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.
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/google/cloud/compute.rb', line 1718 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_instance_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceTemplates.
By default, this returns an instance of
Google::Cloud::Compute::V1::RegionInstanceTemplates::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 RegionInstanceTemplates service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About RegionInstanceTemplates
The RegionInstanceTemplates API.
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 |
# File 'lib/google/cloud/compute.rb', line 1748 def self.region_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(:RegionInstanceTemplates) 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.
1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 |
# File 'lib/google/cloud/compute.rb', line 1778 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_instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstantSnapshots.
By default, this returns an instance of
Google::Cloud::Compute::V1::RegionInstantSnapshots::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 RegionInstantSnapshots service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About RegionInstantSnapshots
The RegionInstantSnapshots API.
1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 |
# File 'lib/google/cloud/compute.rb', line 1808 def self.region_instant_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(:RegionInstantSnapshots) 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.
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 |
# File 'lib/google/cloud/compute.rb', line 1838 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.
1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 |
# File 'lib/google/cloud/compute.rb', line 1868 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.
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 |
# File 'lib/google/cloud/compute.rb', line 1898 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.
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 |
# File 'lib/google/cloud/compute.rb', line 1928 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.
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/google/cloud/compute.rb', line 1958 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.
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 |
# File 'lib/google/cloud/compute.rb', line 1988 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.
2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 |
# File 'lib/google/cloud/compute.rb', line 2018 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.
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 |
# File 'lib/google/cloud/compute.rb', line 2048 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.
2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 |
# File 'lib/google/cloud/compute.rb', line 2078 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.
2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 |
# File 'lib/google/cloud/compute.rb', line 2108 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.
2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 |
# File 'lib/google/cloud/compute.rb', line 2138 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 |
.region_zones(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionZones.
By default, this returns an instance of
Google::Cloud::Compute::V1::RegionZones::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 RegionZones service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About RegionZones
The RegionZones API.
2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 |
# File 'lib/google/cloud/compute.rb', line 2168 def self.region_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(:RegionZones) 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.
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 |
# File 'lib/google/cloud/compute.rb', line 2198 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.
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 |
# File 'lib/google/cloud/compute.rb', line 2228 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.
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 |
# File 'lib/google/cloud/compute.rb', line 2258 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.
2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 |
# File 'lib/google/cloud/compute.rb', line 2288 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.
2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 |
# File 'lib/google/cloud/compute.rb', line 2318 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.
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 |
# File 'lib/google/cloud/compute.rb', line 2348 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.
2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 |
# File 'lib/google/cloud/compute.rb', line 2378 def self. 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 |
.snapshot_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for SnapshotSettingsService.
By default, this returns an instance of
Google::Cloud::Compute::V1::SnapshotSettingsService::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 SnapshotSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About SnapshotSettingsService
The SnapshotSettings API.
2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 |
# File 'lib/google/cloud/compute.rb', line 2408 def self.snapshot_settings_service 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(:SnapshotSettingsService) 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.
2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 |
# File 'lib/google/cloud/compute.rb', line 2438 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.
2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 |
# File 'lib/google/cloud/compute.rb', line 2468 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.
2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 |
# File 'lib/google/cloud/compute.rb', line 2498 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 |
.storage_pool_types(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePoolTypes.
By default, this returns an instance of
Google::Cloud::Compute::V1::StoragePoolTypes::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 StoragePoolTypes service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About StoragePoolTypes
The StoragePoolTypes API.
2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 |
# File 'lib/google/cloud/compute.rb', line 2528 def self.storage_pool_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(:StoragePoolTypes) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.storage_pools(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePools.
By default, this returns an instance of
Google::Cloud::Compute::V1::StoragePools::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 StoragePools service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About StoragePools
The StoragePools API.
2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 |
# File 'lib/google/cloud/compute.rb', line 2558 def self.storage_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(:StoragePools) 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.
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 |
# File 'lib/google/cloud/compute.rb', line 2588 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.
2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 |
# File 'lib/google/cloud/compute.rb', line 2618 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.
2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 |
# File 'lib/google/cloud/compute.rb', line 2648 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.
2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 |
# File 'lib/google/cloud/compute.rb', line 2678 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.
2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 |
# File 'lib/google/cloud/compute.rb', line 2708 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.
2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 |
# File 'lib/google/cloud/compute.rb', line 2738 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.
2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 |
# File 'lib/google/cloud/compute.rb', line 2768 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.
2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 |
# File 'lib/google/cloud/compute.rb', line 2798 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.
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 |
# File 'lib/google/cloud/compute.rb', line 2828 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.
2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 |
# File 'lib/google/cloud/compute.rb', line 2858 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.
2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 |
# File 'lib/google/cloud/compute.rb', line 2888 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.
2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 |
# File 'lib/google/cloud/compute.rb', line 2918 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.
2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 |
# File 'lib/google/cloud/compute.rb', line 2948 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.
2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 |
# File 'lib/google/cloud/compute.rb', line 2978 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 |