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.
42310 42311 42312 42313 42314 42315 42316 42317 42318 42319 42320 42321 42322 |
# File 'lib/ovirtsdk4/types.rb', line 42310 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.
42327 42328 42329 42330 42331 42332 42333 42334 42335 42336 42337 42338 42339 |
# File 'lib/ovirtsdk4/types.rb', line 42327 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.
42012 42013 42014 |
# File 'lib/ovirtsdk4/types.rb', line 42012 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
42021 42022 42023 |
# File 'lib/ovirtsdk4/types.rb', line 42021 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
42030 42031 42032 |
# File 'lib/ovirtsdk4/types.rb', line 42030 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.
42043 42044 42045 42046 42047 42048 |
# File 'lib/ovirtsdk4/types.rb', line 42043 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.
42055 42056 42057 |
# File 'lib/ovirtsdk4/types.rb', line 42055 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42064 42065 42066 |
# File 'lib/ovirtsdk4/types.rb', line 42064 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status
attribute.
42073 42074 42075 |
# File 'lib/ovirtsdk4/types.rb', line 42073 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status
attribute.
42082 42083 42084 |
# File 'lib/ovirtsdk4/types.rb', line 42082 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts
attribute.
42091 42092 42093 |
# File 'lib/ovirtsdk4/types.rb', line 42091 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts
attribute.
42100 42101 42102 |
# File 'lib/ovirtsdk4/types.rb', line 42100 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content
attribute.
42109 42110 42111 |
# File 'lib/ovirtsdk4/types.rb', line 42109 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content
attribute.
42118 42119 42120 |
# File 'lib/ovirtsdk4/types.rb', line 42118 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
42127 42128 42129 |
# File 'lib/ovirtsdk4/types.rb', line 42127 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
42136 42137 42138 |
# File 'lib/ovirtsdk4/types.rb', line 42136 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
42145 42146 42147 |
# File 'lib/ovirtsdk4/types.rb', line 42145 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42154 42155 42156 |
# File 'lib/ovirtsdk4/types.rb', line 42154 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command
attribute.
42163 42164 42165 |
# File 'lib/ovirtsdk4/types.rb', line 42163 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command
attribute.
42172 42173 42174 |
# File 'lib/ovirtsdk4/types.rb', line 42172 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
42344 42345 42346 42347 42348 42349 42350 42351 42352 42353 42354 42355 42356 |
# File 'lib/ovirtsdk4/types.rb', line 42344 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.
42181 42182 42183 |
# File 'lib/ovirtsdk4/types.rb', line 42181 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42190 42191 42192 |
# File 'lib/ovirtsdk4/types.rb', line 42190 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
42199 42200 42201 |
# File 'lib/ovirtsdk4/types.rb', line 42199 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
42208 42209 42210 |
# File 'lib/ovirtsdk4/types.rb', line 42208 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks
attribute.
42217 42218 42219 |
# File 'lib/ovirtsdk4/types.rb', line 42217 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks
attribute.
42226 42227 42228 42229 42230 42231 42232 42233 42234 42235 42236 |
# File 'lib/ovirtsdk4/types.rb', line 42226 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.
42243 42244 42245 |
# File 'lib/ovirtsdk4/types.rb', line 42243 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage
attribute.
42252 42253 42254 |
# File 'lib/ovirtsdk4/types.rb', line 42252 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
42261 42262 42263 |
# File 'lib/ovirtsdk4/types.rb', line 42261 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
42270 42271 42272 |
# File 'lib/ovirtsdk4/types.rb', line 42270 def status=(value) @status = value end |