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.
31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 |
# File 'lib/ovirtsdk4/types.rb', line 31247 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.
31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 |
# File 'lib/ovirtsdk4/types.rb', line 31264 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.
30949 30950 30951 |
# File 'lib/ovirtsdk4/types.rb', line 30949 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
30958 30959 30960 |
# File 'lib/ovirtsdk4/types.rb', line 30958 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
30967 30968 30969 |
# File 'lib/ovirtsdk4/types.rb', line 30967 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30976 30977 30978 |
# File 'lib/ovirtsdk4/types.rb', line 30976 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
30985 30986 30987 |
# File 'lib/ovirtsdk4/types.rb', line 30985 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
30994 30995 30996 |
# File 'lib/ovirtsdk4/types.rb', line 30994 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
31003 31004 31005 |
# File 'lib/ovirtsdk4/types.rb', line 31003 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
31012 31013 31014 |
# File 'lib/ovirtsdk4/types.rb', line 31012 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
31021 31022 31023 |
# File 'lib/ovirtsdk4/types.rb', line 31021 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
31030 31031 31032 |
# File 'lib/ovirtsdk4/types.rb', line 31030 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 |
# File 'lib/ovirtsdk4/types.rb', line 31281 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.
31039 31040 31041 |
# File 'lib/ovirtsdk4/types.rb', line 31039 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.
31052 31053 31054 31055 31056 31057 |
# File 'lib/ovirtsdk4/types.rb', line 31052 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.
31064 31065 31066 |
# File 'lib/ovirtsdk4/types.rb', line 31064 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
31073 31074 31075 |
# File 'lib/ovirtsdk4/types.rb', line 31073 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
31082 31083 31084 |
# File 'lib/ovirtsdk4/types.rb', line 31082 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
31091 31092 31093 |
# File 'lib/ovirtsdk4/types.rb', line 31091 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
31100 31101 31102 |
# File 'lib/ovirtsdk4/types.rb', line 31100 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 |
# File 'lib/ovirtsdk4/types.rb', line 31109 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.
31126 31127 31128 |
# File 'lib/ovirtsdk4/types.rb', line 31126 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
31135 31136 31137 |
# File 'lib/ovirtsdk4/types.rb', line 31135 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
31144 31145 31146 |
# File 'lib/ovirtsdk4/types.rb', line 31144 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
31153 31154 31155 |
# File 'lib/ovirtsdk4/types.rb', line 31153 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
31162 31163 31164 |
# File 'lib/ovirtsdk4/types.rb', line 31162 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
31171 31172 31173 |
# File 'lib/ovirtsdk4/types.rb', line 31171 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
31180 31181 31182 |
# File 'lib/ovirtsdk4/types.rb', line 31180 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
31189 31190 31191 |
# File 'lib/ovirtsdk4/types.rb', line 31189 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
31198 31199 31200 |
# File 'lib/ovirtsdk4/types.rb', line 31198 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
31207 31208 31209 |
# File 'lib/ovirtsdk4/types.rb', line 31207 def username=(value) @username = value end |