Sha256: 61acf75e2ec7434fae828a13159923ed8635dcf151119cb7e4ee204d9189c248

Contents?: true

Size: 1.07 KB

Versions: 19

Compression:

Stored size: 1.07 KB

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_auto
        attribute :admin_password
        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

19 entries across 19 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.21.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.20.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-1.19.0 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/vcloud_director/models/compute/vm_customization.rb