Class: VBox::Console
- Inherits:
-
Base
- Object
- Base
- VBox::Console
show all
- Defined in:
- lib/virtualbox/classes/console.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#_this, #delete!, #ensure_hash, #initialize, #vbox_class
Constructor Details
This class inherits a constructor from VBox::Base
Instance Attribute Details
#ref ⇒ Object
Returns the value of attribute ref.
4
5
6
|
# File 'lib/virtualbox/classes/console.rb', line 4
def ref
@ref
end
|
Instance Method Details
#adopt_saved_state(args = {}) ⇒ Object
71
72
73
74
|
# File 'lib/virtualbox/classes/console.rb', line 71
def adopt_saved_state(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_adopt_saved_state, _this.merge(args))
end
|
#attach_usb_device(args = {}) ⇒ Object
76
77
78
79
|
# File 'lib/virtualbox/classes/console.rb', line 76
def attach_usb_device(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_attach_usb_device, _this.merge(args))
end
|
#attached_pci_devices ⇒ Object
56
57
58
|
# File 'lib/virtualbox/classes/console.rb', line 56
def attached_pci_devices
VBox::WebService.send_request(:i_console_get_attached_pci_devices, _this)
end
|
#create_shared_folder(args = {}) ⇒ Object
81
82
83
84
|
# File 'lib/virtualbox/classes/console.rb', line 81
def create_shared_folder(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_create_shared_folder, _this.merge(args))
end
|
#delete_snapshot(args = {}) ⇒ Object
86
87
88
89
90
|
# File 'lib/virtualbox/classes/console.rb', line 86
def delete_snapshot(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_console_delete_snapshot, _this.merge(args))
VBox::Progress.new(progress)
end
|
#delete_snapshot_and_all_children(args = {}) ⇒ Object
92
93
94
95
96
|
# File 'lib/virtualbox/classes/console.rb', line 92
def delete_snapshot_and_all_children(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_console_delete_snapshot_and_all_children, _this.merge(args))
VBox::Progress.new(progress)
end
|
#delete_snapshot_range(args = {}) ⇒ Object
98
99
100
101
102
|
# File 'lib/virtualbox/classes/console.rb', line 98
def delete_snapshot_range(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_console_delete_snapshot_range, _this.merge(args))
VBox::Progress.new(progress)
end
|
#detach_usb_device(args = {}) ⇒ Object
104
105
106
107
108
|
# File 'lib/virtualbox/classes/console.rb', line 104
def detach_usb_device(args={})
ensure_hash(args)
usb_device = VBox::WebService.send_request(:i_console_detach_usb_device, _this.merge(args))
VBox::USBDevice.new(usb_device)
end
|
#discard_saved_state(args = {}) ⇒ Object
110
111
112
113
|
# File 'lib/virtualbox/classes/console.rb', line 110
def discard_saved_state(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_discard_saved_state, _this.merge(args))
end
|
#find_usb_device_by_address(args = {}) ⇒ Object
115
116
117
118
119
|
# File 'lib/virtualbox/classes/console.rb', line 115
def find_usb_device_by_address(args={})
ensure_hash(args)
usb_device = VBox::WebService.send_request(:i_console_find_usb_device_by_address, _this.merge(args))
VBox::USBDevice.new(usb_device)
end
|
#find_usb_device_by_id(args = {}) ⇒ Object
121
122
123
124
125
|
# File 'lib/virtualbox/classes/console.rb', line 121
def find_usb_device_by_id(args={})
ensure_hash(args)
usb_device = VBox::WebService.send_request(:i_console_find_usb_device_by_id, _this.merge(args))
VBox::USBDevice.new(usb_device)
end
|
#get_device_activity(args = {}) ⇒ Object
127
128
129
130
|
# File 'lib/virtualbox/classes/console.rb', line 127
def get_device_activity(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_get_device_activity, _this.merge(args))
end
|
#get_guest_entered_acpi_mode ⇒ Object
132
133
134
|
# File 'lib/virtualbox/classes/console.rb', line 132
def get_guest_entered_acpi_mode
VBox::WebService.send_request(:i_console_get_guest_entered_acpi_mode, _this)
end
|
136
137
138
|
# File 'lib/virtualbox/classes/console.rb', line 136
def get_power_button_handled
VBox::WebService.send_request(:i_console_get_power_button_handled, _this)
end
|
#pause ⇒ Object
140
141
142
|
# File 'lib/virtualbox/classes/console.rb', line 140
def pause
VBox::WebService.send_request(:i_console_pause, _this)
end
|
144
145
146
|
# File 'lib/virtualbox/classes/console.rb', line 144
def power_button
VBox::WebService.send_request(:i_console_power_button, _this)
end
|
#power_up_paused ⇒ Object
#remote_usb_devices ⇒ Object
32
33
34
35
36
37
|
# File 'lib/virtualbox/classes/console.rb', line 32
def remote_usb_devices
remote_usb_devices = VBox::WebService.send_request(:i_console_get_remote_usb_devices, _this)
remote_usb_devices.map do |remote_usb_device|
VBox::HostUSBDevice.new(remote_usb_device)
end
end
|
#remove_shared_folder(args = {}) ⇒ Object
163
164
165
166
|
# File 'lib/virtualbox/classes/console.rb', line 163
def remove_shared_folder(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_console_remove_shared_folder, _this.merge(args))
end
|
#reset ⇒ Object
168
169
170
|
# File 'lib/virtualbox/classes/console.rb', line 168
def reset
VBox::WebService.send_request(:i_console_reset, _this)
end
|
#restore_snapshot(args = {}) ⇒ Object
172
173
174
175
176
|
# File 'lib/virtualbox/classes/console.rb', line 172
def restore_snapshot(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_console_restore_snapshot, _this.merge(args))
VBox::Progress.new(progress)
end
|
#resume ⇒ Object
178
179
180
|
# File 'lib/virtualbox/classes/console.rb', line 178
def resume
VBox::WebService.send_request(:i_console_resume, _this)
end
|
#shared_folders ⇒ Object
39
40
41
42
43
44
|
# File 'lib/virtualbox/classes/console.rb', line 39
def shared_folders
shared_folders = VBox::WebService.send_request(:i_console_get_shared_folders, _this)
shared_folders.map do |shared_folder|
VBox::SharedFolder.new(shared_folder)
end
end
|
187
188
189
|
# File 'lib/virtualbox/classes/console.rb', line 187
def sleep_button
VBox::WebService.send_request(:i_console_sleep_button, _this)
end
|
#state ⇒ Object
13
14
15
|
# File 'lib/virtualbox/classes/console.rb', line 13
def state
VBox::WebService.send_request(:i_console_get_machine_state, _this)
end
|
#teleport(args = {}) ⇒ Object
#use_host_clipboard ⇒ Object
60
61
62
|
# File 'lib/virtualbox/classes/console.rb', line 60
def use_host_clipboard
VBox::WebService.send_request(:i_console_get_use_host_clipboard, _this)
end
|
#use_host_clipboard=(use_host_clipboard) ⇒ Object
64
65
66
67
|
# File 'lib/virtualbox/classes/console.rb', line 64
def use_host_clipboard=(use_host_clipboard)
VBox::WebService.send_request(:i_console_set_use_host_clipboard,
_this.merge(:use_host_clipboard => use_host_clipboard))
end
|
#vrde_server_info ⇒ Object