Sha256: 9f4f445982f882a6c3164dc8f739951bb4e94a368155a362e42e762f5a40edf5
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
module Fog module VcloudDirector class Compute class CatalogItem < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :vapp_template_id def vapp_template requires :id service.vapp_templates.get(self.vapp_template_id) end def instantiate(vapp_name, options={}) response = service.instantiate_vapp_template(vapp_name, vapp_template_id, options) service.process_task(response.body[:Tasks][:Task]) response.body[:href].split('/').last # returns the vapp_id if it was instantiated successfully . 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/catalog_item.rb |
fog-vcloud-director-0.3.0 | lib/fog/vcloud_director/models/compute/catalog_item.rb |