Class: Fog::Vcloud::Compute

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

Defined Under Namespace

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

Constant Summary

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)

Instance Attribute Details

- (Object) default_organization_uri=(value) (writeonly)

Sets the attribute default_organization_uri

Parameters:

  • value

    the value to set the attribute default_organization_uri to.



82
83
84
# File 'lib/fog/vcloud/compute.rb', line 82

def default_organization_uri=(value)
  @default_organization_uri = value
end

Class Method Details

+ (Object) item_request(type)



360
361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'lib/fog/vcloud/compute.rb', line 360

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(
          :service => self,
          :collection => Fog::Vcloud::Compute::#{type.to_s.capitalize}s.new(
            :service => self
          )
        )
      )
    end
  EOS
end

+ (Object) item_requests(*types)



357
358
359
# File 'lib/fog/vcloud/compute.rb', line 357

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