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.
40653 40654 40655 40656 40657 40658 40659 40660 40661 40662 |
# File 'lib/ovirtsdk4/types.rb', line 40653 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.
40667 40668 40669 40670 40671 40672 40673 40674 40675 40676 |
# File 'lib/ovirtsdk4/types.rb', line 40667 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.
40409 40410 40411 |
# File 'lib/ovirtsdk4/types.rb', line 40409 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
40418 40419 40420 |
# File 'lib/ovirtsdk4/types.rb', line 40418 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
40427 40428 40429 |
# File 'lib/ovirtsdk4/types.rb', line 40427 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40436 40437 40438 |
# File 'lib/ovirtsdk4/types.rb', line 40436 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40445 40446 40447 |
# File 'lib/ovirtsdk4/types.rb', line 40445 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40454 40455 40456 |
# File 'lib/ovirtsdk4/types.rb', line 40454 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40681 40682 40683 40684 40685 40686 40687 40688 40689 40690 |
# File 'lib/ovirtsdk4/types.rb', line 40681 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.
40463 40464 40465 |
# File 'lib/ovirtsdk4/types.rb', line 40463 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40472 40473 40474 |
# File 'lib/ovirtsdk4/types.rb', line 40472 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
40481 40482 40483 |
# File 'lib/ovirtsdk4/types.rb', line 40481 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.
40494 40495 40496 40497 40498 40499 |
# File 'lib/ovirtsdk4/types.rb', line 40494 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.
40506 40507 40508 |
# File 'lib/ovirtsdk4/types.rb', line 40506 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40515 40516 40517 |
# File 'lib/ovirtsdk4/types.rb', line 40515 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
40524 40525 40526 |
# File 'lib/ovirtsdk4/types.rb', line 40524 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
40533 40534 40535 |
# File 'lib/ovirtsdk4/types.rb', line 40533 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol
attribute.
40542 40543 40544 |
# File 'lib/ovirtsdk4/types.rb', line 40542 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
40551 40552 40553 |
# File 'lib/ovirtsdk4/types.rb', line 40551 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template
attribute.
40560 40561 40562 |
# File 'lib/ovirtsdk4/types.rb', line 40560 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.
40573 40574 40575 40576 40577 40578 |
# File 'lib/ovirtsdk4/types.rb', line 40573 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.
40585 40586 40587 |
# File 'lib/ovirtsdk4/types.rb', line 40585 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port
attribute.
40594 40595 40596 |
# File 'lib/ovirtsdk4/types.rb', line 40594 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
40603 40604 40605 |
# File 'lib/ovirtsdk4/types.rb', line 40603 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.
40616 40617 40618 40619 40620 40621 |
# File 'lib/ovirtsdk4/types.rb', line 40616 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |