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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Display

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.


3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
# File 'lib/ovirtsdk4/types.rb', line 3108

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

#==(other) ⇒ Object

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


3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
# File 'lib/ovirtsdk4/types.rb', line 3129

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

#addressString

Returns the value of the address attribute.

Returns:

  • (String)

2818
2819
2820
# File 'lib/ovirtsdk4/types.rb', line 2818

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)

2827
2828
2829
# File 'lib/ovirtsdk4/types.rb', line 2827

def address=(value)
  @address = value
end

#allow_overrideBoolean

Returns the value of the allow_override attribute.

Returns:

  • (Boolean)

2836
2837
2838
# File 'lib/ovirtsdk4/types.rb', line 2836

def allow_override
  @allow_override
end

#allow_override=(value) ⇒ Object

Sets the value of the allow_override attribute.

Parameters:

  • value (Boolean)

2845
2846
2847
# File 'lib/ovirtsdk4/types.rb', line 2845

def allow_override=(value)
  @allow_override = value
end

#certificateCertificate

Returns the value of the certificate attribute.

Returns:


2854
2855
2856
# File 'lib/ovirtsdk4/types.rb', line 2854

def certificate
  @certificate
end

#certificate=(value) ⇒ Object

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:


2867
2868
2869
2870
2871
2872
# File 'lib/ovirtsdk4/types.rb', line 2867

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

#copy_paste_enabledBoolean

Returns the value of the copy_paste_enabled attribute.

Returns:

  • (Boolean)

2879
2880
2881
# File 'lib/ovirtsdk4/types.rb', line 2879

def copy_paste_enabled
  @copy_paste_enabled
end

#copy_paste_enabled=(value) ⇒ Object

Sets the value of the copy_paste_enabled attribute.

Parameters:

  • value (Boolean)

2888
2889
2890
# File 'lib/ovirtsdk4/types.rb', line 2888

def copy_paste_enabled=(value)
  @copy_paste_enabled = value
end

#disconnect_actionString

Returns the value of the disconnect_action attribute.

Returns:

  • (String)

2897
2898
2899
# File 'lib/ovirtsdk4/types.rb', line 2897

def disconnect_action
  @disconnect_action
end

#disconnect_action=(value) ⇒ Object

Sets the value of the disconnect_action attribute.

Parameters:

  • value (String)

2906
2907
2908
# File 'lib/ovirtsdk4/types.rb', line 2906

def disconnect_action=(value)
  @disconnect_action = value
end

#file_transfer_enabledBoolean

Returns the value of the file_transfer_enabled attribute.

Returns:

  • (Boolean)

2915
2916
2917
# File 'lib/ovirtsdk4/types.rb', line 2915

def file_transfer_enabled
  @file_transfer_enabled
end

#file_transfer_enabled=(value) ⇒ Object

Sets the value of the file_transfer_enabled attribute.

Parameters:

  • value (Boolean)

2924
2925
2926
# File 'lib/ovirtsdk4/types.rb', line 2924

def file_transfer_enabled=(value)
  @file_transfer_enabled = value
end

#hashObject

Generates a hash value for this object.


3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
# File 'lib/ovirtsdk4/types.rb', line 3150

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_layoutString

Returns the value of the keyboard_layout attribute.

Returns:

  • (String)

2933
2934
2935
# File 'lib/ovirtsdk4/types.rb', line 2933

def keyboard_layout
  @keyboard_layout
end

#keyboard_layout=(value) ⇒ Object

Sets the value of the keyboard_layout attribute.

Parameters:

  • value (String)

2942
2943
2944
# File 'lib/ovirtsdk4/types.rb', line 2942

def keyboard_layout=(value)
  @keyboard_layout = value
end

#monitorsInteger

Returns the value of the monitors attribute.

Returns:

  • (Integer)

2951
2952
2953
# File 'lib/ovirtsdk4/types.rb', line 2951

def monitors
  @monitors
end

#monitors=(value) ⇒ Object

Sets the value of the monitors attribute.

Parameters:

  • value (Integer)

2960
2961
2962
# File 'lib/ovirtsdk4/types.rb', line 2960

def monitors=(value)
  @monitors = value
end

#portInteger

Returns the value of the port attribute.

Returns:

  • (Integer)

2969
2970
2971
# File 'lib/ovirtsdk4/types.rb', line 2969

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)

2978
2979
2980
# File 'lib/ovirtsdk4/types.rb', line 2978

def port=(value)
  @port = value
end

#proxyString

Returns the value of the proxy attribute.

Returns:

  • (String)

2987
2988
2989
# File 'lib/ovirtsdk4/types.rb', line 2987

def proxy
  @proxy
end

#proxy=(value) ⇒ Object

Sets the value of the proxy attribute.

Parameters:

  • value (String)

2996
2997
2998
# File 'lib/ovirtsdk4/types.rb', line 2996

def proxy=(value)
  @proxy = value
end

#secure_portInteger

Returns the value of the secure_port attribute.

Returns:

  • (Integer)

3005
3006
3007
# File 'lib/ovirtsdk4/types.rb', line 3005

def secure_port
  @secure_port
end

#secure_port=(value) ⇒ Object

Sets the value of the secure_port attribute.

Parameters:

  • value (Integer)

3014
3015
3016
# File 'lib/ovirtsdk4/types.rb', line 3014

def secure_port=(value)
  @secure_port = value
end

#single_qxl_pciBoolean

Returns the value of the single_qxl_pci attribute.

Returns:

  • (Boolean)

3023
3024
3025
# File 'lib/ovirtsdk4/types.rb', line 3023

def single_qxl_pci
  @single_qxl_pci
end

#single_qxl_pci=(value) ⇒ Object

Sets the value of the single_qxl_pci attribute.

Parameters:

  • value (Boolean)

3032
3033
3034
# File 'lib/ovirtsdk4/types.rb', line 3032

def single_qxl_pci=(value)
  @single_qxl_pci = value
end

#smartcard_enabledBoolean

Returns the value of the smartcard_enabled attribute.

Returns:

  • (Boolean)

3041
3042
3043
# File 'lib/ovirtsdk4/types.rb', line 3041

def smartcard_enabled
  @smartcard_enabled
end

#smartcard_enabled=(value) ⇒ Object

Sets the value of the smartcard_enabled attribute.

Parameters:

  • value (Boolean)

3050
3051
3052
# File 'lib/ovirtsdk4/types.rb', line 3050

def smartcard_enabled=(value)
  @smartcard_enabled = value
end

#typeDisplayType

Returns the value of the type attribute.

Returns:


3059
3060
3061
# File 'lib/ovirtsdk4/types.rb', line 3059

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


3068
3069
3070
# File 'lib/ovirtsdk4/types.rb', line 3068

def type=(value)
  @type = value
end