class OvirtSDK4::AgentConfiguration

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {AgentConfiguration} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [String] :address The value of attribute `address`.

@option opts [MessageBrokerType] :broker_type The value of attribute `broker_type`.

@option opts [String] :network_mappings The value of attribute `network_mappings`.

@option opts [String] :password The value of attribute `password`.

@option opts [Integer] :port The value of attribute `port`.

@option opts [String] :username The value of attribute `username`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 837
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

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 850
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() click to toggle source

Returns the value of the `address` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 714
def address
  @address
end
address=(value) click to toggle source

Sets the value of the `address` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 723
def address=(value)
  @address = value
end
broker_type() click to toggle source

Returns the value of the `broker_type` attribute.

@return [MessageBrokerType]

# File lib/ovirtsdk4/types.rb, line 732
def broker_type
  @broker_type
end
broker_type=(value) click to toggle source

Sets the value of the `broker_type` attribute.

@param value [MessageBrokerType]

# File lib/ovirtsdk4/types.rb, line 741
def broker_type=(value)
  @broker_type = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 863
def hash
  super +
  @address.hash +
  @broker_type.hash +
  @network_mappings.hash +
  @password.hash +
  @port.hash +
  @username.hash
end
network_mappings() click to toggle source

Returns the value of the `network_mappings` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 750
def network_mappings
  @network_mappings
end
network_mappings=(value) click to toggle source

Sets the value of the `network_mappings` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 759
def network_mappings=(value)
  @network_mappings = value
end
password() click to toggle source

Returns the value of the `password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 768
def password
  @password
end
password=(value) click to toggle source

Sets the value of the `password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 777
def password=(value)
  @password = value
end
port() click to toggle source

Returns the value of the `port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 786
def port
  @port
end
port=(value) click to toggle source

Sets the value of the `port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 795
def port=(value)
  @port = value
end
username() click to toggle source

Returns the value of the `username` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 804
def username
  @username
end
username=(value) click to toggle source

Sets the value of the `username` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 813
def username=(value)
  @username = value
end