Class: OvirtSDK4::Agent
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Agent
- 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. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#concurrent ⇒ Boolean
Returns the value of the
concurrent
attribute. -
#concurrent=(value) ⇒ Object
Sets the value of the
concurrent
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#encrypt_options ⇒ Boolean
Returns the value of the
encrypt_options
attribute. -
#encrypt_options=(value) ⇒ Object
Sets the value of the
encrypt_options
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. -
#initialize(opts = {}) ⇒ Agent
constructor
Creates a new instance of the Agent class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#options ⇒ Array<Option>
Returns the value of the
options
attribute. -
#options=(list) ⇒ Object
Sets the value of the
options
attribute. -
#order ⇒ Integer
Returns the value of the
order
attribute. -
#order=(value) ⇒ Object
Sets the value of the
order
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#type ⇒ String
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Agent
Creates a new instance of the OvirtSDK4::Agent class.
30374 30375 30376 30377 30378 30379 30380 30381 30382 30383 30384 30385 30386 |
# File 'lib/ovirtsdk4/types.rb', line 30374 def initialize(opts = {}) super(opts) self.address = opts[:address] self.concurrent = opts[:concurrent] self. = opts[:encrypt_options] self.host = opts[:host] self. = opts[:options] self.order = opts[:order] self.password = opts[:password] self.port = opts[:port] self.type = opts[:type] self.username = opts[:username] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
30391 30392 30393 30394 30395 30396 30397 30398 30399 30400 30401 30402 30403 |
# File 'lib/ovirtsdk4/types.rb', line 30391 def ==(other) super && @address == other.address && @concurrent == other.concurrent && @encrypt_options == other. && @host == other.host && @options == other. && @order == other.order && @password == other.password && @port == other.port && @type == other.type && @username == other.username end |
#address ⇒ String
Returns the value of the address
attribute.
30076 30077 30078 |
# File 'lib/ovirtsdk4/types.rb', line 30076 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
30085 30086 30087 |
# File 'lib/ovirtsdk4/types.rb', line 30085 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
30094 30095 30096 |
# File 'lib/ovirtsdk4/types.rb', line 30094 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30103 30104 30105 |
# File 'lib/ovirtsdk4/types.rb', line 30103 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
30112 30113 30114 |
# File 'lib/ovirtsdk4/types.rb', line 30112 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
30121 30122 30123 |
# File 'lib/ovirtsdk4/types.rb', line 30121 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
30130 30131 30132 |
# File 'lib/ovirtsdk4/types.rb', line 30130 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
30139 30140 30141 |
# File 'lib/ovirtsdk4/types.rb', line 30139 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
30148 30149 30150 |
# File 'lib/ovirtsdk4/types.rb', line 30148 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
30157 30158 30159 |
# File 'lib/ovirtsdk4/types.rb', line 30157 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
30408 30409 30410 30411 30412 30413 30414 30415 30416 30417 30418 30419 30420 |
# File 'lib/ovirtsdk4/types.rb', line 30408 def hash super + @address.hash + @concurrent.hash + @encrypt_options.hash + @host.hash + @options.hash + @order.hash + @password.hash + @port.hash + @type.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
30166 30167 30168 |
# File 'lib/ovirtsdk4/types.rb', line 30166 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.
30179 30180 30181 30182 30183 30184 |
# File 'lib/ovirtsdk4/types.rb', line 30179 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.
30191 30192 30193 |
# File 'lib/ovirtsdk4/types.rb', line 30191 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
30200 30201 30202 |
# File 'lib/ovirtsdk4/types.rb', line 30200 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
30209 30210 30211 |
# File 'lib/ovirtsdk4/types.rb', line 30209 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
30218 30219 30220 |
# File 'lib/ovirtsdk4/types.rb', line 30218 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
30227 30228 30229 |
# File 'lib/ovirtsdk4/types.rb', line 30227 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 30246 |
# File 'lib/ovirtsdk4/types.rb', line 30236 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Option.new(value) end end end @options = list end |
#order ⇒ Integer
Returns the value of the order
attribute.
30253 30254 30255 |
# File 'lib/ovirtsdk4/types.rb', line 30253 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
30262 30263 30264 |
# File 'lib/ovirtsdk4/types.rb', line 30262 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
30271 30272 30273 |
# File 'lib/ovirtsdk4/types.rb', line 30271 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
30280 30281 30282 |
# File 'lib/ovirtsdk4/types.rb', line 30280 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
30289 30290 30291 |
# File 'lib/ovirtsdk4/types.rb', line 30289 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
30298 30299 30300 |
# File 'lib/ovirtsdk4/types.rb', line 30298 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
30307 30308 30309 |
# File 'lib/ovirtsdk4/types.rb', line 30307 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
30316 30317 30318 |
# File 'lib/ovirtsdk4/types.rb', line 30316 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
30325 30326 30327 |
# File 'lib/ovirtsdk4/types.rb', line 30325 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
30334 30335 30336 |
# File 'lib/ovirtsdk4/types.rb', line 30334 def username=(value) @username = value end |