Class: OvirtSDK4::Display
- 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. -
#allow_override ⇒ Boolean
Returns the value of the
allow_override
attribute. -
#allow_override=(value) ⇒ Object
Sets the value of the
allow_override
attribute. -
#certificate ⇒ Certificate
Returns the value of the
certificate
attribute. -
#certificate=(value) ⇒ Object
Sets the value of the
certificate
attribute. -
#copy_paste_enabled ⇒ Boolean
Returns the value of the
copy_paste_enabled
attribute. -
#copy_paste_enabled=(value) ⇒ Object
Sets the value of the
copy_paste_enabled
attribute. -
#disconnect_action ⇒ String
Returns the value of the
disconnect_action
attribute. -
#disconnect_action=(value) ⇒ Object
Sets the value of the
disconnect_action
attribute. -
#disconnect_action_delay ⇒ Integer
Returns the value of the
disconnect_action_delay
attribute. -
#disconnect_action_delay=(value) ⇒ Object
Sets the value of the
disconnect_action_delay
attribute. -
#file_transfer_enabled ⇒ Boolean
Returns the value of the
file_transfer_enabled
attribute. -
#file_transfer_enabled=(value) ⇒ Object
Sets the value of the
file_transfer_enabled
attribute. -
#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_layout
attribute. -
#keyboard_layout=(value) ⇒ Object
Sets the value of the
keyboard_layout
attribute. -
#monitors ⇒ Integer
Returns the value of the
monitors
attribute. -
#monitors=(value) ⇒ Object
Sets the value of the
monitors
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#proxy ⇒ String
Returns the value of the
proxy
attribute. -
#proxy=(value) ⇒ Object
Sets the value of the
proxy
attribute. -
#secure_port ⇒ Integer
Returns the value of the
secure_port
attribute. -
#secure_port=(value) ⇒ Object
Sets the value of the
secure_port
attribute. -
#single_qxl_pci ⇒ Boolean
Returns the value of the
single_qxl_pci
attribute. -
#single_qxl_pci=(value) ⇒ Object
Sets the value of the
single_qxl_pci
attribute. -
#smartcard_enabled ⇒ Boolean
Returns the value of the
smartcard_enabled
attribute. -
#smartcard_enabled=(value) ⇒ Object
Sets the value of the
smartcard_enabled
attribute. -
#type ⇒ DisplayType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Display
Creates a new instance of the OvirtSDK4::Display class.
3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 |
# File 'lib/ovirtsdk4/types.rb', line 3146 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] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 |
# File 'lib/ovirtsdk4/types.rb', line 3168 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 end |
#address ⇒ String
Returns the value of the address
attribute.
2836 2837 2838 |
# File 'lib/ovirtsdk4/types.rb', line 2836 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
2845 2846 2847 |
# File 'lib/ovirtsdk4/types.rb', line 2845 def address=(value) @address = value end |
#allow_override ⇒ Boolean
Returns the value of the allow_override
attribute.
2854 2855 2856 |
# File 'lib/ovirtsdk4/types.rb', line 2854 def allow_override @allow_override end |
#allow_override=(value) ⇒ Object
Sets the value of the allow_override
attribute.
2863 2864 2865 |
# File 'lib/ovirtsdk4/types.rb', line 2863 def allow_override=(value) @allow_override = value end |
#certificate ⇒ Certificate
Returns the value of the certificate
attribute.
2872 2873 2874 |
# File 'lib/ovirtsdk4/types.rb', line 2872 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.
2885 2886 2887 2888 2889 2890 |
# File 'lib/ovirtsdk4/types.rb', line 2885 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.
2897 2898 2899 |
# File 'lib/ovirtsdk4/types.rb', line 2897 def copy_paste_enabled @copy_paste_enabled end |
#copy_paste_enabled=(value) ⇒ Object
Sets the value of the copy_paste_enabled
attribute.
2906 2907 2908 |
# File 'lib/ovirtsdk4/types.rb', line 2906 def copy_paste_enabled=(value) @copy_paste_enabled = value end |
#disconnect_action ⇒ String
Returns the value of the disconnect_action
attribute.
2915 2916 2917 |
# File 'lib/ovirtsdk4/types.rb', line 2915 def disconnect_action @disconnect_action end |
#disconnect_action=(value) ⇒ Object
Sets the value of the disconnect_action
attribute.
2924 2925 2926 |
# File 'lib/ovirtsdk4/types.rb', line 2924 def disconnect_action=(value) @disconnect_action = value end |
#disconnect_action_delay ⇒ Integer
Returns the value of the disconnect_action_delay
attribute.
2933 2934 2935 |
# File 'lib/ovirtsdk4/types.rb', line 2933 def disconnect_action_delay @disconnect_action_delay end |
#disconnect_action_delay=(value) ⇒ Object
Sets the value of the disconnect_action_delay
attribute.
2942 2943 2944 |
# File 'lib/ovirtsdk4/types.rb', line 2942 def disconnect_action_delay=(value) @disconnect_action_delay = value end |
#file_transfer_enabled ⇒ Boolean
Returns the value of the file_transfer_enabled
attribute.
2951 2952 2953 |
# File 'lib/ovirtsdk4/types.rb', line 2951 def file_transfer_enabled @file_transfer_enabled end |
#file_transfer_enabled=(value) ⇒ Object
Sets the value of the file_transfer_enabled
attribute.
2960 2961 2962 |
# File 'lib/ovirtsdk4/types.rb', line 2960 def file_transfer_enabled=(value) @file_transfer_enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 |
# File 'lib/ovirtsdk4/types.rb', line 3190 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 end |
#keyboard_layout ⇒ String
Returns the value of the keyboard_layout
attribute.
2969 2970 2971 |
# File 'lib/ovirtsdk4/types.rb', line 2969 def keyboard_layout @keyboard_layout end |
#keyboard_layout=(value) ⇒ Object
Sets the value of the keyboard_layout
attribute.
2978 2979 2980 |
# File 'lib/ovirtsdk4/types.rb', line 2978 def keyboard_layout=(value) @keyboard_layout = value end |
#monitors ⇒ Integer
Returns the value of the monitors
attribute.
2987 2988 2989 |
# File 'lib/ovirtsdk4/types.rb', line 2987 def monitors @monitors end |
#monitors=(value) ⇒ Object
Sets the value of the monitors
attribute.
2996 2997 2998 |
# File 'lib/ovirtsdk4/types.rb', line 2996 def monitors=(value) @monitors = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
3005 3006 3007 |
# File 'lib/ovirtsdk4/types.rb', line 3005 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
3014 3015 3016 |
# File 'lib/ovirtsdk4/types.rb', line 3014 def port=(value) @port = value end |
#proxy ⇒ String
Returns the value of the proxy
attribute.
3023 3024 3025 |
# File 'lib/ovirtsdk4/types.rb', line 3023 def proxy @proxy end |
#proxy=(value) ⇒ Object
Sets the value of the proxy
attribute.
3032 3033 3034 |
# File 'lib/ovirtsdk4/types.rb', line 3032 def proxy=(value) @proxy = value end |
#secure_port ⇒ Integer
Returns the value of the secure_port
attribute.
3041 3042 3043 |
# File 'lib/ovirtsdk4/types.rb', line 3041 def secure_port @secure_port end |
#secure_port=(value) ⇒ Object
Sets the value of the secure_port
attribute.
3050 3051 3052 |
# File 'lib/ovirtsdk4/types.rb', line 3050 def secure_port=(value) @secure_port = value end |
#single_qxl_pci ⇒ Boolean
Returns the value of the single_qxl_pci
attribute.
3059 3060 3061 |
# File 'lib/ovirtsdk4/types.rb', line 3059 def single_qxl_pci @single_qxl_pci end |
#single_qxl_pci=(value) ⇒ Object
Sets the value of the single_qxl_pci
attribute.
3068 3069 3070 |
# File 'lib/ovirtsdk4/types.rb', line 3068 def single_qxl_pci=(value) @single_qxl_pci = value end |
#smartcard_enabled ⇒ Boolean
Returns the value of the smartcard_enabled
attribute.
3077 3078 3079 |
# File 'lib/ovirtsdk4/types.rb', line 3077 def smartcard_enabled @smartcard_enabled end |
#smartcard_enabled=(value) ⇒ Object
Sets the value of the smartcard_enabled
attribute.
3086 3087 3088 |
# File 'lib/ovirtsdk4/types.rb', line 3086 def smartcard_enabled=(value) @smartcard_enabled = value end |
#type ⇒ DisplayType
Returns the value of the type
attribute.
3095 3096 3097 |
# File 'lib/ovirtsdk4/types.rb', line 3095 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
3104 3105 3106 |
# File 'lib/ovirtsdk4/types.rb', line 3104 def type=(value) @type = value end |