Class: OvirtSDK4::GlusterServerHook
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GlusterServerHook
- 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. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ GlusterServerHook
constructor
Creates a new instance of the GlusterServerHook class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#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 = {}) ⇒ GlusterServerHook
Creates a new instance of the OvirtSDK4::GlusterServerHook class.
43124 43125 43126 43127 43128 43129 43130 |
# File 'lib/ovirtsdk4/types.rb', line 43124 def initialize(opts = {}) super(opts) self.checksum = opts[:checksum] self.content_type = opts[:content_type] self.host = opts[:host] self.status = opts[:status] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
43135 43136 43137 43138 43139 43140 43141 |
# File 'lib/ovirtsdk4/types.rb', line 43135 def ==(other) super && @checksum == other.checksum && @content_type == other.content_type && @host == other.host && @status == other.status end |
#checksum ⇒ String
Returns the value of the checksum attribute.
42954 42955 42956 |
# File 'lib/ovirtsdk4/types.rb', line 42954 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum attribute.
42963 42964 42965 |
# File 'lib/ovirtsdk4/types.rb', line 42963 def checksum=(value) @checksum = value end |
#comment ⇒ String
Returns the value of the comment attribute.
42972 42973 42974 |
# File 'lib/ovirtsdk4/types.rb', line 42972 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
42981 42982 42983 |
# File 'lib/ovirtsdk4/types.rb', line 42981 def comment=(value) @comment = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type attribute.
42990 42991 42992 |
# File 'lib/ovirtsdk4/types.rb', line 42990 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
42999 43000 43001 |
# File 'lib/ovirtsdk4/types.rb', line 42999 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
43008 43009 43010 |
# File 'lib/ovirtsdk4/types.rb', line 43008 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
43017 43018 43019 |
# File 'lib/ovirtsdk4/types.rb', line 43017 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
43146 43147 43148 43149 43150 43151 43152 |
# File 'lib/ovirtsdk4/types.rb', line 43146 def hash super + @checksum.hash + @content_type.hash + @host.hash + @status.hash end |
#host ⇒ Host
Returns the value of the host attribute.
43026 43027 43028 |
# File 'lib/ovirtsdk4/types.rb', line 43026 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host attribute.
The value parameter can be an instance of Host 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.
43039 43040 43041 43042 43043 43044 |
# File 'lib/ovirtsdk4/types.rb', line 43039 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
43051 43052 43053 |
# File 'lib/ovirtsdk4/types.rb', line 43051 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
43060 43061 43062 |
# File 'lib/ovirtsdk4/types.rb', line 43060 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
43069 43070 43071 |
# File 'lib/ovirtsdk4/types.rb', line 43069 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
43078 43079 43080 |
# File 'lib/ovirtsdk4/types.rb', line 43078 def name=(value) @name = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status attribute.
43087 43088 43089 |
# File 'lib/ovirtsdk4/types.rb', line 43087 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
43096 43097 43098 |
# File 'lib/ovirtsdk4/types.rb', line 43096 def status=(value) @status = value end |