virtualbox-ws 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/core_ext/hash.rb +13 -0
- data/lib/core_ext/string.rb +1 -1
- data/lib/virtualbox-ws.rb +1 -0
- data/lib/virtualbox/base.rb +2 -5
- data/lib/virtualbox/classes/additions_facility.rb +0 -2
- data/lib/virtualbox/classes/appliance.rb +3 -5
- data/lib/virtualbox/classes/audio_adapter.rb +0 -2
- data/lib/virtualbox/classes/bandwidth_control.rb +2 -4
- data/lib/virtualbox/classes/bandwidth_group.rb +0 -2
- data/lib/virtualbox/classes/bios_settings.rb +0 -2
- data/lib/virtualbox/classes/console.rb +13 -15
- data/lib/virtualbox/classes/dhcp_server.rb +2 -4
- data/lib/virtualbox/classes/directory.rb +0 -2
- data/lib/virtualbox/classes/display.rb +7 -9
- data/lib/virtualbox/classes/event.rb +1 -3
- data/lib/virtualbox/classes/event_listener.rb +2 -4
- data/lib/virtualbox/classes/event_source.rb +12 -19
- data/lib/virtualbox/classes/events/additions_state_changed_event.rb +0 -3
- data/lib/virtualbox/classes/events/bandwidth_group_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/can_show_window_event.rb +0 -3
- data/lib/virtualbox/classes/events/clipboard_mode_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/cpu_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/cpu_execution_cap_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/drag_and_drop_mode_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/event_source_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/extra_data_can_change_event.rb +0 -2
- data/lib/virtualbox/classes/events/extra_data_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/guest_keyboard_event.rb +0 -2
- data/lib/virtualbox/classes/events/guest_monitor_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/guest_mouse_event.rb +0 -2
- data/lib/virtualbox/classes/events/guest_property_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/host_pci_device_plug_event.rb +0 -2
- data/lib/virtualbox/classes/events/keyboard_leds_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/machine_data_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/machine_event.rb +0 -2
- data/lib/virtualbox/classes/events/machine_registered_event.rb +0 -2
- data/lib/virtualbox/classes/events/machine_state_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/medium_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/medium_registered_event.rb +0 -2
- data/lib/virtualbox/classes/events/mouse_capability_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/mouse_pointer_shape_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/nat_redirect_event.rb +0 -2
- data/lib/virtualbox/classes/events/network_adapter_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/parallel_port_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/reusable_event.rb +0 -2
- data/lib/virtualbox/classes/events/runtime_error_event.rb +0 -2
- data/lib/virtualbox/classes/events/serial_port_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/session_state_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/shared_folder_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/show_window_event.rb +0 -2
- data/lib/virtualbox/classes/events/snapshot_changed_event.rb +0 -3
- data/lib/virtualbox/classes/events/snapshot_deleted_event.rb +0 -3
- data/lib/virtualbox/classes/events/snapshot_event.rb +0 -2
- data/lib/virtualbox/classes/events/snapshot_taken_event.rb +0 -3
- data/lib/virtualbox/classes/events/state_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/storage_controller_changed_event.rb +0 -3
- data/lib/virtualbox/classes/events/storage_device_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/usb_controller_changed_event.rb +0 -3
- data/lib/virtualbox/classes/events/usb_device_state_changed_event.rb +0 -2
- data/lib/virtualbox/classes/events/v_box_svc_availability_chaged_event.rb +0 -2
- data/lib/virtualbox/classes/events/veto_event.rb +1 -3
- data/lib/virtualbox/classes/events/vrde_server_changed_event.rb +1 -4
- data/lib/virtualbox/classes/events/vrde_server_info_changed_event.rb +1 -4
- data/lib/virtualbox/classes/file.rb +6 -8
- data/lib/virtualbox/classes/fs_obj_info.rb +0 -2
- data/lib/virtualbox/classes/guest.rb +11 -13
- data/lib/virtualbox/classes/guest_directory.rb +0 -3
- data/lib/virtualbox/classes/guest_file.rb +0 -3
- data/lib/virtualbox/classes/guest_fs_obj_info.rb +0 -3
- data/lib/virtualbox/classes/guest_process.rb +0 -3
- data/lib/virtualbox/classes/guest_session.rb +30 -32
- data/lib/virtualbox/classes/host.rb +15 -17
- data/lib/virtualbox/classes/host_network_interface.rb +0 -2
- data/lib/virtualbox/classes/host_usb_device.rb +0 -2
- data/lib/virtualbox/classes/host_usb_device_filter.rb +0 -2
- data/lib/virtualbox/classes/keyboard.rb +2 -4
- data/lib/virtualbox/classes/machine.rb +73 -81
- data/lib/virtualbox/classes/medium.rb +16 -19
- data/lib/virtualbox/classes/medium_format.rb +0 -2
- data/lib/virtualbox/classes/mouse.rb +2 -4
- data/lib/virtualbox/classes/nat_engine.rb +3 -5
- data/lib/virtualbox/classes/network_adapter.rb +3 -5
- data/lib/virtualbox/classes/parallel_port.rb +0 -2
- data/lib/virtualbox/classes/performance_collector.rb +5 -7
- data/lib/virtualbox/classes/performance_metric.rb +0 -2
- data/lib/virtualbox/classes/process.rb +5 -7
- data/lib/virtualbox/classes/progress.rb +6 -10
- data/lib/virtualbox/classes/serial_port.rb +0 -2
- data/lib/virtualbox/classes/session.rb +0 -2
- data/lib/virtualbox/classes/shared_folder.rb +0 -2
- data/lib/virtualbox/classes/snapshot.rb +0 -2
- data/lib/virtualbox/classes/storage_controller.rb +0 -2
- data/lib/virtualbox/classes/system_properties.rb +7 -9
- data/lib/virtualbox/classes/usb_controller.rb +4 -6
- data/lib/virtualbox/classes/usb_device.rb +0 -2
- data/lib/virtualbox/classes/usb_device_filter.rb +0 -2
- data/lib/virtualbox/classes/vfs_explorer.rb +5 -7
- data/lib/virtualbox/classes/virtual_box.rb +18 -20
- data/lib/virtualbox/classes/virtual_box_error_info.rb +0 -2
- data/lib/virtualbox/classes/virtual_system_description.rb +4 -6
- data/lib/virtualbox/classes/vrde_server.rb +2 -4
- data/lib/virtualbox/classes/vrde_server_info.rb +0 -2
- data/lib/virtualbox/classes/websession_manager.rb +3 -3
- data/lib/virtualbox/connection.rb +1 -1
- data/virtualbox-ws.gemspec +1 -1
- metadata +3 -2
@@ -1,8 +1,6 @@
|
|
1
1
|
module VBox
|
2
2
|
class Keyboard < Base
|
3
3
|
|
4
|
-
attr_reader :ref
|
5
|
-
|
6
4
|
# Attributes
|
7
5
|
|
8
6
|
def event_source
|
@@ -17,12 +15,12 @@ module VBox
|
|
17
15
|
end
|
18
16
|
|
19
17
|
def put_scancode(args={})
|
20
|
-
ensure_hash
|
18
|
+
ensure_hash args
|
21
19
|
VBox::WebService.send_request(:i_keyboard_get_put_scancode, _this.merge(args))
|
22
20
|
end
|
23
21
|
|
24
22
|
def put_scancodes(args={})
|
25
|
-
ensure_hash
|
23
|
+
ensure_hash args
|
26
24
|
VBox::WebService.send_request(:i_keyboard_get_put_scancodes, _this.merge(args))
|
27
25
|
end
|
28
26
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module VBox
|
2
2
|
class Machine < Base
|
3
3
|
|
4
|
-
attr_reader :ref
|
5
|
-
|
6
4
|
# Attributes
|
7
5
|
|
8
6
|
def parent
|
@@ -548,157 +546,153 @@ module VBox
|
|
548
546
|
# Methods
|
549
547
|
|
550
548
|
def add_storage_controller(args={})
|
551
|
-
ensure_hash
|
549
|
+
ensure_hash args
|
552
550
|
storage_controller = VBox::WebService.send_request(:i_machine_add_storage_controller, _this.merge(args))
|
553
551
|
VBox::StorageController.new(storage_controller)
|
554
552
|
end
|
555
553
|
|
556
554
|
def attach_device(args={})
|
557
|
-
ensure_hash
|
558
|
-
args
|
555
|
+
ensure_hash args
|
556
|
+
args.referize! :medium
|
559
557
|
VBox::WebService.send_request(:i_machine_attach_device, _this.merge(args))
|
560
558
|
end
|
561
559
|
|
562
560
|
def attach_device_without_medium(args={})
|
563
|
-
ensure_hash
|
561
|
+
ensure_hash args
|
564
562
|
VBox::WebService.send_request(:i_machine_attach_device_without_medium, _this.merge(args))
|
565
563
|
end
|
566
564
|
|
567
565
|
def attach_host_pci_device(args={})
|
568
|
-
ensure_hash
|
566
|
+
ensure_hash args
|
569
567
|
VBox::WebService.send_request(:i_machine_attach_host_pci_device, _this.merge(args))
|
570
568
|
end
|
571
569
|
|
572
570
|
def can_show_console_window(args={})
|
573
|
-
ensure_hash
|
571
|
+
ensure_hash args
|
574
572
|
VBox::WebService.send_request(:i_machine_can_show_console_window, _this.merge(args))
|
575
573
|
end
|
576
574
|
|
577
575
|
def clone_to(args={})
|
578
|
-
ensure_hash
|
579
|
-
args
|
576
|
+
ensure_hash args
|
577
|
+
args.referize! :target
|
580
578
|
progress = VBox::WebService.send_request(:i_machine_clone_to, _this.merge(args))
|
581
579
|
VBox::Progress.new(progress)
|
582
580
|
end
|
583
581
|
|
584
582
|
def create_shared_folder(args={})
|
585
|
-
ensure_hash
|
583
|
+
ensure_hash args
|
586
584
|
VBox::WebService.send_request(:i_machine_create_shared_folder, _this.merge(args))
|
587
585
|
end
|
588
586
|
|
589
587
|
def delete(args={})
|
590
|
-
ensure_hash
|
591
|
-
|
592
|
-
args[:a_media].map! do |a_medium|
|
593
|
-
a_medium.respond_to?(:ref) ? a_medium.ref : a_medium
|
594
|
-
end
|
595
|
-
end
|
588
|
+
ensure_hash args
|
589
|
+
args.referize! :a_media
|
596
590
|
progress = VBox::WebService.send_request(:i_machine_delete, _this.merge(args))
|
597
591
|
VBox::Progress.new(progress)
|
598
592
|
end
|
599
593
|
|
600
594
|
def delete_guest_property(args={})
|
601
|
-
ensure_hash
|
595
|
+
ensure_hash args
|
602
596
|
VBox::WebService.send_request(:i_machine_delete_guest_property, _this.merge(args))
|
603
597
|
end
|
604
598
|
|
605
599
|
def detach_device(args={})
|
606
|
-
ensure_hash
|
600
|
+
ensure_hash args
|
607
601
|
VBox::WebService.send_request(:i_machine_detach_device, _this.merge(args))
|
608
602
|
end
|
609
603
|
|
610
604
|
def detach_host_pci_device(args={})
|
611
|
-
ensure_hash
|
605
|
+
ensure_hash args
|
612
606
|
VBox::WebService.send_request(:i_machine_detach_host_pci_device, _this.merge(args))
|
613
607
|
end
|
614
608
|
|
615
609
|
def discard_settings(args={})
|
616
|
-
ensure_hash
|
610
|
+
ensure_hash args
|
617
611
|
VBox::WebService.send_request(:i_machine_discard_settings, _this.merge(args))
|
618
612
|
end
|
619
613
|
|
620
614
|
def enumerate_guest_properties(args={})
|
621
|
-
ensure_hash
|
615
|
+
ensure_hash args
|
622
616
|
VBox::WebService.send_request(:i_machine_enumerate_guest_properties, _this.merge(args))
|
623
617
|
end
|
624
618
|
|
625
619
|
def export(args={})
|
626
|
-
ensure_hash
|
627
|
-
args
|
620
|
+
ensure_hash args
|
621
|
+
args.referize! :a_appliance
|
628
622
|
virtual_system_description = VBox::WebService.send_request(:i_machine_export, _this.merge(args))
|
629
623
|
VBox::VirtualSystemDescription.new(virtual_system_description)
|
630
624
|
end
|
631
625
|
|
632
626
|
def find_snapshot(args={})
|
633
|
-
ensure_hash
|
627
|
+
ensure_hash args
|
634
628
|
snapshot = VBox::WebService.send_request(:i_machine_find_snapshot, _this.merge(args))
|
635
629
|
VBox::Snapshot.new(snapshot)
|
636
630
|
end
|
637
631
|
|
638
632
|
def get_boot_order(args={})
|
639
|
-
ensure_hash
|
633
|
+
ensure_hash args
|
640
634
|
VBox::WebService.send_request(:i_machine_get_boot_order, _this.merge(args))
|
641
635
|
end
|
642
636
|
|
643
637
|
def get_cpu_id_leaf(args={})
|
644
|
-
ensure_hash
|
638
|
+
ensure_hash args
|
645
639
|
VBox::WebService.send_request(:i_machine_get_cpu_id_leaf, _this.merge(args))
|
646
640
|
end
|
647
641
|
|
648
642
|
def get_cpu_property(args={})
|
649
|
-
ensure_hash
|
643
|
+
ensure_hash args
|
650
644
|
VBox::WebService.send_request(:i_machine_get_cpu_property, _this.merge(args))
|
651
645
|
end
|
652
646
|
|
653
647
|
def get_cpu_status(args={})
|
654
|
-
ensure_hash
|
648
|
+
ensure_hash args
|
655
649
|
VBox::WebService.send_request(:i_machine_get_cpu_status, _this.merge(args))
|
656
650
|
end
|
657
651
|
|
658
652
|
def get_extra_data(args={})
|
659
|
-
ensure_hash
|
653
|
+
ensure_hash args
|
660
654
|
VBox::WebService.send_request(:i_machine_get_extra_data, _this.merge(args))
|
661
655
|
end
|
662
656
|
|
663
657
|
def get_extra_data_keys(args={})
|
664
|
-
ensure_hash
|
658
|
+
ensure_hash args
|
665
659
|
VBox::WebService.send_request(:i_machine_get_exrta_data_keys, _this.merge(args))
|
666
660
|
end
|
667
661
|
|
668
662
|
def get_guest_property(args={})
|
669
|
-
ensure_hash
|
663
|
+
ensure_hash args
|
670
664
|
VBox::WebService.send_request(:i_machine_get_guest_property, _this.merge(args))
|
671
665
|
end
|
672
666
|
|
673
667
|
def get_guest_property_timestamp(args={})
|
674
|
-
ensure_hash
|
668
|
+
ensure_hash args
|
675
669
|
VBox::WebService.send_request(:i_machine_get_guest_property_timestamp, _this.merge(args))
|
676
670
|
end
|
677
671
|
|
678
672
|
def get_guest_property_value(args={})
|
679
|
-
ensure_hash
|
673
|
+
ensure_hash args
|
680
674
|
VBox::WebService.send_request(:i_machine_get_guest_property_value, _this.merge(args))
|
681
675
|
end
|
682
676
|
|
683
677
|
def get_hw_virt_ex_property(args={})
|
684
|
-
ensure_hash
|
678
|
+
ensure_hash args
|
685
679
|
VBox::WebService.send_request(:i_machine_get_hw_virt_ex_property, _this.merge(args))
|
686
680
|
end
|
687
681
|
|
688
682
|
def get_medium(args={})
|
689
|
-
ensure_hash
|
683
|
+
ensure_hash args
|
690
684
|
medium = VBox::WebService.send_request(:i_machine_get_medium, _this.merge(args))
|
691
685
|
VBox::Medium.new(medium)
|
692
686
|
end
|
693
687
|
|
694
688
|
def get_medium_attachment(args={})
|
695
|
-
ensure_hash
|
689
|
+
ensure_hash args
|
696
690
|
medium_attachment = VBox::WebService.send_request(:i_machine_get_medium_attachment, _this.merge(args))
|
697
691
|
VBox::Medium.new(medium_attachment)
|
698
692
|
end
|
699
693
|
|
700
694
|
def get_medium_attachments_of_controller(args={})
|
701
|
-
ensure_hash
|
695
|
+
ensure_hash args
|
702
696
|
medium_attachments_of_controller = VBox::WebService.send_request(:i_machine_get_medium_attachments_of_controller,
|
703
697
|
_this.merge(args))
|
704
698
|
medium_attachments_of_controller.to_a.map do |medium_attachment_of_controller|
|
@@ -707,112 +701,112 @@ module VBox
|
|
707
701
|
end
|
708
702
|
|
709
703
|
def get_network_adapter(args={})
|
710
|
-
ensure_hash
|
704
|
+
ensure_hash args
|
711
705
|
network_adapter = VBox::WebService.send_request(:i_machine_get_network_adapter, _this.merge(args))
|
712
706
|
VBox::NetworkAdapter.new(network_adapter)
|
713
707
|
end
|
714
708
|
|
715
709
|
def get_parallel_port(args={})
|
716
|
-
ensure_hash
|
710
|
+
ensure_hash args
|
717
711
|
parallel_port = VBox::WebService.send_request(:i_machine_get_parallel_port, _this.merge(args))
|
718
712
|
VBox::ParallelPort.new(parallel_port)
|
719
713
|
end
|
720
714
|
|
721
715
|
def get_serial_port(args={})
|
722
|
-
ensure_hash
|
716
|
+
ensure_hash args
|
723
717
|
serial = VBox::WebService.send_request(:i_machine_get_serial_port, _this.merge(args))
|
724
718
|
VBox::SerialPort.new(serial)
|
725
719
|
end
|
726
720
|
|
727
721
|
def get_storage_controller_by_instance(args={})
|
728
|
-
ensure_hash
|
722
|
+
ensure_hash args
|
729
723
|
storage_controller = VBox::WebService.send_request(:i_machine_get_storage_controller_by_instance,
|
730
724
|
_this.merge(args))
|
731
725
|
VBox::StorageController.new(storage_controller)
|
732
726
|
end
|
733
727
|
|
734
728
|
def get_storage_controller_by_name(args={})
|
735
|
-
ensure_hash
|
729
|
+
ensure_hash args
|
736
730
|
storage_controller = VBox::WebService.send_request(:i_machine_get_storage_controller_by_name, _this.merge(args))
|
737
731
|
VBox::StorageController.new(storage_controller)
|
738
732
|
end
|
739
733
|
|
740
734
|
def hot_plug_cpu(args={})
|
741
|
-
ensure_hash
|
735
|
+
ensure_hash args
|
742
736
|
VBox::WebService.send_request(:i_machine_hot_plug_cpu, _this.merge(args))
|
743
737
|
end
|
744
738
|
|
745
739
|
def hot_unplug_cpu(args={})
|
746
|
-
ensure_hash
|
740
|
+
ensure_hash args
|
747
741
|
VBox::WebService.send_request(:i_machine_hot_unplug_cpu, _this.merge(args))
|
748
742
|
end
|
749
743
|
|
750
744
|
def launch_vm_process(args={})
|
751
|
-
ensure_hash
|
752
|
-
args
|
745
|
+
ensure_hash args
|
746
|
+
args.referize! :session
|
753
747
|
progress = VBox::WebService.send_request(:i_machine_launch_vm_process, _this.merge(args))
|
754
748
|
VBox::Progress.new(progress)
|
755
749
|
end
|
756
750
|
|
757
751
|
def lock_machine(args={})
|
758
|
-
ensure_hash
|
759
|
-
args
|
752
|
+
ensure_hash args
|
753
|
+
args.referize! :session
|
760
754
|
VBox::WebService.send_request(:i_machine_lock_machine, _this.merge(args))
|
761
755
|
end
|
762
756
|
|
763
757
|
def mount_medium(args={})
|
764
|
-
ensure_hash
|
765
|
-
args
|
758
|
+
ensure_hash args
|
759
|
+
args.referize! :medium
|
766
760
|
VBox::WebService.send_request(:i_machine_mount_medium, _this.merge(args))
|
767
761
|
end
|
768
762
|
|
769
763
|
def non_rotational_device(args={})
|
770
|
-
ensure_hash
|
764
|
+
ensure_hash args
|
771
765
|
VBox::WebService.send_request(:i_machine_non_rotational_device, _this.merge(args))
|
772
766
|
end
|
773
767
|
|
774
768
|
def passthrough_device(args={})
|
775
|
-
ensure_hash
|
769
|
+
ensure_hash args
|
776
770
|
VBox::WebService.send_request(:i_machine_passthrough_device, _this.merge(args))
|
777
771
|
end
|
778
772
|
|
779
773
|
def query_log_filename(args={})
|
780
|
-
ensure_hash
|
774
|
+
ensure_hash args
|
781
775
|
VBox::WebService.send_request(:i_machine_query_log_filename, _this.merge(args))
|
782
776
|
end
|
783
777
|
|
784
778
|
def query_saved_guest_screen_info(args={})
|
785
|
-
ensure_hash
|
779
|
+
ensure_hash args
|
786
780
|
VBox::WebService.send_request(:i_machine_query_saved_guest_screen_info, _this.merge(args))
|
787
781
|
end
|
788
782
|
|
789
783
|
def query_saved_screenshot_png_size(args={})
|
790
|
-
ensure_hash
|
784
|
+
ensure_hash args
|
791
785
|
VBox::WebService.send_request(:i_machine_query_saved_screenshot_png_size, _this.merge(args))
|
792
786
|
end
|
793
787
|
|
794
788
|
def query_saved_thumbnail_size(args={})
|
795
|
-
ensure_hash
|
789
|
+
ensure_hash args
|
796
790
|
VBox::WebService.send_request(:i_machine_query_saved_thumbnail_size, _this.merge(args))
|
797
791
|
end
|
798
792
|
|
799
793
|
def read_log(args={})
|
800
|
-
ensure_hash
|
794
|
+
ensure_hash args
|
801
795
|
VBox::WebService.send_request(:i_machine_read_log, _this.merge(args))
|
802
796
|
end
|
803
797
|
|
804
798
|
def read_saved_screenshot_png_to_array(args={})
|
805
|
-
ensure_hash
|
799
|
+
ensure_hash args
|
806
800
|
VBox::WebService.send_request(:i_machine_read_saved_screenshot_png_to_array, _this.merge(args))
|
807
801
|
end
|
808
802
|
|
809
803
|
def read_saved_thumbnail_png_to_array(args={})
|
810
|
-
ensure_hash
|
804
|
+
ensure_hash args
|
811
805
|
VBox::WebService.send_request(:i_machine_read_saved_thumbnail_png_to_array, _this.merge(args))
|
812
806
|
end
|
813
807
|
|
814
808
|
def read_saved_thumbnail_to_array(args={})
|
815
|
-
ensure_hash
|
809
|
+
ensure_hash args
|
816
810
|
VBox::WebService.send_request(:i_machine_read_saved_thumbnail_to_array, _this.merge(args))
|
817
811
|
end
|
818
812
|
|
@@ -821,17 +815,17 @@ module VBox
|
|
821
815
|
end
|
822
816
|
|
823
817
|
def remove_cpuid_leaf(args={})
|
824
|
-
ensure_hash
|
818
|
+
ensure_hash args
|
825
819
|
VBox::WebService.send_request(:i_machine_remove_cpuid_leaf, _this.merge(args))
|
826
820
|
end
|
827
821
|
|
828
822
|
def remove_shared_folder(args={})
|
829
|
-
ensure_hash
|
823
|
+
ensure_hash args
|
830
824
|
VBox::WebService.send_request(:i_machine_remove_shared_folder, _this.merge(args))
|
831
825
|
end
|
832
826
|
|
833
827
|
def remove_storage_controller(args={})
|
834
|
-
ensure_hash
|
828
|
+
ensure_hash args
|
835
829
|
VBox::WebService.send_request(:i_machine_remove_storage_controller, _this.merge(args))
|
836
830
|
end
|
837
831
|
|
@@ -840,60 +834,58 @@ module VBox
|
|
840
834
|
end
|
841
835
|
|
842
836
|
def set_auto_discard_for_device(args={})
|
843
|
-
ensure_hash
|
837
|
+
ensure_hash args
|
844
838
|
VBox::WebService.send_request(:i_machine_set_auto_discard_for_device, _this.merge(args))
|
845
839
|
end
|
846
840
|
|
847
841
|
def set_bandwidth_group_for_device(args={})
|
848
|
-
ensure_hash
|
849
|
-
|
850
|
-
args[:bandwidth_group] = args[:bandwidth_group].ref
|
851
|
-
end
|
842
|
+
ensure_hash args
|
843
|
+
args.referize! :bandwidth_group
|
852
844
|
VBox::WebService.send_request(:i_machine_set_bandwidth_group_for_device, _this.merge(args))
|
853
845
|
end
|
854
846
|
|
855
847
|
def set_boot_order(args={})
|
856
|
-
ensure_hash
|
848
|
+
ensure_hash args
|
857
849
|
VBox::WebService.send_request(:i_machine_set_boot_order, _this.merge(args))
|
858
850
|
end
|
859
851
|
|
860
852
|
def set_cpuid_leaf(args={})
|
861
|
-
ensure_hash
|
853
|
+
ensure_hash args
|
862
854
|
VBox::WebService.send_request(:i_machine_set_cpuid_leaf, _this.merge(args))
|
863
855
|
end
|
864
856
|
|
865
857
|
def set_cpu_property(args={})
|
866
|
-
ensure_hash
|
858
|
+
ensure_hash args
|
867
859
|
VBox::WebService.send_request(:i_machine_set_cpu_property, _this.merge(args))
|
868
860
|
end
|
869
861
|
|
870
862
|
def set_extra_data(args={})
|
871
|
-
ensure_hash
|
863
|
+
ensure_hash args
|
872
864
|
VBox::WebService.send_request(:i_machine_set_extra_data, _this.merge(args))
|
873
865
|
end
|
874
866
|
|
875
867
|
def set_guest_property(args={})
|
876
|
-
ensure_hash
|
868
|
+
ensure_hash args
|
877
869
|
VBox::WebService.send_request(:i_machine_set_guest_property, _this.merge(args))
|
878
870
|
end
|
879
871
|
|
880
872
|
def set_guest_property_value(args={})
|
881
|
-
ensure_hash
|
873
|
+
ensure_hash args
|
882
874
|
VBox::WebService.send_request(:i_machine_set_guest_property_value, _this.merge(args))
|
883
875
|
end
|
884
876
|
|
885
877
|
def set_hw_virt_ex_property(args={})
|
886
|
-
ensure_hash
|
878
|
+
ensure_hash args
|
887
879
|
VBox::WebService.send_request(:i_machine_set_hw_virt_ex_property, _this.merge(args))
|
888
880
|
end
|
889
881
|
|
890
882
|
def set_no_bandwidth_group_for_device(args={})
|
891
|
-
ensure_hash
|
883
|
+
ensure_hash args
|
892
884
|
VBox::WebService.send_request(:i_machine_set_no_bandwidth_group_for_device, _this.merge(args))
|
893
885
|
end
|
894
886
|
|
895
887
|
def set_storage_controller_bootable(args={})
|
896
|
-
ensure_hash
|
888
|
+
ensure_hash args
|
897
889
|
VBox::WebService.send_request(:i_machine_set_storage_controller_bootable, _this.merge(args))
|
898
890
|
end
|
899
891
|
|
@@ -902,17 +894,17 @@ module VBox
|
|
902
894
|
end
|
903
895
|
|
904
896
|
def temporary_eject_device(args={})
|
905
|
-
ensure_hash
|
897
|
+
ensure_hash args
|
906
898
|
VBox::WebService.send_request(:i_machine_temporary_eject_device, _this.merge(args))
|
907
899
|
end
|
908
900
|
|
909
901
|
def umnount_medium(args={})
|
910
|
-
ensure_hash
|
902
|
+
ensure_hash args
|
911
903
|
VBox::WebService.send_request(:i_machine_umount_medium, _this.merge(args))
|
912
904
|
end
|
913
905
|
|
914
906
|
def unregister(args={})
|
915
|
-
ensure_hash
|
907
|
+
ensure_hash args
|
916
908
|
media = VBox::WebService.send_request(:i_machine_unregister, _this.merge(args))
|
917
909
|
media.to_a.map do |medium|
|
918
910
|
VBox::Medium.new(medium)
|