Class: VBox::Guest

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/guest.rb

Instance Attribute Summary

Attributes inherited from Base

#ref

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 Method Details

#additions_revisionObject



18
19
20
# File 'lib/virtualbox/classes/guest.rb', line 18

def additions_revision
  VBox::WebService.send_request(:i_guest_get_additions_revision, _this)
end

#additions_run_levelObject



10
11
12
# File 'lib/virtualbox/classes/guest.rb', line 10

def additions_run_level
  VBox::WebService.send_request(:i_guest_get_additions_run_level, _this)
end

#additions_versionObject



14
15
16
# File 'lib/virtualbox/classes/guest.rb', line 14

def additions_version
  VBox::WebService.send_request(:i_guest_get_additions_version, _this)
end

#create_session(args = {}) ⇒ Object

Methods



56
57
58
59
60
# File 'lib/virtualbox/classes/guest.rb', line 56

def create_session(args={})
  ensure_hash args
  guest_session = VBox::WebService.send_request(:i_guest_create_session, _this.merge(args))
  VBox::GuestSession.new(guest_session)
end

#drag_gh_dropped(args = {}) ⇒ Object



62
63
64
65
66
# File 'lib/virtualbox/classes/guest.rb', line 62

def drag_gh_dropped(args={})
  ensure_hash args
  progress = VBox::WebService.send_request(:i_guest_drag_gh_dropped, _this.merge(args))
  VBox::Progress.new(progress)
end

#drag_gh_get_dataObject



68
69
70
# File 'lib/virtualbox/classes/guest.rb', line 68

def drag_gh_get_data
  VBox::WebService.send_request(:i_guest_drag_gh_get_data, _this)
end

#drag_gh_pending(args = {}) ⇒ Object



72
73
74
75
# File 'lib/virtualbox/classes/guest.rb', line 72

def drag_gh_pending(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_drag_gh_pending, _this.merge(args))
end

#drag_hg_drop(args = {}) ⇒ Object



77
78
79
80
# File 'lib/virtualbox/classes/guest.rb', line 77

def drag_hg_drop(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_drag_hg_drop, _this.merge(args))
end

#drag_hg_enter(args = {}) ⇒ Object



82
83
84
85
# File 'lib/virtualbox/classes/guest.rb', line 82

def drag_hg_enter(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_drag_hg_enter, _this.merge(args))
end

#drag_hg_leave(args = {}) ⇒ Object



87
88
89
90
# File 'lib/virtualbox/classes/guest.rb', line 87

def drag_hg_leave(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_drag_hg_leave, _this.merge(args))
end

#drag_hg_move(args = {}) ⇒ Object



92
93
94
95
# File 'lib/virtualbox/classes/guest.rb', line 92

def drag_hg_move(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_drag_hg_move, _this.merge(args))
end

#drag_hg_put_data(args = {}) ⇒ Object



97
98
99
100
101
# File 'lib/virtualbox/classes/guest.rb', line 97

def drag_hg_put_data(args={})
  ensure_hash args
  progress = VBox::WebService.send_request(:i_guest_drag_hg_put_data, _this.merge(args))
  VBox::Progress.new(progress)
end

#facilitiesObject



22
23
24
25
26
27
# File 'lib/virtualbox/classes/guest.rb', line 22

def facilities
  additions_facilities = VBox::WebService.send_request(:i_guest_get_facilities, _this)
  additions_facilities.map do |additions_facility|
    VBox::AdditionsFacility.new(additions_facility)
  end
end

#find_session(args = {}) ⇒ Object



103
104
105
106
107
# File 'lib/virtualbox/classes/guest.rb', line 103

def find_session(args={})
  ensure_hash args
  guest_session = VBox::WebService.send_request(:i_guest_find_session, _this.merge(args))
  VBox::GuestSession.new(guest_session)
end

#get_additions_statusObject



109
110
111
# File 'lib/virtualbox/classes/guest.rb', line 109

def get_additions_status
  VBox::WebService.send_request(:i_guest_get_additions_status, _this)
end

#get_facility_statusObject



113
114
115
# File 'lib/virtualbox/classes/guest.rb', line 113

def get_facility_status
  VBox::WebService.send_request(:i_guest_get_facility_status, _this)
end

#internal_get_facility_statisticsObject



117
118
119
# File 'lib/virtualbox/classes/guest.rb', line 117

def internal_get_facility_statistics
  VBox::WebService.send_request(:i_guest_internal_get_facility_statistics, _this)
end

#memory_balloon_sizeObject



36
37
38
# File 'lib/virtualbox/classes/guest.rb', line 36

def memory_balloon_size
  VBox::WebService.send_request(:i_guest_get_memory_balloon_size, _this)
end

#memory_balloon_size=(memory_balloon_size) ⇒ Object



40
41
42
43
# File 'lib/virtualbox/classes/guest.rb', line 40

def memory_balloon_size=(memory_balloon_size)
  VBox::WebService.send_request(:i_guest_set_memory_balloon_size,
                                _this.merge(:memory_balloon_size => memory_balloon_size))
end

#os_type_idObject

Attributes



6
7
8
# File 'lib/virtualbox/classes/guest.rb', line 6

def os_type_id
  VBox::WebService.send_request(:i_guest_get_os_type_id, _this)
end

#sessionsObject



29
30
31
32
33
34
# File 'lib/virtualbox/classes/guest.rb', line 29

def sessions
  sessions = VBox::WebService.send_request(:i_guest_get_sessions, _this)
  sessions.map do |session|
    VBox::GuestSession.new(session)
  end
end

#set_credentials(args = {}) ⇒ Object



121
122
123
124
# File 'lib/virtualbox/classes/guest.rb', line 121

def set_credentials(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_guest_set_credentials, _this.merge(args))
end

#statistics_update_intervalObject



45
46
47
# File 'lib/virtualbox/classes/guest.rb', line 45

def statistics_update_interval
  VBox::WebService.send_request(:i_guest_get_statistics_update_interval, _this)
end

#statistics_update_interval=(statistics_update_interval) ⇒ Object



49
50
51
52
# File 'lib/virtualbox/classes/guest.rb', line 49

def statistics_update_interval=(statistics_update_interval)
  VBox::WebService.send_request(:i_guest_set_statistics_update_interval,
                                _this.merge(:statistics_update_interval => statistics_update_interval))
end

#update_guest_additions(args = {}) ⇒ Object



126
127
128
129
130
# File 'lib/virtualbox/classes/guest.rb', line 126

def update_guest_additions(args={})
  ensure_hash args
  progress = VBox::WebService.send_request(:i_guest_update_guest_additions, _this.merge(args))
  VBox::Progress.new(progress)
end