Sha256: d37442c5126b5983d8457adb1d3ec35dc86b6cba258dada2d8508f4567822018

Contents?: true

Size: 1018 Bytes

Versions: 20

Compression:

Stored size: 1018 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class VcloudDirector

      class VmCustomization < Model

        identity  :id

        attribute :type
        attribute :href
        attribute :enabled
        attribute :change_sid
        attribute :join_domain_enabled
        attribute :use_org_settings
        attribute :admin_password_enabled
        attribute :reset_password_required
        attribute :virtual_machine_id
        attribute :computer_name
        attribute :has_customization_script

        # bug: for some reason if the customization_script has /r, is showed
        # here as /n. Looks likes is something in excon
        def script
          attributes[:customization_script]
        end

        def script=(new_script)
          attributes[:customization_script] = new_script
        end

        def save
          response = service.put_guest_customization_section_vapp(id, attributes)
          service.process_task(response.body)
        end

      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
fog-maestrodev-1.18.0.20131209091424 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.18.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.17.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.16.0 lib/fog/vcloud_director/models/compute/vm_customization.rb