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.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

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.



879
880
881
882
883
884
885
886
887
# File 'lib/ovirtsdk4/types.rb', line 879

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.



892
893
894
895
896
897
898
899
900
# File 'lib/ovirtsdk4/types.rb', line 892

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.

Returns:

  • (String)


756
757
758
# File 'lib/ovirtsdk4/types.rb', line 756

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)


765
766
767
# File 'lib/ovirtsdk4/types.rb', line 765

def address=(value)
  @address = value
end

#broker_typeMessageBrokerType

Returns the value of the broker_type attribute.

Returns:



774
775
776
# File 'lib/ovirtsdk4/types.rb', line 774

def broker_type
  @broker_type
end

#broker_type=(value) ⇒ Object

Sets the value of the broker_type attribute.

Parameters:



783
784
785
# File 'lib/ovirtsdk4/types.rb', line 783

def broker_type=(value)
  @broker_type = value
end

#hashObject

Generates a hash value for this object.



905
906
907
908
909
910
911
912
913
# File 'lib/ovirtsdk4/types.rb', line 905

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.

Returns:

  • (String)


792
793
794
# File 'lib/ovirtsdk4/types.rb', line 792

def network_mappings
  @network_mappings
end

#network_mappings=(value) ⇒ Object

Sets the value of the network_mappings attribute.

Parameters:

  • value (String)


801
802
803
# File 'lib/ovirtsdk4/types.rb', line 801

def network_mappings=(value)
  @network_mappings = value
end

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)


810
811
812
# File 'lib/ovirtsdk4/types.rb', line 810

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)


819
820
821
# File 'lib/ovirtsdk4/types.rb', line 819

def password=(value)
  @password = value
end

#portInteger

Returns the value of the port attribute.

Returns:

  • (Integer)


828
829
830
# File 'lib/ovirtsdk4/types.rb', line 828

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)


837
838
839
# File 'lib/ovirtsdk4/types.rb', line 837

def port=(value)
  @port = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)


846
847
848
# File 'lib/ovirtsdk4/types.rb', line 846

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)


855
856
857
# File 'lib/ovirtsdk4/types.rb', line 855

def username=(value)
  @username = value
end