Class: OvirtSDK4::Event
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Event
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#code ⇒ Integer
Returns the value of the
codeattribute. -
#code=(value) ⇒ Object
Sets the value of the
codeattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#correlation_id ⇒ String
Returns the value of the
correlation_idattribute. -
#correlation_id=(value) ⇒ Object
Sets the value of the
correlation_idattribute. -
#custom_data ⇒ String
Returns the value of the
custom_dataattribute. -
#custom_data=(value) ⇒ Object
Sets the value of the
custom_dataattribute. -
#custom_id ⇒ Integer
Returns the value of the
custom_idattribute. -
#custom_id=(value) ⇒ Object
Sets the value of the
custom_idattribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_centerattribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_centerattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#flood_rate ⇒ Integer
Returns the value of the
flood_rateattribute. -
#flood_rate=(value) ⇒ Object
Sets the value of the
flood_rateattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#index ⇒ Integer
Returns the value of the
indexattribute. -
#index=(value) ⇒ Object
Sets the value of the
indexattribute. -
#initialize(opts = {}) ⇒ Event
constructor
Creates a new instance of the Event class.
-
#log_on_host ⇒ Boolean
Returns the value of the
log_on_hostattribute. -
#log_on_host=(value) ⇒ Object
Sets the value of the
log_on_hostattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#severity ⇒ LogSeverity
Returns the value of the
severityattribute. -
#severity=(value) ⇒ Object
Sets the value of the
severityattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#time ⇒ DateTime
Returns the value of the
timeattribute. -
#time=(value) ⇒ Object
Sets the value of the
timeattribute. -
#user ⇒ User
Returns the value of the
userattribute. -
#user=(value) ⇒ Object
Sets the value of the
userattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Event
Creates a new instance of the OvirtSDK4::Event class.
39762 39763 39764 39765 39766 39767 39768 39769 39770 39771 39772 39773 39774 39775 39776 39777 39778 39779 39780 39781 |
# File 'lib/ovirtsdk4/types.rb', line 39762 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.code = opts[:code] self.correlation_id = opts[:correlation_id] self.custom_data = opts[:custom_data] self.custom_id = opts[:custom_id] self.data_center = opts[:data_center] self.flood_rate = opts[:flood_rate] self.host = opts[:host] self.index = opts[:index] self.log_on_host = opts[:log_on_host] self.origin = opts[:origin] self.severity = opts[:severity] self.storage_domain = opts[:storage_domain] self.template = opts[:template] self.time = opts[:time] self.user = opts[:user] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
39786 39787 39788 39789 39790 39791 39792 39793 39794 39795 39796 39797 39798 39799 39800 39801 39802 39803 39804 39805 |
# File 'lib/ovirtsdk4/types.rb', line 39786 def ==(other) super && @cluster == other.cluster && @code == other.code && @correlation_id == other.correlation_id && @custom_data == other.custom_data && @custom_id == other.custom_id && @data_center == other.data_center && @flood_rate == other.flood_rate && @host == other.host && @index == other.index && @log_on_host == other.log_on_host && @origin == other.origin && @severity == other.severity && @storage_domain == other.storage_domain && @template == other.template && @time == other.time && @user == other.user && @vm == other.vm end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
39290 39291 39292 |
# File 'lib/ovirtsdk4/types.rb', line 39290 def cluster @cluster end |
#cluster=(value) ⇒ Object
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.
39303 39304 39305 39306 39307 39308 |
# File 'lib/ovirtsdk4/types.rb', line 39303 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#code ⇒ Integer
Returns the value of the code attribute.
39315 39316 39317 |
# File 'lib/ovirtsdk4/types.rb', line 39315 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code attribute.
39324 39325 39326 |
# File 'lib/ovirtsdk4/types.rb', line 39324 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment attribute.
39333 39334 39335 |
# File 'lib/ovirtsdk4/types.rb', line 39333 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
39342 39343 39344 |
# File 'lib/ovirtsdk4/types.rb', line 39342 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id attribute.
39351 39352 39353 |
# File 'lib/ovirtsdk4/types.rb', line 39351 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id attribute.
39360 39361 39362 |
# File 'lib/ovirtsdk4/types.rb', line 39360 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data attribute.
39369 39370 39371 |
# File 'lib/ovirtsdk4/types.rb', line 39369 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data attribute.
39378 39379 39380 |
# File 'lib/ovirtsdk4/types.rb', line 39378 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id attribute.
39387 39388 39389 |
# File 'lib/ovirtsdk4/types.rb', line 39387 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id attribute.
39396 39397 39398 |
# File 'lib/ovirtsdk4/types.rb', line 39396 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center attribute.
39405 39406 39407 |
# File 'lib/ovirtsdk4/types.rb', line 39405 def data_center @data_center end |
#data_center=(value) ⇒ Object
Sets the value of the data_center attribute.
The value parameter can be an instance of DataCenter 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.
39418 39419 39420 39421 39422 39423 |
# File 'lib/ovirtsdk4/types.rb', line 39418 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
#description ⇒ String
Returns the value of the description attribute.
39430 39431 39432 |
# File 'lib/ovirtsdk4/types.rb', line 39430 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
39439 39440 39441 |
# File 'lib/ovirtsdk4/types.rb', line 39439 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate attribute.
39448 39449 39450 |
# File 'lib/ovirtsdk4/types.rb', line 39448 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate attribute.
39457 39458 39459 |
# File 'lib/ovirtsdk4/types.rb', line 39457 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 |
# File 'lib/ovirtsdk4/types.rb', line 39810 def hash super + @cluster.hash + @code.hash + @correlation_id.hash + @custom_data.hash + @custom_id.hash + @data_center.hash + @flood_rate.hash + @host.hash + @index.hash + @log_on_host.hash + @origin.hash + @severity.hash + @storage_domain.hash + @template.hash + @time.hash + @user.hash + @vm.hash end |
#host ⇒ Host
Returns the value of the host attribute.
39466 39467 39468 |
# File 'lib/ovirtsdk4/types.rb', line 39466 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.
39479 39480 39481 39482 39483 39484 |
# File 'lib/ovirtsdk4/types.rb', line 39479 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
39491 39492 39493 |
# File 'lib/ovirtsdk4/types.rb', line 39491 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
39500 39501 39502 |
# File 'lib/ovirtsdk4/types.rb', line 39500 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index attribute.
39509 39510 39511 |
# File 'lib/ovirtsdk4/types.rb', line 39509 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index attribute.
39518 39519 39520 |
# File 'lib/ovirtsdk4/types.rb', line 39518 def index=(value) @index = value end |
#log_on_host ⇒ Boolean
Returns the value of the log_on_host attribute.
39527 39528 39529 |
# File 'lib/ovirtsdk4/types.rb', line 39527 def log_on_host @log_on_host end |
#log_on_host=(value) ⇒ Object
Sets the value of the log_on_host attribute.
39536 39537 39538 |
# File 'lib/ovirtsdk4/types.rb', line 39536 def log_on_host=(value) @log_on_host = value end |
#name ⇒ String
Returns the value of the name attribute.
39545 39546 39547 |
# File 'lib/ovirtsdk4/types.rb', line 39545 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
39554 39555 39556 |
# File 'lib/ovirtsdk4/types.rb', line 39554 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin attribute.
39563 39564 39565 |
# File 'lib/ovirtsdk4/types.rb', line 39563 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
39572 39573 39574 |
# File 'lib/ovirtsdk4/types.rb', line 39572 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity attribute.
39581 39582 39583 |
# File 'lib/ovirtsdk4/types.rb', line 39581 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity attribute.
39590 39591 39592 |
# File 'lib/ovirtsdk4/types.rb', line 39590 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
39599 39600 39601 |
# File 'lib/ovirtsdk4/types.rb', line 39599 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain attribute.
The value parameter can be an instance of StorageDomain 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.
39612 39613 39614 39615 39616 39617 |
# File 'lib/ovirtsdk4/types.rb', line 39612 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#template ⇒ Template
Returns the value of the template attribute.
39624 39625 39626 |
# File 'lib/ovirtsdk4/types.rb', line 39624 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template attribute.
The value parameter can be an instance of Template 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.
39637 39638 39639 39640 39641 39642 |
# File 'lib/ovirtsdk4/types.rb', line 39637 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#time ⇒ DateTime
Returns the value of the time attribute.
39649 39650 39651 |
# File 'lib/ovirtsdk4/types.rb', line 39649 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time attribute.
39658 39659 39660 |
# File 'lib/ovirtsdk4/types.rb', line 39658 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user attribute.
39667 39668 39669 |
# File 'lib/ovirtsdk4/types.rb', line 39667 def user @user end |
#user=(value) ⇒ Object
Sets the value of the user attribute.
The value parameter can be an instance of User 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.
39680 39681 39682 39683 39684 39685 |
# File 'lib/ovirtsdk4/types.rb', line 39680 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
39692 39693 39694 |
# File 'lib/ovirtsdk4/types.rb', line 39692 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
The value parameter can be an instance of Vm 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.
39705 39706 39707 39708 39709 39710 |
# File 'lib/ovirtsdk4/types.rb', line 39705 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |