Class: OvirtSDK4::Session
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Session
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Boolean) console_user
Returns the value of the
console_user
attribute. -
- (Object) console_user=(value)
Sets the value of the
console_user
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Session) initialize(opts = {})
constructor
Creates a new instance of the Session class.
-
- (Ip) ip
Returns the value of the
ip
attribute. -
- (Object) ip=(value)
Sets the value of the
ip
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) protocol
Returns the value of the
protocol
attribute. -
- (Object) protocol=(value)
Sets the value of the
protocol
attribute. -
- (User) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
- (Session) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Session class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 |