Class: OvirtSDK4::GlusterHook
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GlusterHook
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#checksum ⇒ String
Returns the value of the
checksumattribute. -
#checksum=(value) ⇒ Object
Sets the value of the
checksumattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#conflict_status ⇒ Integer
Returns the value of the
conflict_statusattribute. -
#conflict_status=(value) ⇒ Object
Sets the value of the
conflict_statusattribute. -
#conflicts ⇒ String
Returns the value of the
conflictsattribute. -
#conflicts=(value) ⇒ Object
Sets the value of the
conflictsattribute. -
#content ⇒ String
Returns the value of the
contentattribute. -
#content=(value) ⇒ Object
Sets the value of the
contentattribute. -
#content_type ⇒ HookContentType
Returns the value of the
content_typeattribute. -
#content_type=(value) ⇒ Object
Sets the value of the
content_typeattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#gluster_command ⇒ String
Returns the value of the
gluster_commandattribute. -
#gluster_command=(value) ⇒ Object
Sets the value of the
gluster_commandattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ GlusterHook
constructor
Creates a new instance of the GlusterHook class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the
server_hooksattribute. -
#server_hooks=(list) ⇒ Object
Sets the value of the
server_hooksattribute. -
#stage ⇒ HookStage
Returns the value of the
stageattribute. -
#stage=(value) ⇒ Object
Sets the value of the
stageattribute. -
#status ⇒ GlusterHookStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterHook
Creates a new instance of the OvirtSDK4::GlusterHook class.
42603 42604 42605 42606 42607 42608 42609 42610 42611 42612 42613 42614 42615 |
# File 'lib/ovirtsdk4/types.rb', line 42603 def initialize(opts = {}) super(opts) self.checksum = opts[:checksum] self.cluster = opts[:cluster] self.conflict_status = opts[:conflict_status] self.conflicts = opts[:conflicts] self.content = opts[:content] self.content_type = opts[:content_type] self.gluster_command = opts[:gluster_command] self.server_hooks = opts[:server_hooks] self.stage = opts[:stage] self.status = opts[:status] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
42620 42621 42622 42623 42624 42625 42626 42627 42628 42629 42630 42631 42632 |
# File 'lib/ovirtsdk4/types.rb', line 42620 def ==(other) super && @checksum == other.checksum && @cluster == other.cluster && @conflict_status == other.conflict_status && @conflicts == other.conflicts && @content == other.content && @content_type == other.content_type && @gluster_command == other.gluster_command && @server_hooks == other.server_hooks && @stage == other.stage && @status == other.status end |
#checksum ⇒ String
Returns the value of the checksum attribute.
42305 42306 42307 |
# File 'lib/ovirtsdk4/types.rb', line 42305 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum attribute.
42314 42315 42316 |
# File 'lib/ovirtsdk4/types.rb', line 42314 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
42323 42324 42325 |
# File 'lib/ovirtsdk4/types.rb', line 42323 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster attribute.
The value parameter can be an instance of Cluster 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.
42336 42337 42338 42339 42340 42341 |
# File 'lib/ovirtsdk4/types.rb', line 42336 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment attribute.
42348 42349 42350 |
# File 'lib/ovirtsdk4/types.rb', line 42348 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
42357 42358 42359 |
# File 'lib/ovirtsdk4/types.rb', line 42357 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status attribute.
42366 42367 42368 |
# File 'lib/ovirtsdk4/types.rb', line 42366 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status attribute.
42375 42376 42377 |
# File 'lib/ovirtsdk4/types.rb', line 42375 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts attribute.
42384 42385 42386 |
# File 'lib/ovirtsdk4/types.rb', line 42384 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts attribute.
42393 42394 42395 |
# File 'lib/ovirtsdk4/types.rb', line 42393 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content attribute.
42402 42403 42404 |
# File 'lib/ovirtsdk4/types.rb', line 42402 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content attribute.
42411 42412 42413 |
# File 'lib/ovirtsdk4/types.rb', line 42411 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type attribute.
42420 42421 42422 |
# File 'lib/ovirtsdk4/types.rb', line 42420 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
42429 42430 42431 |
# File 'lib/ovirtsdk4/types.rb', line 42429 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
42438 42439 42440 |
# File 'lib/ovirtsdk4/types.rb', line 42438 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
42447 42448 42449 |
# File 'lib/ovirtsdk4/types.rb', line 42447 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command attribute.
42456 42457 42458 |
# File 'lib/ovirtsdk4/types.rb', line 42456 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command attribute.
42465 42466 42467 |
# File 'lib/ovirtsdk4/types.rb', line 42465 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
42637 42638 42639 42640 42641 42642 42643 42644 42645 42646 42647 42648 42649 |
# File 'lib/ovirtsdk4/types.rb', line 42637 def hash super + @checksum.hash + @cluster.hash + @conflict_status.hash + @conflicts.hash + @content.hash + @content_type.hash + @gluster_command.hash + @server_hooks.hash + @stage.hash + @status.hash end |
#id ⇒ String
Returns the value of the id attribute.
42474 42475 42476 |
# File 'lib/ovirtsdk4/types.rb', line 42474 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
42483 42484 42485 |
# File 'lib/ovirtsdk4/types.rb', line 42483 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
42492 42493 42494 |
# File 'lib/ovirtsdk4/types.rb', line 42492 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
42501 42502 42503 |
# File 'lib/ovirtsdk4/types.rb', line 42501 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks attribute.
42510 42511 42512 |
# File 'lib/ovirtsdk4/types.rb', line 42510 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks attribute.
42519 42520 42521 42522 42523 42524 42525 42526 42527 42528 42529 |
# File 'lib/ovirtsdk4/types.rb', line 42519 def server_hooks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterServerHook.new(value) end end end @server_hooks = list end |
#stage ⇒ HookStage
Returns the value of the stage attribute.
42536 42537 42538 |
# File 'lib/ovirtsdk4/types.rb', line 42536 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage attribute.
42545 42546 42547 |
# File 'lib/ovirtsdk4/types.rb', line 42545 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status attribute.
42554 42555 42556 |
# File 'lib/ovirtsdk4/types.rb', line 42554 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
42563 42564 42565 |
# File 'lib/ovirtsdk4/types.rb', line 42563 def status=(value) @status = value end |