Class: VBox::NATEngine
- Inherits:
-
Base
- Object
- Base
- VBox::NATEngine
show all
- Defined in:
- lib/virtualbox/classes/nat_engine.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/nat_engine.rb', line 4
def ref
@ref
end
|
Instance Method Details
#add_redirect(args = {}) ⇒ Object
88
89
90
91
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 88
def add_redirect(args={})
ensure_hash(args)
VBox::WebService.send_request(:inat_engine_add_redirect, _this.merge(args))
end
|
#alias_mode ⇒ Object
49
50
51
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 49
def alias_mode
VBox::WebService.send_request(:inat_engine_get_alias_mode, _this)
end
|
#alias_mode=(alias_mode) ⇒ Object
53
54
55
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 53
def alias_mode=(alias_mode)
VBox::WebService.send_request(:inat_engine_set_alias_mode, _this.merge(:alias_mode => alias_mode))
end
|
#dns_pass_domain ⇒ Object
57
58
59
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 57
def dns_pass_domain
VBox::WebService.send_request(:inat_engine_get_dns_pass_domain, _this)
end
|
#dns_pass_domain=(dns_pass_domain) ⇒ Object
61
62
63
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 61
def dns_pass_domain=(dns_pass_domain)
VBox::WebService.send_request(:inat_engine_set_dns_pass_domain, _this.merge('DNSPassDomain' => dns_pass_domain))
end
|
#dns_proxy ⇒ Object
65
66
67
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 65
def dns_proxy
VBox::WebService.send_request(:inat_engine_get_dns_proxy, _this)
end
|
#dns_proxy=(dns_proxy) ⇒ Object
69
70
71
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 69
def dns_proxy=(dns_proxy)
VBox::WebService.send_request(:inat_engine_set_dns_proxy, _this.merge('DNSProxy' => dns_proxy))
end
|
#dns_use_host_resolver ⇒ Object
73
74
75
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 73
def dns_use_host_resolver
VBox::WebService.send_request(:inat_engine_get_dns_use_host_resolver, _this)
end
|
#dns_use_host_resolver=(dns_use_host_resolver) ⇒ Object
77
78
79
80
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 77
def dns_use_host_resolver=(dns_use_host_resolver)
VBox::WebService.send_request(:inat_engine_set_dns_use_host_resolver,
_this.merge('DNSUseHostResolver' => dns_use_host_resolver))
end
|
#get_network_settings ⇒ Object
93
94
95
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 93
def get_network_settings
VBox::WebService.send_request(:inat_engine_add_redirect, _this)
end
|
#host_ip ⇒ Object
16
17
18
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 16
def host_ip
VBox::WebService.send_request(:inat_engine_get_host_ip, _this)
end
|
#host_ip=(host_ip) ⇒ Object
20
21
22
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 20
def host_ip=(host_ip)
VBox::WebService.send_request(:inat_engine_set_host_ip, _this.merge(:host_ip => host_ip))
end
|
#network ⇒ Object
8
9
10
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 8
def network
VBox::WebService.send_request(:inat_engine_get_network, _this)
end
|
#network=(network) ⇒ Object
12
13
14
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 12
def network=(network)
VBox::WebService.send_request(:inat_engine_set_network, _this.merge(:network => network))
end
|
#redirects ⇒ Object
82
83
84
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 82
def redirects
VBox::WebService.send_request(:inat_engine_get_redirects, _this)
end
|
#remove_redirect(args = {}) ⇒ Object
97
98
99
100
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 97
def remove_redirect(args={})
ensure_hash(args)
VBox::WebService.send_request(:inat_engine_remove_redirect, _this.merge(args))
end
|
#set_network_settings(args = {}) ⇒ Object
102
103
104
105
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 102
def set_network_settings(args={})
ensure_hash(args)
VBox::WebService.send_request(:inat_engine_set_network_settings, _this.merge(args))
end
|
#tftp_boot_file ⇒ Object
32
33
34
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 32
def tftp_boot_file
VBox::WebService.send_request(:inat_engine_get_tftp_boot_file, _this)
end
|
#tftp_boot_file=(tftp_boot_file) ⇒ Object
36
37
38
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 36
def tftp_boot_file=(tftp_boot_file)
VBox::WebService.send_request(:inat_engine_set_tftp_boot_file, _this.merge('TFTPBootFile' => tftp_boot_file))
end
|
#tftp_next_server ⇒ Object
40
41
42
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 40
def tftp_next_server
VBox::WebService.send_request(:inat_engine_get_tftp_next_server, _this)
end
|
#tftp_next_server=(tftp_next_server) ⇒ Object
44
45
46
47
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 44
def tftp_next_server=(tftp_next_server)
VBox::WebService.send_request(:inat_engine_set_tftp_next_server,
_this.merge('TFTPNextServer' => tftp_next_server))
end
|
#tftp_prefix ⇒ Object
24
25
26
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 24
def tftp_prefix
VBox::WebService.send_request(:inat_engine_get_tftp_prefix, _this)
end
|
#tftp_prefix=(tftp_prefix) ⇒ Object
28
29
30
|
# File 'lib/virtualbox/classes/nat_engine.rb', line 28
def tftp_prefix=(tftp_prefix)
VBox::WebService.send_request(:inat_engine_set_tftp_prefix, _this.merge('TFTPPrefix' => tftp_prefix))
end
|