Class: VBox::NATEngine

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/nat_engine.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

#add_redirect(args = {}) ⇒ Object

Methods



86
87
88
89
# File 'lib/virtualbox/classes/nat_engine.rb', line 86

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

#alias_modeObject



47
48
49
# File 'lib/virtualbox/classes/nat_engine.rb', line 47

def alias_mode
  VBox::WebService.send_request(:inat_engine_get_alias_mode, _this)
end

#alias_mode=(alias_mode) ⇒ Object



51
52
53
# File 'lib/virtualbox/classes/nat_engine.rb', line 51

def alias_mode=(alias_mode)
  VBox::WebService.send_request(:inat_engine_set_alias_mode, _this.merge(:alias_mode => alias_mode))
end

#dns_pass_domainObject



55
56
57
# File 'lib/virtualbox/classes/nat_engine.rb', line 55

def dns_pass_domain
  VBox::WebService.send_request(:inat_engine_get_dns_pass_domain, _this)
end

#dns_pass_domain=(dns_pass_domain) ⇒ Object



59
60
61
# File 'lib/virtualbox/classes/nat_engine.rb', line 59

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_proxyObject



63
64
65
# File 'lib/virtualbox/classes/nat_engine.rb', line 63

def dns_proxy
  VBox::WebService.send_request(:inat_engine_get_dns_proxy, _this)
end

#dns_proxy=(dns_proxy) ⇒ Object



67
68
69
# File 'lib/virtualbox/classes/nat_engine.rb', line 67

def dns_proxy=(dns_proxy)
  VBox::WebService.send_request(:inat_engine_set_dns_proxy, _this.merge('DNSProxy' => dns_proxy))
end

#dns_use_host_resolverObject



71
72
73
# File 'lib/virtualbox/classes/nat_engine.rb', line 71

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



75
76
77
78
# File 'lib/virtualbox/classes/nat_engine.rb', line 75

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_settingsObject



91
92
93
# File 'lib/virtualbox/classes/nat_engine.rb', line 91

def get_network_settings
  VBox::WebService.send_request(:inat_engine_add_redirect, _this)
end

#host_ipObject



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

def host_ip
  VBox::WebService.send_request(:inat_engine_get_host_ip, _this)
end

#host_ip=(host_ip) ⇒ Object



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

def host_ip=(host_ip)
  VBox::WebService.send_request(:inat_engine_set_host_ip, _this.merge(:host_ip => host_ip))
end

#networkObject

Attributes



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

def network
  VBox::WebService.send_request(:inat_engine_get_network, _this)
end

#network=(network) ⇒ Object



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

def network=(network)
  VBox::WebService.send_request(:inat_engine_set_network, _this.merge(:network => network))
end

#redirectsObject



80
81
82
# File 'lib/virtualbox/classes/nat_engine.rb', line 80

def redirects
  VBox::WebService.send_request(:inat_engine_get_redirects, _this)
end

#remove_redirect(args = {}) ⇒ Object



95
96
97
98
# File 'lib/virtualbox/classes/nat_engine.rb', line 95

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

#set_network_settings(args = {}) ⇒ Object



100
101
102
103
# File 'lib/virtualbox/classes/nat_engine.rb', line 100

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

#tftp_boot_fileObject



30
31
32
# File 'lib/virtualbox/classes/nat_engine.rb', line 30

def tftp_boot_file
  VBox::WebService.send_request(:inat_engine_get_tftp_boot_file, _this)
end

#tftp_boot_file=(tftp_boot_file) ⇒ Object



34
35
36
# File 'lib/virtualbox/classes/nat_engine.rb', line 34

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_serverObject



38
39
40
# File 'lib/virtualbox/classes/nat_engine.rb', line 38

def tftp_next_server
  VBox::WebService.send_request(:inat_engine_get_tftp_next_server, _this)
end

#tftp_next_server=(tftp_next_server) ⇒ Object



42
43
44
45
# File 'lib/virtualbox/classes/nat_engine.rb', line 42

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_prefixObject



22
23
24
# File 'lib/virtualbox/classes/nat_engine.rb', line 22

def tftp_prefix
  VBox::WebService.send_request(:inat_engine_get_tftp_prefix, _this)
end

#tftp_prefix=(tftp_prefix) ⇒ Object



26
27
28
# File 'lib/virtualbox/classes/nat_engine.rb', line 26

def tftp_prefix=(tftp_prefix)
  VBox::WebService.send_request(:inat_engine_set_tftp_prefix, _this.merge('TFTPPrefix' => tftp_prefix))
end