Class: OvirtSDK4::Display

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Display) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Display class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :address (String)

    The value of attribute address.

  • :allow_override (Boolean)

    The value of attribute allow_override.

  • :certificate (Certificate, Hash)

    The value of attribute certificate.

  • :copy_paste_enabled (Boolean)

    The value of attribute copy_paste_enabled.

  • :disconnect_action (String)

    The value of attribute disconnect_action.

  • :file_transfer_enabled (Boolean)

    The value of attribute file_transfer_enabled.

  • :keyboard_layout (String)

    The value of attribute keyboard_layout.

  • :monitors (Integer)

    The value of attribute monitors.

  • :port (Integer)

    The value of attribute port.

  • :proxy (String)

    The value of attribute proxy.

  • :secure_port (Integer)

    The value of attribute secure_port.

  • :single_qxl_pci (Boolean)

    The value of attribute single_qxl_pci.

  • :smartcard_enabled (Boolean)

    The value of attribute smartcard_enabled.

  • :type (DisplayType)

    The value of attribute type.



2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
# File 'lib/ovirtsdk4/types.rb', line 2430

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

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


2140
2141
2142
# File 'lib/ovirtsdk4/types.rb', line 2140

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


2149
2150
2151
# File 'lib/ovirtsdk4/types.rb', line 2149

def address=(value)
  @address = value
end

- (Boolean) allow_override

Returns the value of the allow_override attribute.

Returns:

  • (Boolean)


2158
2159
2160
# File 'lib/ovirtsdk4/types.rb', line 2158

def allow_override
  return @allow_override
end

- (Object) allow_override=(value)

Sets the value of the allow_override attribute.

Parameters:

  • value (Boolean)


2167
2168
2169
# File 'lib/ovirtsdk4/types.rb', line 2167

def allow_override=(value)
  @allow_override = value
end

- (Certificate) certificate

Returns the value of the certificate attribute.

Returns:



2176
2177
2178
# File 'lib/ovirtsdk4/types.rb', line 2176

def certificate
  return @certificate
end

- (Object) certificate=(value)

Sets the value of the certificate attribute.

The value parameter can be an instance of 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.

Parameters:



2189
2190
2191
2192
2193
2194
# File 'lib/ovirtsdk4/types.rb', line 2189

def certificate=(value)
  if value.is_a?(Hash)
    value = Certificate.new(value)
  end
  @certificate = value
end

- (Boolean) copy_paste_enabled

Returns the value of the copy_paste_enabled attribute.

Returns:

  • (Boolean)


2201
2202
2203
# File 'lib/ovirtsdk4/types.rb', line 2201

def copy_paste_enabled
  return @copy_paste_enabled
end

- (Object) copy_paste_enabled=(value)

Sets the value of the copy_paste_enabled attribute.

Parameters:

  • value (Boolean)


2210
2211
2212
# File 'lib/ovirtsdk4/types.rb', line 2210

def copy_paste_enabled=(value)
  @copy_paste_enabled = value
end

- (String) disconnect_action

Returns the value of the disconnect_action attribute.

Returns:

  • (String)


2219
2220
2221
# File 'lib/ovirtsdk4/types.rb', line 2219

def disconnect_action
  return @disconnect_action
end

- (Object) disconnect_action=(value)

Sets the value of the disconnect_action attribute.

Parameters:

  • value (String)


2228
2229
2230
# File 'lib/ovirtsdk4/types.rb', line 2228

def disconnect_action=(value)
  @disconnect_action = value
end

- (Boolean) file_transfer_enabled

Returns the value of the file_transfer_enabled attribute.

Returns:

  • (Boolean)


2237
2238
2239
# File 'lib/ovirtsdk4/types.rb', line 2237

def file_transfer_enabled
  return @file_transfer_enabled
end

- (Object) file_transfer_enabled=(value)

Sets the value of the file_transfer_enabled attribute.

Parameters:

  • value (Boolean)


2246
2247
2248
# File 'lib/ovirtsdk4/types.rb', line 2246

def file_transfer_enabled=(value)
  @file_transfer_enabled = value
end

- (String) keyboard_layout

Returns the value of the keyboard_layout attribute.

Returns:

  • (String)


2255
2256
2257
# File 'lib/ovirtsdk4/types.rb', line 2255

def keyboard_layout
  return @keyboard_layout
end

- (Object) keyboard_layout=(value)

Sets the value of the keyboard_layout attribute.

Parameters:

  • value (String)


2264
2265
2266
# File 'lib/ovirtsdk4/types.rb', line 2264

def keyboard_layout=(value)
  @keyboard_layout = value
end

- (Integer) monitors

Returns the value of the monitors attribute.

Returns:

  • (Integer)


2273
2274
2275
# File 'lib/ovirtsdk4/types.rb', line 2273

def monitors
  return @monitors
end

- (Object) monitors=(value)

Sets the value of the monitors attribute.

Parameters:

  • value (Integer)


2282
2283
2284
# File 'lib/ovirtsdk4/types.rb', line 2282

def monitors=(value)
  @monitors = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


2291
2292
2293
# File 'lib/ovirtsdk4/types.rb', line 2291

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


2300
2301
2302
# File 'lib/ovirtsdk4/types.rb', line 2300

def port=(value)
  @port = value
end

- (String) proxy

Returns the value of the proxy attribute.

Returns:

  • (String)


2309
2310
2311
# File 'lib/ovirtsdk4/types.rb', line 2309

def proxy
  return @proxy
end

- (Object) proxy=(value)

Sets the value of the proxy attribute.

Parameters:

  • value (String)


2318
2319
2320
# File 'lib/ovirtsdk4/types.rb', line 2318

def proxy=(value)
  @proxy = value
end

- (Integer) secure_port

Returns the value of the secure_port attribute.

Returns:

  • (Integer)


2327
2328
2329
# File 'lib/ovirtsdk4/types.rb', line 2327

def secure_port
  return @secure_port
end

- (Object) secure_port=(value)

Sets the value of the secure_port attribute.

Parameters:

  • value (Integer)


2336
2337
2338
# File 'lib/ovirtsdk4/types.rb', line 2336

def secure_port=(value)
  @secure_port = value
end

- (Boolean) single_qxl_pci

Returns the value of the single_qxl_pci attribute.

Returns:

  • (Boolean)


2345
2346
2347
# File 'lib/ovirtsdk4/types.rb', line 2345

def single_qxl_pci
  return @single_qxl_pci
end

- (Object) single_qxl_pci=(value)

Sets the value of the single_qxl_pci attribute.

Parameters:

  • value (Boolean)


2354
2355
2356
# File 'lib/ovirtsdk4/types.rb', line 2354

def single_qxl_pci=(value)
  @single_qxl_pci = value
end

- (Boolean) smartcard_enabled

Returns the value of the smartcard_enabled attribute.

Returns:

  • (Boolean)


2363
2364
2365
# File 'lib/ovirtsdk4/types.rb', line 2363

def smartcard_enabled
  return @smartcard_enabled
end

- (Object) smartcard_enabled=(value)

Sets the value of the smartcard_enabled attribute.

Parameters:

  • value (Boolean)


2372
2373
2374
# File 'lib/ovirtsdk4/types.rb', line 2372

def smartcard_enabled=(value)
  @smartcard_enabled = value
end

- (DisplayType) type

Returns the value of the type attribute.

Returns:



2381
2382
2383
# File 'lib/ovirtsdk4/types.rb', line 2381

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



2390
2391
2392
# File 'lib/ovirtsdk4/types.rb', line 2390

def type=(value)
  @type = value
end