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.
39214 39215 39216 39217 39218 39219 39220 39221 39222 39223 39224 39225 39226 |
# File 'lib/ovirtsdk4/types.rb', line 39214 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.
39231 39232 39233 39234 39235 39236 39237 39238 39239 39240 39241 39242 39243 |
# File 'lib/ovirtsdk4/types.rb', line 39231 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.
38916 38917 38918 |
# File 'lib/ovirtsdk4/types.rb', line 38916 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum attribute.
38925 38926 38927 |
# File 'lib/ovirtsdk4/types.rb', line 38925 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
38934 38935 38936 |
# File 'lib/ovirtsdk4/types.rb', line 38934 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.
38947 38948 38949 38950 38951 38952 |
# File 'lib/ovirtsdk4/types.rb', line 38947 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.
38959 38960 38961 |
# File 'lib/ovirtsdk4/types.rb', line 38959 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
38968 38969 38970 |
# File 'lib/ovirtsdk4/types.rb', line 38968 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status attribute.
38977 38978 38979 |
# File 'lib/ovirtsdk4/types.rb', line 38977 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status attribute.
38986 38987 38988 |
# File 'lib/ovirtsdk4/types.rb', line 38986 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts attribute.
38995 38996 38997 |
# File 'lib/ovirtsdk4/types.rb', line 38995 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts attribute.
39004 39005 39006 |
# File 'lib/ovirtsdk4/types.rb', line 39004 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content attribute.
39013 39014 39015 |
# File 'lib/ovirtsdk4/types.rb', line 39013 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content attribute.
39022 39023 39024 |
# File 'lib/ovirtsdk4/types.rb', line 39022 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type attribute.
39031 39032 39033 |
# File 'lib/ovirtsdk4/types.rb', line 39031 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
39040 39041 39042 |
# File 'lib/ovirtsdk4/types.rb', line 39040 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
39049 39050 39051 |
# File 'lib/ovirtsdk4/types.rb', line 39049 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
39058 39059 39060 |
# File 'lib/ovirtsdk4/types.rb', line 39058 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command attribute.
39067 39068 39069 |
# File 'lib/ovirtsdk4/types.rb', line 39067 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command attribute.
39076 39077 39078 |
# File 'lib/ovirtsdk4/types.rb', line 39076 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
39248 39249 39250 39251 39252 39253 39254 39255 39256 39257 39258 39259 39260 |
# File 'lib/ovirtsdk4/types.rb', line 39248 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.
39085 39086 39087 |
# File 'lib/ovirtsdk4/types.rb', line 39085 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
39094 39095 39096 |
# File 'lib/ovirtsdk4/types.rb', line 39094 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
39103 39104 39105 |
# File 'lib/ovirtsdk4/types.rb', line 39103 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
39112 39113 39114 |
# File 'lib/ovirtsdk4/types.rb', line 39112 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks attribute.
39121 39122 39123 |
# File 'lib/ovirtsdk4/types.rb', line 39121 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks attribute.
39130 39131 39132 39133 39134 39135 39136 39137 39138 39139 39140 |
# File 'lib/ovirtsdk4/types.rb', line 39130 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.
39147 39148 39149 |
# File 'lib/ovirtsdk4/types.rb', line 39147 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage attribute.
39156 39157 39158 |
# File 'lib/ovirtsdk4/types.rb', line 39156 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status attribute.
39165 39166 39167 |
# File 'lib/ovirtsdk4/types.rb', line 39165 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
39174 39175 39176 |
# File 'lib/ovirtsdk4/types.rb', line 39174 def status=(value) @status = value end |