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.
40524 40525 40526 40527 40528 40529 40530 40531 40532 40533 |
# File 'lib/ovirtsdk4/types.rb', line 40524 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.
40538 40539 40540 40541 40542 40543 40544 40545 40546 40547 |
# File 'lib/ovirtsdk4/types.rb', line 40538 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.
40280 40281 40282 |
# File 'lib/ovirtsdk4/types.rb', line 40280 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
40289 40290 40291 |
# File 'lib/ovirtsdk4/types.rb', line 40289 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
40298 40299 40300 |
# File 'lib/ovirtsdk4/types.rb', line 40298 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40307 40308 40309 |
# File 'lib/ovirtsdk4/types.rb', line 40307 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40316 40317 40318 |
# File 'lib/ovirtsdk4/types.rb', line 40316 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40325 40326 40327 |
# File 'lib/ovirtsdk4/types.rb', line 40325 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40552 40553 40554 40555 40556 40557 40558 40559 40560 40561 |
# File 'lib/ovirtsdk4/types.rb', line 40552 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.
40334 40335 40336 |
# File 'lib/ovirtsdk4/types.rb', line 40334 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40343 40344 40345 |
# File 'lib/ovirtsdk4/types.rb', line 40343 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
40352 40353 40354 |
# File 'lib/ovirtsdk4/types.rb', line 40352 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.
40365 40366 40367 40368 40369 40370 |
# File 'lib/ovirtsdk4/types.rb', line 40365 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.
40377 40378 40379 |
# File 'lib/ovirtsdk4/types.rb', line 40377 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40386 40387 40388 |
# File 'lib/ovirtsdk4/types.rb', line 40386 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
40395 40396 40397 |
# File 'lib/ovirtsdk4/types.rb', line 40395 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
40404 40405 40406 |
# File 'lib/ovirtsdk4/types.rb', line 40404 def port=(value) @port = value end |
#protocol ⇒ GraphicsType
Returns the value of the protocol
attribute.
40413 40414 40415 |
# File 'lib/ovirtsdk4/types.rb', line 40413 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
40422 40423 40424 |
# File 'lib/ovirtsdk4/types.rb', line 40422 def protocol=(value) @protocol = value end |
#template ⇒ Template
Returns the value of the template
attribute.
40431 40432 40433 |
# File 'lib/ovirtsdk4/types.rb', line 40431 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.
40444 40445 40446 40447 40448 40449 |
# File 'lib/ovirtsdk4/types.rb', line 40444 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.
40456 40457 40458 |
# File 'lib/ovirtsdk4/types.rb', line 40456 def tls_port @tls_port end |
#tls_port=(value) ⇒ Object
Sets the value of the tls_port
attribute.
40465 40466 40467 |
# File 'lib/ovirtsdk4/types.rb', line 40465 def tls_port=(value) @tls_port = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
40474 40475 40476 |
# File 'lib/ovirtsdk4/types.rb', line 40474 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.
40487 40488 40489 40490 40491 40492 |
# File 'lib/ovirtsdk4/types.rb', line 40487 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |