Class: OvirtSDK4::AgentConfiguration
- 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. -
#broker_type ⇒ MessageBrokerType
Returns the value of the
broker_type
attribute. -
#broker_type=(value) ⇒ Object
Sets the value of the
broker_type
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ AgentConfiguration
constructor
Creates a new instance of the AgentConfiguration class.
-
#network_mappings ⇒ String
Returns the value of the
network_mappings
attribute. -
#network_mappings=(value) ⇒ Object
Sets the value of the
network_mappings
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. -
#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 = {}) ⇒ AgentConfiguration
Creates a new instance of the OvirtSDK4::AgentConfiguration class.
909 910 911 912 913 914 915 916 917 |
# File 'lib/ovirtsdk4/types.rb', line 909 def initialize(opts = {}) super(opts) self.address = opts[:address] self.broker_type = opts[:broker_type] self.network_mappings = opts[:network_mappings] self.password = opts[:password] self.port = opts[:port] self.username = opts[:username] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
922 923 924 925 926 927 928 929 930 |
# File 'lib/ovirtsdk4/types.rb', line 922 def ==(other) super && @address == other.address && @broker_type == other.broker_type && @network_mappings == other.network_mappings && @password == other.password && @port == other.port && @username == other.username end |
#address ⇒ String
Returns the value of the address
attribute.
786 787 788 |
# File 'lib/ovirtsdk4/types.rb', line 786 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
795 796 797 |
# File 'lib/ovirtsdk4/types.rb', line 795 def address=(value) @address = value end |
#broker_type ⇒ MessageBrokerType
Returns the value of the broker_type
attribute.
804 805 806 |
# File 'lib/ovirtsdk4/types.rb', line 804 def broker_type @broker_type end |
#broker_type=(value) ⇒ Object
Sets the value of the broker_type
attribute.
813 814 815 |
# File 'lib/ovirtsdk4/types.rb', line 813 def broker_type=(value) @broker_type = value end |
#hash ⇒ Object
Generates a hash value for this object.
935 936 937 938 939 940 941 942 943 |
# File 'lib/ovirtsdk4/types.rb', line 935 def hash super + @address.hash + @broker_type.hash + @network_mappings.hash + @password.hash + @port.hash + @username.hash end |
#network_mappings ⇒ String
Returns the value of the network_mappings
attribute.
822 823 824 |
# File 'lib/ovirtsdk4/types.rb', line 822 def network_mappings @network_mappings end |
#network_mappings=(value) ⇒ Object
Sets the value of the network_mappings
attribute.
831 832 833 |
# File 'lib/ovirtsdk4/types.rb', line 831 def network_mappings=(value) @network_mappings = value end |
#password ⇒ String
Returns the value of the password
attribute.
840 841 842 |
# File 'lib/ovirtsdk4/types.rb', line 840 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
849 850 851 |
# File 'lib/ovirtsdk4/types.rb', line 849 def password=(value) @password = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
858 859 860 |
# File 'lib/ovirtsdk4/types.rb', line 858 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
867 868 869 |
# File 'lib/ovirtsdk4/types.rb', line 867 def port=(value) @port = value end |
#username ⇒ String
Returns the value of the username
attribute.
876 877 878 |
# File 'lib/ovirtsdk4/types.rb', line 876 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
885 886 887 |
# File 'lib/ovirtsdk4/types.rb', line 885 def username=(value) @username = value end |