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.
40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 |
# File 'lib/ovirtsdk4/types.rb', line 40584 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.
40598 40599 40600 40601 40602 40603 40604 40605 40606 40607 |
# File 'lib/ovirtsdk4/types.rb', line 40598 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.
40340 40341 40342 |
# File 'lib/ovirtsdk4/types.rb', line 40340 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
40349 40350 40351 |
# File 'lib/ovirtsdk4/types.rb', line 40349 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment attribute.
40358 40359 40360 |
# File 'lib/ovirtsdk4/types.rb', line 40358 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
40367 40368 40369 |
# File 'lib/ovirtsdk4/types.rb', line 40367 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
40376 40377 40378 |
# File 'lib/ovirtsdk4/types.rb', line 40376 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
40385 40386 40387 |
# File 'lib/ovirtsdk4/types.rb', line 40385 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40612 40613 40614 40615 40616 40617 40618 40619 40620 40621 |
# File 'lib/ovirtsdk4/types.rb', line 40612 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.
40394 40395 40396 |
# File 'lib/ovirtsdk4/types.rb', line 40394 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
40403 40404 40405 |
# File 'lib/ovirtsdk4/types.rb', line 40403 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
40412 40413 40414 |
# File 'lib/ovirtsdk4/types.rb', line 40412 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.
40425 40426 40427 40428 40429 40430 |
# File 'lib/ovirtsdk4/types.rb', line 40425 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.
40437 40438 40439 |
# File 'lib/ovirtsdk4/types.rb', line 40437 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
40446 40447 40448 |
# File 'lib/ovirtsdk4/types.rb', line 40446 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port attribute.
40455 40456 40457 |
# File 'lib/ovirtsdk4/types.rb', line 40455 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
40464 40465 40466 |
# File 'lib/ovirtsdk4/types.rb', line 40464 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol attribute.
40473 40474 40475 |
# File 'lib/ovirtsdk4/types.rb', line 40473 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol attribute.
40482 40483 40484 |
# File 'lib/ovirtsdk4/types.rb', line 40482 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template attribute.
40491 40492 40493 |
# File 'lib/ovirtsdk4/types.rb', line 40491 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.
40504 40505 40506 40507 40508 40509 |
# File 'lib/ovirtsdk4/types.rb', line 40504 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.
40516 40517 40518 |
# File 'lib/ovirtsdk4/types.rb', line 40516 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port attribute.
40525 40526 40527 |
# File 'lib/ovirtsdk4/types.rb', line 40525 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
40534 40535 40536 |
# File 'lib/ovirtsdk4/types.rb', line 40534 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.
40547 40548 40549 40550 40551 40552 |
# File 'lib/ovirtsdk4/types.rb', line 40547 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |