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.
30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 |
# File 'lib/ovirtsdk4/types.rb', line 30150 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.
30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 |
# File 'lib/ovirtsdk4/types.rb', line 30167 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.
29852 29853 29854 |
# File 'lib/ovirtsdk4/types.rb', line 29852 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
29861 29862 29863 |
# File 'lib/ovirtsdk4/types.rb', line 29861 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
29870 29871 29872 |
# File 'lib/ovirtsdk4/types.rb', line 29870 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
29879 29880 29881 |
# File 'lib/ovirtsdk4/types.rb', line 29879 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
29888 29889 29890 |
# File 'lib/ovirtsdk4/types.rb', line 29888 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
29897 29898 29899 |
# File 'lib/ovirtsdk4/types.rb', line 29897 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
29906 29907 29908 |
# File 'lib/ovirtsdk4/types.rb', line 29906 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
29915 29916 29917 |
# File 'lib/ovirtsdk4/types.rb', line 29915 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
29924 29925 29926 |
# File 'lib/ovirtsdk4/types.rb', line 29924 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
29933 29934 29935 |
# File 'lib/ovirtsdk4/types.rb', line 29933 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 |
# File 'lib/ovirtsdk4/types.rb', line 30184 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.
29942 29943 29944 |
# File 'lib/ovirtsdk4/types.rb', line 29942 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.
29955 29956 29957 29958 29959 29960 |
# File 'lib/ovirtsdk4/types.rb', line 29955 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.
29967 29968 29969 |
# File 'lib/ovirtsdk4/types.rb', line 29967 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
29976 29977 29978 |
# File 'lib/ovirtsdk4/types.rb', line 29976 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
29985 29986 29987 |
# File 'lib/ovirtsdk4/types.rb', line 29985 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
29994 29995 29996 |
# File 'lib/ovirtsdk4/types.rb', line 29994 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
30003 30004 30005 |
# File 'lib/ovirtsdk4/types.rb', line 30003 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 |
# File 'lib/ovirtsdk4/types.rb', line 30012 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.
30029 30030 30031 |
# File 'lib/ovirtsdk4/types.rb', line 30029 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
30038 30039 30040 |
# File 'lib/ovirtsdk4/types.rb', line 30038 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
30047 30048 30049 |
# File 'lib/ovirtsdk4/types.rb', line 30047 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
30056 30057 30058 |
# File 'lib/ovirtsdk4/types.rb', line 30056 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
30065 30066 30067 |
# File 'lib/ovirtsdk4/types.rb', line 30065 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
30074 30075 30076 |
# File 'lib/ovirtsdk4/types.rb', line 30074 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
30083 30084 30085 |
# File 'lib/ovirtsdk4/types.rb', line 30083 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
30092 30093 30094 |
# File 'lib/ovirtsdk4/types.rb', line 30092 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
30101 30102 30103 |
# File 'lib/ovirtsdk4/types.rb', line 30101 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
30110 30111 30112 |
# File 'lib/ovirtsdk4/types.rb', line 30110 def username=(value) @username = value end |