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
true
ifself
andother
have the same attributes and values. -
#checksum ⇒ String
Returns the value of the
checksum
attribute. -
#checksum=(value) ⇒ Object
Sets the value of the
checksum
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#conflict_status ⇒ Integer
Returns the value of the
conflict_status
attribute. -
#conflict_status=(value) ⇒ Object
Sets the value of the
conflict_status
attribute. -
#conflicts ⇒ String
Returns the value of the
conflicts
attribute. -
#conflicts=(value) ⇒ Object
Sets the value of the
conflicts
attribute. -
#content ⇒ String
Returns the value of the
content
attribute. -
#content=(value) ⇒ Object
Sets the value of the
content
attribute. -
#content_type ⇒ HookContentType
Returns the value of the
content_type
attribute. -
#content_type=(value) ⇒ Object
Sets the value of the
content_type
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#gluster_command ⇒ String
Returns the value of the
gluster_command
attribute. -
#gluster_command=(value) ⇒ Object
Sets the value of the
gluster_command
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ GlusterHook
constructor
Creates a new instance of the GlusterHook class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the
server_hooks
attribute. -
#server_hooks=(list) ⇒ Object
Sets the value of the
server_hooks
attribute. -
#stage ⇒ HookStage
Returns the value of the
stage
attribute. -
#stage=(value) ⇒ Object
Sets the value of the
stage
attribute. -
#status ⇒ GlusterHookStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterHook
Creates a new instance of the OvirtSDK4::GlusterHook class.
39859 39860 39861 39862 39863 39864 39865 39866 39867 39868 39869 39870 39871 |
# File 'lib/ovirtsdk4/types.rb', line 39859 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.
39876 39877 39878 39879 39880 39881 39882 39883 39884 39885 39886 39887 39888 |
# File 'lib/ovirtsdk4/types.rb', line 39876 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.
39561 39562 39563 |
# File 'lib/ovirtsdk4/types.rb', line 39561 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
39570 39571 39572 |
# File 'lib/ovirtsdk4/types.rb', line 39570 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
39579 39580 39581 |
# File 'lib/ovirtsdk4/types.rb', line 39579 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.
39592 39593 39594 39595 39596 39597 |
# File 'lib/ovirtsdk4/types.rb', line 39592 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.
39604 39605 39606 |
# File 'lib/ovirtsdk4/types.rb', line 39604 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39613 39614 39615 |
# File 'lib/ovirtsdk4/types.rb', line 39613 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status
attribute.
39622 39623 39624 |
# File 'lib/ovirtsdk4/types.rb', line 39622 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status
attribute.
39631 39632 39633 |
# File 'lib/ovirtsdk4/types.rb', line 39631 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts
attribute.
39640 39641 39642 |
# File 'lib/ovirtsdk4/types.rb', line 39640 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts
attribute.
39649 39650 39651 |
# File 'lib/ovirtsdk4/types.rb', line 39649 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content
attribute.
39658 39659 39660 |
# File 'lib/ovirtsdk4/types.rb', line 39658 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content
attribute.
39667 39668 39669 |
# File 'lib/ovirtsdk4/types.rb', line 39667 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
39676 39677 39678 |
# File 'lib/ovirtsdk4/types.rb', line 39676 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
39685 39686 39687 |
# File 'lib/ovirtsdk4/types.rb', line 39685 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
39694 39695 39696 |
# File 'lib/ovirtsdk4/types.rb', line 39694 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39703 39704 39705 |
# File 'lib/ovirtsdk4/types.rb', line 39703 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command
attribute.
39712 39713 39714 |
# File 'lib/ovirtsdk4/types.rb', line 39712 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command
attribute.
39721 39722 39723 |
# File 'lib/ovirtsdk4/types.rb', line 39721 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
39893 39894 39895 39896 39897 39898 39899 39900 39901 39902 39903 39904 39905 |
# File 'lib/ovirtsdk4/types.rb', line 39893 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.
39730 39731 39732 |
# File 'lib/ovirtsdk4/types.rb', line 39730 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39739 39740 39741 |
# File 'lib/ovirtsdk4/types.rb', line 39739 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39748 39749 39750 |
# File 'lib/ovirtsdk4/types.rb', line 39748 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39757 39758 39759 |
# File 'lib/ovirtsdk4/types.rb', line 39757 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks
attribute.
39766 39767 39768 |
# File 'lib/ovirtsdk4/types.rb', line 39766 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks
attribute.
39775 39776 39777 39778 39779 39780 39781 39782 39783 39784 39785 |
# File 'lib/ovirtsdk4/types.rb', line 39775 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.
39792 39793 39794 |
# File 'lib/ovirtsdk4/types.rb', line 39792 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage
attribute.
39801 39802 39803 |
# File 'lib/ovirtsdk4/types.rb', line 39801 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
39810 39811 39812 |
# File 'lib/ovirtsdk4/types.rb', line 39810 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
39819 39820 39821 |
# File 'lib/ovirtsdk4/types.rb', line 39819 def status=(value) @status = value end |