Class: OvirtSDK4::GlusterHook
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GlusterHook
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) checksum
Returns the value of the
checksum
attribute. -
- (Object) checksum=(value)
Sets the value of the
checksum
attribute. -
- (Cluster) cluster
Returns the value of the
cluster
attribute. -
- (Object) cluster=(value)
Sets the value of the
cluster
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Integer) conflict_status
Returns the value of the
conflict_status
attribute. -
- (Object) conflict_status=(value)
Sets the value of the
conflict_status
attribute. -
- (String) conflicts
Returns the value of the
conflicts
attribute. -
- (Object) conflicts=(value)
Sets the value of the
conflicts
attribute. -
- (String) content
Returns the value of the
content
attribute. -
- (Object) content=(value)
Sets the value of the
content
attribute. -
- (HookContentType) content_type
Returns the value of the
content_type
attribute. -
- (Object) content_type=(value)
Sets the value of the
content_type
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) gluster_command
Returns the value of the
gluster_command
attribute. -
- (Object) gluster_command=(value)
Sets the value of the
gluster_command
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (GlusterHook) initialize(opts = {})
constructor
Creates a new instance of the GlusterHook class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<GlusterServerHook>) server_hooks
Returns the value of the
server_hooks
attribute. -
- (Object) server_hooks=(list)
Sets the value of the
server_hooks
attribute. -
- (HookStage) stage
Returns the value of the
stage
attribute. -
- (Object) stage=(value)
Sets the value of the
stage
attribute. -
- (GlusterHookStatus) status
Returns the value of the
status
attribute. -
- (Object) status=(value)
Sets the value of the
status
attribute.
Methods included from Type
Constructor Details
- (GlusterHook) initialize(opts = {})
Creates a new instance of the OvirtSDK4::GlusterHook class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
30677 30678 30679 |
# File 'lib/ovirtsdk4/types.rb', line 30677 def status=(value) @status = value end |