Class: Fog::Ovirt::Compute

Inherits:
Service
  • Object
show all
Defined in:
lib/fog/ovirt/compute.rb,
lib/fog/ovirt/compute/v4.rb,
lib/fog/ovirt/models/compute/quota.rb,
lib/fog/ovirt/models/compute/quotas.rb,
lib/fog/ovirt/models/compute/server.rb,
lib/fog/ovirt/models/compute/volume.rb,
lib/fog/ovirt/models/compute/cluster.rb,
lib/fog/ovirt/models/compute/servers.rb,
lib/fog/ovirt/models/compute/volumes.rb,
lib/fog/ovirt/models/compute/clusters.rb,
lib/fog/ovirt/models/compute/template.rb,
lib/fog/ovirt/models/compute/interface.rb,
lib/fog/ovirt/models/compute/templates.rb,
lib/fog/ovirt/models/compute/interfaces.rb,
lib/fog/ovirt/models/compute/instance_type.rb,
lib/fog/ovirt/models/compute/affinity_group.rb,
lib/fog/ovirt/models/compute/instance_types.rb,
lib/fog/ovirt/requests/compute/v4/create_vm.rb,
lib/fog/ovirt/requests/compute/v4/get_quota.rb,
lib/fog/ovirt/requests/compute/v4/update_vm.rb,
lib/fog/ovirt/requests/compute/v4/vm_action.rb,
lib/fog/ovirt/requests/compute/v4/vm_ticket.rb,
lib/fog/ovirt/models/compute/affinity_groups.rb,
lib/fog/ovirt/requests/compute/v4/add_volume.rb,
lib/fog/ovirt/requests/compute/v4/destroy_vm.rb,
lib/fog/ovirt/requests/compute/v4/get_volume.rb,
lib/fog/ovirt/models/compute/operating_system.rb,
lib/fog/ovirt/requests/compute/v4/datacenters.rb,
lib/fog/ovirt/requests/compute/v4/get_cluster.rb,
lib/fog/ovirt/requests/compute/v4/list_quotas.rb,
lib/fog/ovirt/models/compute/operating_systems.rb,
lib/fog/ovirt/requests/compute/v4/get_template.rb,
lib/fog/ovirt/requests/compute/v4/list_volumes.rb,
lib/fog/ovirt/requests/compute/v4/add_interface.rb,
lib/fog/ovirt/requests/compute/v4/list_clusters.rb,
lib/fog/ovirt/requests/compute/v4/list_networks.rb,
lib/fog/ovirt/requests/compute/v4/update_volume.rb,
lib/fog/ovirt/requests/compute/v4/destroy_volume.rb,
lib/fog/ovirt/requests/compute/v4/list_templates.rb,
lib/fog/ovirt/requests/compute/v4/get_api_version.rb,
lib/fog/ovirt/requests/compute/v4/list_vm_volumes.rb,
lib/fog/ovirt/requests/compute/v4/storage_domains.rb,
lib/fog/ovirt/requests/compute/v4/update_interface.rb,
lib/fog/ovirt/requests/compute/v4/destroy_interface.rb,
lib/fog/ovirt/requests/compute/v4/get_instance_type.rb,
lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb,
lib/fog/ovirt/requests/compute/v4/list_vnic_profiles.rb,
lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb,
lib/fog/ovirt/requests/compute/v4/list_instance_types.rb,
lib/fog/ovirt/requests/compute/v4/list_template_volumes.rb,
lib/fog/ovirt/requests/compute/v4/list_virtual_machines.rb,
lib/fog/ovirt/requests/compute/v4/list_operating_systems.rb,
lib/fog/ovirt/requests/compute/v4/vm_start_with_cloudinit.rb,
lib/fog/ovirt/requests/compute/v4/list_template_interfaces.rb

Defined Under Namespace

Classes: AffinityGroup, AffinityGroups, Cluster, Clusters, ExceptionWrapper, InstanceType, InstanceTypes, Interface, Interfaces, Mock, OperatingSystem, OperatingSystems, Quota, Quotas, Real, Server, Servers, Template, Templates, V4, Volume, Volumes

Constant Summary collapse

DISK_SIZE_TO_GB =
1024 * 1024 * 1024

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object



60
61
62
# File 'lib/fog/ovirt/compute.rb', line 60

def method_missing(symbol, *args)
  @client.__send__(symbol, *args)
end

Class Method Details

.new(options = {}) ⇒ Object



55
56
57
58
# File 'lib/fog/ovirt/compute.rb', line 55

def self.new(options = {})
  super(options)
  @client = Fog::Ovirt::Compute::V4.new(options)
end

Instance Method Details

#respond_to?(symbol, include_all = false) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/fog/ovirt/compute.rb', line 64

def respond_to?(symbol, include_all = false)
  @client.respond_to?(symbol, include_all)
end