def set_hostname!(new_hostname)
      raise ArgumentError, "The new hostname cannot be nil" unless new_hostname
      raise ArgumentError, "The new hostname cannot be empty" if new_hostname.empty?

      edit_template = {
        "hostname" => new_hostname
      }

      self.service.editObject(edit_template)
      self.refresh_details()
    end
def set_hostname!(new_hostname)
      raise ArgumentError, "The new hostname cannot be nil" unless new_hostname
      raise ArgumentError, "The new hostname cannot be empty" if new_hostname.empty?

      edit_template = {
        "hostname" => new_hostname
      }

      self.service.editObject(edit_template)
      self.refresh_details()
    end
Change the hostname of this server
 Raises an ArgumentError if the new hostname is nil or empty