1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloudng/models/compute/vapp.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

2013-06-20 13:36:34 -04:00
require 'fog/core/model'
module Fog
module Compute
class Vcloudng
class Vapp < Fog::Model
2013-06-24 07:46:30 -04:00
2013-06-20 13:36:34 -04:00
identity :id
attribute :name
attribute :type
attribute :href
attribute :description, :aliases => :Description
attribute :deployed, :type => :boolean
attribute :status
2013-06-24 07:46:30 -04:00
attribute :deployment_lease_in_seconds, :aliases => :LeaseSettingsSection, :squash => :DeploymentLeaseInSeconds
attribute :storage_lease_in_seconds, :aliases => :LeaseSettingsSection, :squash => :StorageLeaseInSeconds
attribute :startup_section, :aliases => :"ovf:StartupSection", :squash => :"ovf:Item"
attribute :network_section, :aliases => :"ovf:NetworkSection", :squash => :"ovf:Network"
2013-06-20 13:36:34 -04:00
attribute :network_config, :aliases => :NetworkConfigSection, :squash => :NetworkConfig
2013-06-24 07:46:30 -04:00
attribute :owner, :aliases => :Owner, :squash => :User
2013-06-20 13:36:34 -04:00
attribute :InMaintenanceMode, :type => :boolean
2013-06-24 07:46:30 -04:00
def vms
requires :id
service.vms(:vapp => self)
end
2013-06-20 13:36:34 -04:00
end
end
end
end