Class: OvirtSDK4::Agent
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Agent
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) address
Returns the value of the
address
attribute. -
- (Object) address=(value)
Sets the value of the
address
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Boolean) concurrent
Returns the value of the
concurrent
attribute. -
- (Object) concurrent=(value)
Sets the value of the
concurrent
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Boolean) encrypt_options
Returns the value of the
encrypt_options
attribute. -
- (Object) encrypt_options=(value)
Sets the value of the
encrypt_options
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Agent) initialize(opts = {})
constructor
Creates a new instance of the Agent class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Option>) options
Returns the value of the
options
attribute. -
- (Object) options=(list)
Sets the value of the
options
attribute. -
- (Integer) order
Returns the value of the
order
attribute. -
- (Object) order=(value)
Sets the value of the
order
attribute. -
- (String) password
Returns the value of the
password
attribute. -
- (Object) password=(value)
Sets the value of the
password
attribute. -
- (Integer) port
Returns the value of the
port
attribute. -
- (Object) port=(value)
Sets the value of the
port
attribute. -
- (String) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute. -
- (String) username
Returns the value of the
username
attribute. -
- (Object) username=(value)
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
- (Agent) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Agent class.
23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 |
# File 'lib/ovirtsdk4/types.rb', line 23048 def initialize(opts = {}) super(opts) self.address = opts[:address] self.comment = opts[:comment] self.concurrent = opts[:concurrent] self.description = opts[:description] self. = opts[:encrypt_options] self.host = opts[:host] self.id = opts[:id] self.name = opts[:name] 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
- (String) address
Returns the value of the address
attribute.
22751 22752 22753 |
# File 'lib/ovirtsdk4/types.rb', line 22751 def address return @address end |
- (Object) address=(value)
Sets the value of the address
attribute.
22760 22761 22762 |
# File 'lib/ovirtsdk4/types.rb', line 22760 def address=(value) @address = value end |
- (String) comment
Returns the value of the comment
attribute.
22769 22770 22771 |
# File 'lib/ovirtsdk4/types.rb', line 22769 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
22778 22779 22780 |
# File 'lib/ovirtsdk4/types.rb', line 22778 def comment=(value) @comment = value end |
- (Boolean) concurrent
Returns the value of the concurrent
attribute.
22787 22788 22789 |
# File 'lib/ovirtsdk4/types.rb', line 22787 def concurrent return @concurrent end |
- (Object) concurrent=(value)
Sets the value of the concurrent
attribute.
22796 22797 22798 |
# File 'lib/ovirtsdk4/types.rb', line 22796 def concurrent=(value) @concurrent = value end |
- (String) description
Returns the value of the description
attribute.
22805 22806 22807 |
# File 'lib/ovirtsdk4/types.rb', line 22805 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
22814 22815 22816 |
# File 'lib/ovirtsdk4/types.rb', line 22814 def description=(value) @description = value end |
- (Boolean) encrypt_options
Returns the value of the encrypt_options
attribute.
22823 22824 22825 |
# File 'lib/ovirtsdk4/types.rb', line 22823 def return @encrypt_options end |
- (Object) encrypt_options=(value)
Sets the value of the encrypt_options
attribute.
22832 22833 22834 |
# File 'lib/ovirtsdk4/types.rb', line 22832 def (value) @encrypt_options = value end |
- (Host) host
Returns the value of the host
attribute.
22841 22842 22843 |
# File 'lib/ovirtsdk4/types.rb', line 22841 def host return @host end |
- (Object) host=(value)
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.
22854 22855 22856 22857 22858 22859 |
# File 'lib/ovirtsdk4/types.rb', line 22854 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
22866 22867 22868 |
# File 'lib/ovirtsdk4/types.rb', line 22866 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
22875 22876 22877 |
# File 'lib/ovirtsdk4/types.rb', line 22875 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
22884 22885 22886 |
# File 'lib/ovirtsdk4/types.rb', line 22884 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
22893 22894 22895 |
# File 'lib/ovirtsdk4/types.rb', line 22893 def name=(value) @name = value end |
- (Array<Option>) options
Returns the value of the options
attribute.
22902 22903 22904 |
# File 'lib/ovirtsdk4/types.rb', line 22902 def return @options end |
- (Object) options=(list)
Sets the value of the options
attribute.
22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 |
# File 'lib/ovirtsdk4/types.rb', line 22910 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 |
- (Integer) order
Returns the value of the order
attribute.
22927 22928 22929 |
# File 'lib/ovirtsdk4/types.rb', line 22927 def order return @order end |
- (Object) order=(value)
Sets the value of the order
attribute.
22936 22937 22938 |
# File 'lib/ovirtsdk4/types.rb', line 22936 def order=(value) @order = value end |
- (String) password
Returns the value of the password
attribute.
22945 22946 22947 |
# File 'lib/ovirtsdk4/types.rb', line 22945 def password return @password end |
- (Object) password=(value)
Sets the value of the password
attribute.
22954 22955 22956 |
# File 'lib/ovirtsdk4/types.rb', line 22954 def password=(value) @password = value end |
- (Integer) port
Returns the value of the port
attribute.
22963 22964 22965 |
# File 'lib/ovirtsdk4/types.rb', line 22963 def port return @port end |
- (Object) port=(value)
Sets the value of the port
attribute.
22972 22973 22974 |
# File 'lib/ovirtsdk4/types.rb', line 22972 def port=(value) @port = value end |
- (String) type
Returns the value of the type
attribute.
22981 22982 22983 |
# File 'lib/ovirtsdk4/types.rb', line 22981 def type return @type end |
- (Object) type=(value)
Sets the value of the type
attribute.
22990 22991 22992 |
# File 'lib/ovirtsdk4/types.rb', line 22990 def type=(value) @type = value end |
- (String) username
Returns the value of the username
attribute.
22999 23000 23001 |
# File 'lib/ovirtsdk4/types.rb', line 22999 def username return @username end |
- (Object) username=(value)
Sets the value of the username
attribute.
23008 23009 23010 |
# File 'lib/ovirtsdk4/types.rb', line 23008 def username=(value) @username = value end |