Class: OvirtSDK4::Session

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

- (Session) initialize(opts = {})

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

  • :comment (String)

    The value of attribute comment.

  • :console_user (Boolean)

    The value of attribute console_user.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :ip (Ip, Hash)

    The value of attribute ip.

  • :name (String)

    The value of attribute name.

  • :protocol (String)

    The value of attribute protocol.

  • :user (User, Hash)

    The value of attribute user.

  • :vm (Vm, Hash)

    The value of attribute vm.



13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
# File 'lib/ovirtsdk4/types.rb', line 13890

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.console_user = opts[:console_user]
  self.description = opts[:description]
  self.id = opts[:id]
  self.ip = opts[:ip]
  self.name = opts[:name]
  self.protocol = opts[:protocol]
  self.user = opts[:user]
  self.vm = opts[:vm]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


13686
13687
13688
# File 'lib/ovirtsdk4/types.rb', line 13686

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


13695
13696
13697
# File 'lib/ovirtsdk4/types.rb', line 13695

def comment=(value)
  @comment = value
end

- (Boolean) console_user

Returns the value of the console_user attribute.

Returns:

  • (Boolean)


13704
13705
13706
# File 'lib/ovirtsdk4/types.rb', line 13704

def console_user
  return @console_user
end

- (Object) console_user=(value)

Sets the value of the console_user attribute.

Parameters:

  • value (Boolean)


13713
13714
13715
# File 'lib/ovirtsdk4/types.rb', line 13713

def console_user=(value)
  @console_user = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


13722
13723
13724
# File 'lib/ovirtsdk4/types.rb', line 13722

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


13731
13732
13733
# File 'lib/ovirtsdk4/types.rb', line 13731

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


13740
13741
13742
# File 'lib/ovirtsdk4/types.rb', line 13740

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


13749
13750
13751
# File 'lib/ovirtsdk4/types.rb', line 13749

def id=(value)
  @id = value
end

- (Ip) ip

Returns the value of the ip attribute.

Returns:



13758
13759
13760
# File 'lib/ovirtsdk4/types.rb', line 13758

def ip
  return @ip
end

- (Object) ip=(value)

Sets the value of the ip attribute.

The value parameter can be an instance of Ip 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 (Ip, Hash)


13771
13772
13773
13774
13775
13776
# File 'lib/ovirtsdk4/types.rb', line 13771

def ip=(value)
  if value.is_a?(Hash)
    value = Ip.new(value)
  end
  @ip = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


13783
13784
13785
# File 'lib/ovirtsdk4/types.rb', line 13783

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


13792
13793
13794
# File 'lib/ovirtsdk4/types.rb', line 13792

def name=(value)
  @name = value
end

- (String) protocol

Returns the value of the protocol attribute.

Returns:

  • (String)


13801
13802
13803
# File 'lib/ovirtsdk4/types.rb', line 13801

def protocol
  return @protocol
end

- (Object) protocol=(value)

Sets the value of the protocol attribute.

Parameters:

  • value (String)


13810
13811
13812
# File 'lib/ovirtsdk4/types.rb', line 13810

def protocol=(value)
  @protocol = value
end

- (User) user

Returns the value of the user attribute.

Returns:



13819
13820
13821
# File 'lib/ovirtsdk4/types.rb', line 13819

def user
  return @user
end

- (Object) user=(value)

Sets the value of the user attribute.

The value parameter can be an instance of User 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 (User, Hash)


13832
13833
13834
13835
13836
13837
# File 'lib/ovirtsdk4/types.rb', line 13832

def user=(value)
  if value.is_a?(Hash)
    value = User.new(value)
  end
  @user = value
end

- (Vm) vm

Returns the value of the vm attribute.

Returns:



13844
13845
13846
# File 'lib/ovirtsdk4/types.rb', line 13844

def vm
  return @vm
end

- (Object) vm=(value)

Sets the value of the vm attribute.

The value parameter can be an instance of Vm 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 (Vm, Hash)


13857
13858
13859
13860
13861
13862
# File 'lib/ovirtsdk4/types.rb', line 13857

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end