Sha256: 0828185202f326d050e7f04293953b9d3ad0adabd52284bd79b5a94da6842b1e
Contents?: true
Size: 743 Bytes
Versions: 39
Compression:
Stored size: 743 Bytes
Contents
require 'fog/core/model' module Fog module Compute class VcloudDirector class Tag < Model identity :id attribute :value def value=(new_value) has_changed = ( value != new_value ) not_first_set = !value.nil? attributes[:value] = new_value if not_first_set && has_changed response = service.put_vapp_metadata_item_metadata(vm.id, id, value) service.process_task(response.body) end end def destroy response = service.delete_vapp_metadata_item_metadata(vm.id, id) service.process_task(response.body) end def vm attributes[:vm] end end end end end
Version data entries
39 entries across 39 versions & 2 rubygems