class OvirtSDK4::SshPublicKey

def ==(other)


Returns `true` if `self` and `other` have the same attributes and values.
def ==(other)
  super &&
  @content == other.content &&
  @user == other.user
end

def comment

Returns:
  • (String) -
def comment
  @comment
end

def comment=(value)

Parameters:
  • value (String) --
def comment=(value)
  @comment = value
end

def content

Returns:
  • (String) -
def content
  @content
end

def content=(value)

Parameters:
  • value (String) --
def content=(value)
  @content = value
end

def description

Returns:
  • (String) -
def description
  @description
end

def description=(value)

Parameters:
  • value (String) --
def description=(value)
  @description = value
end

def hash


Generates a hash value for this object.
def hash
  super +
  @content.hash +
  @user.hash
end

def id

Returns:
  • (String) -
def id
  @id
end

def id=(value)

Parameters:
  • value (String) --
def id=(value)
  @id = value
end

def initialize(opts = {})

Options Hash: (**opts)
  • :user (User, Hash) -- The value of attribute `user`.
  • :name (String) -- The value of attribute `name`.
  • :id (String) -- The value of attribute `id`.
  • :description (String) -- The value of attribute `description`.
  • :content (String) -- The value of attribute `content`.
  • :comment (String) -- The value of attribute `comment`.

Parameters:
  • opts (Hash) -- A hash containing the attributes of the object. The keys of the hash
def initialize(opts = {})
  super(opts)
  self.content = opts[:content]
  self.user = opts[:user]
end

def name

Returns:
  • (String) -
def name
  @name
end

def name=(value)

Parameters:
  • value (String) --
def name=(value)
  @name = value
end

def user

Returns:
  • (User) -
def user
  @user
end

def user=(value)

Parameters:
  • value (User, Hash) --
def user=(value)
  if value.is_a?(Hash)
    value = User.new(value)
  end
  @user = value
end