Class: OvirtSDK4::GraphicsConsole
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GraphicsConsole
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ GraphicsConsole
constructor
Creates a new instance of the GraphicsConsole class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#protocol ⇒ GraphicsType
Returns the value of the
protocolattribute. -
#protocol=(value) ⇒ Object
Sets the value of the
protocolattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#tls_port ⇒ Integer
Returns the value of the
tls_portattribute. -
#tls_port=(value) ⇒ Object
Sets the value of the
tls_portattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GraphicsConsole
Creates a new instance of the OvirtSDK4::GraphicsConsole class.
43973 43974 43975 43976 43977 43978 43979 43980 43981 43982 |
# File 'lib/ovirtsdk4/types.rb', line 43973 def initialize(opts = {}) super(opts) self.address = opts[:address] self.instance_type = opts[:instance_type] self.port = opts[:port] self.protocol = opts[:protocol] self.template = opts[:template] self.tls_port = opts[:tls_port] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
43987 43988 43989 43990 43991 43992 43993 43994 43995 43996 |
# File 'lib/ovirtsdk4/types.rb', line 43987 def ==(other) super && @address == other.address && @instance_type == other.instance_type && @port == other.port && @protocol == other.protocol && @template == other.template && @tls_port == other.tls_port && @vm == other.vm end |
#address ⇒ String
Returns the value of the address attribute.
43729 43730 43731 |
# File 'lib/ovirtsdk4/types.rb', line 43729 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
43738 43739 43740 |
# File 'lib/ovirtsdk4/types.rb', line 43738 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment attribute.
43747 43748 43749 |
# File 'lib/ovirtsdk4/types.rb', line 43747 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
43756 43757 43758 |
# File 'lib/ovirtsdk4/types.rb', line 43756 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
43765 43766 43767 |
# File 'lib/ovirtsdk4/types.rb', line 43765 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
43774 43775 43776 |
# File 'lib/ovirtsdk4/types.rb', line 43774 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44001 44002 44003 44004 44005 44006 44007 44008 44009 44010 |
# File 'lib/ovirtsdk4/types.rb', line 44001 def hash super + @address.hash + @instance_type.hash + @port.hash + @protocol.hash + @template.hash + @tls_port.hash + @vm.hash end |
#id ⇒ String
Returns the value of the id attribute.
43783 43784 43785 |
# File 'lib/ovirtsdk4/types.rb', line 43783 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
43792 43793 43794 |
# File 'lib/ovirtsdk4/types.rb', line 43792 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
43801 43802 43803 |
# File 'lib/ovirtsdk4/types.rb', line 43801 def instance_type @instance_type end |
#instance_type=(value) ⇒ Object
Sets the value of the instance_type attribute.
The value parameter can be an instance of InstanceType 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.
43814 43815 43816 43817 43818 43819 |
# File 'lib/ovirtsdk4/types.rb', line 43814 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#name ⇒ String
Returns the value of the name attribute.
43826 43827 43828 |
# File 'lib/ovirtsdk4/types.rb', line 43826 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
43835 43836 43837 |
# File 'lib/ovirtsdk4/types.rb', line 43835 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port attribute.
43844 43845 43846 |
# File 'lib/ovirtsdk4/types.rb', line 43844 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
43853 43854 43855 |
# File 'lib/ovirtsdk4/types.rb', line 43853 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol attribute.
43862 43863 43864 |
# File 'lib/ovirtsdk4/types.rb', line 43862 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol attribute.
43871 43872 43873 |
# File 'lib/ovirtsdk4/types.rb', line 43871 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template attribute.
43880 43881 43882 |
# File 'lib/ovirtsdk4/types.rb', line 43880 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template attribute.
The value parameter can be an instance of Template 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.
43893 43894 43895 43896 43897 43898 |
# File 'lib/ovirtsdk4/types.rb', line 43893 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#tls_port ⇒ Integer
Returns the value of the tls_port attribute.
43905 43906 43907 |
# File 'lib/ovirtsdk4/types.rb', line 43905 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port attribute.
43914 43915 43916 |
# File 'lib/ovirtsdk4/types.rb', line 43914 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
43923 43924 43925 |
# File 'lib/ovirtsdk4/types.rb', line 43923 def vm @vm end |
#vm=(value) ⇒ Object
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.
43936 43937 43938 43939 43940 43941 |
# File 'lib/ovirtsdk4/types.rb', line 43936 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |