Class: OvirtSDK4::GlusterHook

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

- (GlusterHook) initialize(opts = {})

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

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :conflict_status (Integer)

    The value of attribute conflict_status.

  • :conflicts (String)

    The value of attribute conflicts.

  • :content (String)

    The value of attribute content.

  • :content_type (HookContentType)

    The value of attribute content_type.

  • :description (String)

    The value of attribute description.

  • :gluster_command (String)

    The value of attribute gluster_command.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :server_hooks (Array<GlusterServerHook>, Array<Hash>)

    The values of attribute server_hooks.

  • :stage (HookStage)

    The value of attribute stage.

  • :status (GlusterHookStatus)

    The value of attribute status.



30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
# File 'lib/ovirtsdk4/types.rb', line 30717

def initialize(opts = {})
  super(opts)
  self.checksum = opts[:checksum]
  self.cluster = opts[:cluster]
  self.comment = opts[:comment]
  self.conflict_status = opts[:conflict_status]
  self.conflicts = opts[:conflicts]
  self.content = opts[:content]
  self.content_type = opts[:content_type]
  self.description = opts[:description]
  self.gluster_command = opts[:gluster_command]
  self.id = opts[:id]
  self.name = opts[:name]
  self.server_hooks = opts[:server_hooks]
  self.stage = opts[:stage]
  self.status = opts[:status]
end

Instance Method Details

- (String) checksum

Returns the value of the checksum attribute.

Returns:

  • (String)


30420
30421
30422
# File 'lib/ovirtsdk4/types.rb', line 30420

def checksum
  return @checksum
end

- (Object) checksum=(value)

Sets the value of the checksum attribute.

Parameters:

  • value (String)


30429
30430
30431
# File 'lib/ovirtsdk4/types.rb', line 30429

def checksum=(value)
  @checksum = value
end

- (Cluster) cluster

Returns the value of the cluster attribute.

Returns:



30438
30439
30440
# File 'lib/ovirtsdk4/types.rb', line 30438

def cluster
  return @cluster
end

- (Object) cluster=(value)

Sets the value of the cluster attribute.

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



30451
30452
30453
30454
30455
30456
# File 'lib/ovirtsdk4/types.rb', line 30451

def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


30463
30464
30465
# File 'lib/ovirtsdk4/types.rb', line 30463

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


30472
30473
30474
# File 'lib/ovirtsdk4/types.rb', line 30472

def comment=(value)
  @comment = value
end

- (Integer) conflict_status

Returns the value of the conflict_status attribute.

Returns:

  • (Integer)


30481
30482
30483
# File 'lib/ovirtsdk4/types.rb', line 30481

def conflict_status
  return @conflict_status
end

- (Object) conflict_status=(value)

Sets the value of the conflict_status attribute.

Parameters:

  • value (Integer)


30490
30491
30492
# File 'lib/ovirtsdk4/types.rb', line 30490

def conflict_status=(value)
  @conflict_status = value
end

- (String) conflicts

Returns the value of the conflicts attribute.

Returns:

  • (String)


30499
30500
30501
# File 'lib/ovirtsdk4/types.rb', line 30499

def conflicts
  return @conflicts
end

- (Object) conflicts=(value)

Sets the value of the conflicts attribute.

Parameters:

  • value (String)


30508
30509
30510
# File 'lib/ovirtsdk4/types.rb', line 30508

def conflicts=(value)
  @conflicts = value
end

- (String) content

Returns the value of the content attribute.

Returns:

  • (String)


30517
30518
30519
# File 'lib/ovirtsdk4/types.rb', line 30517

def content
  return @content
end

- (Object) content=(value)

Sets the value of the content attribute.

Parameters:

  • value (String)


30526
30527
30528
# File 'lib/ovirtsdk4/types.rb', line 30526

def content=(value)
  @content = value
end

- (HookContentType) content_type

Returns the value of the content_type attribute.

Returns:



30535
30536
30537
# File 'lib/ovirtsdk4/types.rb', line 30535

def content_type
  return @content_type
end

- (Object) content_type=(value)

Sets the value of the content_type attribute.

Parameters:



30544
30545
30546
# File 'lib/ovirtsdk4/types.rb', line 30544

def content_type=(value)
  @content_type = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


30553
30554
30555
# File 'lib/ovirtsdk4/types.rb', line 30553

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


30562
30563
30564
# File 'lib/ovirtsdk4/types.rb', line 30562

def description=(value)
  @description = value
end

- (String) gluster_command

Returns the value of the gluster_command attribute.

Returns:

  • (String)


30571
30572
30573
# File 'lib/ovirtsdk4/types.rb', line 30571

def gluster_command
  return @gluster_command
end

- (Object) gluster_command=(value)

Sets the value of the gluster_command attribute.

Parameters:

  • value (String)


30580
30581
30582
# File 'lib/ovirtsdk4/types.rb', line 30580

def gluster_command=(value)
  @gluster_command = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


30589
30590
30591
# File 'lib/ovirtsdk4/types.rb', line 30589

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


30598
30599
30600
# File 'lib/ovirtsdk4/types.rb', line 30598

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


30607
30608
30609
# File 'lib/ovirtsdk4/types.rb', line 30607

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


30616
30617
30618
# File 'lib/ovirtsdk4/types.rb', line 30616

def name=(value)
  @name = value
end

- (Array<GlusterServerHook>) server_hooks

Returns the value of the server_hooks attribute.

Returns:



30625
30626
30627
# File 'lib/ovirtsdk4/types.rb', line 30625

def server_hooks
  return @server_hooks
end

- (Object) server_hooks=(list)

Sets the value of the server_hooks attribute.

Parameters:



30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
# File 'lib/ovirtsdk4/types.rb', line 30633

def server_hooks=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = GlusterServerHook.new(value)
      end
    end
  end
  @server_hooks = list
end

- (HookStage) stage

Returns the value of the stage attribute.

Returns:



30650
30651
30652
# File 'lib/ovirtsdk4/types.rb', line 30650

def stage
  return @stage
end

- (Object) stage=(value)

Sets the value of the stage attribute.

Parameters:



30659
30660
30661
# File 'lib/ovirtsdk4/types.rb', line 30659

def stage=(value)
  @stage = value
end

- (GlusterHookStatus) status

Returns the value of the status attribute.

Returns:



30668
30669
30670
# File 'lib/ovirtsdk4/types.rb', line 30668

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



30677
30678
30679
# File 'lib/ovirtsdk4/types.rb', line 30677

def status=(value)
  @status = value
end