Class: OvirtSDK4::Display
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#allow_override ⇒ Boolean
Returns the value of the
allow_overrideattribute. -
#allow_override=(value) ⇒ Object
Sets the value of the
allow_overrideattribute. -
#certificate ⇒ Certificate
Returns the value of the
certificateattribute. -
#certificate=(value) ⇒ Object
Sets the value of the
certificateattribute. -
#copy_paste_enabled ⇒ Boolean
Returns the value of the
copy_paste_enabledattribute. -
#copy_paste_enabled=(value) ⇒ Object
Sets the value of the
copy_paste_enabledattribute. -
#disconnect_action ⇒ String
Returns the value of the
disconnect_actionattribute. -
#disconnect_action=(value) ⇒ Object
Sets the value of the
disconnect_actionattribute. -
#disconnect_action_delay ⇒ Integer
Returns the value of the
disconnect_action_delayattribute. -
#disconnect_action_delay=(value) ⇒ Object
Sets the value of the
disconnect_action_delayattribute. -
#file_transfer_enabled ⇒ Boolean
Returns the value of the
file_transfer_enabledattribute. -
#file_transfer_enabled=(value) ⇒ Object
Sets the value of the
file_transfer_enabledattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Display
constructor
Creates a new instance of the Display class.
-
#keyboard_layout ⇒ String
Returns the value of the
keyboard_layoutattribute. -
#keyboard_layout=(value) ⇒ Object
Sets the value of the
keyboard_layoutattribute. -
#monitors ⇒ Integer
Returns the value of the
monitorsattribute. -
#monitors=(value) ⇒ Object
Sets the value of the
monitorsattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#proxy ⇒ String
Returns the value of the
proxyattribute. -
#proxy=(value) ⇒ Object
Sets the value of the
proxyattribute. -
#secure_port ⇒ Integer
Returns the value of the
secure_portattribute. -
#secure_port=(value) ⇒ Object
Sets the value of the
secure_portattribute. -
#single_qxl_pci ⇒ Boolean
Returns the value of the
single_qxl_pciattribute. -
#single_qxl_pci=(value) ⇒ Object
Sets the value of the
single_qxl_pciattribute. -
#smartcard_enabled ⇒ Boolean
Returns the value of the
smartcard_enabledattribute. -
#smartcard_enabled=(value) ⇒ Object
Sets the value of the
smartcard_enabledattribute. -
#type ⇒ DisplayType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#video_type ⇒ VideoType
Returns the value of the
video_typeattribute. -
#video_type=(value) ⇒ Object
Sets the value of the
video_typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Display
Creates a new instance of the OvirtSDK4::Display class.
3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 |
# File 'lib/ovirtsdk4/types.rb', line 3199 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.disconnect_action_delay = opts[:disconnect_action_delay] 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] self.video_type = opts[:video_type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 |
# File 'lib/ovirtsdk4/types.rb', line 3222 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 && @disconnect_action_delay == other.disconnect_action_delay && @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 && @video_type == other.video_type end |
#address ⇒ String
Returns the value of the address attribute.
2869 2870 2871 |
# File 'lib/ovirtsdk4/types.rb', line 2869 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
2878 2879 2880 |
# File 'lib/ovirtsdk4/types.rb', line 2878 def address=(value) @address = value end |
#allow_override ⇒ Boolean
Returns the value of the allow_override attribute.
2887 2888 2889 |
# File 'lib/ovirtsdk4/types.rb', line 2887 def allow_override @allow_override end |
#allow_override=(value) ⇒ Object
Sets the value of the allow_override attribute.
2896 2897 2898 |
# File 'lib/ovirtsdk4/types.rb', line 2896 def allow_override=(value) @allow_override = value end |
#certificate ⇒ Certificate
Returns the value of the certificate attribute.
2905 2906 2907 |
# File 'lib/ovirtsdk4/types.rb', line 2905 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.
2918 2919 2920 2921 2922 2923 |
# File 'lib/ovirtsdk4/types.rb', line 2918 def certificate=(value) if value.is_a?(Hash) value = Certificate.new(value) end @certificate = value end |
#copy_paste_enabled ⇒ Boolean
Returns the value of the copy_paste_enabled attribute.
2930 2931 2932 |
# File 'lib/ovirtsdk4/types.rb', line 2930 def copy_paste_enabled @copy_paste_enabled end |
#copy_paste_enabled=(value) ⇒ Object
Sets the value of the copy_paste_enabled attribute.
2939 2940 2941 |
# File 'lib/ovirtsdk4/types.rb', line 2939 def copy_paste_enabled=(value) @copy_paste_enabled = value end |
#disconnect_action ⇒ String
Returns the value of the disconnect_action attribute.
2948 2949 2950 |
# File 'lib/ovirtsdk4/types.rb', line 2948 def disconnect_action @disconnect_action end |
#disconnect_action=(value) ⇒ Object
Sets the value of the disconnect_action attribute.
2957 2958 2959 |
# File 'lib/ovirtsdk4/types.rb', line 2957 def disconnect_action=(value) @disconnect_action = value end |
#disconnect_action_delay ⇒ Integer
Returns the value of the disconnect_action_delay attribute.
2966 2967 2968 |
# File 'lib/ovirtsdk4/types.rb', line 2966 def disconnect_action_delay @disconnect_action_delay end |
#disconnect_action_delay=(value) ⇒ Object
Sets the value of the disconnect_action_delay attribute.
2975 2976 2977 |
# File 'lib/ovirtsdk4/types.rb', line 2975 def disconnect_action_delay=(value) @disconnect_action_delay = value end |
#file_transfer_enabled ⇒ Boolean
Returns the value of the file_transfer_enabled attribute.
2984 2985 2986 |
# File 'lib/ovirtsdk4/types.rb', line 2984 def file_transfer_enabled @file_transfer_enabled end |
#file_transfer_enabled=(value) ⇒ Object
Sets the value of the file_transfer_enabled attribute.
2993 2994 2995 |
# File 'lib/ovirtsdk4/types.rb', line 2993 def file_transfer_enabled=(value) @file_transfer_enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 |
# File 'lib/ovirtsdk4/types.rb', line 3245 def hash super + @address.hash + @allow_override.hash + @certificate.hash + @copy_paste_enabled.hash + @disconnect_action.hash + @disconnect_action_delay.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 + @video_type.hash end |
#keyboard_layout ⇒ String
Returns the value of the keyboard_layout attribute.
3002 3003 3004 |
# File 'lib/ovirtsdk4/types.rb', line 3002 def keyboard_layout @keyboard_layout end |
#keyboard_layout=(value) ⇒ Object
Sets the value of the keyboard_layout attribute.
3011 3012 3013 |
# File 'lib/ovirtsdk4/types.rb', line 3011 def keyboard_layout=(value) @keyboard_layout = value end |
#monitors ⇒ Integer
Returns the value of the monitors attribute.
3020 3021 3022 |
# File 'lib/ovirtsdk4/types.rb', line 3020 def monitors @monitors end |
#monitors=(value) ⇒ Object
Sets the value of the monitors attribute.
3029 3030 3031 |
# File 'lib/ovirtsdk4/types.rb', line 3029 def monitors=(value) @monitors = value end |
#port ⇒ Integer
Returns the value of the port attribute.
3038 3039 3040 |
# File 'lib/ovirtsdk4/types.rb', line 3038 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
3047 3048 3049 |
# File 'lib/ovirtsdk4/types.rb', line 3047 def port=(value) @port = value end |
#proxy ⇒ String
Returns the value of the proxy attribute.
3056 3057 3058 |
# File 'lib/ovirtsdk4/types.rb', line 3056 def proxy @proxy end |
#proxy=(value) ⇒ Object
Sets the value of the proxy attribute.
3065 3066 3067 |
# File 'lib/ovirtsdk4/types.rb', line 3065 def proxy=(value) @proxy = value end |
#secure_port ⇒ Integer
Returns the value of the secure_port attribute.
3074 3075 3076 |
# File 'lib/ovirtsdk4/types.rb', line 3074 def secure_port @secure_port end |
#secure_port=(value) ⇒ Object
Sets the value of the secure_port attribute.
3083 3084 3085 |
# File 'lib/ovirtsdk4/types.rb', line 3083 def secure_port=(value) @secure_port = value end |
#single_qxl_pci ⇒ Boolean
Returns the value of the single_qxl_pci attribute.
3092 3093 3094 |
# File 'lib/ovirtsdk4/types.rb', line 3092 def single_qxl_pci @single_qxl_pci end |
#single_qxl_pci=(value) ⇒ Object
Sets the value of the single_qxl_pci attribute.
3101 3102 3103 |
# File 'lib/ovirtsdk4/types.rb', line 3101 def single_qxl_pci=(value) @single_qxl_pci = value end |
#smartcard_enabled ⇒ Boolean
Returns the value of the smartcard_enabled attribute.
3110 3111 3112 |
# File 'lib/ovirtsdk4/types.rb', line 3110 def smartcard_enabled @smartcard_enabled end |
#smartcard_enabled=(value) ⇒ Object
Sets the value of the smartcard_enabled attribute.
3119 3120 3121 |
# File 'lib/ovirtsdk4/types.rb', line 3119 def smartcard_enabled=(value) @smartcard_enabled = value end |
#type ⇒ DisplayType
Returns the value of the type attribute.
3128 3129 3130 |
# File 'lib/ovirtsdk4/types.rb', line 3128 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
3137 3138 3139 |
# File 'lib/ovirtsdk4/types.rb', line 3137 def type=(value) @type = value end |
#video_type ⇒ VideoType
Returns the value of the video_type attribute.
3146 3147 3148 |
# File 'lib/ovirtsdk4/types.rb', line 3146 def video_type @video_type end |
#video_type=(value) ⇒ Object
Sets the value of the video_type attribute.
3155 3156 3157 |
# File 'lib/ovirtsdk4/types.rb', line 3155 def video_type=(value) @video_type = value end |