Class: OvirtSDK4::AuthorizedKey
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::AuthorizedKey
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (AuthorizedKey) initialize(opts = {})
constructor
Creates a new instance of the AuthorizedKey class.
-
- (String) key
Returns the value of the
key
attribute. -
- (Object) key=(value)
Sets the value of the
key
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (User) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute.
Methods included from Type
Constructor Details
- (AuthorizedKey) initialize(opts = {})
Creates a new instance of the OvirtSDK4::AuthorizedKey class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 |