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.
39735 39736 39737 39738 39739 39740 39741 |
# File 'lib/ovirtsdk4/types.rb', line 39735 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.
39746 39747 39748 39749 39750 39751 39752 |
# File 'lib/ovirtsdk4/types.rb', line 39746 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.
39565 39566 39567 |
# File 'lib/ovirtsdk4/types.rb', line 39565 def checksum @checksum end |
#checksum=(value) ⇒ Object
Sets the value of the checksum attribute.
39574 39575 39576 |
# File 'lib/ovirtsdk4/types.rb', line 39574 def checksum=(value) @checksum = value end |
#comment ⇒ String
Returns the value of the comment attribute.
39583 39584 39585 |
# File 'lib/ovirtsdk4/types.rb', line 39583 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
39592 39593 39594 |
# File 'lib/ovirtsdk4/types.rb', line 39592 def comment=(value) @comment = value end |
#content_type ⇒ HookContentType
Returns the value of the content_type attribute.
39601 39602 39603 |
# File 'lib/ovirtsdk4/types.rb', line 39601 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
39610 39611 39612 |
# File 'lib/ovirtsdk4/types.rb', line 39610 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
39619 39620 39621 |
# File 'lib/ovirtsdk4/types.rb', line 39619 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
39628 39629 39630 |
# File 'lib/ovirtsdk4/types.rb', line 39628 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
39757 39758 39759 39760 39761 39762 39763 |
# File 'lib/ovirtsdk4/types.rb', line 39757 def hash super + @checksum.hash + @content_type.hash + @host.hash + @status.hash end |
#host ⇒ Host
Returns the value of the host attribute.
39637 39638 39639 |
# File 'lib/ovirtsdk4/types.rb', line 39637 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.
39650 39651 39652 39653 39654 39655 |
# File 'lib/ovirtsdk4/types.rb', line 39650 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.
39662 39663 39664 |
# File 'lib/ovirtsdk4/types.rb', line 39662 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
39671 39672 39673 |
# File 'lib/ovirtsdk4/types.rb', line 39671 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
39680 39681 39682 |
# File 'lib/ovirtsdk4/types.rb', line 39680 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
39689 39690 39691 |
# File 'lib/ovirtsdk4/types.rb', line 39689 def name=(value) @name = value end |
#status ⇒ GlusterHookStatus
Returns the value of the status attribute.
39698 39699 39700 |
# File 'lib/ovirtsdk4/types.rb', line 39698 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
39707 39708 39709 |
# File 'lib/ovirtsdk4/types.rb', line 39707 def status=(value) @status = value end |