Class: OvirtSDK4::Permit

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

- (Permit) initialize(opts = {})

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

  • :administrative (Boolean)

    The value of attribute administrative.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :role (Role, Hash)

    The value of attribute role.



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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:

  • value (Role, Hash)


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