Class: Fog::Vcloud::Compute
- Defined in:
- lib/fog/vcloud/compute.rb,
lib/fog/vcloud/models/compute/ip.rb,
lib/fog/vcloud/models/compute/ips.rb,
lib/fog/vcloud/models/compute/vdc.rb,
lib/fog/vcloud/models/compute/task.rb,
lib/fog/vcloud/models/compute/vapp.rb,
lib/fog/vcloud/models/compute/vdcs.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/network.rb,
lib/fog/vcloud/models/compute/servers.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_task.rb,
lib/fog/vcloud/requests/compute/get_vapp.rb,
lib/fog/vcloud/requests/compute/power_on.rb,
lib/fog/vcloud/requests/compute/undeploy.rb,
lib/fog/vcloud/requests/compute/power_off.rb,
lib/fog/vcloud/models/compute/catalog_item.rb,
lib/fog/vcloud/models/compute/organization.rb,
lib/fog/vcloud/requests/compute/clone_vapp.rb,
lib/fog/vcloud/requests/compute/get_server.rb,
lib/fog/vcloud/models/compute/catalog_items.rb,
lib/fog/vcloud/models/compute/organizations.rb,
lib/fog/vcloud/requests/compute/delete_node.rb,
lib/fog/vcloud/requests/compute/delete_vapp.rb,
lib/fog/vcloud/requests/compute/get_catalog.rb,
lib/fog/vcloud/requests/compute/get_network.rb,
lib/fog/vcloud/requests/compute/power_reset.rb,
lib/fog/vcloud/models/compute/helpers/status.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/configure_node.rb,
lib/fog/vcloud/requests/compute/configure_vapp.rb,
lib/fog/vcloud/requests/compute/get_network_ip.rb,
lib/fog/vcloud/requests/compute/power_shutdown.rb,
lib/fog/vcloud/requests/compute/get_network_ips.rb,
lib/fog/vcloud/requests/compute/get_catalog_item.rb,
lib/fog/vcloud/requests/compute/get_organization.rb,
lib/fog/vcloud/requests/compute/configure_network.rb,
lib/fog/vcloud/requests/compute/get_vapp_template.rb,
lib/fog/vcloud/requests/compute/configure_vm_disks.rb,
lib/fog/vcloud/requests/compute/configure_vm_memory.rb,
lib/fog/vcloud/requests/compute/configure_network_ip.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
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
-
#default_organization_uri ⇒ Object
writeonly
Sets the attribute default_organization_uri.
Class Method Summary collapse
Methods inherited from Service
coerce_options, collection, collections, inherited, mocked_requests, model, model_path, models, new, recognized, recognizes, request, request_path, requests, requirements, requires, setup_requirements, validate_options
Instance Attribute Details
#default_organization_uri=(value) ⇒ Object (writeonly)
Sets the attribute default_organization_uri
83 84 85 |
# File 'lib/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/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/fog/vcloud/compute.rb', line 351 def self.item_requests(*types) types.each{|t| item_request(t) } end |