Module: Google::Cloud::Compute
- Defined in:
- lib/google/cloud/compute.rb,
lib/google/cloud/compute/version.rb
Constant Summary collapse
- VERSION =
"1.14.0"
Class Method Summary collapse
-
.accelerator_types(version: :v1, &block) ⇒ ::Object
Create a new client object for AcceleratorTypes.
-
.accelerator_types_available?(version: :v1) ⇒ boolean
Determines whether the AcceleratorTypes service is supported by the current client.
-
.addresses(version: :v1, &block) ⇒ ::Object
Create a new client object for Addresses.
-
.addresses_available?(version: :v1) ⇒ boolean
Determines whether the Addresses service is supported by the current client.
-
.advice(version: :v1, &block) ⇒ ::Object
Create a new client object for Advice.
-
.advice_available?(version: :v1) ⇒ boolean
Determines whether the Advice service is supported by the current client.
-
.autoscalers(version: :v1, &block) ⇒ ::Object
Create a new client object for Autoscalers.
-
.autoscalers_available?(version: :v1) ⇒ boolean
Determines whether the Autoscalers service is supported by the current client.
-
.backend_buckets(version: :v1, &block) ⇒ ::Object
Create a new client object for BackendBuckets.
-
.backend_buckets_available?(version: :v1) ⇒ boolean
Determines whether the BackendBuckets service is supported by the current client.
-
.backend_services(version: :v1, &block) ⇒ ::Object
Create a new client object for BackendServices.
-
.backend_services_available?(version: :v1) ⇒ boolean
Determines whether the BackendServices service is supported by the current client.
-
.configure {|::Google::Cloud.configure.compute| ... } ⇒ ::Google::Cloud::Config
Configure the google-cloud-compute library.
-
.cross_site_networks(version: :v1, &block) ⇒ ::Object
Create a new client object for CrossSiteNetworks.
-
.cross_site_networks_available?(version: :v1) ⇒ boolean
Determines whether the CrossSiteNetworks service is supported by the current client.
-
.disk_types(version: :v1, &block) ⇒ ::Object
Create a new client object for DiskTypes.
-
.disk_types_available?(version: :v1) ⇒ boolean
Determines whether the DiskTypes service is supported by the current client.
-
.disks(version: :v1, &block) ⇒ ::Object
Create a new client object for Disks.
-
.disks_available?(version: :v1) ⇒ boolean
Determines whether the Disks service is supported by the current client.
-
.external_vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for ExternalVpnGateways.
-
.external_vpn_gateways_available?(version: :v1) ⇒ boolean
Determines whether the ExternalVpnGateways service is supported by the current client.
-
.firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for FirewallPolicies.
-
.firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the FirewallPolicies service is supported by the current client.
-
.firewalls(version: :v1, &block) ⇒ ::Object
Create a new client object for Firewalls.
-
.firewalls_available?(version: :v1) ⇒ boolean
Determines whether the Firewalls service is supported by the current client.
-
.forwarding_rules(version: :v1, &block) ⇒ ::Object
Create a new client object for ForwardingRules.
-
.forwarding_rules_available?(version: :v1) ⇒ boolean
Determines whether the ForwardingRules service is supported by the current client.
-
.future_reservations(version: :v1, &block) ⇒ ::Object
Create a new client object for FutureReservations.
-
.future_reservations_available?(version: :v1) ⇒ boolean
Determines whether the FutureReservations service is supported by the current client.
-
.global_addresses(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalAddresses.
-
.global_addresses_available?(version: :v1) ⇒ boolean
Determines whether the GlobalAddresses service is supported by the current client.
-
.global_forwarding_rules(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalForwardingRules.
-
.global_forwarding_rules_available?(version: :v1) ⇒ boolean
Determines whether the GlobalForwardingRules service is supported by the current client.
-
.global_network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalNetworkEndpointGroups.
-
.global_network_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the GlobalNetworkEndpointGroups service is supported by the current client.
-
.global_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalOperations.
-
.global_operations_available?(version: :v1) ⇒ boolean
Determines whether the GlobalOperations service is supported by the current client.
-
.global_organization_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalOrganizationOperations.
-
.global_organization_operations_available?(version: :v1) ⇒ boolean
Determines whether the GlobalOrganizationOperations service is supported by the current client.
-
.global_public_delegated_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for GlobalPublicDelegatedPrefixes.
-
.global_public_delegated_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the GlobalPublicDelegatedPrefixes service is supported by the current client.
-
.health_checks(version: :v1, &block) ⇒ ::Object
Create a new client object for HealthChecks.
-
.health_checks_available?(version: :v1) ⇒ boolean
Determines whether the HealthChecks service is supported by the current client.
-
.image_family_views(version: :v1, &block) ⇒ ::Object
Create a new client object for ImageFamilyViews.
-
.image_family_views_available?(version: :v1) ⇒ boolean
Determines whether the ImageFamilyViews service is supported by the current client.
-
.images(version: :v1, &block) ⇒ ::Object
Create a new client object for Images.
-
.images_available?(version: :v1) ⇒ boolean
Determines whether the Images service is supported by the current client.
-
.instance_group_manager_resize_requests(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroupManagerResizeRequests.
-
.instance_group_manager_resize_requests_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroupManagerResizeRequests service is supported by the current client.
-
.instance_group_managers(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroupManagers.
-
.instance_group_managers_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroupManagers service is supported by the current client.
-
.instance_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceGroups.
-
.instance_groups_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroups service is supported by the current client.
-
.instance_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceSettingsService.
-
.instance_settings_service_available?(version: :v1) ⇒ boolean
Determines whether the InstanceSettingsService service is supported by the current client.
-
.instance_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for InstanceTemplates.
-
.instance_templates_available?(version: :v1) ⇒ boolean
Determines whether the InstanceTemplates service is supported by the current client.
-
.instances(version: :v1, &block) ⇒ ::Object
Create a new client object for Instances.
-
.instances_available?(version: :v1) ⇒ boolean
Determines whether the Instances service is supported by the current client.
-
.instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for InstantSnapshots.
-
.instant_snapshots_available?(version: :v1) ⇒ boolean
Determines whether the InstantSnapshots service is supported by the current client.
-
.interconnect_attachment_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectAttachmentGroups.
-
.interconnect_attachment_groups_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectAttachmentGroups service is supported by the current client.
-
.interconnect_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectAttachments.
-
.interconnect_attachments_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectAttachments service is supported by the current client.
-
.interconnect_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectGroups.
-
.interconnect_groups_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectGroups service is supported by the current client.
-
.interconnect_locations(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectLocations.
-
.interconnect_locations_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectLocations service is supported by the current client.
-
.interconnect_remote_locations(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectRemoteLocations.
-
.interconnect_remote_locations_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectRemoteLocations service is supported by the current client.
-
.interconnects(version: :v1, &block) ⇒ ::Object
Create a new client object for Interconnects.
-
.interconnects_available?(version: :v1) ⇒ boolean
Determines whether the Interconnects service is supported by the current client.
-
.license_codes(version: :v1, &block) ⇒ ::Object
Create a new client object for LicenseCodes.
-
.license_codes_available?(version: :v1) ⇒ boolean
Determines whether the LicenseCodes service is supported by the current client.
-
.licenses(version: :v1, &block) ⇒ ::Object
Create a new client object for Licenses.
-
.licenses_available?(version: :v1) ⇒ boolean
Determines whether the Licenses service is supported by the current client.
-
.machine_images(version: :v1, &block) ⇒ ::Object
Create a new client object for MachineImages.
-
.machine_images_available?(version: :v1) ⇒ boolean
Determines whether the MachineImages service is supported by the current client.
-
.machine_types(version: :v1, &block) ⇒ ::Object
Create a new client object for MachineTypes.
-
.machine_types_available?(version: :v1) ⇒ boolean
Determines whether the MachineTypes service is supported by the current client.
-
.network_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkAttachments.
-
.network_attachments_available?(version: :v1) ⇒ boolean
Determines whether the NetworkAttachments service is supported by the current client.
-
.network_edge_security_services(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkEdgeSecurityServices.
-
.network_edge_security_services_available?(version: :v1) ⇒ boolean
Determines whether the NetworkEdgeSecurityServices service is supported by the current client.
-
.network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkEndpointGroups.
-
.network_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the NetworkEndpointGroups service is supported by the current client.
-
.network_firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkFirewallPolicies.
-
.network_firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the NetworkFirewallPolicies service is supported by the current client.
-
.network_profiles(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkProfiles.
-
.network_profiles_available?(version: :v1) ⇒ boolean
Determines whether the NetworkProfiles service is supported by the current client.
-
.networks(version: :v1, &block) ⇒ ::Object
Create a new client object for Networks.
-
.networks_available?(version: :v1) ⇒ boolean
Determines whether the Networks service is supported by the current client.
-
.node_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeGroups.
-
.node_groups_available?(version: :v1) ⇒ boolean
Determines whether the NodeGroups service is supported by the current client.
-
.node_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeTemplates.
-
.node_templates_available?(version: :v1) ⇒ boolean
Determines whether the NodeTemplates service is supported by the current client.
-
.node_types(version: :v1, &block) ⇒ ::Object
Create a new client object for NodeTypes.
-
.node_types_available?(version: :v1) ⇒ boolean
Determines whether the NodeTypes service is supported by the current client.
-
.organization_security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for OrganizationSecurityPolicies.
-
.organization_security_policies_available?(version: :v1) ⇒ boolean
Determines whether the OrganizationSecurityPolicies service is supported by the current client.
-
.packet_mirrorings(version: :v1, &block) ⇒ ::Object
Create a new client object for PacketMirrorings.
-
.packet_mirrorings_available?(version: :v1) ⇒ boolean
Determines whether the PacketMirrorings service is supported by the current client.
-
.preview_features(version: :v1, &block) ⇒ ::Object
Create a new client object for PreviewFeatures.
-
.preview_features_available?(version: :v1) ⇒ boolean
Determines whether the PreviewFeatures service is supported by the current client.
-
.projects(version: :v1, &block) ⇒ ::Object
Create a new client object for Projects.
-
.projects_available?(version: :v1) ⇒ boolean
Determines whether the Projects service is supported by the current client.
-
.public_advertised_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for PublicAdvertisedPrefixes.
-
.public_advertised_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the PublicAdvertisedPrefixes service is supported by the current client.
-
.public_delegated_prefixes(version: :v1, &block) ⇒ ::Object
Create a new client object for PublicDelegatedPrefixes.
-
.public_delegated_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the PublicDelegatedPrefixes service is supported by the current client.
-
.region_autoscalers(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionAutoscalers.
-
.region_autoscalers_available?(version: :v1) ⇒ boolean
Determines whether the RegionAutoscalers service is supported by the current client.
-
.region_backend_services(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionBackendServices.
-
.region_backend_services_available?(version: :v1) ⇒ boolean
Determines whether the RegionBackendServices service is supported by the current client.
-
.region_commitments(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionCommitments.
-
.region_commitments_available?(version: :v1) ⇒ boolean
Determines whether the RegionCommitments service is supported by the current client.
-
.region_disk_types(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionDiskTypes.
-
.region_disk_types_available?(version: :v1) ⇒ boolean
Determines whether the RegionDiskTypes service is supported by the current client.
-
.region_disks(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionDisks.
-
.region_disks_available?(version: :v1) ⇒ boolean
Determines whether the RegionDisks service is supported by the current client.
-
.region_health_check_services(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionHealthCheckServices.
-
.region_health_check_services_available?(version: :v1) ⇒ boolean
Determines whether the RegionHealthCheckServices service is supported by the current client.
-
.region_health_checks(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionHealthChecks.
-
.region_health_checks_available?(version: :v1) ⇒ boolean
Determines whether the RegionHealthChecks service is supported by the current client.
-
.region_instance_group_managers(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceGroupManagers.
-
.region_instance_group_managers_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceGroupManagers service is supported by the current client.
-
.region_instance_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceGroups.
-
.region_instance_groups_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceGroups service is supported by the current client.
-
.region_instance_templates(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstanceTemplates.
-
.region_instance_templates_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceTemplates service is supported by the current client.
-
.region_instances(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstances.
-
.region_instances_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstances service is supported by the current client.
-
.region_instant_snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionInstantSnapshots.
-
.region_instant_snapshots_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstantSnapshots service is supported by the current client.
-
.region_network_endpoint_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNetworkEndpointGroups.
-
.region_network_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the RegionNetworkEndpointGroups service is supported by the current client.
-
.region_network_firewall_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNetworkFirewallPolicies.
-
.region_network_firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionNetworkFirewallPolicies service is supported by the current client.
-
.region_notification_endpoints(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionNotificationEndpoints.
-
.region_notification_endpoints_available?(version: :v1) ⇒ boolean
Determines whether the RegionNotificationEndpoints service is supported by the current client.
-
.region_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionOperations.
-
.region_operations_available?(version: :v1) ⇒ boolean
Determines whether the RegionOperations service is supported by the current client.
-
.region_security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSecurityPolicies.
-
.region_security_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionSecurityPolicies service is supported by the current client.
-
.region_ssl_certificates(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSslCertificates.
-
.region_ssl_certificates_available?(version: :v1) ⇒ boolean
Determines whether the RegionSslCertificates service is supported by the current client.
-
.region_ssl_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionSslPolicies.
-
.region_ssl_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionSslPolicies service is supported by the current client.
-
.region_target_http_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetHttpProxies.
-
.region_target_http_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetHttpProxies service is supported by the current client.
-
.region_target_https_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetHttpsProxies.
-
.region_target_https_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetHttpsProxies service is supported by the current client.
-
.region_target_tcp_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionTargetTcpProxies.
-
.region_target_tcp_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetTcpProxies service is supported by the current client.
-
.region_url_maps(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionUrlMaps.
-
.region_url_maps_available?(version: :v1) ⇒ boolean
Determines whether the RegionUrlMaps service is supported by the current client.
-
.region_zones(version: :v1, &block) ⇒ ::Object
Create a new client object for RegionZones.
-
.region_zones_available?(version: :v1) ⇒ boolean
Determines whether the RegionZones service is supported by the current client.
-
.regions(version: :v1, &block) ⇒ ::Object
Create a new client object for Regions.
-
.regions_available?(version: :v1) ⇒ boolean
Determines whether the Regions service is supported by the current client.
-
.reservation_blocks(version: :v1, &block) ⇒ ::Object
Create a new client object for ReservationBlocks.
-
.reservation_blocks_available?(version: :v1) ⇒ boolean
Determines whether the ReservationBlocks service is supported by the current client.
-
.reservation_sub_blocks(version: :v1, &block) ⇒ ::Object
Create a new client object for ReservationSubBlocks.
-
.reservation_sub_blocks_available?(version: :v1) ⇒ boolean
Determines whether the ReservationSubBlocks service is supported by the current client.
-
.reservations(version: :v1, &block) ⇒ ::Object
Create a new client object for Reservations.
-
.reservations_available?(version: :v1) ⇒ boolean
Determines whether the Reservations service is supported by the current client.
-
.resource_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for ResourcePolicies.
-
.resource_policies_available?(version: :v1) ⇒ boolean
Determines whether the ResourcePolicies service is supported by the current client.
-
.routers(version: :v1, &block) ⇒ ::Object
Create a new client object for Routers.
-
.routers_available?(version: :v1) ⇒ boolean
Determines whether the Routers service is supported by the current client.
-
.routes(version: :v1, &block) ⇒ ::Object
Create a new client object for Routes.
-
.routes_available?(version: :v1) ⇒ boolean
Determines whether the Routes service is supported by the current client.
-
.security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for SecurityPolicies.
-
.security_policies_available?(version: :v1) ⇒ boolean
Determines whether the SecurityPolicies service is supported by the current client.
-
.service_attachments(version: :v1, &block) ⇒ ::Object
Create a new client object for ServiceAttachments.
-
.service_attachments_available?(version: :v1) ⇒ boolean
Determines whether the ServiceAttachments service is supported by the current client.
-
.snapshot_settings_service(version: :v1, &block) ⇒ ::Object
Create a new client object for SnapshotSettingsService.
-
.snapshot_settings_service_available?(version: :v1) ⇒ boolean
Determines whether the SnapshotSettingsService service is supported by the current client.
-
.snapshots(version: :v1, &block) ⇒ ::Object
Create a new client object for Snapshots.
-
.snapshots_available?(version: :v1) ⇒ boolean
Determines whether the Snapshots service is supported by the current client.
-
.ssl_certificates(version: :v1, &block) ⇒ ::Object
Create a new client object for SslCertificates.
-
.ssl_certificates_available?(version: :v1) ⇒ boolean
Determines whether the SslCertificates service is supported by the current client.
-
.ssl_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for SslPolicies.
-
.ssl_policies_available?(version: :v1) ⇒ boolean
Determines whether the SslPolicies service is supported by the current client.
-
.storage_pool_types(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePoolTypes.
-
.storage_pool_types_available?(version: :v1) ⇒ boolean
Determines whether the StoragePoolTypes service is supported by the current client.
-
.storage_pools(version: :v1, &block) ⇒ ::Object
Create a new client object for StoragePools.
-
.storage_pools_available?(version: :v1) ⇒ boolean
Determines whether the StoragePools service is supported by the current client.
-
.subnetworks(version: :v1, &block) ⇒ ::Object
Create a new client object for Subnetworks.
-
.subnetworks_available?(version: :v1) ⇒ boolean
Determines whether the Subnetworks service is supported by the current client.
-
.target_grpc_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetGrpcProxies.
-
.target_grpc_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetGrpcProxies service is supported by the current client.
-
.target_http_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetHttpProxies.
-
.target_http_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetHttpProxies service is supported by the current client.
-
.target_https_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetHttpsProxies.
-
.target_https_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetHttpsProxies service is supported by the current client.
-
.target_instances(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetInstances.
-
.target_instances_available?(version: :v1) ⇒ boolean
Determines whether the TargetInstances service is supported by the current client.
-
.target_pools(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetPools.
-
.target_pools_available?(version: :v1) ⇒ boolean
Determines whether the TargetPools service is supported by the current client.
-
.target_ssl_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetSslProxies.
-
.target_ssl_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetSslProxies service is supported by the current client.
-
.target_tcp_proxies(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetTcpProxies.
-
.target_tcp_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetTcpProxies service is supported by the current client.
-
.target_vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for TargetVpnGateways.
-
.target_vpn_gateways_available?(version: :v1) ⇒ boolean
Determines whether the TargetVpnGateways service is supported by the current client.
-
.url_maps(version: :v1, &block) ⇒ ::Object
Create a new client object for UrlMaps.
-
.url_maps_available?(version: :v1) ⇒ boolean
Determines whether the UrlMaps service is supported by the current client.
-
.vpn_gateways(version: :v1, &block) ⇒ ::Object
Create a new client object for VpnGateways.
-
.vpn_gateways_available?(version: :v1) ⇒ boolean
Determines whether the VpnGateways service is supported by the current client.
-
.vpn_tunnels(version: :v1, &block) ⇒ ::Object
Create a new client object for VpnTunnels.
-
.vpn_tunnels_available?(version: :v1) ⇒ boolean
Determines whether the VpnTunnels service is supported by the current client.
-
.wire_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for WireGroups.
-
.wire_groups_available?(version: :v1) ⇒ boolean
Determines whether the WireGroups service is supported by the current client.
-
.zone_operations(version: :v1, &block) ⇒ ::Object
Create a new client object for ZoneOperations.
-
.zone_operations_available?(version: :v1) ⇒ boolean
Determines whether the ZoneOperations service is supported by the current client.
-
.zones(version: :v1, &block) ⇒ ::Object
Create a new client object for Zones.
-
.zones_available?(version: :v1) ⇒ boolean
Determines whether the Zones service is supported by the current client.
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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the AcceleratorTypes service. You can determine whether the method will succeed by calling accelerator_types_available?.
About AcceleratorTypes
Services
The AcceleratorTypes API.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/google/cloud/compute.rb', line 73 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 |
.accelerator_types_available?(version: :v1) ⇒ boolean
Determines whether the AcceleratorTypes service is supported by the current client. If true, you can retrieve a client object by calling accelerator_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AcceleratorTypes service, or if the versioned client gem needs an update to support the AcceleratorTypes service.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/google/cloud/compute.rb', line 95 def self.accelerator_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :AcceleratorTypes service_module = service_module.const_get :AcceleratorTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Addresses service. You can determine whether the method will succeed by calling addresses_available?.
About Addresses
The Addresses API.
136 137 138 139 140 141 142 143 144 145 |
# File 'lib/google/cloud/compute.rb', line 136 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 |
.addresses_available?(version: :v1) ⇒ boolean
Determines whether the Addresses service is supported by the current client. If true, you can retrieve a client object by calling addresses. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Addresses service, or if the versioned client gem needs an update to support the Addresses service.
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/google/cloud/compute.rb', line 158 def self.addresses_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Addresses service_module = service_module.const_get :Addresses return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.advice(version: :v1, &block) ⇒ ::Object
Create a new client object for Advice.
By default, this returns an instance of
Google::Cloud::Compute::V1::Advice::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 Advice service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Advice service. You can determine whether the method will succeed by calling advice_available?.
About Advice
The Advice API.
199 200 201 202 203 204 205 206 207 208 |
# File 'lib/google/cloud/compute.rb', line 199 def self.advice 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(:Advice) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.advice_available?(version: :v1) ⇒ boolean
Determines whether the Advice service is supported by the current client. If true, you can retrieve a client object by calling advice. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Advice service, or if the versioned client gem needs an update to support the Advice service.
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/google/cloud/compute.rb', line 221 def self.advice_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Advice service_module = service_module.const_get :Advice return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Autoscalers service. You can determine whether the method will succeed by calling autoscalers_available?.
About Autoscalers
The Autoscalers API.
262 263 264 265 266 267 268 269 270 271 |
# File 'lib/google/cloud/compute.rb', line 262 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 |
.autoscalers_available?(version: :v1) ⇒ boolean
Determines whether the Autoscalers service is supported by the current client. If true, you can retrieve a client object by calling autoscalers. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Autoscalers service, or if the versioned client gem needs an update to support the Autoscalers service.
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/google/cloud/compute.rb', line 284 def self.autoscalers_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Autoscalers service_module = service_module.const_get :Autoscalers return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the BackendBuckets service. You can determine whether the method will succeed by calling backend_buckets_available?.
About BackendBuckets
The BackendBuckets API.
325 326 327 328 329 330 331 332 333 334 |
# File 'lib/google/cloud/compute.rb', line 325 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_buckets_available?(version: :v1) ⇒ boolean
Determines whether the BackendBuckets service is supported by the current client. If true, you can retrieve a client object by calling backend_buckets. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the BackendBuckets service, or if the versioned client gem needs an update to support the BackendBuckets service.
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/google/cloud/compute.rb', line 347 def self.backend_buckets_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :BackendBuckets service_module = service_module.const_get :BackendBuckets return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the BackendServices service. You can determine whether the method will succeed by calling backend_services_available?.
About BackendServices
The BackendServices API.
388 389 390 391 392 393 394 395 396 397 |
# File 'lib/google/cloud/compute.rb', line 388 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 |
.backend_services_available?(version: :v1) ⇒ boolean
Determines whether the BackendServices service is supported by the current client. If true, you can retrieve a client object by calling backend_services. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the BackendServices service, or if the versioned client gem needs an update to support the BackendServices service.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/google/cloud/compute.rb', line 410 def self.backend_services_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :BackendServices service_module = service_module.const_get :BackendServices return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
6942 6943 6944 6945 6946 |
# File 'lib/google/cloud/compute.rb', line 6942 def self.configure yield ::Google::Cloud.configure.compute if block_given? ::Google::Cloud.configure.compute end |
.cross_site_networks(version: :v1, &block) ⇒ ::Object
Create a new client object for CrossSiteNetworks.
By default, this returns an instance of
Google::Cloud::Compute::V1::CrossSiteNetworks::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 CrossSiteNetworks service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the CrossSiteNetworks service. You can determine whether the method will succeed by calling cross_site_networks_available?.
About CrossSiteNetworks
The CrossSiteNetworks API.
451 452 453 454 455 456 457 458 459 460 |
# File 'lib/google/cloud/compute.rb', line 451 def self.cross_site_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(:CrossSiteNetworks) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.cross_site_networks_available?(version: :v1) ⇒ boolean
Determines whether the CrossSiteNetworks service is supported by the current client. If true, you can retrieve a client object by calling cross_site_networks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the CrossSiteNetworks service, or if the versioned client gem needs an update to support the CrossSiteNetworks service.
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/google/cloud/compute.rb', line 473 def self.cross_site_networks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :CrossSiteNetworks service_module = service_module.const_get :CrossSiteNetworks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the DiskTypes service. You can determine whether the method will succeed by calling disk_types_available?.
About DiskTypes
The DiskTypes API.
514 515 516 517 518 519 520 521 522 523 |
# File 'lib/google/cloud/compute.rb', line 514 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 |
.disk_types_available?(version: :v1) ⇒ boolean
Determines whether the DiskTypes service is supported by the current client. If true, you can retrieve a client object by calling disk_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the DiskTypes service, or if the versioned client gem needs an update to support the DiskTypes service.
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'lib/google/cloud/compute.rb', line 536 def self.disk_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :DiskTypes service_module = service_module.const_get :DiskTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Disks service. You can determine whether the method will succeed by calling disks_available?.
About Disks
The Disks API.
577 578 579 580 581 582 583 584 585 586 |
# File 'lib/google/cloud/compute.rb', line 577 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 |
.disks_available?(version: :v1) ⇒ boolean
Determines whether the Disks service is supported by the current client. If true, you can retrieve a client object by calling disks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Disks service, or if the versioned client gem needs an update to support the Disks service.
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/google/cloud/compute.rb', line 599 def self.disks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Disks service_module = service_module.const_get :Disks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ExternalVpnGateways service. You can determine whether the method will succeed by calling external_vpn_gateways_available?.
About ExternalVpnGateways
The ExternalVpnGateways API.
640 641 642 643 644 645 646 647 648 649 |
# File 'lib/google/cloud/compute.rb', line 640 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 |
.external_vpn_gateways_available?(version: :v1) ⇒ boolean
Determines whether the ExternalVpnGateways service is supported by the current client. If true, you can retrieve a client object by calling external_vpn_gateways. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ExternalVpnGateways service, or if the versioned client gem needs an update to support the ExternalVpnGateways service.
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
# File 'lib/google/cloud/compute.rb', line 662 def self.external_vpn_gateways_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ExternalVpnGateways service_module = service_module.const_get :ExternalVpnGateways return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the FirewallPolicies service. You can determine whether the method will succeed by calling firewall_policies_available?.
About FirewallPolicies
The FirewallPolicies API.
703 704 705 706 707 708 709 710 711 712 |
# File 'lib/google/cloud/compute.rb', line 703 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 |
.firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the FirewallPolicies service is supported by the current client. If true, you can retrieve a client object by calling firewall_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the FirewallPolicies service, or if the versioned client gem needs an update to support the FirewallPolicies service.
725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/google/cloud/compute.rb', line 725 def self.firewall_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :FirewallPolicies service_module = service_module.const_get :FirewallPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Firewalls service. You can determine whether the method will succeed by calling firewalls_available?.
About Firewalls
The Firewalls API.
766 767 768 769 770 771 772 773 774 775 |
# File 'lib/google/cloud/compute.rb', line 766 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 |
.firewalls_available?(version: :v1) ⇒ boolean
Determines whether the Firewalls service is supported by the current client. If true, you can retrieve a client object by calling firewalls. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Firewalls service, or if the versioned client gem needs an update to support the Firewalls service.
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/google/cloud/compute.rb', line 788 def self.firewalls_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Firewalls service_module = service_module.const_get :Firewalls return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ForwardingRules service. You can determine whether the method will succeed by calling forwarding_rules_available?.
About ForwardingRules
The ForwardingRules API.
829 830 831 832 833 834 835 836 837 838 |
# File 'lib/google/cloud/compute.rb', line 829 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 |
.forwarding_rules_available?(version: :v1) ⇒ boolean
Determines whether the ForwardingRules service is supported by the current client. If true, you can retrieve a client object by calling forwarding_rules. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ForwardingRules service, or if the versioned client gem needs an update to support the ForwardingRules service.
851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 |
# File 'lib/google/cloud/compute.rb', line 851 def self.forwarding_rules_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ForwardingRules service_module = service_module.const_get :ForwardingRules return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.future_reservations(version: :v1, &block) ⇒ ::Object
Create a new client object for FutureReservations.
By default, this returns an instance of
Google::Cloud::Compute::V1::FutureReservations::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 FutureReservations service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the FutureReservations service. You can determine whether the method will succeed by calling future_reservations_available?.
About FutureReservations
The FutureReservations API.
892 893 894 895 896 897 898 899 900 901 |
# File 'lib/google/cloud/compute.rb', line 892 def self.future_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(:FutureReservations) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.future_reservations_available?(version: :v1) ⇒ boolean
Determines whether the FutureReservations service is supported by the current client. If true, you can retrieve a client object by calling future_reservations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the FutureReservations service, or if the versioned client gem needs an update to support the FutureReservations service.
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 |
# File 'lib/google/cloud/compute.rb', line 914 def self.future_reservations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :FutureReservations service_module = service_module.const_get :FutureReservations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalAddresses service. You can determine whether the method will succeed by calling global_addresses_available?.
About GlobalAddresses
The GlobalAddresses API.
955 956 957 958 959 960 961 962 963 964 |
# File 'lib/google/cloud/compute.rb', line 955 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_addresses_available?(version: :v1) ⇒ boolean
Determines whether the GlobalAddresses service is supported by the current client. If true, you can retrieve a client object by calling global_addresses. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalAddresses service, or if the versioned client gem needs an update to support the GlobalAddresses service.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 |
# File 'lib/google/cloud/compute.rb', line 977 def self.global_addresses_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalAddresses service_module = service_module.const_get :GlobalAddresses return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalForwardingRules service. You can determine whether the method will succeed by calling global_forwarding_rules_available?.
About GlobalForwardingRules
The GlobalForwardingRules API.
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'lib/google/cloud/compute.rb', line 1018 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_forwarding_rules_available?(version: :v1) ⇒ boolean
Determines whether the GlobalForwardingRules service is supported by the current client. If true, you can retrieve a client object by calling global_forwarding_rules. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalForwardingRules service, or if the versioned client gem needs an update to support the GlobalForwardingRules service.
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'lib/google/cloud/compute.rb', line 1040 def self.global_forwarding_rules_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalForwardingRules service_module = service_module.const_get :GlobalForwardingRules return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalNetworkEndpointGroups service. You can determine whether the method will succeed by calling global_network_endpoint_groups_available?.
About GlobalNetworkEndpointGroups
The GlobalNetworkEndpointGroups API.
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 |
# File 'lib/google/cloud/compute.rb', line 1081 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_network_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the GlobalNetworkEndpointGroups service is supported by the current client. If true, you can retrieve a client object by calling global_network_endpoint_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalNetworkEndpointGroups service, or if the versioned client gem needs an update to support the GlobalNetworkEndpointGroups service.
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 |
# File 'lib/google/cloud/compute.rb', line 1103 def self.global_network_endpoint_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalNetworkEndpointGroups service_module = service_module.const_get :GlobalNetworkEndpointGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalOperations service. You can determine whether the method will succeed by calling global_operations_available?.
About GlobalOperations
The GlobalOperations API.
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'lib/google/cloud/compute.rb', line 1144 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_operations_available?(version: :v1) ⇒ boolean
Determines whether the GlobalOperations service is supported by the current client. If true, you can retrieve a client object by calling global_operations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalOperations service, or if the versioned client gem needs an update to support the GlobalOperations service.
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/google/cloud/compute.rb', line 1166 def self.global_operations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalOperations service_module = service_module.const_get :GlobalOperations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalOrganizationOperations service. You can determine whether the method will succeed by calling global_organization_operations_available?.
About GlobalOrganizationOperations
The GlobalOrganizationOperations API.
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'lib/google/cloud/compute.rb', line 1207 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_organization_operations_available?(version: :v1) ⇒ boolean
Determines whether the GlobalOrganizationOperations service is supported by the current client. If true, you can retrieve a client object by calling global_organization_operations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalOrganizationOperations service, or if the versioned client gem needs an update to support the GlobalOrganizationOperations service.
1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 |
# File 'lib/google/cloud/compute.rb', line 1229 def self.global_organization_operations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalOrganizationOperations service_module = service_module.const_get :GlobalOrganizationOperations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the GlobalPublicDelegatedPrefixes service. You can determine whether the method will succeed by calling global_public_delegated_prefixes_available?.
About GlobalPublicDelegatedPrefixes
The GlobalPublicDelegatedPrefixes API.
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 |
# File 'lib/google/cloud/compute.rb', line 1270 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 |
.global_public_delegated_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the GlobalPublicDelegatedPrefixes service is supported by the current client. If true, you can retrieve a client object by calling global_public_delegated_prefixes. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GlobalPublicDelegatedPrefixes service, or if the versioned client gem needs an update to support the GlobalPublicDelegatedPrefixes service.
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/google/cloud/compute.rb', line 1292 def self.global_public_delegated_prefixes_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :GlobalPublicDelegatedPrefixes service_module = service_module.const_get :GlobalPublicDelegatedPrefixes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the HealthChecks service. You can determine whether the method will succeed by calling health_checks_available?.
About HealthChecks
The HealthChecks API.
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 |
# File 'lib/google/cloud/compute.rb', line 1333 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 |
.health_checks_available?(version: :v1) ⇒ boolean
Determines whether the HealthChecks service is supported by the current client. If true, you can retrieve a client object by calling health_checks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the HealthChecks service, or if the versioned client gem needs an update to support the HealthChecks service.
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/google/cloud/compute.rb', line 1355 def self.health_checks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :HealthChecks service_module = service_module.const_get :HealthChecks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ImageFamilyViews service. You can determine whether the method will succeed by calling image_family_views_available?.
About ImageFamilyViews
The ImageFamilyViews API.
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 |
# File 'lib/google/cloud/compute.rb', line 1396 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 |
.image_family_views_available?(version: :v1) ⇒ boolean
Determines whether the ImageFamilyViews service is supported by the current client. If true, you can retrieve a client object by calling image_family_views. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ImageFamilyViews service, or if the versioned client gem needs an update to support the ImageFamilyViews service.
1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 |
# File 'lib/google/cloud/compute.rb', line 1418 def self.image_family_views_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ImageFamilyViews service_module = service_module.const_get :ImageFamilyViews return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Images service. You can determine whether the method will succeed by calling images_available?.
About Images
The Images API.
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 |
# File 'lib/google/cloud/compute.rb', line 1459 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 |
.images_available?(version: :v1) ⇒ boolean
Determines whether the Images service is supported by the current client. If true, you can retrieve a client object by calling images. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Images service, or if the versioned client gem needs an update to support the Images service.
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/google/cloud/compute.rb', line 1481 def self.images_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Images service_module = service_module.const_get :Images return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstanceGroupManagerResizeRequests service. You can determine whether the method will succeed by calling instance_group_manager_resize_requests_available?.
About InstanceGroupManagerResizeRequests
The InstanceGroupManagerResizeRequests API.
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 |
# File 'lib/google/cloud/compute.rb', line 1522 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_manager_resize_requests_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroupManagerResizeRequests service is supported by the current client. If true, you can retrieve a client object by calling instance_group_manager_resize_requests. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstanceGroupManagerResizeRequests service, or if the versioned client gem needs an update to support the InstanceGroupManagerResizeRequests service.
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/google/cloud/compute.rb', line 1544 def self.instance_group_manager_resize_requests_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstanceGroupManagerResizeRequests service_module = service_module.const_get :InstanceGroupManagerResizeRequests return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstanceGroupManagers service. You can determine whether the method will succeed by calling instance_group_managers_available?.
About InstanceGroupManagers
The InstanceGroupManagers API.
1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 |
# File 'lib/google/cloud/compute.rb', line 1585 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_group_managers_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroupManagers service is supported by the current client. If true, you can retrieve a client object by calling instance_group_managers. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstanceGroupManagers service, or if the versioned client gem needs an update to support the InstanceGroupManagers service.
1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 |
# File 'lib/google/cloud/compute.rb', line 1607 def self.instance_group_managers_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstanceGroupManagers service_module = service_module.const_get :InstanceGroupManagers return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstanceGroups service. You can determine whether the method will succeed by calling instance_groups_available?.
About InstanceGroups
The InstanceGroups API.
1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File 'lib/google/cloud/compute.rb', line 1648 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_groups_available?(version: :v1) ⇒ boolean
Determines whether the InstanceGroups service is supported by the current client. If true, you can retrieve a client object by calling instance_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstanceGroups service, or if the versioned client gem needs an update to support the InstanceGroups service.
1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 |
# File 'lib/google/cloud/compute.rb', line 1670 def self.instance_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstanceGroups service_module = service_module.const_get :InstanceGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstanceSettingsService service. You can determine whether the method will succeed by calling instance_settings_service_available?.
About InstanceSettingsService
The InstanceSettings API.
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/google/cloud/compute.rb', line 1711 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_settings_service_available?(version: :v1) ⇒ boolean
Determines whether the InstanceSettingsService service is supported by the current client. If true, you can retrieve a client object by calling instance_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstanceSettingsService service, or if the versioned client gem needs an update to support the InstanceSettingsService service.
1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 |
# File 'lib/google/cloud/compute.rb', line 1733 def self.instance_settings_service_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstanceSettingsService service_module = service_module.const_get :InstanceSettingsService return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstanceTemplates service. You can determine whether the method will succeed by calling instance_templates_available?.
About InstanceTemplates
The InstanceTemplates API.
1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 |
# File 'lib/google/cloud/compute.rb', line 1774 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 |
.instance_templates_available?(version: :v1) ⇒ boolean
Determines whether the InstanceTemplates service is supported by the current client. If true, you can retrieve a client object by calling instance_templates. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstanceTemplates service, or if the versioned client gem needs an update to support the InstanceTemplates service.
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/google/cloud/compute.rb', line 1796 def self.instance_templates_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstanceTemplates service_module = service_module.const_get :InstanceTemplates return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Instances service. You can determine whether the method will succeed by calling instances_available?.
About Instances
The Instances API.
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 |
# File 'lib/google/cloud/compute.rb', line 1837 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 |
.instances_available?(version: :v1) ⇒ boolean
Determines whether the Instances service is supported by the current client. If true, you can retrieve a client object by calling instances. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Instances service, or if the versioned client gem needs an update to support the Instances service.
1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/google/cloud/compute.rb', line 1859 def self.instances_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Instances service_module = service_module.const_get :Instances return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InstantSnapshots service. You can determine whether the method will succeed by calling instant_snapshots_available?.
About InstantSnapshots
The InstantSnapshots API.
1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 |
# File 'lib/google/cloud/compute.rb', line 1900 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 |
.instant_snapshots_available?(version: :v1) ⇒ boolean
Determines whether the InstantSnapshots service is supported by the current client. If true, you can retrieve a client object by calling instant_snapshots. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InstantSnapshots service, or if the versioned client gem needs an update to support the InstantSnapshots service.
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 |
# File 'lib/google/cloud/compute.rb', line 1922 def self.instant_snapshots_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InstantSnapshots service_module = service_module.const_get :InstantSnapshots return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.interconnect_attachment_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectAttachmentGroups.
By default, this returns an instance of
Google::Cloud::Compute::V1::InterconnectAttachmentGroups::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 InterconnectAttachmentGroups service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InterconnectAttachmentGroups service. You can determine whether the method will succeed by calling interconnect_attachment_groups_available?.
About InterconnectAttachmentGroups
The InterconnectAttachmentGroups API.
1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 |
# File 'lib/google/cloud/compute.rb', line 1963 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(:InterconnectAttachmentGroups) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.interconnect_attachment_groups_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectAttachmentGroups service is supported by the current client. If true, you can retrieve a client object by calling interconnect_attachment_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InterconnectAttachmentGroups service, or if the versioned client gem needs an update to support the InterconnectAttachmentGroups service.
1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 |
# File 'lib/google/cloud/compute.rb', line 1985 def self. version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InterconnectAttachmentGroups service_module = service_module.const_get :InterconnectAttachmentGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InterconnectAttachments service. You can determine whether the method will succeed by calling interconnect_attachments_available?.
About InterconnectAttachments
The InterconnectAttachments API.
2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 |
# File 'lib/google/cloud/compute.rb', line 2026 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_attachments_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectAttachments service is supported by the current client. If true, you can retrieve a client object by calling interconnect_attachments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InterconnectAttachments service, or if the versioned client gem needs an update to support the InterconnectAttachments service.
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 |
# File 'lib/google/cloud/compute.rb', line 2048 def self. version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InterconnectAttachments service_module = service_module.const_get :InterconnectAttachments return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.interconnect_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for InterconnectGroups.
By default, this returns an instance of
Google::Cloud::Compute::V1::InterconnectGroups::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 InterconnectGroups service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InterconnectGroups service. You can determine whether the method will succeed by calling interconnect_groups_available?.
About InterconnectGroups
The InterconnectGroups API.
2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 |
# File 'lib/google/cloud/compute.rb', line 2089 def self.interconnect_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(:InterconnectGroups) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.interconnect_groups_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectGroups service is supported by the current client. If true, you can retrieve a client object by calling interconnect_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InterconnectGroups service, or if the versioned client gem needs an update to support the InterconnectGroups service.
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 |
# File 'lib/google/cloud/compute.rb', line 2111 def self.interconnect_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InterconnectGroups service_module = service_module.const_get :InterconnectGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InterconnectLocations service. You can determine whether the method will succeed by calling interconnect_locations_available?.
About InterconnectLocations
The InterconnectLocations API.
2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 |
# File 'lib/google/cloud/compute.rb', line 2152 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_locations_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectLocations service is supported by the current client. If true, you can retrieve a client object by calling interconnect_locations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InterconnectLocations service, or if the versioned client gem needs an update to support the InterconnectLocations service.
2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 |
# File 'lib/google/cloud/compute.rb', line 2174 def self.interconnect_locations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InterconnectLocations service_module = service_module.const_get :InterconnectLocations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the InterconnectRemoteLocations service. You can determine whether the method will succeed by calling interconnect_remote_locations_available?.
About InterconnectRemoteLocations
The InterconnectRemoteLocations API.
2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 |
# File 'lib/google/cloud/compute.rb', line 2215 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 |
.interconnect_remote_locations_available?(version: :v1) ⇒ boolean
Determines whether the InterconnectRemoteLocations service is supported by the current client. If true, you can retrieve a client object by calling interconnect_remote_locations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the InterconnectRemoteLocations service, or if the versioned client gem needs an update to support the InterconnectRemoteLocations service.
2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 |
# File 'lib/google/cloud/compute.rb', line 2237 def self.interconnect_remote_locations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :InterconnectRemoteLocations service_module = service_module.const_get :InterconnectRemoteLocations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Interconnects service. You can determine whether the method will succeed by calling interconnects_available?.
About Interconnects
The Interconnects API.
2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'lib/google/cloud/compute.rb', line 2278 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 |
.interconnects_available?(version: :v1) ⇒ boolean
Determines whether the Interconnects service is supported by the current client. If true, you can retrieve a client object by calling interconnects. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Interconnects service, or if the versioned client gem needs an update to support the Interconnects service.
2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 |
# File 'lib/google/cloud/compute.rb', line 2300 def self.interconnects_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Interconnects service_module = service_module.const_get :Interconnects return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the LicenseCodes service. You can determine whether the method will succeed by calling license_codes_available?.
About LicenseCodes
The LicenseCodes API.
2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 |
# File 'lib/google/cloud/compute.rb', line 2341 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 |
.license_codes_available?(version: :v1) ⇒ boolean
Determines whether the LicenseCodes service is supported by the current client. If true, you can retrieve a client object by calling license_codes. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the LicenseCodes service, or if the versioned client gem needs an update to support the LicenseCodes service.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 |
# File 'lib/google/cloud/compute.rb', line 2363 def self.license_codes_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :LicenseCodes service_module = service_module.const_get :LicenseCodes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Licenses service. You can determine whether the method will succeed by calling licenses_available?.
About Licenses
The Licenses API.
2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 |
# File 'lib/google/cloud/compute.rb', line 2404 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 |
.licenses_available?(version: :v1) ⇒ boolean
Determines whether the Licenses service is supported by the current client. If true, you can retrieve a client object by calling licenses. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Licenses service, or if the versioned client gem needs an update to support the Licenses service.
2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 |
# File 'lib/google/cloud/compute.rb', line 2426 def self.licenses_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Licenses service_module = service_module.const_get :Licenses return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the MachineImages service. You can determine whether the method will succeed by calling machine_images_available?.
About MachineImages
The MachineImages API.
2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 |
# File 'lib/google/cloud/compute.rb', line 2467 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_images_available?(version: :v1) ⇒ boolean
Determines whether the MachineImages service is supported by the current client. If true, you can retrieve a client object by calling machine_images. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the MachineImages service, or if the versioned client gem needs an update to support the MachineImages service.
2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 |
# File 'lib/google/cloud/compute.rb', line 2489 def self.machine_images_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :MachineImages service_module = service_module.const_get :MachineImages return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the MachineTypes service. You can determine whether the method will succeed by calling machine_types_available?.
About MachineTypes
The MachineTypes API.
2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 |
# File 'lib/google/cloud/compute.rb', line 2530 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 |
.machine_types_available?(version: :v1) ⇒ boolean
Determines whether the MachineTypes service is supported by the current client. If true, you can retrieve a client object by calling machine_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the MachineTypes service, or if the versioned client gem needs an update to support the MachineTypes service.
2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 |
# File 'lib/google/cloud/compute.rb', line 2552 def self.machine_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :MachineTypes service_module = service_module.const_get :MachineTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NetworkAttachments service. You can determine whether the method will succeed by calling network_attachments_available?.
About NetworkAttachments
The NetworkAttachments API.
2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 |
# File 'lib/google/cloud/compute.rb', line 2593 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_attachments_available?(version: :v1) ⇒ boolean
Determines whether the NetworkAttachments service is supported by the current client. If true, you can retrieve a client object by calling network_attachments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NetworkAttachments service, or if the versioned client gem needs an update to support the NetworkAttachments service.
2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 |
# File 'lib/google/cloud/compute.rb', line 2615 def self. version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NetworkAttachments service_module = service_module.const_get :NetworkAttachments return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NetworkEdgeSecurityServices service. You can determine whether the method will succeed by calling network_edge_security_services_available?.
About NetworkEdgeSecurityServices
The NetworkEdgeSecurityServices API.
2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 |
# File 'lib/google/cloud/compute.rb', line 2656 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_edge_security_services_available?(version: :v1) ⇒ boolean
Determines whether the NetworkEdgeSecurityServices service is supported by the current client. If true, you can retrieve a client object by calling network_edge_security_services. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NetworkEdgeSecurityServices service, or if the versioned client gem needs an update to support the NetworkEdgeSecurityServices service.
2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 |
# File 'lib/google/cloud/compute.rb', line 2678 def self.network_edge_security_services_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NetworkEdgeSecurityServices service_module = service_module.const_get :NetworkEdgeSecurityServices return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NetworkEndpointGroups service. You can determine whether the method will succeed by calling network_endpoint_groups_available?.
About NetworkEndpointGroups
The NetworkEndpointGroups API.
2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 |
# File 'lib/google/cloud/compute.rb', line 2719 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_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the NetworkEndpointGroups service is supported by the current client. If true, you can retrieve a client object by calling network_endpoint_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NetworkEndpointGroups service, or if the versioned client gem needs an update to support the NetworkEndpointGroups service.
2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 |
# File 'lib/google/cloud/compute.rb', line 2741 def self.network_endpoint_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NetworkEndpointGroups service_module = service_module.const_get :NetworkEndpointGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NetworkFirewallPolicies service. You can determine whether the method will succeed by calling network_firewall_policies_available?.
About NetworkFirewallPolicies
The NetworkFirewallPolicies API.
2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 |
# File 'lib/google/cloud/compute.rb', line 2782 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 |
.network_firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the NetworkFirewallPolicies service is supported by the current client. If true, you can retrieve a client object by calling network_firewall_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NetworkFirewallPolicies service, or if the versioned client gem needs an update to support the NetworkFirewallPolicies service.
2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 |
# File 'lib/google/cloud/compute.rb', line 2804 def self.network_firewall_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NetworkFirewallPolicies service_module = service_module.const_get :NetworkFirewallPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.network_profiles(version: :v1, &block) ⇒ ::Object
Create a new client object for NetworkProfiles.
By default, this returns an instance of
Google::Cloud::Compute::V1::NetworkProfiles::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 NetworkProfiles service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NetworkProfiles service. You can determine whether the method will succeed by calling network_profiles_available?.
About NetworkProfiles
The NetworkProfiles API.
2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 |
# File 'lib/google/cloud/compute.rb', line 2845 def self.network_profiles 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(:NetworkProfiles) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.network_profiles_available?(version: :v1) ⇒ boolean
Determines whether the NetworkProfiles service is supported by the current client. If true, you can retrieve a client object by calling network_profiles. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NetworkProfiles service, or if the versioned client gem needs an update to support the NetworkProfiles service.
2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 |
# File 'lib/google/cloud/compute.rb', line 2867 def self.network_profiles_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NetworkProfiles service_module = service_module.const_get :NetworkProfiles return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Networks service. You can determine whether the method will succeed by calling networks_available?.
About Networks
The Networks API.
2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 |
# File 'lib/google/cloud/compute.rb', line 2908 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 |
.networks_available?(version: :v1) ⇒ boolean
Determines whether the Networks service is supported by the current client. If true, you can retrieve a client object by calling networks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Networks service, or if the versioned client gem needs an update to support the Networks service.
2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 |
# File 'lib/google/cloud/compute.rb', line 2930 def self.networks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Networks service_module = service_module.const_get :Networks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NodeGroups service. You can determine whether the method will succeed by calling node_groups_available?.
About NodeGroups
The NodeGroups API.
2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 |
# File 'lib/google/cloud/compute.rb', line 2971 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_groups_available?(version: :v1) ⇒ boolean
Determines whether the NodeGroups service is supported by the current client. If true, you can retrieve a client object by calling node_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NodeGroups service, or if the versioned client gem needs an update to support the NodeGroups service.
2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 |
# File 'lib/google/cloud/compute.rb', line 2993 def self.node_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NodeGroups service_module = service_module.const_get :NodeGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NodeTemplates service. You can determine whether the method will succeed by calling node_templates_available?.
About NodeTemplates
The NodeTemplates API.
3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 |
# File 'lib/google/cloud/compute.rb', line 3034 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_templates_available?(version: :v1) ⇒ boolean
Determines whether the NodeTemplates service is supported by the current client. If true, you can retrieve a client object by calling node_templates. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NodeTemplates service, or if the versioned client gem needs an update to support the NodeTemplates service.
3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 |
# File 'lib/google/cloud/compute.rb', line 3056 def self.node_templates_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NodeTemplates service_module = service_module.const_get :NodeTemplates return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the NodeTypes service. You can determine whether the method will succeed by calling node_types_available?.
About NodeTypes
The NodeTypes API.
3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 |
# File 'lib/google/cloud/compute.rb', line 3097 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 |
.node_types_available?(version: :v1) ⇒ boolean
Determines whether the NodeTypes service is supported by the current client. If true, you can retrieve a client object by calling node_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the NodeTypes service, or if the versioned client gem needs an update to support the NodeTypes service.
3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 |
# File 'lib/google/cloud/compute.rb', line 3119 def self.node_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :NodeTypes service_module = service_module.const_get :NodeTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.organization_security_policies(version: :v1, &block) ⇒ ::Object
Create a new client object for OrganizationSecurityPolicies.
By default, this returns an instance of
Google::Cloud::Compute::V1::OrganizationSecurityPolicies::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 OrganizationSecurityPolicies service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the OrganizationSecurityPolicies service. You can determine whether the method will succeed by calling organization_security_policies_available?.
About OrganizationSecurityPolicies
The OrganizationSecurityPolicies API.
3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 |
# File 'lib/google/cloud/compute.rb', line 3160 def self.organization_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(:OrganizationSecurityPolicies) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.organization_security_policies_available?(version: :v1) ⇒ boolean
Determines whether the OrganizationSecurityPolicies service is supported by the current client. If true, you can retrieve a client object by calling organization_security_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the OrganizationSecurityPolicies service, or if the versioned client gem needs an update to support the OrganizationSecurityPolicies service.
3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 |
# File 'lib/google/cloud/compute.rb', line 3182 def self.organization_security_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :OrganizationSecurityPolicies service_module = service_module.const_get :OrganizationSecurityPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the PacketMirrorings service. You can determine whether the method will succeed by calling packet_mirrorings_available?.
About PacketMirrorings
The PacketMirrorings API.
3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 |
# File 'lib/google/cloud/compute.rb', line 3223 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 |
.packet_mirrorings_available?(version: :v1) ⇒ boolean
Determines whether the PacketMirrorings service is supported by the current client. If true, you can retrieve a client object by calling packet_mirrorings. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the PacketMirrorings service, or if the versioned client gem needs an update to support the PacketMirrorings service.
3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 |
# File 'lib/google/cloud/compute.rb', line 3245 def self.packet_mirrorings_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :PacketMirrorings service_module = service_module.const_get :PacketMirrorings return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.preview_features(version: :v1, &block) ⇒ ::Object
Create a new client object for PreviewFeatures.
By default, this returns an instance of
Google::Cloud::Compute::V1::PreviewFeatures::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 PreviewFeatures service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the PreviewFeatures service. You can determine whether the method will succeed by calling preview_features_available?.
About PreviewFeatures
The PreviewFeatures API.
3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 |
# File 'lib/google/cloud/compute.rb', line 3286 def self.preview_features 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(:PreviewFeatures) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.preview_features_available?(version: :v1) ⇒ boolean
Determines whether the PreviewFeatures service is supported by the current client. If true, you can retrieve a client object by calling preview_features. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the PreviewFeatures service, or if the versioned client gem needs an update to support the PreviewFeatures service.
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 |
# File 'lib/google/cloud/compute.rb', line 3308 def self.preview_features_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :PreviewFeatures service_module = service_module.const_get :PreviewFeatures return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Projects service. You can determine whether the method will succeed by calling projects_available?.
About Projects
The Projects API.
3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 |
# File 'lib/google/cloud/compute.rb', line 3349 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 |
.projects_available?(version: :v1) ⇒ boolean
Determines whether the Projects service is supported by the current client. If true, you can retrieve a client object by calling projects. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Projects service, or if the versioned client gem needs an update to support the Projects service.
3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 |
# File 'lib/google/cloud/compute.rb', line 3371 def self.projects_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Projects service_module = service_module.const_get :Projects return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the PublicAdvertisedPrefixes service. You can determine whether the method will succeed by calling public_advertised_prefixes_available?.
About PublicAdvertisedPrefixes
The PublicAdvertisedPrefixes API.
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 |
# File 'lib/google/cloud/compute.rb', line 3412 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_advertised_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the PublicAdvertisedPrefixes service is supported by the current client. If true, you can retrieve a client object by calling public_advertised_prefixes. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the PublicAdvertisedPrefixes service, or if the versioned client gem needs an update to support the PublicAdvertisedPrefixes service.
3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 |
# File 'lib/google/cloud/compute.rb', line 3434 def self.public_advertised_prefixes_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :PublicAdvertisedPrefixes service_module = service_module.const_get :PublicAdvertisedPrefixes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the PublicDelegatedPrefixes service. You can determine whether the method will succeed by calling public_delegated_prefixes_available?.
About PublicDelegatedPrefixes
The PublicDelegatedPrefixes API.
3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 |
# File 'lib/google/cloud/compute.rb', line 3475 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 |
.public_delegated_prefixes_available?(version: :v1) ⇒ boolean
Determines whether the PublicDelegatedPrefixes service is supported by the current client. If true, you can retrieve a client object by calling public_delegated_prefixes. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the PublicDelegatedPrefixes service, or if the versioned client gem needs an update to support the PublicDelegatedPrefixes service.
3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 |
# File 'lib/google/cloud/compute.rb', line 3497 def self.public_delegated_prefixes_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :PublicDelegatedPrefixes service_module = service_module.const_get :PublicDelegatedPrefixes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionAutoscalers service. You can determine whether the method will succeed by calling region_autoscalers_available?.
About RegionAutoscalers
The RegionAutoscalers API.
3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 |
# File 'lib/google/cloud/compute.rb', line 3538 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_autoscalers_available?(version: :v1) ⇒ boolean
Determines whether the RegionAutoscalers service is supported by the current client. If true, you can retrieve a client object by calling region_autoscalers. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionAutoscalers service, or if the versioned client gem needs an update to support the RegionAutoscalers service.
3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 |
# File 'lib/google/cloud/compute.rb', line 3560 def self.region_autoscalers_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionAutoscalers service_module = service_module.const_get :RegionAutoscalers return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionBackendServices service. You can determine whether the method will succeed by calling region_backend_services_available?.
About RegionBackendServices
The RegionBackendServices API.
3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 |
# File 'lib/google/cloud/compute.rb', line 3601 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_backend_services_available?(version: :v1) ⇒ boolean
Determines whether the RegionBackendServices service is supported by the current client. If true, you can retrieve a client object by calling region_backend_services. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionBackendServices service, or if the versioned client gem needs an update to support the RegionBackendServices service.
3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 |
# File 'lib/google/cloud/compute.rb', line 3623 def self.region_backend_services_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionBackendServices service_module = service_module.const_get :RegionBackendServices return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionCommitments service. You can determine whether the method will succeed by calling region_commitments_available?.
About RegionCommitments
The RegionCommitments API.
3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 |
# File 'lib/google/cloud/compute.rb', line 3664 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_commitments_available?(version: :v1) ⇒ boolean
Determines whether the RegionCommitments service is supported by the current client. If true, you can retrieve a client object by calling region_commitments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionCommitments service, or if the versioned client gem needs an update to support the RegionCommitments service.
3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 |
# File 'lib/google/cloud/compute.rb', line 3686 def self.region_commitments_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionCommitments service_module = service_module.const_get :RegionCommitments return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionDiskTypes service. You can determine whether the method will succeed by calling region_disk_types_available?.
About RegionDiskTypes
The RegionDiskTypes API.
3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 |
# File 'lib/google/cloud/compute.rb', line 3727 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_disk_types_available?(version: :v1) ⇒ boolean
Determines whether the RegionDiskTypes service is supported by the current client. If true, you can retrieve a client object by calling region_disk_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionDiskTypes service, or if the versioned client gem needs an update to support the RegionDiskTypes service.
3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 |
# File 'lib/google/cloud/compute.rb', line 3749 def self.region_disk_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionDiskTypes service_module = service_module.const_get :RegionDiskTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionDisks service. You can determine whether the method will succeed by calling region_disks_available?.
About RegionDisks
The RegionDisks API.
3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 |
# File 'lib/google/cloud/compute.rb', line 3790 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_disks_available?(version: :v1) ⇒ boolean
Determines whether the RegionDisks service is supported by the current client. If true, you can retrieve a client object by calling region_disks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionDisks service, or if the versioned client gem needs an update to support the RegionDisks service.
3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 |
# File 'lib/google/cloud/compute.rb', line 3812 def self.region_disks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionDisks service_module = service_module.const_get :RegionDisks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionHealthCheckServices service. You can determine whether the method will succeed by calling region_health_check_services_available?.
About RegionHealthCheckServices
The RegionHealthCheckServices API.
3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 |
# File 'lib/google/cloud/compute.rb', line 3853 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_check_services_available?(version: :v1) ⇒ boolean
Determines whether the RegionHealthCheckServices service is supported by the current client. If true, you can retrieve a client object by calling region_health_check_services. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionHealthCheckServices service, or if the versioned client gem needs an update to support the RegionHealthCheckServices service.
3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 |
# File 'lib/google/cloud/compute.rb', line 3875 def self.region_health_check_services_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionHealthCheckServices service_module = service_module.const_get :RegionHealthCheckServices return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionHealthChecks service. You can determine whether the method will succeed by calling region_health_checks_available?.
About RegionHealthChecks
The RegionHealthChecks API.
3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 |
# File 'lib/google/cloud/compute.rb', line 3916 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_health_checks_available?(version: :v1) ⇒ boolean
Determines whether the RegionHealthChecks service is supported by the current client. If true, you can retrieve a client object by calling region_health_checks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionHealthChecks service, or if the versioned client gem needs an update to support the RegionHealthChecks service.
3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 |
# File 'lib/google/cloud/compute.rb', line 3938 def self.region_health_checks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionHealthChecks service_module = service_module.const_get :RegionHealthChecks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionInstanceGroupManagers service. You can determine whether the method will succeed by calling region_instance_group_managers_available?.
About RegionInstanceGroupManagers
The RegionInstanceGroupManagers API.
3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 |
# File 'lib/google/cloud/compute.rb', line 3979 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_group_managers_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceGroupManagers service is supported by the current client. If true, you can retrieve a client object by calling region_instance_group_managers. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionInstanceGroupManagers service, or if the versioned client gem needs an update to support the RegionInstanceGroupManagers service.
4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 |
# File 'lib/google/cloud/compute.rb', line 4001 def self.region_instance_group_managers_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionInstanceGroupManagers service_module = service_module.const_get :RegionInstanceGroupManagers return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionInstanceGroups service. You can determine whether the method will succeed by calling region_instance_groups_available?.
About RegionInstanceGroups
The RegionInstanceGroups API.
4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 |
# File 'lib/google/cloud/compute.rb', line 4042 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_groups_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceGroups service is supported by the current client. If true, you can retrieve a client object by calling region_instance_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionInstanceGroups service, or if the versioned client gem needs an update to support the RegionInstanceGroups service.
4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 |
# File 'lib/google/cloud/compute.rb', line 4064 def self.region_instance_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionInstanceGroups service_module = service_module.const_get :RegionInstanceGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionInstanceTemplates service. You can determine whether the method will succeed by calling region_instance_templates_available?.
About RegionInstanceTemplates
The RegionInstanceTemplates API.
4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 |
# File 'lib/google/cloud/compute.rb', line 4105 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_instance_templates_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstanceTemplates service is supported by the current client. If true, you can retrieve a client object by calling region_instance_templates. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionInstanceTemplates service, or if the versioned client gem needs an update to support the RegionInstanceTemplates service.
4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 |
# File 'lib/google/cloud/compute.rb', line 4127 def self.region_instance_templates_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionInstanceTemplates service_module = service_module.const_get :RegionInstanceTemplates return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionInstances service. You can determine whether the method will succeed by calling region_instances_available?.
About RegionInstances
The RegionInstances API.
4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 |
# File 'lib/google/cloud/compute.rb', line 4168 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_instances_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstances service is supported by the current client. If true, you can retrieve a client object by calling region_instances. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionInstances service, or if the versioned client gem needs an update to support the RegionInstances service.
4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 |
# File 'lib/google/cloud/compute.rb', line 4190 def self.region_instances_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionInstances service_module = service_module.const_get :RegionInstances return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionInstantSnapshots service. You can determine whether the method will succeed by calling region_instant_snapshots_available?.
About RegionInstantSnapshots
The RegionInstantSnapshots API.
4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 |
# File 'lib/google/cloud/compute.rb', line 4231 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_instant_snapshots_available?(version: :v1) ⇒ boolean
Determines whether the RegionInstantSnapshots service is supported by the current client. If true, you can retrieve a client object by calling region_instant_snapshots. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionInstantSnapshots service, or if the versioned client gem needs an update to support the RegionInstantSnapshots service.
4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 |
# File 'lib/google/cloud/compute.rb', line 4253 def self.region_instant_snapshots_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionInstantSnapshots service_module = service_module.const_get :RegionInstantSnapshots return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionNetworkEndpointGroups service. You can determine whether the method will succeed by calling region_network_endpoint_groups_available?.
About RegionNetworkEndpointGroups
The RegionNetworkEndpointGroups API.
4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 |
# File 'lib/google/cloud/compute.rb', line 4294 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_endpoint_groups_available?(version: :v1) ⇒ boolean
Determines whether the RegionNetworkEndpointGroups service is supported by the current client. If true, you can retrieve a client object by calling region_network_endpoint_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionNetworkEndpointGroups service, or if the versioned client gem needs an update to support the RegionNetworkEndpointGroups service.
4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 |
# File 'lib/google/cloud/compute.rb', line 4316 def self.region_network_endpoint_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionNetworkEndpointGroups service_module = service_module.const_get :RegionNetworkEndpointGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionNetworkFirewallPolicies service. You can determine whether the method will succeed by calling region_network_firewall_policies_available?.
About RegionNetworkFirewallPolicies
The RegionNetworkFirewallPolicies API.
4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 |
# File 'lib/google/cloud/compute.rb', line 4357 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_network_firewall_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionNetworkFirewallPolicies service is supported by the current client. If true, you can retrieve a client object by calling region_network_firewall_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionNetworkFirewallPolicies service, or if the versioned client gem needs an update to support the RegionNetworkFirewallPolicies service.
4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 |
# File 'lib/google/cloud/compute.rb', line 4379 def self.region_network_firewall_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionNetworkFirewallPolicies service_module = service_module.const_get :RegionNetworkFirewallPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionNotificationEndpoints service. You can determine whether the method will succeed by calling region_notification_endpoints_available?.
About RegionNotificationEndpoints
The RegionNotificationEndpoints API.
4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 |
# File 'lib/google/cloud/compute.rb', line 4420 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_notification_endpoints_available?(version: :v1) ⇒ boolean
Determines whether the RegionNotificationEndpoints service is supported by the current client. If true, you can retrieve a client object by calling region_notification_endpoints. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionNotificationEndpoints service, or if the versioned client gem needs an update to support the RegionNotificationEndpoints service.
4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 |
# File 'lib/google/cloud/compute.rb', line 4442 def self.region_notification_endpoints_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionNotificationEndpoints service_module = service_module.const_get :RegionNotificationEndpoints return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionOperations service. You can determine whether the method will succeed by calling region_operations_available?.
About RegionOperations
The RegionOperations API.
4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 |
# File 'lib/google/cloud/compute.rb', line 4483 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_operations_available?(version: :v1) ⇒ boolean
Determines whether the RegionOperations service is supported by the current client. If true, you can retrieve a client object by calling region_operations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionOperations service, or if the versioned client gem needs an update to support the RegionOperations service.
4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 |
# File 'lib/google/cloud/compute.rb', line 4505 def self.region_operations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionOperations service_module = service_module.const_get :RegionOperations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionSecurityPolicies service. You can determine whether the method will succeed by calling region_security_policies_available?.
About RegionSecurityPolicies
The RegionSecurityPolicies API.
4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 |
# File 'lib/google/cloud/compute.rb', line 4546 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_security_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionSecurityPolicies service is supported by the current client. If true, you can retrieve a client object by calling region_security_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionSecurityPolicies service, or if the versioned client gem needs an update to support the RegionSecurityPolicies service.
4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 |
# File 'lib/google/cloud/compute.rb', line 4568 def self.region_security_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionSecurityPolicies service_module = service_module.const_get :RegionSecurityPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionSslCertificates service. You can determine whether the method will succeed by calling region_ssl_certificates_available?.
About RegionSslCertificates
The RegionSslCertificates API.
4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 |
# File 'lib/google/cloud/compute.rb', line 4609 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_certificates_available?(version: :v1) ⇒ boolean
Determines whether the RegionSslCertificates service is supported by the current client. If true, you can retrieve a client object by calling region_ssl_certificates. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionSslCertificates service, or if the versioned client gem needs an update to support the RegionSslCertificates service.
4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 |
# File 'lib/google/cloud/compute.rb', line 4631 def self.region_ssl_certificates_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionSslCertificates service_module = service_module.const_get :RegionSslCertificates return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionSslPolicies service. You can determine whether the method will succeed by calling region_ssl_policies_available?.
About RegionSslPolicies
The RegionSslPolicies API.
4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 |
# File 'lib/google/cloud/compute.rb', line 4672 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_ssl_policies_available?(version: :v1) ⇒ boolean
Determines whether the RegionSslPolicies service is supported by the current client. If true, you can retrieve a client object by calling region_ssl_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionSslPolicies service, or if the versioned client gem needs an update to support the RegionSslPolicies service.
4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 |
# File 'lib/google/cloud/compute.rb', line 4694 def self.region_ssl_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionSslPolicies service_module = service_module.const_get :RegionSslPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionTargetHttpProxies service. You can determine whether the method will succeed by calling region_target_http_proxies_available?.
About RegionTargetHttpProxies
The RegionTargetHttpProxies API.
4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 |
# File 'lib/google/cloud/compute.rb', line 4735 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_http_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetHttpProxies service is supported by the current client. If true, you can retrieve a client object by calling region_target_http_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionTargetHttpProxies service, or if the versioned client gem needs an update to support the RegionTargetHttpProxies service.
4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 |
# File 'lib/google/cloud/compute.rb', line 4757 def self.region_target_http_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionTargetHttpProxies service_module = service_module.const_get :RegionTargetHttpProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionTargetHttpsProxies service. You can determine whether the method will succeed by calling region_target_https_proxies_available?.
About RegionTargetHttpsProxies
The RegionTargetHttpsProxies API.
4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 |
# File 'lib/google/cloud/compute.rb', line 4798 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_https_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetHttpsProxies service is supported by the current client. If true, you can retrieve a client object by calling region_target_https_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionTargetHttpsProxies service, or if the versioned client gem needs an update to support the RegionTargetHttpsProxies service.
4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 |
# File 'lib/google/cloud/compute.rb', line 4820 def self.region_target_https_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionTargetHttpsProxies service_module = service_module.const_get :RegionTargetHttpsProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionTargetTcpProxies service. You can determine whether the method will succeed by calling region_target_tcp_proxies_available?.
About RegionTargetTcpProxies
The RegionTargetTcpProxies API.
4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 |
# File 'lib/google/cloud/compute.rb', line 4861 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_target_tcp_proxies_available?(version: :v1) ⇒ boolean
Determines whether the RegionTargetTcpProxies service is supported by the current client. If true, you can retrieve a client object by calling region_target_tcp_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionTargetTcpProxies service, or if the versioned client gem needs an update to support the RegionTargetTcpProxies service.
4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 |
# File 'lib/google/cloud/compute.rb', line 4883 def self.region_target_tcp_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionTargetTcpProxies service_module = service_module.const_get :RegionTargetTcpProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionUrlMaps service. You can determine whether the method will succeed by calling region_url_maps_available?.
About RegionUrlMaps
The RegionUrlMaps API.
4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 |
# File 'lib/google/cloud/compute.rb', line 4924 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_url_maps_available?(version: :v1) ⇒ boolean
Determines whether the RegionUrlMaps service is supported by the current client. If true, you can retrieve a client object by calling region_url_maps. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionUrlMaps service, or if the versioned client gem needs an update to support the RegionUrlMaps service.
4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 |
# File 'lib/google/cloud/compute.rb', line 4946 def self.region_url_maps_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionUrlMaps service_module = service_module.const_get :RegionUrlMaps return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the RegionZones service. You can determine whether the method will succeed by calling region_zones_available?.
About RegionZones
The RegionZones API.
4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 |
# File 'lib/google/cloud/compute.rb', line 4987 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 |
.region_zones_available?(version: :v1) ⇒ boolean
Determines whether the RegionZones service is supported by the current client. If true, you can retrieve a client object by calling region_zones. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionZones service, or if the versioned client gem needs an update to support the RegionZones service.
5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 |
# File 'lib/google/cloud/compute.rb', line 5009 def self.region_zones_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :RegionZones service_module = service_module.const_get :RegionZones return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Regions service. You can determine whether the method will succeed by calling regions_available?.
About Regions
The Regions API.
5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 |
# File 'lib/google/cloud/compute.rb', line 5050 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 |
.regions_available?(version: :v1) ⇒ boolean
Determines whether the Regions service is supported by the current client. If true, you can retrieve a client object by calling regions. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Regions service, or if the versioned client gem needs an update to support the Regions service.
5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 |
# File 'lib/google/cloud/compute.rb', line 5072 def self.regions_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Regions service_module = service_module.const_get :Regions return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.reservation_blocks(version: :v1, &block) ⇒ ::Object
Create a new client object for ReservationBlocks.
By default, this returns an instance of
Google::Cloud::Compute::V1::ReservationBlocks::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 ReservationBlocks service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ReservationBlocks service. You can determine whether the method will succeed by calling reservation_blocks_available?.
About ReservationBlocks
The ReservationBlocks API.
5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 |
# File 'lib/google/cloud/compute.rb', line 5113 def self.reservation_blocks 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(:ReservationBlocks) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.reservation_blocks_available?(version: :v1) ⇒ boolean
Determines whether the ReservationBlocks service is supported by the current client. If true, you can retrieve a client object by calling reservation_blocks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ReservationBlocks service, or if the versioned client gem needs an update to support the ReservationBlocks service.
5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 |
# File 'lib/google/cloud/compute.rb', line 5135 def self.reservation_blocks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ReservationBlocks service_module = service_module.const_get :ReservationBlocks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.reservation_sub_blocks(version: :v1, &block) ⇒ ::Object
Create a new client object for ReservationSubBlocks.
By default, this returns an instance of
Google::Cloud::Compute::V1::ReservationSubBlocks::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 ReservationSubBlocks service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ReservationSubBlocks service. You can determine whether the method will succeed by calling reservation_sub_blocks_available?.
About ReservationSubBlocks
The ReservationSubBlocks API.
5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 |
# File 'lib/google/cloud/compute.rb', line 5176 def self.reservation_sub_blocks 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(:ReservationSubBlocks) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.reservation_sub_blocks_available?(version: :v1) ⇒ boolean
Determines whether the ReservationSubBlocks service is supported by the current client. If true, you can retrieve a client object by calling reservation_sub_blocks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ReservationSubBlocks service, or if the versioned client gem needs an update to support the ReservationSubBlocks service.
5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 |
# File 'lib/google/cloud/compute.rb', line 5198 def self.reservation_sub_blocks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ReservationSubBlocks service_module = service_module.const_get :ReservationSubBlocks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Reservations service. You can determine whether the method will succeed by calling reservations_available?.
About Reservations
The Reservations API.
5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 |
# File 'lib/google/cloud/compute.rb', line 5239 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 |
.reservations_available?(version: :v1) ⇒ boolean
Determines whether the Reservations service is supported by the current client. If true, you can retrieve a client object by calling reservations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Reservations service, or if the versioned client gem needs an update to support the Reservations service.
5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 |
# File 'lib/google/cloud/compute.rb', line 5261 def self.reservations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Reservations service_module = service_module.const_get :Reservations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ResourcePolicies service. You can determine whether the method will succeed by calling resource_policies_available?.
About ResourcePolicies
The ResourcePolicies API.
5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 |
# File 'lib/google/cloud/compute.rb', line 5302 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 |
.resource_policies_available?(version: :v1) ⇒ boolean
Determines whether the ResourcePolicies service is supported by the current client. If true, you can retrieve a client object by calling resource_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ResourcePolicies service, or if the versioned client gem needs an update to support the ResourcePolicies service.
5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 |
# File 'lib/google/cloud/compute.rb', line 5324 def self.resource_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ResourcePolicies service_module = service_module.const_get :ResourcePolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Routers service. You can determine whether the method will succeed by calling routers_available?.
About Routers
The Routers API.
5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 |
# File 'lib/google/cloud/compute.rb', line 5365 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 |
.routers_available?(version: :v1) ⇒ boolean
Determines whether the Routers service is supported by the current client. If true, you can retrieve a client object by calling routers. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Routers service, or if the versioned client gem needs an update to support the Routers service.
5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 |
# File 'lib/google/cloud/compute.rb', line 5387 def self.routers_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Routers service_module = service_module.const_get :Routers return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Routes service. You can determine whether the method will succeed by calling routes_available?.
About Routes
The Routes API.
5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 |
# File 'lib/google/cloud/compute.rb', line 5428 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 |
.routes_available?(version: :v1) ⇒ boolean
Determines whether the Routes service is supported by the current client. If true, you can retrieve a client object by calling routes. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Routes service, or if the versioned client gem needs an update to support the Routes service.
5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 |
# File 'lib/google/cloud/compute.rb', line 5450 def self.routes_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Routes service_module = service_module.const_get :Routes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the SecurityPolicies service. You can determine whether the method will succeed by calling security_policies_available?.
About SecurityPolicies
The SecurityPolicies API.
5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 |
# File 'lib/google/cloud/compute.rb', line 5491 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 |
.security_policies_available?(version: :v1) ⇒ boolean
Determines whether the SecurityPolicies service is supported by the current client. If true, you can retrieve a client object by calling security_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the SecurityPolicies service, or if the versioned client gem needs an update to support the SecurityPolicies service.
5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 |
# File 'lib/google/cloud/compute.rb', line 5513 def self.security_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :SecurityPolicies service_module = service_module.const_get :SecurityPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ServiceAttachments service. You can determine whether the method will succeed by calling service_attachments_available?.
About ServiceAttachments
The ServiceAttachments API.
5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 |
# File 'lib/google/cloud/compute.rb', line 5554 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 |
.service_attachments_available?(version: :v1) ⇒ boolean
Determines whether the ServiceAttachments service is supported by the current client. If true, you can retrieve a client object by calling service_attachments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ServiceAttachments service, or if the versioned client gem needs an update to support the ServiceAttachments service.
5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 |
# File 'lib/google/cloud/compute.rb', line 5576 def self. version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ServiceAttachments service_module = service_module.const_get :ServiceAttachments return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the SnapshotSettingsService service. You can determine whether the method will succeed by calling snapshot_settings_service_available?.
About SnapshotSettingsService
The SnapshotSettings API.
5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 |
# File 'lib/google/cloud/compute.rb', line 5617 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 |
.snapshot_settings_service_available?(version: :v1) ⇒ boolean
Determines whether the SnapshotSettingsService service is supported by the current client. If true, you can retrieve a client object by calling snapshot_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the SnapshotSettingsService service, or if the versioned client gem needs an update to support the SnapshotSettingsService service.
5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 |
# File 'lib/google/cloud/compute.rb', line 5639 def self.snapshot_settings_service_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :SnapshotSettingsService service_module = service_module.const_get :SnapshotSettingsService return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Snapshots service. You can determine whether the method will succeed by calling snapshots_available?.
About Snapshots
The Snapshots API.
5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 |
# File 'lib/google/cloud/compute.rb', line 5680 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 |
.snapshots_available?(version: :v1) ⇒ boolean
Determines whether the Snapshots service is supported by the current client. If true, you can retrieve a client object by calling snapshots. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Snapshots service, or if the versioned client gem needs an update to support the Snapshots service.
5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 |
# File 'lib/google/cloud/compute.rb', line 5702 def self.snapshots_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Snapshots service_module = service_module.const_get :Snapshots return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the SslCertificates service. You can determine whether the method will succeed by calling ssl_certificates_available?.
About SslCertificates
The SslCertificates API.
5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 |
# File 'lib/google/cloud/compute.rb', line 5743 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_certificates_available?(version: :v1) ⇒ boolean
Determines whether the SslCertificates service is supported by the current client. If true, you can retrieve a client object by calling ssl_certificates. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the SslCertificates service, or if the versioned client gem needs an update to support the SslCertificates service.
5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 |
# File 'lib/google/cloud/compute.rb', line 5765 def self.ssl_certificates_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :SslCertificates service_module = service_module.const_get :SslCertificates return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the SslPolicies service. You can determine whether the method will succeed by calling ssl_policies_available?.
About SslPolicies
The SslPolicies API.
5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 |
# File 'lib/google/cloud/compute.rb', line 5806 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 |
.ssl_policies_available?(version: :v1) ⇒ boolean
Determines whether the SslPolicies service is supported by the current client. If true, you can retrieve a client object by calling ssl_policies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the SslPolicies service, or if the versioned client gem needs an update to support the SslPolicies service.
5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 |
# File 'lib/google/cloud/compute.rb', line 5828 def self.ssl_policies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :SslPolicies service_module = service_module.const_get :SslPolicies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the StoragePoolTypes service. You can determine whether the method will succeed by calling storage_pool_types_available?.
About StoragePoolTypes
The StoragePoolTypes API.
5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 |
# File 'lib/google/cloud/compute.rb', line 5869 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_pool_types_available?(version: :v1) ⇒ boolean
Determines whether the StoragePoolTypes service is supported by the current client. If true, you can retrieve a client object by calling storage_pool_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the StoragePoolTypes service, or if the versioned client gem needs an update to support the StoragePoolTypes service.
5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 |
# File 'lib/google/cloud/compute.rb', line 5891 def self.storage_pool_types_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :StoragePoolTypes service_module = service_module.const_get :StoragePoolTypes return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the StoragePools service. You can determine whether the method will succeed by calling storage_pools_available?.
About StoragePools
The StoragePools API.
5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 |
# File 'lib/google/cloud/compute.rb', line 5932 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 |
.storage_pools_available?(version: :v1) ⇒ boolean
Determines whether the StoragePools service is supported by the current client. If true, you can retrieve a client object by calling storage_pools. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the StoragePools service, or if the versioned client gem needs an update to support the StoragePools service.
5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 |
# File 'lib/google/cloud/compute.rb', line 5954 def self.storage_pools_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :StoragePools service_module = service_module.const_get :StoragePools return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Subnetworks service. You can determine whether the method will succeed by calling subnetworks_available?.
About Subnetworks
The Subnetworks API.
5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 |
# File 'lib/google/cloud/compute.rb', line 5995 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 |
.subnetworks_available?(version: :v1) ⇒ boolean
Determines whether the Subnetworks service is supported by the current client. If true, you can retrieve a client object by calling subnetworks. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Subnetworks service, or if the versioned client gem needs an update to support the Subnetworks service.
6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 |
# File 'lib/google/cloud/compute.rb', line 6017 def self.subnetworks_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Subnetworks service_module = service_module.const_get :Subnetworks return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetGrpcProxies service. You can determine whether the method will succeed by calling target_grpc_proxies_available?.
About TargetGrpcProxies
The TargetGrpcProxies API.
6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 |
# File 'lib/google/cloud/compute.rb', line 6058 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_grpc_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetGrpcProxies service is supported by the current client. If true, you can retrieve a client object by calling target_grpc_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetGrpcProxies service, or if the versioned client gem needs an update to support the TargetGrpcProxies service.
6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 |
# File 'lib/google/cloud/compute.rb', line 6080 def self.target_grpc_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetGrpcProxies service_module = service_module.const_get :TargetGrpcProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetHttpProxies service. You can determine whether the method will succeed by calling target_http_proxies_available?.
About TargetHttpProxies
The TargetHttpProxies API.
6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 |
# File 'lib/google/cloud/compute.rb', line 6121 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_http_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetHttpProxies service is supported by the current client. If true, you can retrieve a client object by calling target_http_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetHttpProxies service, or if the versioned client gem needs an update to support the TargetHttpProxies service.
6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 |
# File 'lib/google/cloud/compute.rb', line 6143 def self.target_http_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetHttpProxies service_module = service_module.const_get :TargetHttpProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetHttpsProxies service. You can determine whether the method will succeed by calling target_https_proxies_available?.
About TargetHttpsProxies
The TargetHttpsProxies API.
6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 |
# File 'lib/google/cloud/compute.rb', line 6184 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_https_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetHttpsProxies service is supported by the current client. If true, you can retrieve a client object by calling target_https_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetHttpsProxies service, or if the versioned client gem needs an update to support the TargetHttpsProxies service.
6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 |
# File 'lib/google/cloud/compute.rb', line 6206 def self.target_https_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetHttpsProxies service_module = service_module.const_get :TargetHttpsProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetInstances service. You can determine whether the method will succeed by calling target_instances_available?.
About TargetInstances
The TargetInstances API.
6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 |
# File 'lib/google/cloud/compute.rb', line 6247 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_instances_available?(version: :v1) ⇒ boolean
Determines whether the TargetInstances service is supported by the current client. If true, you can retrieve a client object by calling target_instances. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetInstances service, or if the versioned client gem needs an update to support the TargetInstances service.
6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 |
# File 'lib/google/cloud/compute.rb', line 6269 def self.target_instances_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetInstances service_module = service_module.const_get :TargetInstances return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetPools service. You can determine whether the method will succeed by calling target_pools_available?.
About TargetPools
The TargetPools API.
6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 |
# File 'lib/google/cloud/compute.rb', line 6310 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_pools_available?(version: :v1) ⇒ boolean
Determines whether the TargetPools service is supported by the current client. If true, you can retrieve a client object by calling target_pools. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetPools service, or if the versioned client gem needs an update to support the TargetPools service.
6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 |
# File 'lib/google/cloud/compute.rb', line 6332 def self.target_pools_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetPools service_module = service_module.const_get :TargetPools return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetSslProxies service. You can determine whether the method will succeed by calling target_ssl_proxies_available?.
About TargetSslProxies
The TargetSslProxies API.
6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 |
# File 'lib/google/cloud/compute.rb', line 6373 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_ssl_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetSslProxies service is supported by the current client. If true, you can retrieve a client object by calling target_ssl_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetSslProxies service, or if the versioned client gem needs an update to support the TargetSslProxies service.
6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 |
# File 'lib/google/cloud/compute.rb', line 6395 def self.target_ssl_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetSslProxies service_module = service_module.const_get :TargetSslProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetTcpProxies service. You can determine whether the method will succeed by calling target_tcp_proxies_available?.
About TargetTcpProxies
The TargetTcpProxies API.
6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 |
# File 'lib/google/cloud/compute.rb', line 6436 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_tcp_proxies_available?(version: :v1) ⇒ boolean
Determines whether the TargetTcpProxies service is supported by the current client. If true, you can retrieve a client object by calling target_tcp_proxies. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetTcpProxies service, or if the versioned client gem needs an update to support the TargetTcpProxies service.
6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 |
# File 'lib/google/cloud/compute.rb', line 6458 def self.target_tcp_proxies_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetTcpProxies service_module = service_module.const_get :TargetTcpProxies return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the TargetVpnGateways service. You can determine whether the method will succeed by calling target_vpn_gateways_available?.
About TargetVpnGateways
The TargetVpnGateways API.
6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 |
# File 'lib/google/cloud/compute.rb', line 6499 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 |
.target_vpn_gateways_available?(version: :v1) ⇒ boolean
Determines whether the TargetVpnGateways service is supported by the current client. If true, you can retrieve a client object by calling target_vpn_gateways. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TargetVpnGateways service, or if the versioned client gem needs an update to support the TargetVpnGateways service.
6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 |
# File 'lib/google/cloud/compute.rb', line 6521 def self.target_vpn_gateways_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :TargetVpnGateways service_module = service_module.const_get :TargetVpnGateways return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the UrlMaps service. You can determine whether the method will succeed by calling url_maps_available?.
About UrlMaps
The UrlMaps API.
6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 |
# File 'lib/google/cloud/compute.rb', line 6562 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 |
.url_maps_available?(version: :v1) ⇒ boolean
Determines whether the UrlMaps service is supported by the current client. If true, you can retrieve a client object by calling url_maps. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the UrlMaps service, or if the versioned client gem needs an update to support the UrlMaps service.
6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 |
# File 'lib/google/cloud/compute.rb', line 6584 def self.url_maps_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :UrlMaps service_module = service_module.const_get :UrlMaps return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the VpnGateways service. You can determine whether the method will succeed by calling vpn_gateways_available?.
About VpnGateways
The VpnGateways API.
6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 |
# File 'lib/google/cloud/compute.rb', line 6625 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_gateways_available?(version: :v1) ⇒ boolean
Determines whether the VpnGateways service is supported by the current client. If true, you can retrieve a client object by calling vpn_gateways. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the VpnGateways service, or if the versioned client gem needs an update to support the VpnGateways service.
6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 |
# File 'lib/google/cloud/compute.rb', line 6647 def self.vpn_gateways_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :VpnGateways service_module = service_module.const_get :VpnGateways return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the VpnTunnels service. You can determine whether the method will succeed by calling vpn_tunnels_available?.
About VpnTunnels
The VpnTunnels API.
6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 |
# File 'lib/google/cloud/compute.rb', line 6688 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 |
.vpn_tunnels_available?(version: :v1) ⇒ boolean
Determines whether the VpnTunnels service is supported by the current client. If true, you can retrieve a client object by calling vpn_tunnels. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the VpnTunnels service, or if the versioned client gem needs an update to support the VpnTunnels service.
6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 |
# File 'lib/google/cloud/compute.rb', line 6710 def self.vpn_tunnels_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :VpnTunnels service_module = service_module.const_get :VpnTunnels return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |
.wire_groups(version: :v1, &block) ⇒ ::Object
Create a new client object for WireGroups.
By default, this returns an instance of
Google::Cloud::Compute::V1::WireGroups::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 WireGroups service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
Raises an exception if the currently installed versioned client gem for the given API version does not support the WireGroups service. You can determine whether the method will succeed by calling wire_groups_available?.
About WireGroups
The WireGroups API.
6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 |
# File 'lib/google/cloud/compute.rb', line 6751 def self.wire_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(:WireGroups) service_module.const_get(:Rest).const_get(:Client).new(&block) end |
.wire_groups_available?(version: :v1) ⇒ boolean
Determines whether the WireGroups service is supported by the current client. If true, you can retrieve a client object by calling wire_groups. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the WireGroups service, or if the versioned client gem needs an update to support the WireGroups service.
6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 |
# File 'lib/google/cloud/compute.rb', line 6773 def self.wire_groups_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :WireGroups service_module = service_module.const_get :WireGroups return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the ZoneOperations service. You can determine whether the method will succeed by calling zone_operations_available?.
About ZoneOperations
The ZoneOperations API.
6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 |
# File 'lib/google/cloud/compute.rb', line 6814 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 |
.zone_operations_available?(version: :v1) ⇒ boolean
Determines whether the ZoneOperations service is supported by the current client. If true, you can retrieve a client object by calling zone_operations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ZoneOperations service, or if the versioned client gem needs an update to support the ZoneOperations service.
6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 |
# File 'lib/google/cloud/compute.rb', line 6836 def self.zone_operations_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :ZoneOperations service_module = service_module.const_get :ZoneOperations return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false 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.
Raises an exception if the currently installed versioned client gem for the given API version does not support the Zones service. You can determine whether the method will succeed by calling zones_available?.
About Zones
The Zones API.
6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 |
# File 'lib/google/cloud/compute.rb', line 6877 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 |
.zones_available?(version: :v1) ⇒ boolean
Determines whether the Zones service is supported by the current client. If true, you can retrieve a client object by calling zones. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Zones service, or if the versioned client gem needs an update to support the Zones service.
6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 |
# File 'lib/google/cloud/compute.rb', line 6899 def self.zones_available? version: :v1 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 return false unless package_name service_module = Google::Cloud::Compute.const_get package_name return false unless service_module.const_defined? :Zones service_module = service_module.const_get :Zones return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest service_module.const_defined? :Client rescue ::LoadError false end |