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
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. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ GlusterServerHook
constructor
Creates a new instance of the GlusterServerHook class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
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 = {}) ⇒ GlusterServerHook
Creates a new instance of the OvirtSDK4::GlusterServerHook class.
42831 42832 42833 42834 42835 42836 42837 |
# File 'lib/ovirtsdk4/types.rb', line 42831 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.
42842 42843 42844 42845 42846 42847 42848 |
# File 'lib/ovirtsdk4/types.rb', line 42842 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.
42661 42662 42663 |
# File 'lib/ovirtsdk4/types.rb', line 42661 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
42670 42671 42672 |
# File 'lib/ovirtsdk4/types.rb', line 42670 def checksum=(value) @checksum = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
42679 42680 42681 |
# File 'lib/ovirtsdk4/types.rb', line 42679 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42688 42689 42690 |
# File 'lib/ovirtsdk4/types.rb', line 42688 def comment=(value) @comment = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
42697 42698 42699 |
# File 'lib/ovirtsdk4/types.rb', line 42697 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
42706 42707 42708 |
# File 'lib/ovirtsdk4/types.rb', line 42706 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
42715 42716 42717 |
# File 'lib/ovirtsdk4/types.rb', line 42715 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42724 42725 42726 |
# File 'lib/ovirtsdk4/types.rb', line 42724 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
42853 42854 42855 42856 42857 42858 42859 |
# File 'lib/ovirtsdk4/types.rb', line 42853 def hash super + @checksum.hash + @content_type.hash + @host.hash + @status.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
42733 42734 42735 |
# File 'lib/ovirtsdk4/types.rb', line 42733 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.
42746 42747 42748 42749 42750 42751 |
# File 'lib/ovirtsdk4/types.rb', line 42746 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.
42758 42759 42760 |
# File 'lib/ovirtsdk4/types.rb', line 42758 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42767 42768 42769 |
# File 'lib/ovirtsdk4/types.rb', line 42767 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
42776 42777 42778 |
# File 'lib/ovirtsdk4/types.rb', line 42776 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
42785 42786 42787 |
# File 'lib/ovirtsdk4/types.rb', line 42785 def name=(value) @name = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
42794 42795 42796 |
# File 'lib/ovirtsdk4/types.rb', line 42794 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
42803 42804 42805 |
# File 'lib/ovirtsdk4/types.rb', line 42803 def status=(value) @status = value end |