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
true
ifself
andother
have the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#code ⇒ Integer
Returns the value of the
code
attribute. -
#code=(value) ⇒ Object
Sets the value of the
code
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#correlation_id ⇒ String
Returns the value of the
correlation_id
attribute. -
#correlation_id=(value) ⇒ Object
Sets the value of the
correlation_id
attribute. -
#custom_data ⇒ String
Returns the value of the
custom_data
attribute. -
#custom_data=(value) ⇒ Object
Sets the value of the
custom_data
attribute. -
#custom_id ⇒ Integer
Returns the value of the
custom_id
attribute. -
#custom_id=(value) ⇒ Object
Sets the value of the
custom_id
attribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_center
attribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_center
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#flood_rate ⇒ Integer
Returns the value of the
flood_rate
attribute. -
#flood_rate=(value) ⇒ Object
Sets the value of the
flood_rate
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#index ⇒ Integer
Returns the value of the
index
attribute. -
#index=(value) ⇒ Object
Sets the value of the
index
attribute. -
#initialize(opts = {}) ⇒ Event
constructor
Creates a new instance of the Event class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#severity ⇒ LogSeverity
Returns the value of the
severity
attribute. -
#severity=(value) ⇒ Object
Sets the value of the
severity
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time ⇒ DateTime
Returns the value of the
time
attribute. -
#time=(value) ⇒ Object
Sets the value of the
time
attribute. -
#user ⇒ User
Returns the value of the
user
attribute. -
#user=(value) ⇒ Object
Sets the value of the
user
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Event
Creates a new instance of the OvirtSDK4::Event class.
37230 37231 37232 37233 37234 37235 37236 37237 37238 37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 |
# File 'lib/ovirtsdk4/types.rb', line 37230 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.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.
37253 37254 37255 37256 37257 37258 37259 37260 37261 37262 37263 37264 37265 37266 37267 37268 37269 37270 37271 |
# File 'lib/ovirtsdk4/types.rb', line 37253 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 && @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.
36778 36779 36780 |
# File 'lib/ovirtsdk4/types.rb', line 36778 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.
36791 36792 36793 36794 36795 36796 |
# File 'lib/ovirtsdk4/types.rb', line 36791 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.
36803 36804 36805 |
# File 'lib/ovirtsdk4/types.rb', line 36803 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
36812 36813 36814 |
# File 'lib/ovirtsdk4/types.rb', line 36812 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
36821 36822 36823 |
# File 'lib/ovirtsdk4/types.rb', line 36821 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
36830 36831 36832 |
# File 'lib/ovirtsdk4/types.rb', line 36830 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
36839 36840 36841 |
# File 'lib/ovirtsdk4/types.rb', line 36839 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
36848 36849 36850 |
# File 'lib/ovirtsdk4/types.rb', line 36848 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
36857 36858 36859 |
# File 'lib/ovirtsdk4/types.rb', line 36857 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
36866 36867 36868 |
# File 'lib/ovirtsdk4/types.rb', line 36866 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
36875 36876 36877 |
# File 'lib/ovirtsdk4/types.rb', line 36875 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
36884 36885 36886 |
# File 'lib/ovirtsdk4/types.rb', line 36884 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
36893 36894 36895 |
# File 'lib/ovirtsdk4/types.rb', line 36893 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.
36906 36907 36908 36909 36910 36911 |
# File 'lib/ovirtsdk4/types.rb', line 36906 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.
36918 36919 36920 |
# File 'lib/ovirtsdk4/types.rb', line 36918 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36927 36928 36929 |
# File 'lib/ovirtsdk4/types.rb', line 36927 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
36936 36937 36938 |
# File 'lib/ovirtsdk4/types.rb', line 36936 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
36945 36946 36947 |
# File 'lib/ovirtsdk4/types.rb', line 36945 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
37276 37277 37278 37279 37280 37281 37282 37283 37284 37285 37286 37287 37288 37289 37290 37291 37292 37293 37294 |
# File 'lib/ovirtsdk4/types.rb', line 37276 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 + @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.
36954 36955 36956 |
# File 'lib/ovirtsdk4/types.rb', line 36954 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.
36967 36968 36969 36970 36971 36972 |
# File 'lib/ovirtsdk4/types.rb', line 36967 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.
36979 36980 36981 |
# File 'lib/ovirtsdk4/types.rb', line 36979 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
36988 36989 36990 |
# File 'lib/ovirtsdk4/types.rb', line 36988 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
36997 36998 36999 |
# File 'lib/ovirtsdk4/types.rb', line 36997 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
37006 37007 37008 |
# File 'lib/ovirtsdk4/types.rb', line 37006 def index=(value) @index = value end |
#name ⇒ String
Returns the value of the name
attribute.
37015 37016 37017 |
# File 'lib/ovirtsdk4/types.rb', line 37015 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37024 37025 37026 |
# File 'lib/ovirtsdk4/types.rb', line 37024 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
37033 37034 37035 |
# File 'lib/ovirtsdk4/types.rb', line 37033 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
37042 37043 37044 |
# File 'lib/ovirtsdk4/types.rb', line 37042 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
37051 37052 37053 |
# File 'lib/ovirtsdk4/types.rb', line 37051 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
37060 37061 37062 |
# File 'lib/ovirtsdk4/types.rb', line 37060 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
37069 37070 37071 |
# File 'lib/ovirtsdk4/types.rb', line 37069 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.
37082 37083 37084 37085 37086 37087 |
# File 'lib/ovirtsdk4/types.rb', line 37082 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.
37094 37095 37096 |
# File 'lib/ovirtsdk4/types.rb', line 37094 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.
37107 37108 37109 37110 37111 37112 |
# File 'lib/ovirtsdk4/types.rb', line 37107 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.
37119 37120 37121 |
# File 'lib/ovirtsdk4/types.rb', line 37119 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
37128 37129 37130 |
# File 'lib/ovirtsdk4/types.rb', line 37128 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
37137 37138 37139 |
# File 'lib/ovirtsdk4/types.rb', line 37137 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.
37150 37151 37152 37153 37154 37155 |
# File 'lib/ovirtsdk4/types.rb', line 37150 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.
37162 37163 37164 |
# File 'lib/ovirtsdk4/types.rb', line 37162 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.
37175 37176 37177 37178 37179 37180 |
# File 'lib/ovirtsdk4/types.rb', line 37175 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |