lib/vcloud/core/vm.rb
def update_memory_size_in_mb(new_memory)
        return if new_memory.nil?
        return if new_memory.to_i < 64
        unless memory.to_i == new_memory.to_i
          Vcloud::Core::Fog::ServiceInterface.new.put_memory(id, new_memory)
        end
      end
# Set the amount of memory in VM which can't be nil or less than 64 (mb)
#
# @param new_memory [Integer] amount of memory for instance
# @return [Boolean] return true or throws an error
Set the amount of memory in VM which can't be nil or less than 64 (mb)
Set the amount of memory in VM which can ' t be nil or less than 64 ( mb )
def update_memory_size_in_mb(new_memory)
        return if new_memory.nil?
        return if new_memory.to_i < 64
        unless memory.to_i == new_memory.to_i
          Vcloud::Core::Fog::ServiceInterface.new.put_memory(id, new_memory)
        end
      end
def update_memory_size_in_mb ( new_memory ) return if new_memory . nil? return if new_memory . to_i < 64 unless memory . to_i == new_memory . to_i Vcloud :: Core :: Fog :: ServiceInterface . new . put_memory ( id , new_memory ) end end
Set the amount of memory in VM which can't be nil or less than 64 (mb)
Set the amount of memory in VM which can ' t be nil or less than 64 ( mb )
return true or throws an error
return true or throws an error
Boolean
new_memory
amount of memory for instance
amount of memory for instance