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

#href, #href=

Constructor Details

- (GlusterServerHook) initialize(opts = {})

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.



31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
# File 'lib/ovirtsdk4/types.rb', line 31182

def initialize(opts = {})
  super(opts)
  self.checksum = opts[:checksum]
  self.comment = opts[:comment]
  self.content_type = opts[:content_type]
  self.description = opts[:description]
  self.host = opts[:host]
  self.id = opts[:id]
  self.name = opts[:name]
  self.status = opts[:status]
end

Instance Method Details

- (String) checksum

Returns the value of the checksum attribute.

Returns:

  • (String)


31012
31013
31014
# File 'lib/ovirtsdk4/types.rb', line 31012

def checksum
  return @checksum
end

- (Object) checksum=(value)

Sets the value of the checksum attribute.

Parameters:

  • value (String)


31021
31022
31023
# File 'lib/ovirtsdk4/types.rb', line 31021

def checksum=(value)
  @checksum = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


31030
31031
31032
# File 'lib/ovirtsdk4/types.rb', line 31030

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


31039
31040
31041
# File 'lib/ovirtsdk4/types.rb', line 31039

def comment=(value)
  @comment = value
end

- (HookContentType) content_type

Returns the value of the content_type attribute.

Returns:



31048
31049
31050
# File 'lib/ovirtsdk4/types.rb', line 31048

def content_type
  return @content_type
end

- (Object) content_type=(value)

Sets the value of the content_type attribute.

Parameters:



31057
31058
31059
# File 'lib/ovirtsdk4/types.rb', line 31057

def content_type=(value)
  @content_type = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


31066
31067
31068
# File 'lib/ovirtsdk4/types.rb', line 31066

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


31075
31076
31077
# File 'lib/ovirtsdk4/types.rb', line 31075

def description=(value)
  @description = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



31084
31085
31086
# File 'lib/ovirtsdk4/types.rb', line 31084

def host
  return @host
end

- (Object) host=(value)

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)


31097
31098
31099
31100
31101
31102
# File 'lib/ovirtsdk4/types.rb', line 31097

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


31109
31110
31111
# File 'lib/ovirtsdk4/types.rb', line 31109

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


31118
31119
31120
# File 'lib/ovirtsdk4/types.rb', line 31118

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


31127
31128
31129
# File 'lib/ovirtsdk4/types.rb', line 31127

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


31136
31137
31138
# File 'lib/ovirtsdk4/types.rb', line 31136

def name=(value)
  @name = value
end

- (GlusterHookStatus) status

Returns the value of the status attribute.

Returns:



31145
31146
31147
# File 'lib/ovirtsdk4/types.rb', line 31145

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



31154
31155
31156
# File 'lib/ovirtsdk4/types.rb', line 31154

def status=(value)
  @status = value
end