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
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#concurrent ⇒ Boolean
Returns the value of the
concurrentattribute. -
#concurrent=(value) ⇒ Object
Sets the value of the
concurrentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#encrypt_options ⇒ Boolean
Returns the value of the
encrypt_optionsattribute. -
#encrypt_options=(value) ⇒ Object
Sets the value of the
encrypt_optionsattribute. -
#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. -
#initialize(opts = {}) ⇒ Agent
constructor
Creates a new instance of the Agent class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#options ⇒ Array<Option>
Returns the value of the
optionsattribute. -
#options=(list) ⇒ Object
Sets the value of the
optionsattribute. -
#order ⇒ Integer
Returns the value of the
orderattribute. -
#order=(value) ⇒ Object
Sets the value of the
orderattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#type ⇒ String
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Agent
Creates a new instance of the OvirtSDK4::Agent class.
32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 |
# File 'lib/ovirtsdk4/types.rb', line 32250 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.
32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 |
# File 'lib/ovirtsdk4/types.rb', line 32267 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.
31952 31953 31954 |
# File 'lib/ovirtsdk4/types.rb', line 31952 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
31961 31962 31963 |
# File 'lib/ovirtsdk4/types.rb', line 31961 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment attribute.
31970 31971 31972 |
# File 'lib/ovirtsdk4/types.rb', line 31970 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
31979 31980 31981 |
# File 'lib/ovirtsdk4/types.rb', line 31979 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent attribute.
31988 31989 31990 |
# File 'lib/ovirtsdk4/types.rb', line 31988 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent attribute.
31997 31998 31999 |
# File 'lib/ovirtsdk4/types.rb', line 31997 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description attribute.
32006 32007 32008 |
# File 'lib/ovirtsdk4/types.rb', line 32006 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
32015 32016 32017 |
# File 'lib/ovirtsdk4/types.rb', line 32015 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options attribute.
32024 32025 32026 |
# File 'lib/ovirtsdk4/types.rb', line 32024 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options attribute.
32033 32034 32035 |
# File 'lib/ovirtsdk4/types.rb', line 32033 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
32284 32285 32286 32287 32288 32289 32290 32291 32292 32293 32294 32295 32296 |
# File 'lib/ovirtsdk4/types.rb', line 32284 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.
32042 32043 32044 |
# File 'lib/ovirtsdk4/types.rb', line 32042 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.
32055 32056 32057 32058 32059 32060 |
# File 'lib/ovirtsdk4/types.rb', line 32055 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.
32067 32068 32069 |
# File 'lib/ovirtsdk4/types.rb', line 32067 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
32076 32077 32078 |
# File 'lib/ovirtsdk4/types.rb', line 32076 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
32085 32086 32087 |
# File 'lib/ovirtsdk4/types.rb', line 32085 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
32094 32095 32096 |
# File 'lib/ovirtsdk4/types.rb', line 32094 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options attribute.
32103 32104 32105 |
# File 'lib/ovirtsdk4/types.rb', line 32103 def @options end |
#options=(list) ⇒ Object
Sets the value of the options attribute.
32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 |
# File 'lib/ovirtsdk4/types.rb', line 32112 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.
32129 32130 32131 |
# File 'lib/ovirtsdk4/types.rb', line 32129 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order attribute.
32138 32139 32140 |
# File 'lib/ovirtsdk4/types.rb', line 32138 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password attribute.
32147 32148 32149 |
# File 'lib/ovirtsdk4/types.rb', line 32147 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
32156 32157 32158 |
# File 'lib/ovirtsdk4/types.rb', line 32156 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port attribute.
32165 32166 32167 |
# File 'lib/ovirtsdk4/types.rb', line 32165 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
32174 32175 32176 |
# File 'lib/ovirtsdk4/types.rb', line 32174 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type attribute.
32183 32184 32185 |
# File 'lib/ovirtsdk4/types.rb', line 32183 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
32192 32193 32194 |
# File 'lib/ovirtsdk4/types.rb', line 32192 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username attribute.
32201 32202 32203 |
# File 'lib/ovirtsdk4/types.rb', line 32201 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
32210 32211 32212 |
# File 'lib/ovirtsdk4/types.rb', line 32210 def username=(value) @username = value end |