Class: Fog::Vcloud::Compute

Inherits:
Service
  • Object
show all
Defined in:
lib/rackspace-fog/vcloud/compute.rb,
lib/rackspace-fog/vcloud/models/compute/ip.rb,
lib/rackspace-fog/vcloud/models/compute/ips.rb,
lib/rackspace-fog/vcloud/models/compute/vdc.rb,
lib/rackspace-fog/vcloud/models/compute/task.rb,
lib/rackspace-fog/vcloud/models/compute/vapp.rb,
lib/rackspace-fog/vcloud/models/compute/vdcs.rb,
lib/rackspace-fog/vcloud/models/compute/tasks.rb,
lib/rackspace-fog/vcloud/models/compute/vapps.rb,
lib/rackspace-fog/vcloud/models/compute/server.rb,
lib/rackspace-fog/vcloud/models/compute/catalog.rb,
lib/rackspace-fog/vcloud/models/compute/network.rb,
lib/rackspace-fog/vcloud/models/compute/servers.rb,
lib/rackspace-fog/vcloud/requests/compute/login.rb,
lib/rackspace-fog/vcloud/models/compute/catalogs.rb,
lib/rackspace-fog/vcloud/models/compute/networks.rb,
lib/rackspace-fog/vcloud/requests/compute/get_vdc.rb,
lib/rackspace-fog/vcloud/requests/compute/get_task.rb,
lib/rackspace-fog/vcloud/requests/compute/get_vapp.rb,
lib/rackspace-fog/vcloud/requests/compute/power_on.rb,
lib/rackspace-fog/vcloud/requests/compute/undeploy.rb,
lib/rackspace-fog/vcloud/requests/compute/power_off.rb,
lib/rackspace-fog/vcloud/models/compute/catalog_item.rb,
lib/rackspace-fog/vcloud/models/compute/organization.rb,
lib/rackspace-fog/vcloud/requests/compute/clone_vapp.rb,
lib/rackspace-fog/vcloud/requests/compute/get_server.rb,
lib/rackspace-fog/vcloud/models/compute/catalog_items.rb,
lib/rackspace-fog/vcloud/models/compute/organizations.rb,
lib/rackspace-fog/vcloud/requests/compute/delete_node.rb,
lib/rackspace-fog/vcloud/requests/compute/delete_vapp.rb,
lib/rackspace-fog/vcloud/requests/compute/get_catalog.rb,
lib/rackspace-fog/vcloud/requests/compute/get_network.rb,
lib/rackspace-fog/vcloud/requests/compute/power_reset.rb,
lib/rackspace-fog/vcloud/models/compute/helpers/status.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_vm.rb,
lib/rackspace-fog/vcloud/requests/compute/get_vm_disks.rb,
lib/rackspace-fog/vcloud/requests/compute/get_task_list.rb,
lib/rackspace-fog/vcloud/requests/compute/get_vm_memory.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_node.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_vapp.rb,
lib/rackspace-fog/vcloud/requests/compute/get_network_ip.rb,
lib/rackspace-fog/vcloud/requests/compute/power_shutdown.rb,
lib/rackspace-fog/vcloud/requests/compute/get_network_ips.rb,
lib/rackspace-fog/vcloud/requests/compute/get_catalog_item.rb,
lib/rackspace-fog/vcloud/requests/compute/get_organization.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_network.rb,
lib/rackspace-fog/vcloud/requests/compute/get_vapp_template.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_vm_disks.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_vm_memory.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_network_ip.rb,
lib/rackspace-fog/vcloud/requests/compute/get_network_extensions.rb,
lib/rackspace-fog/vcloud/requests/compute/get_customization_options.rb,
lib/rackspace-fog/vcloud/requests/compute/instantiate_vapp_template.rb,
lib/rackspace-fog/vcloud/requests/compute/configure_vm_name_description.rb

Defined Under Namespace

Modules: Helpers, Shared Classes: Catalog, CatalogItem, CatalogItems, Catalogs, Ip, Ips, Mock, Network, Networks, Organization, Organizations, Real, Server, Servers, Task, Tasks, Vapp, Vapps, Vdc, Vdcs

Constant Summary collapse

BASE_PATH =
'/api'
DEFAULT_VERSION =
'1.5'
SUPPORTED_VERSIONS =
[ '1.5', '1.0' ]
PORT =
443
SCHEME =
'https'

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Service

coerce_options, collection, collections, fetch_credentials, inherited, mocked_requests, model, model_path, models, new, recognized, recognizes, request, request_path, requests, requirements, requires, secrets, setup_requirements, validate_options

Instance Attribute Details

#default_organization_uri=(value) ⇒ Object (writeonly)

Sets the attribute default_organization_uri

Parameters:

  • value

    the value to set the attribute default_organization_uri to.



83
84
85
# File 'lib/rackspace-fog/vcloud/compute.rb', line 83

def default_organization_uri=(value)
  @default_organization_uri = value
end

Class Method Details

.item_request(type) ⇒ Object



354
355
356
357
358
359
360
361
362
363
364
365
366
367
# File 'lib/rackspace-fog/vcloud/compute.rb', line 354

def self.item_request(type)
  Fog::Vcloud::Compute::Real.class_eval <<-EOS, __FILE__,__LINE__
    def get_#{type}(uri)
      Fog::Vcloud::Compute::#{type.to_s.capitalize}.new(
        self.request(basic_request_params(uri)).body.merge(
          :connection => self,
          :collection => Fog::Vcloud::Compute::#{type.to_s.capitalize}s.new(
            :connection => self
          )
        )
      )
    end
  EOS
end

.item_requests(*types) ⇒ Object



351
352
353
# File 'lib/rackspace-fog/vcloud/compute.rb', line 351

def self.item_requests(*types)
  types.each{|t| item_request(t) }
end