Class: OvirtSDK4::SshPublicKey

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (SshPublicKey) initialize(opts = {})

Creates a new instance of the OvirtSDK4::SshPublicKey class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :content (String)

    The value of attribute content.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :user (User, Hash)

    The value of attribute user.



14458
14459
14460
14461
14462
14463
14464
14465
14466
# File 'lib/ovirtsdk4/types.rb', line 14458

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.content = opts[:content]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.user = opts[:user]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


14328
14329
14330
# File 'lib/ovirtsdk4/types.rb', line 14328

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


14337
14338
14339
# File 'lib/ovirtsdk4/types.rb', line 14337

def comment=(value)
  @comment = value
end

- (String) content

Returns the value of the content attribute.

Returns:

  • (String)


14346
14347
14348
# File 'lib/ovirtsdk4/types.rb', line 14346

def content
  return @content
end

- (Object) content=(value)

Sets the value of the content attribute.

Parameters:

  • value (String)


14355
14356
14357
# File 'lib/ovirtsdk4/types.rb', line 14355

def content=(value)
  @content = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


14364
14365
14366
# File 'lib/ovirtsdk4/types.rb', line 14364

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


14373
14374
14375
# File 'lib/ovirtsdk4/types.rb', line 14373

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


14382
14383
14384
# File 'lib/ovirtsdk4/types.rb', line 14382

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


14391
14392
14393
# File 'lib/ovirtsdk4/types.rb', line 14391

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


14400
14401
14402
# File 'lib/ovirtsdk4/types.rb', line 14400

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


14409
14410
14411
# File 'lib/ovirtsdk4/types.rb', line 14409

def name=(value)
  @name = value
end

- (User) user

Returns the value of the user attribute.

Returns:



14418
14419
14420
# File 'lib/ovirtsdk4/types.rb', line 14418

def user
  return @user
end

- (Object) user=(value)

Sets the value of the user attribute.

The value parameter can be an instance of User or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:

  • value (User, Hash)


14431
14432
14433
14434
14435
14436
# File 'lib/ovirtsdk4/types.rb', line 14431

def user=(value)
  if value.is_a?(Hash)
    value = User.new(value)
  end
  @user = value
end