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.
30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 |
# File 'lib/ovirtsdk4/types.rb', line 30021 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.
30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 |
# File 'lib/ovirtsdk4/types.rb', line 30038 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.
29723 29724 29725 |
# File 'lib/ovirtsdk4/types.rb', line 29723 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
29732 29733 29734 |
# File 'lib/ovirtsdk4/types.rb', line 29732 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
29741 29742 29743 |
# File 'lib/ovirtsdk4/types.rb', line 29741 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
29750 29751 29752 |
# File 'lib/ovirtsdk4/types.rb', line 29750 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
29759 29760 29761 |
# File 'lib/ovirtsdk4/types.rb', line 29759 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
29768 29769 29770 |
# File 'lib/ovirtsdk4/types.rb', line 29768 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
29777 29778 29779 |
# File 'lib/ovirtsdk4/types.rb', line 29777 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
29786 29787 29788 |
# File 'lib/ovirtsdk4/types.rb', line 29786 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
29795 29796 29797 |
# File 'lib/ovirtsdk4/types.rb', line 29795 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
29804 29805 29806 |
# File 'lib/ovirtsdk4/types.rb', line 29804 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 |
# File 'lib/ovirtsdk4/types.rb', line 30055 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.
29813 29814 29815 |
# File 'lib/ovirtsdk4/types.rb', line 29813 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.
29826 29827 29828 29829 29830 29831 |
# File 'lib/ovirtsdk4/types.rb', line 29826 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.
29838 29839 29840 |
# File 'lib/ovirtsdk4/types.rb', line 29838 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
29847 29848 29849 |
# File 'lib/ovirtsdk4/types.rb', line 29847 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
29856 29857 29858 |
# File 'lib/ovirtsdk4/types.rb', line 29856 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
29865 29866 29867 |
# File 'lib/ovirtsdk4/types.rb', line 29865 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
29874 29875 29876 |
# File 'lib/ovirtsdk4/types.rb', line 29874 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 |
# File 'lib/ovirtsdk4/types.rb', line 29883 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.
29900 29901 29902 |
# File 'lib/ovirtsdk4/types.rb', line 29900 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
29909 29910 29911 |
# File 'lib/ovirtsdk4/types.rb', line 29909 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
29918 29919 29920 |
# File 'lib/ovirtsdk4/types.rb', line 29918 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
29927 29928 29929 |
# File 'lib/ovirtsdk4/types.rb', line 29927 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
29936 29937 29938 |
# File 'lib/ovirtsdk4/types.rb', line 29936 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
29945 29946 29947 |
# File 'lib/ovirtsdk4/types.rb', line 29945 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
29954 29955 29956 |
# File 'lib/ovirtsdk4/types.rb', line 29954 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
29963 29964 29965 |
# File 'lib/ovirtsdk4/types.rb', line 29963 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
29972 29973 29974 |
# File 'lib/ovirtsdk4/types.rb', line 29972 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
29981 29982 29983 |
# File 'lib/ovirtsdk4/types.rb', line 29981 def username=(value) @username = value end |