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. -
#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.
3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 |
# File 'lib/ovirtsdk4/types.rb', line 3076 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.
3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 |
# File 'lib/ovirtsdk4/types.rb', line 3097 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 ⇒ String
Returns the value of the address
attribute.
2786 2787 2788 |
# File 'lib/ovirtsdk4/types.rb', line 2786 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
2795 2796 2797 |
# File 'lib/ovirtsdk4/types.rb', line 2795 def address=(value) @address = value end |
#allow_override ⇒ Boolean
Returns the value of the allow_override
attribute.
2804 2805 2806 |
# File 'lib/ovirtsdk4/types.rb', line 2804 def allow_override @allow_override end |
#allow_override=(value) ⇒ Object
Sets the value of the allow_override
attribute.
2813 2814 2815 |
# File 'lib/ovirtsdk4/types.rb', line 2813 def allow_override=(value) @allow_override = value end |
#certificate ⇒ Certificate
Returns the value of the certificate
attribute.
2822 2823 2824 |
# File 'lib/ovirtsdk4/types.rb', line 2822 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.
2835 2836 2837 2838 2839 2840 |
# File 'lib/ovirtsdk4/types.rb', line 2835 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.
2847 2848 2849 |
# File 'lib/ovirtsdk4/types.rb', line 2847 def copy_paste_enabled @copy_paste_enabled end |
#copy_paste_enabled=(value) ⇒ Object
Sets the value of the copy_paste_enabled
attribute.
2856 2857 2858 |
# File 'lib/ovirtsdk4/types.rb', line 2856 def copy_paste_enabled=(value) @copy_paste_enabled = value end |
#disconnect_action ⇒ String
Returns the value of the disconnect_action
attribute.
2865 2866 2867 |
# File 'lib/ovirtsdk4/types.rb', line 2865 def disconnect_action @disconnect_action end |
#disconnect_action=(value) ⇒ Object
Sets the value of the disconnect_action
attribute.
2874 2875 2876 |
# File 'lib/ovirtsdk4/types.rb', line 2874 def disconnect_action=(value) @disconnect_action = value end |
#file_transfer_enabled ⇒ Boolean
Returns the value of the file_transfer_enabled
attribute.
2883 2884 2885 |
# File 'lib/ovirtsdk4/types.rb', line 2883 def file_transfer_enabled @file_transfer_enabled end |
#file_transfer_enabled=(value) ⇒ Object
Sets the value of the file_transfer_enabled
attribute.
2892 2893 2894 |
# File 'lib/ovirtsdk4/types.rb', line 2892 def file_transfer_enabled=(value) @file_transfer_enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 |
# File 'lib/ovirtsdk4/types.rb', line 3118 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 ⇒ String
Returns the value of the keyboard_layout
attribute.
2901 2902 2903 |
# File 'lib/ovirtsdk4/types.rb', line 2901 def keyboard_layout @keyboard_layout end |
#keyboard_layout=(value) ⇒ Object
Sets the value of the keyboard_layout
attribute.
2910 2911 2912 |
# File 'lib/ovirtsdk4/types.rb', line 2910 def keyboard_layout=(value) @keyboard_layout = value end |
#monitors ⇒ Integer
Returns the value of the monitors
attribute.
2919 2920 2921 |
# File 'lib/ovirtsdk4/types.rb', line 2919 def monitors @monitors end |
#monitors=(value) ⇒ Object
Sets the value of the monitors
attribute.
2928 2929 2930 |
# File 'lib/ovirtsdk4/types.rb', line 2928 def monitors=(value) @monitors = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
2937 2938 2939 |
# File 'lib/ovirtsdk4/types.rb', line 2937 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
2946 2947 2948 |
# File 'lib/ovirtsdk4/types.rb', line 2946 def port=(value) @port = value end |
#proxy ⇒ String
Returns the value of the proxy
attribute.
2955 2956 2957 |
# File 'lib/ovirtsdk4/types.rb', line 2955 def proxy @proxy end |
#proxy=(value) ⇒ Object
Sets the value of the proxy
attribute.
2964 2965 2966 |
# File 'lib/ovirtsdk4/types.rb', line 2964 def proxy=(value) @proxy = value end |
#secure_port ⇒ Integer
Returns the value of the secure_port
attribute.
2973 2974 2975 |
# File 'lib/ovirtsdk4/types.rb', line 2973 def secure_port @secure_port end |
#secure_port=(value) ⇒ Object
Sets the value of the secure_port
attribute.
2982 2983 2984 |
# File 'lib/ovirtsdk4/types.rb', line 2982 def secure_port=(value) @secure_port = value end |
#single_qxl_pci ⇒ Boolean
Returns the value of the single_qxl_pci
attribute.
2991 2992 2993 |
# File 'lib/ovirtsdk4/types.rb', line 2991 def single_qxl_pci @single_qxl_pci end |
#single_qxl_pci=(value) ⇒ Object
Sets the value of the single_qxl_pci
attribute.
3000 3001 3002 |
# File 'lib/ovirtsdk4/types.rb', line 3000 def single_qxl_pci=(value) @single_qxl_pci = value end |
#smartcard_enabled ⇒ Boolean
Returns the value of the smartcard_enabled
attribute.
3009 3010 3011 |
# File 'lib/ovirtsdk4/types.rb', line 3009 def smartcard_enabled @smartcard_enabled end |
#smartcard_enabled=(value) ⇒ Object
Sets the value of the smartcard_enabled
attribute.
3018 3019 3020 |
# File 'lib/ovirtsdk4/types.rb', line 3018 def smartcard_enabled=(value) @smartcard_enabled = value end |
#type ⇒ DisplayType
Returns the value of the type
attribute.
3027 3028 3029 |
# File 'lib/ovirtsdk4/types.rb', line 3027 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
3036 3037 3038 |
# File 'lib/ovirtsdk4/types.rb', line 3036 def type=(value) @type = value end |