Class: OvirtSDK4::AgentConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ AgentConfiguration

Creates a new instance of the OvirtSDK4::AgentConfiguration class.

Options Hash (opts):

  • :address (String)

    The value of attribute address.

  • :broker_type (MessageBrokerType)

    The value of attribute broker_type.

  • :network_mappings (String)

    The value of attribute network_mappings.

  • :password (String)

    The value of attribute password.

  • :port (Integer)

    The value of attribute port.

  • :username (String)

    The value of attribute username.



912
913
914
915
916
917
918
919
920
# File 'lib/ovirtsdk4/types.rb', line 912

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.



925
926
927
928
929
930
931
932
933
# File 'lib/ovirtsdk4/types.rb', line 925

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

#addressString

Returns the value of the address attribute.



789
790
791
# File 'lib/ovirtsdk4/types.rb', line 789

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.



798
799
800
# File 'lib/ovirtsdk4/types.rb', line 798

def address=(value)
  @address = value
end

#broker_typeMessageBrokerType

Returns the value of the broker_type attribute.



807
808
809
# File 'lib/ovirtsdk4/types.rb', line 807

def broker_type
  @broker_type
end

#broker_type=(value) ⇒ Object

Sets the value of the broker_type attribute.



816
817
818
# File 'lib/ovirtsdk4/types.rb', line 816

def broker_type=(value)
  @broker_type = value
end

#hashObject

Generates a hash value for this object.



938
939
940
941
942
943
944
945
946
# File 'lib/ovirtsdk4/types.rb', line 938

def hash
  super +
  @address.hash +
  @broker_type.hash +
  @network_mappings.hash +
  @password.hash +
  @port.hash +
  @username.hash
end

#network_mappingsString

Returns the value of the network_mappings attribute.



825
826
827
# File 'lib/ovirtsdk4/types.rb', line 825

def network_mappings
  @network_mappings
end

#network_mappings=(value) ⇒ Object

Sets the value of the network_mappings attribute.



834
835
836
# File 'lib/ovirtsdk4/types.rb', line 834

def network_mappings=(value)
  @network_mappings = value
end

#passwordString

Returns the value of the password attribute.



843
844
845
# File 'lib/ovirtsdk4/types.rb', line 843

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.



852
853
854
# File 'lib/ovirtsdk4/types.rb', line 852

def password=(value)
  @password = value
end

#portInteger

Returns the value of the port attribute.



861
862
863
# File 'lib/ovirtsdk4/types.rb', line 861

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.



870
871
872
# File 'lib/ovirtsdk4/types.rb', line 870

def port=(value)
  @port = value
end

#usernameString

Returns the value of the username attribute.



879
880
881
# File 'lib/ovirtsdk4/types.rb', line 879

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.



888
889
890
# File 'lib/ovirtsdk4/types.rb', line 888

def username=(value)
  @username = value
end