Class: OvirtSDK4::Permit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Permit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Boolean) administrative
Returns the value of the
administrative
attribute. -
- (Object) administrative=(value)
Sets the value of the
administrative
attribute. -
- (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. -
- (Permit) initialize(opts = {})
constructor
Creates a new instance of the Permit class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Role) role
Returns the value of the
role
attribute. -
- (Object) role=(value)
Sets the value of the
role
attribute.
Methods included from Type
Constructor Details
- (Permit) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Permit class.
10396 10397 10398 10399 10400 10401 10402 10403 10404 |
# File 'lib/ovirtsdk4/types.rb', line 10396 def initialize(opts = {}) super(opts) self.administrative = opts[:administrative] self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] self.role = opts[:role] end |
Instance Method Details
- (Boolean) administrative
Returns the value of the administrative
attribute.
10266 10267 10268 |
# File 'lib/ovirtsdk4/types.rb', line 10266 def administrative return @administrative end |
- (Object) administrative=(value)
Sets the value of the administrative
attribute.
10275 10276 10277 |
# File 'lib/ovirtsdk4/types.rb', line 10275 def administrative=(value) @administrative = value end |
- (String) comment
Returns the value of the comment
attribute.
10284 10285 10286 |
# File 'lib/ovirtsdk4/types.rb', line 10284 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
10293 10294 10295 |
# File 'lib/ovirtsdk4/types.rb', line 10293 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
10302 10303 10304 |
# File 'lib/ovirtsdk4/types.rb', line 10302 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
10311 10312 10313 |
# File 'lib/ovirtsdk4/types.rb', line 10311 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
10320 10321 10322 |
# File 'lib/ovirtsdk4/types.rb', line 10320 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
10329 10330 10331 |
# File 'lib/ovirtsdk4/types.rb', line 10329 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
10338 10339 10340 |
# File 'lib/ovirtsdk4/types.rb', line 10338 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
10347 10348 10349 |
# File 'lib/ovirtsdk4/types.rb', line 10347 def name=(value) @name = value end |
- (Role) role
Returns the value of the role
attribute.
10356 10357 10358 |
# File 'lib/ovirtsdk4/types.rb', line 10356 def role return @role end |
- (Object) role=(value)
Sets the value of the role
attribute.
The value
parameter can be an instance of Role 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.
10369 10370 10371 10372 10373 10374 |
# File 'lib/ovirtsdk4/types.rb', line 10369 def role=(value) if value.is_a?(Hash) value = Role.new(value) end @role = value end |