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.
41455 41456 41457 41458 41459 41460 41461 41462 41463 41464 41465 41466 41467 |
# File 'lib/ovirtsdk4/types.rb', line 41455 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.
41472 41473 41474 41475 41476 41477 41478 41479 41480 41481 41482 41483 41484 |
# File 'lib/ovirtsdk4/types.rb', line 41472 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.
41157 41158 41159 |
# File 'lib/ovirtsdk4/types.rb', line 41157 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
41166 41167 41168 |
# File 'lib/ovirtsdk4/types.rb', line 41166 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
41175 41176 41177 |
# File 'lib/ovirtsdk4/types.rb', line 41175 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.
41188 41189 41190 41191 41192 41193 |
# File 'lib/ovirtsdk4/types.rb', line 41188 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.
41200 41201 41202 |
# File 'lib/ovirtsdk4/types.rb', line 41200 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
41209 41210 41211 |
# File 'lib/ovirtsdk4/types.rb', line 41209 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status
attribute.
41218 41219 41220 |
# File 'lib/ovirtsdk4/types.rb', line 41218 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status
attribute.
41227 41228 41229 |
# File 'lib/ovirtsdk4/types.rb', line 41227 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts
attribute.
41236 41237 41238 |
# File 'lib/ovirtsdk4/types.rb', line 41236 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts
attribute.
41245 41246 41247 |
# File 'lib/ovirtsdk4/types.rb', line 41245 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content
attribute.
41254 41255 41256 |
# File 'lib/ovirtsdk4/types.rb', line 41254 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content
attribute.
41263 41264 41265 |
# File 'lib/ovirtsdk4/types.rb', line 41263 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
41272 41273 41274 |
# File 'lib/ovirtsdk4/types.rb', line 41272 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
41281 41282 41283 |
# File 'lib/ovirtsdk4/types.rb', line 41281 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
41290 41291 41292 |
# File 'lib/ovirtsdk4/types.rb', line 41290 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
41299 41300 41301 |
# File 'lib/ovirtsdk4/types.rb', line 41299 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command
attribute.
41308 41309 41310 |
# File 'lib/ovirtsdk4/types.rb', line 41308 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command
attribute.
41317 41318 41319 |
# File 'lib/ovirtsdk4/types.rb', line 41317 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
41489 41490 41491 41492 41493 41494 41495 41496 41497 41498 41499 41500 41501 |
# File 'lib/ovirtsdk4/types.rb', line 41489 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.
41326 41327 41328 |
# File 'lib/ovirtsdk4/types.rb', line 41326 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
41335 41336 41337 |
# File 'lib/ovirtsdk4/types.rb', line 41335 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
41344 41345 41346 |
# File 'lib/ovirtsdk4/types.rb', line 41344 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
41353 41354 41355 |
# File 'lib/ovirtsdk4/types.rb', line 41353 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks
attribute.
41362 41363 41364 |
# File 'lib/ovirtsdk4/types.rb', line 41362 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks
attribute.
41371 41372 41373 41374 41375 41376 41377 41378 41379 41380 41381 |
# File 'lib/ovirtsdk4/types.rb', line 41371 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.
41388 41389 41390 |
# File 'lib/ovirtsdk4/types.rb', line 41388 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage
attribute.
41397 41398 41399 |
# File 'lib/ovirtsdk4/types.rb', line 41397 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
41406 41407 41408 |
# File 'lib/ovirtsdk4/types.rb', line 41406 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
41415 41416 41417 |
# File 'lib/ovirtsdk4/types.rb', line 41415 def status=(value) @status = value end |