Class: VBox::GuestSession
- Inherits:
-
Base
- Object
- Base
- VBox::GuestSession
show all
- Defined in:
- lib/virtualbox/classes/guest_session.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/guest_session.rb', line 4
def ref
@ref
end
|
Instance Method Details
#close ⇒ Object
63
64
65
|
# File 'lib/virtualbox/classes/guest_session.rb', line 63
def close
VBox::WebService.send_request(:i_guest_session_close, _this)
end
|
#copy_from(args = {}) ⇒ Object
67
68
69
70
71
|
# File 'lib/virtualbox/classes/guest_session.rb', line 67
def copy_from(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_guest_session_copy_from, _this.merge(args))
VBox::Progress.new(progress)
end
|
#copy_to(args = {}) ⇒ Object
73
74
75
76
77
|
# File 'lib/virtualbox/classes/guest_session.rb', line 73
def copy_to(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_guest_session_copy_to, _this.merge(args))
VBox::Progress.new(progress)
end
|
#directories ⇒ Object
47
48
49
50
51
52
|
# File 'lib/virtualbox/classes/guest_session.rb', line 47
def directories
directories = VBox::WebService.send_request(:i_guest_session_get_directories, _this)
directories.map do |directory|
VBox::GuestDirectory.new(directory)
end
end
|
#directory_create(args = {}) ⇒ Object
79
80
81
82
|
# File 'lib/virtualbox/classes/guest_session.rb', line 79
def directory_create(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_create, _this.merge(args))
end
|
#directory_create_temp(args = {}) ⇒ Object
84
85
86
87
|
# File 'lib/virtualbox/classes/guest_session.rb', line 84
def directory_create_temp(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_create_temp, _this.merge(args))
end
|
#directory_exists(args = {}) ⇒ Object
89
90
91
92
|
# File 'lib/virtualbox/classes/guest_session.rb', line 89
def directory_exists(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_exists, _this.merge(args))
end
|
#directory_open(args = {}) ⇒ Object
94
95
96
97
98
|
# File 'lib/virtualbox/classes/guest_session.rb', line 94
def directory_open(args={})
ensure_hash(args)
guest_directory = VBox::WebService.send_request(:i_guest_session_directory_open, _this.merge(args))
VBox::GuestDirectory.new(guest_directory)
end
|
#directory_query_info(args = {}) ⇒ Object
100
101
102
103
104
|
# File 'lib/virtualbox/classes/guest_session.rb', line 100
def directory_query_info(args={})
ensure_hash(args)
fs_obj_info = VBox::WebService.send_request(:i_guest_session_directory_query_info, _this.merge(args))
VBox::GuestFsObjInfo.new(fs_obj_info)
end
|
#directory_remove(args = {}) ⇒ Object
106
107
108
109
|
# File 'lib/virtualbox/classes/guest_session.rb', line 106
def directory_remove(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_remove, _this.merge(args))
end
|
#directory_remove_recursive(args = {}) ⇒ Object
111
112
113
114
115
|
# File 'lib/virtualbox/classes/guest_session.rb', line 111
def directory_remove_recursive(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_guest_session_directory_remove_recursive, _this.merge(args))
VBox::Progress.new(progress)
end
|
#directory_rename(args = {}) ⇒ Object
117
118
119
120
|
# File 'lib/virtualbox/classes/guest_session.rb', line 117
def directory_rename(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_rename, _this.merge(args))
end
|
#directory_set_acl(args = {}) ⇒ Object
122
123
124
125
|
# File 'lib/virtualbox/classes/guest_session.rb', line 122
def directory_set_acl(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_directory_set_acl, _this.merge(args))
end
|
#domain ⇒ Object
12
13
14
|
# File 'lib/virtualbox/classes/guest_session.rb', line 12
def domain
VBox::WebService.send_request(:i_guest_session_get_domain, _this)
end
|
#environment ⇒ Object
32
33
34
|
# File 'lib/virtualbox/classes/guest_session.rb', line 32
def environment
VBox::WebService.send_request(:i_guest_session_get_environment, _this)
end
|
#environment=(environment) ⇒ Object
36
37
38
|
# File 'lib/virtualbox/classes/guest_session.rb', line 36
def environment=(environment)
VBox::WebService.send_request(:i_guest_session_set_environment, _this.merge(:environment => environment))
end
|
#environment_clear ⇒ Object
127
128
129
|
# File 'lib/virtualbox/classes/guest_session.rb', line 127
def environment_clear
VBox::WebService.send_request(:i_guest_session_environment_clear, _this)
end
|
#environment_get(args = {}) ⇒ Object
131
132
133
134
|
# File 'lib/virtualbox/classes/guest_session.rb', line 131
def environment_get(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_environment_get, _this.merge(args))
end
|
#environment_set(args = {}) ⇒ Object
136
137
138
139
|
# File 'lib/virtualbox/classes/guest_session.rb', line 136
def environment_set(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_environment_set, _this.merge(args))
end
|
#environment_unset(args = {}) ⇒ Object
141
142
143
144
|
# File 'lib/virtualbox/classes/guest_session.rb', line 141
def environment_unset(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_environment_unset, _this.merge(args))
end
|
#file_create_temp(args = {}) ⇒ Object
146
147
148
149
150
|
# File 'lib/virtualbox/classes/guest_session.rb', line 146
def file_create_temp(args={})
ensure_hash(args)
guest_file = VBox::WebService.send_request(:i_guest_session_file_create_temp, _this.merge(args))
VBox::GuestFile.new(guest_file)
end
|
#file_exists(args = {}) ⇒ Object
152
153
154
155
|
# File 'lib/virtualbox/classes/guest_session.rb', line 152
def file_exists(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_file_exists, _this.merge(args))
end
|
#file_open(args = {}) ⇒ Object
157
158
159
160
161
|
# File 'lib/virtualbox/classes/guest_session.rb', line 157
def file_open(args={})
ensure_hash(args)
guest_file = VBox::WebService.send_request(:i_guest_session_file_open, _this.merge(args))
VBox::GuestFile.new(guest_file)
end
|
#file_query_info(args = {}) ⇒ Object
163
164
165
166
167
|
# File 'lib/virtualbox/classes/guest_session.rb', line 163
def file_query_info(args={})
ensure_hash(args)
fs_obj_info = VBox::WebService.send_request(:i_guest_session_file_query_info, _this.merge(args))
VBox::GuestFsObjInfo.new(fs_obj_info)
end
|
#file_query_size(args = {}) ⇒ Object
169
170
171
172
|
# File 'lib/virtualbox/classes/guest_session.rb', line 169
def file_query_size(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_file_query_size, _this.merge(args))
end
|
#file_remove(args = {}) ⇒ Object
174
175
176
177
|
# File 'lib/virtualbox/classes/guest_session.rb', line 174
def file_remove(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_file_remove, _this.merge(args))
end
|
#file_rename(args = {}) ⇒ Object
179
180
181
182
|
# File 'lib/virtualbox/classes/guest_session.rb', line 179
def file_rename(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_file_rename, _this.merge(args))
end
|
#file_set_acl(args = {}) ⇒ Object
184
185
186
187
|
# File 'lib/virtualbox/classes/guest_session.rb', line 184
def file_set_acl(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_file_set_acl, _this.merge(args))
end
|
#files ⇒ Object
54
55
56
57
58
59
|
# File 'lib/virtualbox/classes/guest_session.rb', line 54
def files
files = VBox::WebService.send_request(:i_guest_session_get_files, _this)
files.map do |file|
VBox::GuestFile.new(file)
end
end
|
#id ⇒ Object
20
21
22
|
# File 'lib/virtualbox/classes/guest_session.rb', line 20
def id
VBox::WebService.send_request(:i_guest_session_get_id, _this)
end
|
#name ⇒ Object
16
17
18
|
# File 'lib/virtualbox/classes/guest_session.rb', line 16
def name
VBox::WebService.send_request(:i_guest_session_get_name, _this)
end
|
#process_create(args = {}) ⇒ Object
189
190
191
192
193
|
# File 'lib/virtualbox/classes/guest_session.rb', line 189
def process_create(args={})
ensure_hash(args)
guest_process = VBox::WebService.send_request(:i_guest_session_process_create, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#process_create_ex(args = {}) ⇒ Object
195
196
197
198
199
|
# File 'lib/virtualbox/classes/guest_session.rb', line 195
def process_create_ex(args={})
ensure_hash(args)
guest_process = VBox::WebService.send_request(:i_guest_session_process_create_ex, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#process_get(args = {}) ⇒ Object
201
202
203
204
205
|
# File 'lib/virtualbox/classes/guest_session.rb', line 201
def process_get(args={})
ensure_hash(args)
guest_process = VBox::WebService.send_request(:i_guest_session_process_get, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#processes ⇒ Object
40
41
42
43
44
45
|
# File 'lib/virtualbox/classes/guest_session.rb', line 40
def processes
guest_processes = VBox::WebService.send_request(:i_guest_session_get_processes, _this)
guest_processes.map do |guest_process|
VBox::GuestProcess.new(guest_process)
end
end
|
#symlink_create(args = {}) ⇒ Object
207
208
209
210
|
# File 'lib/virtualbox/classes/guest_session.rb', line 207
def symlink_create(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_symlink_create, _this.merge(args))
end
|
#symlink_exists(args = {}) ⇒ Object
212
213
214
215
|
# File 'lib/virtualbox/classes/guest_session.rb', line 212
def symlink_exists(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_symlink_exists, _this.merge(args))
end
|
#symlink_read(args = {}) ⇒ Object
217
218
219
220
|
# File 'lib/virtualbox/classes/guest_session.rb', line 217
def symlink_read(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_symlink_read, _this.merge(args))
end
|
#symlink_remove_directory(args = {}) ⇒ Object
222
223
224
225
|
# File 'lib/virtualbox/classes/guest_session.rb', line 222
def symlink_remove_directory(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_symlink_remove_directory, _this.merge(args))
end
|
#symlink_remove_file(args = {}) ⇒ Object
227
228
229
230
|
# File 'lib/virtualbox/classes/guest_session.rb', line 227
def symlink_remove_file(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_guest_session_symlink_remove_file, _this.merge(args))
end
|
#timeout ⇒ Object
24
25
26
|
# File 'lib/virtualbox/classes/guest_session.rb', line 24
def timeout
VBox::WebService.send_request(:i_guest_session_get_timeout, _this)
end
|
#timeout=(timeout) ⇒ Object
28
29
30
|
# File 'lib/virtualbox/classes/guest_session.rb', line 28
def timeout=(timeout)
VBox::WebService.send_request(:i_guest_session_set_timeout, _this.merge(:timeout => timeout))
end
|
#user ⇒ Object
8
9
10
|
# File 'lib/virtualbox/classes/guest_session.rb', line 8
def user
VBox::WebService.send_request(:i_guest_session_get_user, _this)
end
|