Class: OvirtSDK4::Hook

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

- (Hook) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Hook 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):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :event_name (String)

    The value of attribute event_name.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :md5 (String)

    The value of attribute md5.

  • :name (String)

    The value of attribute name.



32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
# File 'lib/ovirtsdk4/types.rb', line 32389

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


32239
32240
32241
# File 'lib/ovirtsdk4/types.rb', line 32239

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


32248
32249
32250
# File 'lib/ovirtsdk4/types.rb', line 32248

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


32257
32258
32259
# File 'lib/ovirtsdk4/types.rb', line 32257

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


32266
32267
32268
# File 'lib/ovirtsdk4/types.rb', line 32266

def description=(value)
  @description = value
end

- (String) event_name

Returns the value of the event_name attribute.

Returns:

  • (String)


32275
32276
32277
# File 'lib/ovirtsdk4/types.rb', line 32275

def event_name
  return @event_name
end

- (Object) event_name=(value)

Sets the value of the event_name attribute.

Parameters:

  • value (String)


32284
32285
32286
# File 'lib/ovirtsdk4/types.rb', line 32284

def event_name=(value)
  @event_name = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



32293
32294
32295
# File 'lib/ovirtsdk4/types.rb', line 32293

def host
  return @host
end

- (Object) host=(value)

Sets the value of the host attribute.

The value parameter can be an instance of OvirtSDK4::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)


32306
32307
32308
32309
32310
32311
# File 'lib/ovirtsdk4/types.rb', line 32306

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)


32318
32319
32320
# File 'lib/ovirtsdk4/types.rb', line 32318

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


32327
32328
32329
# File 'lib/ovirtsdk4/types.rb', line 32327

def id=(value)
  @id = value
end

- (String) md5

Returns the value of the md5 attribute.

Returns:

  • (String)


32336
32337
32338
# File 'lib/ovirtsdk4/types.rb', line 32336

def md5
  return @md5
end

- (Object) md5=(value)

Sets the value of the md5 attribute.

Parameters:

  • value (String)


32345
32346
32347
# File 'lib/ovirtsdk4/types.rb', line 32345

def md5=(value)
  @md5 = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


32354
32355
32356
# File 'lib/ovirtsdk4/types.rb', line 32354

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


32363
32364
32365
# File 'lib/ovirtsdk4/types.rb', line 32363

def name=(value)
  @name = value
end