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.
39154 39155 39156 39157 39158 39159 39160 39161 39162 39163 39164 39165 39166 |
# File 'lib/ovirtsdk4/types.rb', line 39154 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.
39171 39172 39173 39174 39175 39176 39177 39178 39179 39180 39181 39182 39183 |
# File 'lib/ovirtsdk4/types.rb', line 39171 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.
38856 38857 38858 |
# File 'lib/ovirtsdk4/types.rb', line 38856 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
38865 38866 38867 |
# File 'lib/ovirtsdk4/types.rb', line 38865 def checksum=(value) @checksum = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
38874 38875 38876 |
# File 'lib/ovirtsdk4/types.rb', line 38874 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.
38887 38888 38889 38890 38891 38892 |
# File 'lib/ovirtsdk4/types.rb', line 38887 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.
38899 38900 38901 |
# File 'lib/ovirtsdk4/types.rb', line 38899 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
38908 38909 38910 |
# File 'lib/ovirtsdk4/types.rb', line 38908 def comment=(value) @comment = value end |
#conflict_status ⇒ Integer
Returns the value of the conflict_status
attribute.
38917 38918 38919 |
# File 'lib/ovirtsdk4/types.rb', line 38917 def conflict_status @conflict_status end |
#conflict_status=(value) ⇒ Object
Sets the value of the conflict_status
attribute.
38926 38927 38928 |
# File 'lib/ovirtsdk4/types.rb', line 38926 def conflict_status=(value) @conflict_status = value end |
#conflicts ⇒ String
Returns the value of the conflicts
attribute.
38935 38936 38937 |
# File 'lib/ovirtsdk4/types.rb', line 38935 def conflicts @conflicts end |
#conflicts=(value) ⇒ Object
Sets the value of the conflicts
attribute.
38944 38945 38946 |
# File 'lib/ovirtsdk4/types.rb', line 38944 def conflicts=(value) @conflicts = value end |
#content ⇒ String
Returns the value of the content
attribute.
38953 38954 38955 |
# File 'lib/ovirtsdk4/types.rb', line 38953 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content
attribute.
38962 38963 38964 |
# File 'lib/ovirtsdk4/types.rb', line 38962 def content=(value) @content = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
38971 38972 38973 |
# File 'lib/ovirtsdk4/types.rb', line 38971 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
38980 38981 38982 |
# File 'lib/ovirtsdk4/types.rb', line 38980 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
38989 38990 38991 |
# File 'lib/ovirtsdk4/types.rb', line 38989 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
38998 38999 39000 |
# File 'lib/ovirtsdk4/types.rb', line 38998 def description=(value) @description = value end |
#gluster_command ⇒ String
Returns the value of the gluster_command
attribute.
39007 39008 39009 |
# File 'lib/ovirtsdk4/types.rb', line 39007 def gluster_command @gluster_command end |
#gluster_command=(value) ⇒ Object
Sets the value of the gluster_command
attribute.
39016 39017 39018 |
# File 'lib/ovirtsdk4/types.rb', line 39016 def gluster_command=(value) @gluster_command = value end |
#hash ⇒ Object
Generates a hash value for this object.
39188 39189 39190 39191 39192 39193 39194 39195 39196 39197 39198 39199 39200 |
# File 'lib/ovirtsdk4/types.rb', line 39188 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.
39025 39026 39027 |
# File 'lib/ovirtsdk4/types.rb', line 39025 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39034 39035 39036 |
# File 'lib/ovirtsdk4/types.rb', line 39034 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39043 39044 39045 |
# File 'lib/ovirtsdk4/types.rb', line 39043 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39052 39053 39054 |
# File 'lib/ovirtsdk4/types.rb', line 39052 def name=(value) @name = value end |
#server_hooks ⇒ Array<GlusterServerHook>
Returns the value of the server_hooks
attribute.
39061 39062 39063 |
# File 'lib/ovirtsdk4/types.rb', line 39061 def server_hooks @server_hooks end |
#server_hooks=(list) ⇒ Object
Sets the value of the server_hooks
attribute.
39070 39071 39072 39073 39074 39075 39076 39077 39078 39079 39080 |
# File 'lib/ovirtsdk4/types.rb', line 39070 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.
39087 39088 39089 |
# File 'lib/ovirtsdk4/types.rb', line 39087 def stage @stage end |
#stage=(value) ⇒ Object
Sets the value of the stage
attribute.
39096 39097 39098 |
# File 'lib/ovirtsdk4/types.rb', line 39096 def stage=(value) @stage = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
39105 39106 39107 |
# File 'lib/ovirtsdk4/types.rb', line 39105 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
39114 39115 39116 |
# File 'lib/ovirtsdk4/types.rb', line 39114 def status=(value) @status = value end |