Sha256: dca730c667062fe584794f35dee7b6f702efb498bb51e11744f3e86bc4582031

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class VappTemplate < Model
        identity  :id

        attribute :name
        attribute :type
        attribute :href
        attribute :description, :aliases => :Description
        attribute :status
        attribute :lease_settings, :aliases => :LeaseSettingsSection
        attribute :network_section, :aliases => :"ovf:NetworkSection", :squash => :"ovf:Network"
        attribute :network_config, :aliases => :NetworkConfigSection, :squash => :NetworkConfig
        attribute :owner, :aliases => :Owner, :squash => :User

        def vms
          requires :id
          service.template_vms(:vapp_template => self)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/models/compute/vapp_template.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/models/compute/vapp_template.rb