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.
29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 |
# File 'lib/ovirtsdk4/types.rb', line 29866 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.
29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 |
# File 'lib/ovirtsdk4/types.rb', line 29883 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.
29568 29569 29570 |
# File 'lib/ovirtsdk4/types.rb', line 29568 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
29577 29578 29579 |
# File 'lib/ovirtsdk4/types.rb', line 29577 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
29586 29587 29588 |
# File 'lib/ovirtsdk4/types.rb', line 29586 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
29595 29596 29597 |
# File 'lib/ovirtsdk4/types.rb', line 29595 def comment=(value) @comment = value end |
#concurrent ⇒ Boolean
Returns the value of the concurrent
attribute.
29604 29605 29606 |
# File 'lib/ovirtsdk4/types.rb', line 29604 def concurrent @concurrent end |
#concurrent=(value) ⇒ Object
Sets the value of the concurrent
attribute.
29613 29614 29615 |
# File 'lib/ovirtsdk4/types.rb', line 29613 def concurrent=(value) @concurrent = value end |
#description ⇒ String
Returns the value of the description
attribute.
29622 29623 29624 |
# File 'lib/ovirtsdk4/types.rb', line 29622 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
29631 29632 29633 |
# File 'lib/ovirtsdk4/types.rb', line 29631 def description=(value) @description = value end |
#encrypt_options ⇒ Boolean
Returns the value of the encrypt_options
attribute.
29640 29641 29642 |
# File 'lib/ovirtsdk4/types.rb', line 29640 def @encrypt_options end |
#encrypt_options=(value) ⇒ Object
Sets the value of the encrypt_options
attribute.
29649 29650 29651 |
# File 'lib/ovirtsdk4/types.rb', line 29649 def (value) @encrypt_options = value end |
#hash ⇒ Object
Generates a hash value for this object.
29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 29912 |
# File 'lib/ovirtsdk4/types.rb', line 29900 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.
29658 29659 29660 |
# File 'lib/ovirtsdk4/types.rb', line 29658 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.
29671 29672 29673 29674 29675 29676 |
# File 'lib/ovirtsdk4/types.rb', line 29671 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.
29683 29684 29685 |
# File 'lib/ovirtsdk4/types.rb', line 29683 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
29692 29693 29694 |
# File 'lib/ovirtsdk4/types.rb', line 29692 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
29701 29702 29703 |
# File 'lib/ovirtsdk4/types.rb', line 29701 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
29710 29711 29712 |
# File 'lib/ovirtsdk4/types.rb', line 29710 def name=(value) @name = value end |
#options ⇒ Array<Option>
Returns the value of the options
attribute.
29719 29720 29721 |
# File 'lib/ovirtsdk4/types.rb', line 29719 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 |
# File 'lib/ovirtsdk4/types.rb', line 29728 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.
29745 29746 29747 |
# File 'lib/ovirtsdk4/types.rb', line 29745 def order @order end |
#order=(value) ⇒ Object
Sets the value of the order
attribute.
29754 29755 29756 |
# File 'lib/ovirtsdk4/types.rb', line 29754 def order=(value) @order = value end |
#password ⇒ String
Returns the value of the password
attribute.
29763 29764 29765 |
# File 'lib/ovirtsdk4/types.rb', line 29763 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
29772 29773 29774 |
# File 'lib/ovirtsdk4/types.rb', line 29772 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
29781 29782 29783 |
# File 'lib/ovirtsdk4/types.rb', line 29781 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
29790 29791 29792 |
# File 'lib/ovirtsdk4/types.rb', line 29790 def port=(value) @port = value end |
#type ⇒ String
Returns the value of the type
attribute.
29799 29800 29801 |
# File 'lib/ovirtsdk4/types.rb', line 29799 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
29808 29809 29810 |
# File 'lib/ovirtsdk4/types.rb', line 29808 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
29817 29818 29819 |
# File 'lib/ovirtsdk4/types.rb', line 29817 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
29826 29827 29828 |
# File 'lib/ovirtsdk4/types.rb', line 29826 def username=(value) @username = value end |