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
true
ifself
andother
have the same attributes and values. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ GraphicsConsole
constructor
Creates a new instance of the GraphicsConsole class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#protocol ⇒ GraphicsType
Returns the value of the
protocol
attribute. -
#protocol=(value) ⇒ Object
Sets the value of the
protocol
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#tls_port ⇒ Integer
Returns the value of the
tls_port
attribute. -
#tls_port=(value) ⇒ Object
Sets the value of the
tls_port
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GraphicsConsole
Creates a new instance of the OvirtSDK4::GraphicsConsole class.
42825 42826 42827 42828 42829 42830 42831 42832 42833 42834 |
# File 'lib/ovirtsdk4/types.rb', line 42825 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.
42839 42840 42841 42842 42843 42844 42845 42846 42847 42848 |
# File 'lib/ovirtsdk4/types.rb', line 42839 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.
42581 42582 42583 |
# File 'lib/ovirtsdk4/types.rb', line 42581 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
42590 42591 42592 |
# File 'lib/ovirtsdk4/types.rb', line 42590 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
42599 42600 42601 |
# File 'lib/ovirtsdk4/types.rb', line 42599 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42608 42609 42610 |
# File 'lib/ovirtsdk4/types.rb', line 42608 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
42617 42618 42619 |
# File 'lib/ovirtsdk4/types.rb', line 42617 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42626 42627 42628 |
# File 'lib/ovirtsdk4/types.rb', line 42626 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
42853 42854 42855 42856 42857 42858 42859 42860 42861 42862 |
# File 'lib/ovirtsdk4/types.rb', line 42853 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.
42635 42636 42637 |
# File 'lib/ovirtsdk4/types.rb', line 42635 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42644 42645 42646 |
# File 'lib/ovirtsdk4/types.rb', line 42644 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
42653 42654 42655 |
# File 'lib/ovirtsdk4/types.rb', line 42653 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.
42666 42667 42668 42669 42670 42671 |
# File 'lib/ovirtsdk4/types.rb', line 42666 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.
42678 42679 42680 |
# File 'lib/ovirtsdk4/types.rb', line 42678 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
42687 42688 42689 |
# File 'lib/ovirtsdk4/types.rb', line 42687 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
42696 42697 42698 |
# File 'lib/ovirtsdk4/types.rb', line 42696 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
42705 42706 42707 |
# File 'lib/ovirtsdk4/types.rb', line 42705 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol
attribute.
42714 42715 42716 |
# File 'lib/ovirtsdk4/types.rb', line 42714 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
42723 42724 42725 |
# File 'lib/ovirtsdk4/types.rb', line 42723 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template
attribute.
42732 42733 42734 |
# File 'lib/ovirtsdk4/types.rb', line 42732 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.
42745 42746 42747 42748 42749 42750 |
# File 'lib/ovirtsdk4/types.rb', line 42745 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.
42757 42758 42759 |
# File 'lib/ovirtsdk4/types.rb', line 42757 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port
attribute.
42766 42767 42768 |
# File 'lib/ovirtsdk4/types.rb', line 42766 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
42775 42776 42777 |
# File 'lib/ovirtsdk4/types.rb', line 42775 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.
42788 42789 42790 42791 42792 42793 |
# File 'lib/ovirtsdk4/types.rb', line 42788 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |