Class: OvirtSDK4::GlusterServerHook

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ GlusterServerHook

Creates a new instance of the OvirtSDK4::GlusterServerHook class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :checksum (String)

    The value of attribute checksum.

  • :comment (String)

    The value of attribute comment.

  • :content_type (HookContentType)

    The value of attribute content_type.

  • :description (String)

    The value of attribute description.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :status (GlusterHookStatus)

    The value of attribute status.


41093
41094
41095
41096
41097
41098
41099
# File 'lib/ovirtsdk4/types.rb', line 41093

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.


41104
41105
41106
41107
41108
41109
41110
# File 'lib/ovirtsdk4/types.rb', line 41104

def ==(other)
  super &&
  @checksum == other.checksum &&
  @content_type == other.content_type &&
  @host == other.host &&
  @status == other.status
end

#checksumString

Returns the value of the checksum attribute.

Returns:

  • (String)

40923
40924
40925
# File 'lib/ovirtsdk4/types.rb', line 40923

def checksum
  @checksum
end

#checksum=(value) ⇒ Object

Sets the value of the checksum attribute.

Parameters:

  • value (String)

40932
40933
40934
# File 'lib/ovirtsdk4/types.rb', line 40932

def checksum=(value)
  @checksum = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

40941
40942
40943
# File 'lib/ovirtsdk4/types.rb', line 40941

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

40950
40951
40952
# File 'lib/ovirtsdk4/types.rb', line 40950

def comment=(value)
  @comment = value
end

#content_typeHookContentType

Returns the value of the content_type attribute.

Returns:


40959
40960
40961
# File 'lib/ovirtsdk4/types.rb', line 40959

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:


40968
40969
40970
# File 'lib/ovirtsdk4/types.rb', line 40968

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

40977
40978
40979
# File 'lib/ovirtsdk4/types.rb', line 40977

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

40986
40987
40988
# File 'lib/ovirtsdk4/types.rb', line 40986

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.


41115
41116
41117
41118
41119
41120
41121
# File 'lib/ovirtsdk4/types.rb', line 41115

def hash
  super +
  @checksum.hash +
  @content_type.hash +
  @host.hash +
  @status.hash
end

#hostHost

Returns the value of the host attribute.

Returns:


40995
40996
40997
# File 'lib/ovirtsdk4/types.rb', line 40995

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.

Parameters:

  • value (Host, Hash)

41008
41009
41010
41011
41012
41013
# File 'lib/ovirtsdk4/types.rb', line 41008

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

41020
41021
41022
# File 'lib/ovirtsdk4/types.rb', line 41020

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

41029
41030
41031
# File 'lib/ovirtsdk4/types.rb', line 41029

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

41038
41039
41040
# File 'lib/ovirtsdk4/types.rb', line 41038

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

41047
41048
41049
# File 'lib/ovirtsdk4/types.rb', line 41047

def name=(value)
  @name = value
end

#statusGlusterHookStatus

Returns the value of the status attribute.

Returns:


41056
41057
41058
# File 'lib/ovirtsdk4/types.rb', line 41056

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


41065
41066
41067
# File 'lib/ovirtsdk4/types.rb', line 41065

def status=(value)
  @status = value
end