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.
31957 31958 31959 31960 31961 31962 31963 31964 31965 31966 31967 31968 31969 |
# File 'lib/ovirtsdk4/types.rb', line 31957 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.
31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 |
# File 'lib/ovirtsdk4/types.rb', line 31974 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.
31659 31660 31661 |
# File 'lib/ovirtsdk4/types.rb', line 31659 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
31668 31669 31670 |
# File 'lib/ovirtsdk4/types.rb', line 31668 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
31677 31678 31679 |
# File 'lib/ovirtsdk4/types.rb', line 31677 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
31686 31687 31688 |
# File 'lib/ovirtsdk4/types.rb', line 31686 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
31695 31696 31697 |
# File 'lib/ovirtsdk4/types.rb', line 31695 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
31704 31705 31706 |
# File 'lib/ovirtsdk4/types.rb', line 31704 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
31713 31714 31715 |
# File 'lib/ovirtsdk4/types.rb', line 31713 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
31722 31723 31724 |
# File 'lib/ovirtsdk4/types.rb', line 31722 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
31731 31732 31733 |
# File 'lib/ovirtsdk4/types.rb', line 31731 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
31740 31741 31742 |
# File 'lib/ovirtsdk4/types.rb', line 31740 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 |
# File 'lib/ovirtsdk4/types.rb', line 31991 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.
31749 31750 31751 |
# File 'lib/ovirtsdk4/types.rb', line 31749 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.
31762 31763 31764 31765 31766 31767 |
# File 'lib/ovirtsdk4/types.rb', line 31762 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.
31774 31775 31776 |
# File 'lib/ovirtsdk4/types.rb', line 31774 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
31783 31784 31785 |
# File 'lib/ovirtsdk4/types.rb', line 31783 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
31792 31793 31794 |
# File 'lib/ovirtsdk4/types.rb', line 31792 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
31801 31802 31803 |
# File 'lib/ovirtsdk4/types.rb', line 31801 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
31810 31811 31812 |
# File 'lib/ovirtsdk4/types.rb', line 31810 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 |
# File 'lib/ovirtsdk4/types.rb', line 31819 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.
31836 31837 31838 |
# File 'lib/ovirtsdk4/types.rb', line 31836 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
31845 31846 31847 |
# File 'lib/ovirtsdk4/types.rb', line 31845 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
31854 31855 31856 |
# File 'lib/ovirtsdk4/types.rb', line 31854 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
31863 31864 31865 |
# File 'lib/ovirtsdk4/types.rb', line 31863 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
31872 31873 31874 |
# File 'lib/ovirtsdk4/types.rb', line 31872 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
31881 31882 31883 |
# File 'lib/ovirtsdk4/types.rb', line 31881 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
31890 31891 31892 |
# File 'lib/ovirtsdk4/types.rb', line 31890 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
31899 31900 31901 |
# File 'lib/ovirtsdk4/types.rb', line 31899 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
31908 31909 31910 |
# File 'lib/ovirtsdk4/types.rb', line 31908 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
31917 31918 31919 |
# File 'lib/ovirtsdk4/types.rb', line 31917 def username=(value) @username = value end |