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.
43680 43681 43682 43683 43684 43685 43686 43687 43688 43689 |
# File 'lib/ovirtsdk4/types.rb', line 43680 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.
43694 43695 43696 43697 43698 43699 43700 43701 43702 43703 |
# File 'lib/ovirtsdk4/types.rb', line 43694 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.
43436 43437 43438 |
# File 'lib/ovirtsdk4/types.rb', line 43436 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
43445 43446 43447 |
# File 'lib/ovirtsdk4/types.rb', line 43445 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
43454 43455 43456 |
# File 'lib/ovirtsdk4/types.rb', line 43454 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
43463 43464 43465 |
# File 'lib/ovirtsdk4/types.rb', line 43463 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
43472 43473 43474 |
# File 'lib/ovirtsdk4/types.rb', line 43472 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
43481 43482 43483 |
# File 'lib/ovirtsdk4/types.rb', line 43481 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
43708 43709 43710 43711 43712 43713 43714 43715 43716 43717 |
# File 'lib/ovirtsdk4/types.rb', line 43708 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.
43490 43491 43492 |
# File 'lib/ovirtsdk4/types.rb', line 43490 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
43499 43500 43501 |
# File 'lib/ovirtsdk4/types.rb', line 43499 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
43508 43509 43510 |
# File 'lib/ovirtsdk4/types.rb', line 43508 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.
43521 43522 43523 43524 43525 43526 |
# File 'lib/ovirtsdk4/types.rb', line 43521 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.
43533 43534 43535 |
# File 'lib/ovirtsdk4/types.rb', line 43533 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
43542 43543 43544 |
# File 'lib/ovirtsdk4/types.rb', line 43542 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
43551 43552 43553 |
# File 'lib/ovirtsdk4/types.rb', line 43551 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
43560 43561 43562 |
# File 'lib/ovirtsdk4/types.rb', line 43560 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol
attribute.
43569 43570 43571 |
# File 'lib/ovirtsdk4/types.rb', line 43569 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
43578 43579 43580 |
# File 'lib/ovirtsdk4/types.rb', line 43578 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template
attribute.
43587 43588 43589 |
# File 'lib/ovirtsdk4/types.rb', line 43587 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.
43600 43601 43602 43603 43604 43605 |
# File 'lib/ovirtsdk4/types.rb', line 43600 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.
43612 43613 43614 |
# File 'lib/ovirtsdk4/types.rb', line 43612 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port
attribute.
43621 43622 43623 |
# File 'lib/ovirtsdk4/types.rb', line 43621 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
43630 43631 43632 |
# File 'lib/ovirtsdk4/types.rb', line 43630 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.
43643 43644 43645 43646 43647 43648 |
# File 'lib/ovirtsdk4/types.rb', line 43643 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |