Class: OvirtSDK4::GlusterVolumeProfileDetails

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

- (GlusterVolumeProfileDetails) initialize(opts = {})

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

  • :brick_profile_details (Array<BrickProfileDetail>, Array<Hash>)

    The values of attribute brick_profile_details.

  • :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.

  • :nfs_profile_details (Array<NfsProfileDetail>, Array<Hash>)

    The values of attribute nfs_profile_details.



31698
31699
31700
31701
31702
31703
31704
31705
31706
# File 'lib/ovirtsdk4/types.rb', line 31698

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

Instance Method Details

- (Array<BrickProfileDetail>) brick_profile_details

Returns the value of the brick_profile_details attribute.

Returns:



31561
31562
31563
# File 'lib/ovirtsdk4/types.rb', line 31561

def brick_profile_details
  return @brick_profile_details
end

- (Object) brick_profile_details=(list)

Sets the value of the brick_profile_details attribute.

Parameters:



31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
# File 'lib/ovirtsdk4/types.rb', line 31569

def brick_profile_details=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = BrickProfileDetail.new(value)
      end
    end
  end
  @brick_profile_details = list
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


31586
31587
31588
# File 'lib/ovirtsdk4/types.rb', line 31586

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


31595
31596
31597
# File 'lib/ovirtsdk4/types.rb', line 31595

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


31604
31605
31606
# File 'lib/ovirtsdk4/types.rb', line 31604

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


31613
31614
31615
# File 'lib/ovirtsdk4/types.rb', line 31613

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


31622
31623
31624
# File 'lib/ovirtsdk4/types.rb', line 31622

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


31631
31632
31633
# File 'lib/ovirtsdk4/types.rb', line 31631

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


31640
31641
31642
# File 'lib/ovirtsdk4/types.rb', line 31640

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


31649
31650
31651
# File 'lib/ovirtsdk4/types.rb', line 31649

def name=(value)
  @name = value
end

- (Array<NfsProfileDetail>) nfs_profile_details

Returns the value of the nfs_profile_details attribute.

Returns:



31658
31659
31660
# File 'lib/ovirtsdk4/types.rb', line 31658

def nfs_profile_details
  return @nfs_profile_details
end

- (Object) nfs_profile_details=(list)

Sets the value of the nfs_profile_details attribute.

Parameters:



31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
# File 'lib/ovirtsdk4/types.rb', line 31666

def nfs_profile_details=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = NfsProfileDetail.new(value)
      end
    end
  end
  @nfs_profile_details = list
end