Class: OvirtSDK4::Agent

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Agent) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Agent 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.

  • :comment (String)

    The value of attribute comment.

  • :concurrent (Boolean)

    The value of attribute concurrent.

  • :description (String)

    The value of attribute description.

  • :encrypt_options (Boolean)

    The value of attribute encrypt_options.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :options (Array<Option>, Array<Hash>)

    The values of attribute options.

  • :order (Integer)

    The value of attribute order.

  • :password (String)

    The value of attribute password.

  • :port (Integer)

    The value of attribute port.

  • :type (String)

    The value of attribute type.

  • :username (String)

    The value of attribute username.



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.encrypt_options = opts[:encrypt_options]
  self.host = opts[:host]
  self.id = opts[:id]
  self.name = opts[:name]
  self.options = 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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Boolean)


22823
22824
22825
# File 'lib/ovirtsdk4/types.rb', line 22823

def encrypt_options
  return @encrypt_options
end

- (Object) encrypt_options=(value)

Sets the value of the encrypt_options attribute.

Parameters:

  • value (Boolean)


22832
22833
22834
# File 'lib/ovirtsdk4/types.rb', line 22832

def encrypt_options=(value)
  @encrypt_options = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



22902
22903
22904
# File 'lib/ovirtsdk4/types.rb', line 22902

def options
  return @options
end

- (Object) options=(list)

Sets the value of the options attribute.

Parameters:



22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
# File 'lib/ovirtsdk4/types.rb', line 22910

def options=(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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


23008
23009
23010
# File 'lib/ovirtsdk4/types.rb', line 23008

def username=(value)
  @username = value
end