Class: OvirtSDK4::AuthorizedKey

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

- (AuthorizedKey) initialize(opts = {})

Creates a new instance of the OvirtSDK4::AuthorizedKey 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.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :key (String)

    The value of attribute key.

  • :name (String)

    The value of attribute name.

  • :user (User, Hash)

    The value of attribute user.



23333
23334
23335
23336
23337
23338
23339
23340
23341
# File 'lib/ovirtsdk4/types.rb', line 23333

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


23203
23204
23205
# File 'lib/ovirtsdk4/types.rb', line 23203

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


23212
23213
23214
# File 'lib/ovirtsdk4/types.rb', line 23212

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


23221
23222
23223
# File 'lib/ovirtsdk4/types.rb', line 23221

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


23230
23231
23232
# File 'lib/ovirtsdk4/types.rb', line 23230

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


23239
23240
23241
# File 'lib/ovirtsdk4/types.rb', line 23239

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


23248
23249
23250
# File 'lib/ovirtsdk4/types.rb', line 23248

def id=(value)
  @id = value
end

- (String) key

Returns the value of the key attribute.

Returns:

  • (String)


23257
23258
23259
# File 'lib/ovirtsdk4/types.rb', line 23257

def key
  return @key
end

- (Object) key=(value)

Sets the value of the key attribute.

Parameters:

  • value (String)


23266
23267
23268
# File 'lib/ovirtsdk4/types.rb', line 23266

def key=(value)
  @key = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


23275
23276
23277
# File 'lib/ovirtsdk4/types.rb', line 23275

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


23284
23285
23286
# File 'lib/ovirtsdk4/types.rb', line 23284

def name=(value)
  @name = value
end

- (User) user

Returns the value of the user attribute.

Returns:



23293
23294
23295
# File 'lib/ovirtsdk4/types.rb', line 23293

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)


23306
23307
23308
23309
23310
23311
# File 'lib/ovirtsdk4/types.rb', line 23306

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