class OvirtSDK4::GlusterVolume
def ==(other)
Returns `true` if `self` and `other` have the same attributes and values.
def ==(other) super && @bricks == other.bricks && @cluster == other.cluster && @disperse_count == other.disperse_count && @options == other.options && @redundancy_count == other.redundancy_count && @replica_count == other.replica_count && @statistics == other.statistics && @status == other.status && @stripe_count == other.stripe_count && @transport_types == other.transport_types && @volume_type == other.volume_type end
def bricks
-
(Array-)
def bricks @bricks end
def bricks=(list)
-
list(Array) --
def bricks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterBrick.new(value) end end end @bricks = list end
def cluster
-
(Cluster)-
def cluster @cluster end
def cluster=(value)
-
value(Cluster, Hash) --
def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
def comment
-
(String)-
def comment @comment end
def comment=(value)
-
value(String) --
def comment=(value) @comment = value end
def description
-
(String)-
def description @description end
def description=(value)
-
value(String) --
def description=(value) @description = value end
def disperse_count
-
(Integer)-
def disperse_count @disperse_count end
def disperse_count=(value)
-
value(Integer) --
def disperse_count=(value) @disperse_count = value end
def hash
Generates a hash value for this object.
def hash super + @bricks.hash + @cluster.hash + @disperse_count.hash + @options.hash + @redundancy_count.hash + @replica_count.hash + @statistics.hash + @status.hash + @stripe_count.hash + @transport_types.hash + @volume_type.hash end
def id
-
(String)-
def id @id end
def id=(value)
-
value(String) --
def id=(value) @id = value end
def initialize(opts = {})
(**opts)-
:volume_type(GlusterVolumeType) -- The value of attribute `volume_type`. -
:transport_types(Array) -- The values of attribute `transport_types`., Array -
:stripe_count(Integer) -- The value of attribute `stripe_count`. -
:status(GlusterVolumeStatus) -- The value of attribute `status`. -
:statistics(Array) -- The values of attribute `statistics`., Array -
:replica_count(Integer) -- The value of attribute `replica_count`. -
:redundancy_count(Integer) -- The value of attribute `redundancy_count`. -
:options(Array) -- The values of attribute `options`. -
:name(String) -- The value of attribute `name`. -
:id(String) -- The value of attribute `id`. -
:disperse_count(Integer) -- The value of attribute `disperse_count`. -
:description(String) -- The value of attribute `description`. -
:comment(String) -- The value of attribute `comment`. -
:cluster(Cluster, Hash) -- The value of attribute `cluster`. -
:bricks(Array) -- The values of attribute `bricks`., Array
Parameters:
-
opts(Hash) -- A hash containing the attributes of the object. The keys of the hash
def initialize(opts = {}) super(opts) self.bricks = opts[:bricks] self.cluster = opts[:cluster] self.disperse_count = opts[:disperse_count] self.options = opts[:options] self.redundancy_count = opts[:redundancy_count] self.replica_count = opts[:replica_count] self.statistics = opts[:statistics] self.status = opts[:status] self.stripe_count = opts[:stripe_count] self.transport_types = opts[:transport_types] self.volume_type = opts[:volume_type] end
def name
-
(String)-
def name @name end
def name=(value)
-
value(String) --
def name=(value) @name = value end
def options
-
(Array-
def options @options end
def options=(list)
-
list(Array) --
def options=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Option.new(value) end end end @options = list end
def redundancy_count
-
(Integer)-
def redundancy_count @redundancy_count end
def redundancy_count=(value)
-
value(Integer) --
def redundancy_count=(value) @redundancy_count = value end
def replica_count
-
(Integer)-
def replica_count @replica_count end
def replica_count=(value)
-
value(Integer) --
def replica_count=(value) @replica_count = value end
def statistics
-
(Array-)
def statistics @statistics end
def statistics=(list)
-
list(Array) --
def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end
def status
-
(GlusterVolumeStatus)-
def status @status end
def status=(value)
-
value(GlusterVolumeStatus) --
def status=(value) @status = value end
def stripe_count
-
(Integer)-
def stripe_count @stripe_count end
def stripe_count=(value)
-
value(Integer) --
def stripe_count=(value) @stripe_count = value end
def transport_types
-
(Array-)
def transport_types @transport_types end
def transport_types=(list)
-
list(Array) --
def transport_types=(list) @transport_types = list end
def volume_type
-
(GlusterVolumeType)-
def volume_type @volume_type end
def volume_type=(value)
-
value(GlusterVolumeType) --
def volume_type=(value) @volume_type = value end