class OvirtSDK4::Display

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Display} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [String] :address The value of attribute `address`.

@option opts [Boolean] :allow_override The value of attribute `allow_override`.

@option opts [Certificate, Hash] :certificate The value of attribute `certificate`.

@option opts [Boolean] :copy_paste_enabled The value of attribute `copy_paste_enabled`.

@option opts [String] :disconnect_action The value of attribute `disconnect_action`.

@option opts [Boolean] :file_transfer_enabled The value of attribute `file_transfer_enabled`.

@option opts [String] :keyboard_layout The value of attribute `keyboard_layout`.

@option opts [Integer] :monitors The value of attribute `monitors`.

@option opts [Integer] :port The value of attribute `port`.

@option opts [String] :proxy The value of attribute `proxy`.

@option opts [Integer] :secure_port The value of attribute `secure_port`.

@option opts [Boolean] :single_qxl_pci The value of attribute `single_qxl_pci`.

@option opts [Boolean] :smartcard_enabled The value of attribute `smartcard_enabled`.

@option opts [DisplayType] :type The value of attribute `type`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 2971
def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  self.allow_override = opts[:allow_override]
  self.certificate = opts[:certificate]
  self.copy_paste_enabled = opts[:copy_paste_enabled]
  self.disconnect_action = opts[:disconnect_action]
  self.file_transfer_enabled = opts[:file_transfer_enabled]
  self.keyboard_layout = opts[:keyboard_layout]
  self.monitors = opts[:monitors]
  self.port = opts[:port]
  self.proxy = opts[:proxy]
  self.secure_port = opts[:secure_port]
  self.single_qxl_pci = opts[:single_qxl_pci]
  self.smartcard_enabled = opts[:smartcard_enabled]
  self.type = opts[:type]
end

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 2992
def ==(other)
  super &&
  @address == other.address &&
  @allow_override == other.allow_override &&
  @certificate == other.certificate &&
  @copy_paste_enabled == other.copy_paste_enabled &&
  @disconnect_action == other.disconnect_action &&
  @file_transfer_enabled == other.file_transfer_enabled &&
  @keyboard_layout == other.keyboard_layout &&
  @monitors == other.monitors &&
  @port == other.port &&
  @proxy == other.proxy &&
  @secure_port == other.secure_port &&
  @single_qxl_pci == other.single_qxl_pci &&
  @smartcard_enabled == other.smartcard_enabled &&
  @type == other.type
end
address() click to toggle source

Returns the value of the `address` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 2681
def address
  @address
end
address=(value) click to toggle source

Sets the value of the `address` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 2690
def address=(value)
  @address = value
end
allow_override() click to toggle source

Returns the value of the `allow_override` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 2699
def allow_override
  @allow_override
end
allow_override=(value) click to toggle source

Sets the value of the `allow_override` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 2708
def allow_override=(value)
  @allow_override = value
end
certificate() click to toggle source

Returns the value of the `certificate` attribute.

@return [Certificate]

# File lib/ovirtsdk4/types.rb, line 2717
def certificate
  @certificate
end
certificate=(value) click to toggle source

Sets the value of the `certificate` attribute.

@param value [Certificate, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Certificate} 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.

# File lib/ovirtsdk4/types.rb, line 2730
def certificate=(value)
  if value.is_a?(Hash)
    value = Certificate.new(value)
  end
  @certificate = value
end
copy_paste_enabled() click to toggle source

Returns the value of the `copy_paste_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 2742
def copy_paste_enabled
  @copy_paste_enabled
end
copy_paste_enabled=(value) click to toggle source

Sets the value of the `copy_paste_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 2751
def copy_paste_enabled=(value)
  @copy_paste_enabled = value
end
disconnect_action() click to toggle source

Returns the value of the `disconnect_action` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 2760
def disconnect_action
  @disconnect_action
end
disconnect_action=(value) click to toggle source

Sets the value of the `disconnect_action` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 2769
def disconnect_action=(value)
  @disconnect_action = value
end
file_transfer_enabled() click to toggle source

Returns the value of the `file_transfer_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 2778
def file_transfer_enabled
  @file_transfer_enabled
end
file_transfer_enabled=(value) click to toggle source

Sets the value of the `file_transfer_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 2787
def file_transfer_enabled=(value)
  @file_transfer_enabled = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 3013
def hash
  super +
  @address.hash +
  @allow_override.hash +
  @certificate.hash +
  @copy_paste_enabled.hash +
  @disconnect_action.hash +
  @file_transfer_enabled.hash +
  @keyboard_layout.hash +
  @monitors.hash +
  @port.hash +
  @proxy.hash +
  @secure_port.hash +
  @single_qxl_pci.hash +
  @smartcard_enabled.hash +
  @type.hash
end
keyboard_layout() click to toggle source

Returns the value of the `keyboard_layout` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 2796
def keyboard_layout
  @keyboard_layout
end
keyboard_layout=(value) click to toggle source

Sets the value of the `keyboard_layout` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 2805
def keyboard_layout=(value)
  @keyboard_layout = value
end
monitors() click to toggle source

Returns the value of the `monitors` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 2814
def monitors
  @monitors
end
monitors=(value) click to toggle source

Sets the value of the `monitors` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 2823
def monitors=(value)
  @monitors = value
end
port() click to toggle source

Returns the value of the `port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 2832
def port
  @port
end
port=(value) click to toggle source

Sets the value of the `port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 2841
def port=(value)
  @port = value
end
proxy() click to toggle source

Returns the value of the `proxy` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 2850
def proxy
  @proxy
end
proxy=(value) click to toggle source

Sets the value of the `proxy` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 2859
def proxy=(value)
  @proxy = value
end
secure_port() click to toggle source

Returns the value of the `secure_port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 2868
def secure_port
  @secure_port
end
secure_port=(value) click to toggle source

Sets the value of the `secure_port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 2877
def secure_port=(value)
  @secure_port = value
end
single_qxl_pci() click to toggle source

Returns the value of the `single_qxl_pci` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 2886
def single_qxl_pci
  @single_qxl_pci
end
single_qxl_pci=(value) click to toggle source

Sets the value of the `single_qxl_pci` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 2895
def single_qxl_pci=(value)
  @single_qxl_pci = value
end
smartcard_enabled() click to toggle source

Returns the value of the `smartcard_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 2904
def smartcard_enabled
  @smartcard_enabled
end
smartcard_enabled=(value) click to toggle source

Sets the value of the `smartcard_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 2913
def smartcard_enabled=(value)
  @smartcard_enabled = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [DisplayType]

# File lib/ovirtsdk4/types.rb, line 2922
def type
  @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [DisplayType]

# File lib/ovirtsdk4/types.rb, line 2931
def type=(value)
  @type = value
end