Class: Fog::Compute::VcloudDirector::Vapp
- Defined in:
- lib/fog/vcloud_director/models/compute/vapp.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #destroy ⇒ Object
- #power_off ⇒ Object
- #power_on ⇒ Object
- #tags ⇒ Object
- #undeploy ⇒ Object
- #vms ⇒ Object
Methods inherited from Model
#initialize, #inspect, #lazy_load_attrs, #make_attr_loaded_method, #make_lazy_load_method
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Compute::VcloudDirector::Model
Instance Method Details
#destroy ⇒ Object
48 49 50 51 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 48 def destroy response = service.delete_vapp(id) service.process_task(response.body) end |
#power_off ⇒ Object
43 44 45 46 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 43 def power_off response = service.post_vm_poweroff(id) service.process_task(response.body) end |
#power_on ⇒ Object
38 39 40 41 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 38 def power_on response = service.post_vm_poweron(id) service.process_task(response.body) end |
#tags ⇒ Object
28 29 30 31 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 28 def requires :id service.(:vm => self) end |
#undeploy ⇒ Object
33 34 35 36 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 33 def undeploy response = service.undeploy(id) service.process_task(response.body) end |
#vms ⇒ Object
23 24 25 26 |
# File 'lib/fog/vcloud_director/models/compute/vapp.rb', line 23 def vms requires :id service.vms(:vapp => self) end |