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.
39804 39805 39806 39807 39808 39809 39810 |
# File 'lib/ovirtsdk4/types.rb', line 39804 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.
39815 39816 39817 39818 39819 39820 39821 |
# File 'lib/ovirtsdk4/types.rb', line 39815 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.
39634 39635 39636 |
# File 'lib/ovirtsdk4/types.rb', line 39634 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum
attribute.
39643 39644 39645 |
# File 'lib/ovirtsdk4/types.rb', line 39643 def checksum=(value) @checksum = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39652 39653 39654 |
# File 'lib/ovirtsdk4/types.rb', line 39652 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39661 39662 39663 |
# File 'lib/ovirtsdk4/types.rb', line 39661 def comment=(value) @comment = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type
attribute.
39670 39671 39672 |
# File 'lib/ovirtsdk4/types.rb', line 39670 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
39679 39680 39681 |
# File 'lib/ovirtsdk4/types.rb', line 39679 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
39688 39689 39690 |
# File 'lib/ovirtsdk4/types.rb', line 39688 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39697 39698 39699 |
# File 'lib/ovirtsdk4/types.rb', line 39697 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
39826 39827 39828 39829 39830 39831 39832 |
# File 'lib/ovirtsdk4/types.rb', line 39826 def hash super + @checksum.hash + @content_type.hash + @host.hash + @status.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
39706 39707 39708 |
# File 'lib/ovirtsdk4/types.rb', line 39706 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.
39719 39720 39721 39722 39723 39724 |
# File 'lib/ovirtsdk4/types.rb', line 39719 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.
39731 39732 39733 |
# File 'lib/ovirtsdk4/types.rb', line 39731 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39740 39741 39742 |
# File 'lib/ovirtsdk4/types.rb', line 39740 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39749 39750 39751 |
# File 'lib/ovirtsdk4/types.rb', line 39749 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39758 39759 39760 |
# File 'lib/ovirtsdk4/types.rb', line 39758 def name=(value) @name = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status
attribute.
39767 39768 39769 |
# File 'lib/ovirtsdk4/types.rb', line 39767 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
39776 39777 39778 |
# File 'lib/ovirtsdk4/types.rb', line 39776 def status=(value) @status = value end |