nettica 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +13 -0
- data/README.txt +50 -0
- data/Rakefile +19 -0
- data/bin/nettica +44 -0
- data/lib/nettica.rb +3 -0
- data/lib/nettica/client.rb +74 -0
- data/lib/nettica/stubs/DnsApiAsmxClient.rb +136 -0
- data/lib/nettica/stubs/nettica.rb +373 -0
- data/lib/nettica/stubs/nettica.wsdl +418 -0
- data/lib/nettica/stubs/netticaDriver.rb +123 -0
- data/lib/nettica/stubs/netticaMappingRegistry.rb +333 -0
- data/test/test_nettica.rb +0 -0
- metadata +85 -0
data/History.txt
ADDED
data/Manifest.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
History.txt
|
2
|
+
Manifest.txt
|
3
|
+
README.txt
|
4
|
+
Rakefile
|
5
|
+
bin/nettica
|
6
|
+
lib/nettica.rb
|
7
|
+
lib/nettica/client.rb
|
8
|
+
lib/nettica/stubs/DnsApiAsmxClient.rb
|
9
|
+
lib/nettica/stubs/nettica.rb
|
10
|
+
lib/nettica/stubs/nettica.wsdl
|
11
|
+
lib/nettica/stubs/netticaDriver.rb
|
12
|
+
lib/nettica/stubs/netticaMappingRegistry.rb
|
13
|
+
test/test_nettica.rb
|
data/README.txt
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
nettica
|
2
|
+
by Matt Conway
|
3
|
+
http://simplygenius.com
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
A ruby client for managing nettica bulk-dns entries using the Nettica SOAP API
|
8
|
+
|
9
|
+
== FEATURES/PROBLEMS:
|
10
|
+
|
11
|
+
* A thin wrapper for convenience around the soap4r generated stubs for the nettica wsdl.
|
12
|
+
|
13
|
+
== SYNOPSIS:
|
14
|
+
|
15
|
+
require 'nettica/client'
|
16
|
+
client = Neticca::Client.new('joe_user', 'secret_password')
|
17
|
+
puts client.list_zones
|
18
|
+
|
19
|
+
== REQUIREMENTS:
|
20
|
+
|
21
|
+
* soap4r gem
|
22
|
+
|
23
|
+
== INSTALL:
|
24
|
+
|
25
|
+
* sudo gem install nettica
|
26
|
+
|
27
|
+
== LICENSE:
|
28
|
+
|
29
|
+
(The MIT License)
|
30
|
+
|
31
|
+
Copyright (c) 2008 FIX
|
32
|
+
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
34
|
+
a copy of this software and associated documentation files (the
|
35
|
+
'Software'), to deal in the Software without restriction, including
|
36
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
37
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
38
|
+
permit persons to whom the Software is furnished to do so, subject to
|
39
|
+
the following conditions:
|
40
|
+
|
41
|
+
The above copyright notice and this permission notice shall be
|
42
|
+
included in all copies or substantial portions of the Software.
|
43
|
+
|
44
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
45
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
46
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
47
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
48
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
49
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
50
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'hoe'
|
5
|
+
require './lib/nettica.rb'
|
6
|
+
|
7
|
+
Hoe.new('nettica', Nettica::VERSION) do |p|
|
8
|
+
p.rubyforge_name = 'nettica'
|
9
|
+
p.author = 'Matt Conway'
|
10
|
+
p.email = 'wr0ngway@yahoo.com'
|
11
|
+
p.summary = 'A ruby client for managing nettica bulk-dns entries using the Nettica SOAP API'
|
12
|
+
# p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
|
13
|
+
# p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
|
14
|
+
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
15
|
+
p.extra_deps << ['soap4r']
|
16
|
+
p.remote_rdoc_dir = '' # Release to root
|
17
|
+
end
|
18
|
+
|
19
|
+
# vim: syntax=Ruby
|
data/bin/nettica
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require 'ostruct'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
require 'nettica/client'
|
8
|
+
|
9
|
+
options = OpenStruct.new
|
10
|
+
|
11
|
+
opts = OptionParser.new do |opts|
|
12
|
+
opts.banner = "Usage: nettica -u username -p password -c command"
|
13
|
+
opts.separator "Runs the given nettica service command"
|
14
|
+
opts.separator ""
|
15
|
+
opts.separator "Options:"
|
16
|
+
|
17
|
+
opts.on("-u", "--user USER", "Nettica username to use for authentication") do |val|
|
18
|
+
options.username = val
|
19
|
+
end
|
20
|
+
opts.on("-p", "--password PASSWORD", "Nettica password to use for authentication") do |val|
|
21
|
+
options.password = val
|
22
|
+
end
|
23
|
+
opts.on("-c", "--command COMMAND", [:list_zones, :get_service_info],
|
24
|
+
"Command to execute against nettica service.",
|
25
|
+
"One of list_zones, get_service_info") do |val|
|
26
|
+
options.command = val
|
27
|
+
end
|
28
|
+
|
29
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
30
|
+
puts opts
|
31
|
+
exit
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
begin
|
36
|
+
args = opts.parse!(ARGV)
|
37
|
+
raise "Missing required flag" if ! options.username || ! options.password || ! options.command
|
38
|
+
rescue Exception => e
|
39
|
+
puts e, "", opts
|
40
|
+
exit
|
41
|
+
end
|
42
|
+
|
43
|
+
client = Nettica::Client.new(options.username, options.password)
|
44
|
+
puts client.send(options.command).inspect
|
data/lib/nettica.rb
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
gem 'soap4r'
|
3
|
+
require "nettica/stubs/netticaDriver"
|
4
|
+
require 'base64'
|
5
|
+
|
6
|
+
# http://dev.ctor.org/soap4r
|
7
|
+
# http://markthomas.org/2007/09/12/getting-started-with-soap4r/
|
8
|
+
# wsdl2ruby.rb --module_path Nettica::Stubs --wsdl 'https://www.nettica.com/DNS/DnsApi.asmx?WSDL' --type client --classdef nettica --force
|
9
|
+
|
10
|
+
module Nettica
|
11
|
+
|
12
|
+
class Client
|
13
|
+
|
14
|
+
include Nettica::Stubs
|
15
|
+
|
16
|
+
def initialize(username, password)
|
17
|
+
@username = username
|
18
|
+
@password = Base64.encode64(password).strip
|
19
|
+
@proxy = DnsApiAsmxSoap.new
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
# domainName - SOAP::SOAPString
|
24
|
+
# hostName - SOAP::SOAPString
|
25
|
+
# recordType - SOAP::SOAPString
|
26
|
+
# data - SOAP::SOAPString
|
27
|
+
# ttl - SOAP::SOAPInt
|
28
|
+
# priority - SOAP::SOAPInt
|
29
|
+
def self.create_domain_record(domainName = nil, hostName = nil, recordType = nil, data = nil, ttl = nil, priority = nil)
|
30
|
+
DomainRecord.new(domainName, hostName, recordType, data, ttl, priority)
|
31
|
+
end
|
32
|
+
|
33
|
+
def update_record(old_domain_record, new_domain_record)
|
34
|
+
@proxy.updateRecord(UpdateRecord.new(@username, @password, old_domain_record, new_domain_record)).updateRecordResult
|
35
|
+
end
|
36
|
+
|
37
|
+
def delete_record(domain_record)
|
38
|
+
@proxy.deleteRecord(DeleteRecord.new(@username, @password, domain_record)).deleteRecordResult
|
39
|
+
end
|
40
|
+
|
41
|
+
def list_zones()
|
42
|
+
@proxy.listZones(ListZones.new(@username, @password)).listZonesResult
|
43
|
+
end
|
44
|
+
|
45
|
+
def apply_template(domainName, groupName)
|
46
|
+
@proxy.applyTemplate(ApplyTemplate.new(@username, @password, domainName, groupName)).applyTemplateResult
|
47
|
+
end
|
48
|
+
|
49
|
+
def list_domain(domainName)
|
50
|
+
@proxy.listDomain(ListDomain.new(@username, @password, domainName)).listDomainResult
|
51
|
+
end
|
52
|
+
|
53
|
+
def create_secondary_zone(domainName, master, ipAddress)
|
54
|
+
@proxy.createSecondaryZone(CreateSecondaryZone.new(@username, @password, domainName, master, ipAddress)).createSecondaryZoneResult
|
55
|
+
end
|
56
|
+
|
57
|
+
def get_service_info()
|
58
|
+
@proxy.getServiceInfo(GetServiceInfo.new(@username, @password)).getServiceInfoResult
|
59
|
+
end
|
60
|
+
|
61
|
+
def delete_zone(domainName)
|
62
|
+
@proxy.deleteZone(DeleteZone.new(@username, @password, domainName)).deleteZoneResult
|
63
|
+
end
|
64
|
+
|
65
|
+
def create_zone(domainName, ipAddress)
|
66
|
+
@proxy.createZone(CreateZone.new(@username, @password, domainName, ipAddress)).createZoneResult
|
67
|
+
end
|
68
|
+
|
69
|
+
def add_record(domain_record)
|
70
|
+
@proxy.addRecord(AddRecord.new(@username, @password, domain_record)).addRecordResult
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'nettica/stubs/netticaDriver.rb'
|
3
|
+
|
4
|
+
|
5
|
+
module Nettica::Stubs
|
6
|
+
|
7
|
+
endpoint_url = ARGV.shift
|
8
|
+
obj = DnsApiAsmxSoap.new(endpoint_url)
|
9
|
+
|
10
|
+
# run ruby with -d to see SOAP wiredumps.
|
11
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
12
|
+
|
13
|
+
# SYNOPSIS
|
14
|
+
# GetServiceInfo(parameters)
|
15
|
+
#
|
16
|
+
# ARGS
|
17
|
+
# parameters GetServiceInfo - {http://www.nettica.com/DNS/DnsApi}GetServiceInfo
|
18
|
+
#
|
19
|
+
# RETURNS
|
20
|
+
# parameters GetServiceInfoResponse - {http://www.nettica.com/DNS/DnsApi}GetServiceInfoResponse
|
21
|
+
#
|
22
|
+
parameters = nil
|
23
|
+
puts obj.getServiceInfo(parameters)
|
24
|
+
|
25
|
+
# SYNOPSIS
|
26
|
+
# CreateZone(parameters)
|
27
|
+
#
|
28
|
+
# ARGS
|
29
|
+
# parameters CreateZone - {http://www.nettica.com/DNS/DnsApi}CreateZone
|
30
|
+
#
|
31
|
+
# RETURNS
|
32
|
+
# parameters CreateZoneResponse - {http://www.nettica.com/DNS/DnsApi}CreateZoneResponse
|
33
|
+
#
|
34
|
+
parameters = nil
|
35
|
+
puts obj.createZone(parameters)
|
36
|
+
|
37
|
+
# SYNOPSIS
|
38
|
+
# CreateSecondaryZone(parameters)
|
39
|
+
#
|
40
|
+
# ARGS
|
41
|
+
# parameters CreateSecondaryZone - {http://www.nettica.com/DNS/DnsApi}CreateSecondaryZone
|
42
|
+
#
|
43
|
+
# RETURNS
|
44
|
+
# parameters CreateSecondaryZoneResponse - {http://www.nettica.com/DNS/DnsApi}CreateSecondaryZoneResponse
|
45
|
+
#
|
46
|
+
parameters = nil
|
47
|
+
puts obj.createSecondaryZone(parameters)
|
48
|
+
|
49
|
+
# SYNOPSIS
|
50
|
+
# DeleteZone(parameters)
|
51
|
+
#
|
52
|
+
# ARGS
|
53
|
+
# parameters DeleteZone - {http://www.nettica.com/DNS/DnsApi}DeleteZone
|
54
|
+
#
|
55
|
+
# RETURNS
|
56
|
+
# parameters DeleteZoneResponse - {http://www.nettica.com/DNS/DnsApi}DeleteZoneResponse
|
57
|
+
#
|
58
|
+
parameters = nil
|
59
|
+
puts obj.deleteZone(parameters)
|
60
|
+
|
61
|
+
# SYNOPSIS
|
62
|
+
# ListZones(parameters)
|
63
|
+
#
|
64
|
+
# ARGS
|
65
|
+
# parameters ListZones - {http://www.nettica.com/DNS/DnsApi}ListZones
|
66
|
+
#
|
67
|
+
# RETURNS
|
68
|
+
# parameters ListZonesResponse - {http://www.nettica.com/DNS/DnsApi}ListZonesResponse
|
69
|
+
#
|
70
|
+
parameters = nil
|
71
|
+
puts obj.listZones(parameters)
|
72
|
+
|
73
|
+
# SYNOPSIS
|
74
|
+
# ListDomain(parameters)
|
75
|
+
#
|
76
|
+
# ARGS
|
77
|
+
# parameters ListDomain - {http://www.nettica.com/DNS/DnsApi}ListDomain
|
78
|
+
#
|
79
|
+
# RETURNS
|
80
|
+
# parameters ListDomainResponse - {http://www.nettica.com/DNS/DnsApi}ListDomainResponse
|
81
|
+
#
|
82
|
+
parameters = nil
|
83
|
+
puts obj.listDomain(parameters)
|
84
|
+
|
85
|
+
# SYNOPSIS
|
86
|
+
# AddRecord(parameters)
|
87
|
+
#
|
88
|
+
# ARGS
|
89
|
+
# parameters AddRecord - {http://www.nettica.com/DNS/DnsApi}AddRecord
|
90
|
+
#
|
91
|
+
# RETURNS
|
92
|
+
# parameters AddRecordResponse - {http://www.nettica.com/DNS/DnsApi}AddRecordResponse
|
93
|
+
#
|
94
|
+
parameters = nil
|
95
|
+
puts obj.addRecord(parameters)
|
96
|
+
|
97
|
+
# SYNOPSIS
|
98
|
+
# UpdateRecord(parameters)
|
99
|
+
#
|
100
|
+
# ARGS
|
101
|
+
# parameters UpdateRecord - {http://www.nettica.com/DNS/DnsApi}UpdateRecord
|
102
|
+
#
|
103
|
+
# RETURNS
|
104
|
+
# parameters UpdateRecordResponse - {http://www.nettica.com/DNS/DnsApi}UpdateRecordResponse
|
105
|
+
#
|
106
|
+
parameters = nil
|
107
|
+
puts obj.updateRecord(parameters)
|
108
|
+
|
109
|
+
# SYNOPSIS
|
110
|
+
# DeleteRecord(parameters)
|
111
|
+
#
|
112
|
+
# ARGS
|
113
|
+
# parameters DeleteRecord - {http://www.nettica.com/DNS/DnsApi}DeleteRecord
|
114
|
+
#
|
115
|
+
# RETURNS
|
116
|
+
# parameters DeleteRecordResponse - {http://www.nettica.com/DNS/DnsApi}DeleteRecordResponse
|
117
|
+
#
|
118
|
+
parameters = nil
|
119
|
+
puts obj.deleteRecord(parameters)
|
120
|
+
|
121
|
+
# SYNOPSIS
|
122
|
+
# ApplyTemplate(parameters)
|
123
|
+
#
|
124
|
+
# ARGS
|
125
|
+
# parameters ApplyTemplate - {http://www.nettica.com/DNS/DnsApi}ApplyTemplate
|
126
|
+
#
|
127
|
+
# RETURNS
|
128
|
+
# parameters ApplyTemplateResponse - {http://www.nettica.com/DNS/DnsApi}ApplyTemplateResponse
|
129
|
+
#
|
130
|
+
parameters = nil
|
131
|
+
puts obj.applyTemplate(parameters)
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
end
|
@@ -0,0 +1,373 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module Nettica; module Stubs
|
4
|
+
|
5
|
+
|
6
|
+
# {http://www.nettica.com/DNS/DnsApi}ServiceResult
|
7
|
+
# result - Nettica::Stubs::DnsResult
|
8
|
+
# remainingCredits - SOAP::SOAPInt
|
9
|
+
# totalCredits - SOAP::SOAPInt
|
10
|
+
# serviceRenewalDate - SOAP::SOAPDateTime
|
11
|
+
class ServiceResult
|
12
|
+
attr_accessor :result
|
13
|
+
attr_accessor :remainingCredits
|
14
|
+
attr_accessor :totalCredits
|
15
|
+
attr_accessor :serviceRenewalDate
|
16
|
+
|
17
|
+
def initialize(result = nil, remainingCredits = nil, totalCredits = nil, serviceRenewalDate = nil)
|
18
|
+
@result = result
|
19
|
+
@remainingCredits = remainingCredits
|
20
|
+
@totalCredits = totalCredits
|
21
|
+
@serviceRenewalDate = serviceRenewalDate
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
# {http://www.nettica.com/DNS/DnsApi}DnsResult
|
26
|
+
# status - SOAP::SOAPInt
|
27
|
+
# description - SOAP::SOAPString
|
28
|
+
class DnsResult
|
29
|
+
attr_accessor :status
|
30
|
+
attr_accessor :description
|
31
|
+
|
32
|
+
def initialize(status = nil, description = nil)
|
33
|
+
@status = status
|
34
|
+
@description = description
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# {http://www.nettica.com/DNS/DnsApi}ZoneResult
|
39
|
+
# result - Nettica::Stubs::DnsResult
|
40
|
+
# count - SOAP::SOAPInt
|
41
|
+
# zone - Nettica::Stubs::ArrayOfString
|
42
|
+
class ZoneResult
|
43
|
+
attr_accessor :result
|
44
|
+
attr_accessor :count
|
45
|
+
attr_accessor :zone
|
46
|
+
|
47
|
+
def initialize(result = nil, count = nil, zone = nil)
|
48
|
+
@result = result
|
49
|
+
@count = count
|
50
|
+
@zone = zone
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# {http://www.nettica.com/DNS/DnsApi}ArrayOfString
|
55
|
+
class ArrayOfString < ::Array
|
56
|
+
end
|
57
|
+
|
58
|
+
# {http://www.nettica.com/DNS/DnsApi}DomainResult
|
59
|
+
# result - Nettica::Stubs::DnsResult
|
60
|
+
# count - SOAP::SOAPInt
|
61
|
+
# record - Nettica::Stubs::ArrayOfDomainRecord
|
62
|
+
class DomainResult
|
63
|
+
attr_accessor :result
|
64
|
+
attr_accessor :count
|
65
|
+
attr_accessor :record
|
66
|
+
|
67
|
+
def initialize(result = nil, count = nil, record = nil)
|
68
|
+
@result = result
|
69
|
+
@count = count
|
70
|
+
@record = record
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# {http://www.nettica.com/DNS/DnsApi}ArrayOfDomainRecord
|
75
|
+
class ArrayOfDomainRecord < ::Array
|
76
|
+
end
|
77
|
+
|
78
|
+
# {http://www.nettica.com/DNS/DnsApi}DomainRecord
|
79
|
+
# domainName - SOAP::SOAPString
|
80
|
+
# hostName - SOAP::SOAPString
|
81
|
+
# recordType - SOAP::SOAPString
|
82
|
+
# data - SOAP::SOAPString
|
83
|
+
# tTL - SOAP::SOAPInt
|
84
|
+
# priority - SOAP::SOAPInt
|
85
|
+
class DomainRecord
|
86
|
+
attr_accessor :domainName
|
87
|
+
attr_accessor :hostName
|
88
|
+
attr_accessor :recordType
|
89
|
+
attr_accessor :data
|
90
|
+
attr_accessor :tTL
|
91
|
+
attr_accessor :priority
|
92
|
+
|
93
|
+
def initialize(domainName = nil, hostName = nil, recordType = nil, data = nil, tTL = nil, priority = nil)
|
94
|
+
@domainName = domainName
|
95
|
+
@hostName = hostName
|
96
|
+
@recordType = recordType
|
97
|
+
@data = data
|
98
|
+
@tTL = tTL
|
99
|
+
@priority = priority
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# {http://www.nettica.com/DNS/DnsApi}GetServiceInfo
|
104
|
+
# userName - SOAP::SOAPString
|
105
|
+
# password - SOAP::SOAPString
|
106
|
+
class GetServiceInfo
|
107
|
+
attr_accessor :userName
|
108
|
+
attr_accessor :password
|
109
|
+
|
110
|
+
def initialize(userName = nil, password = nil)
|
111
|
+
@userName = userName
|
112
|
+
@password = password
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# {http://www.nettica.com/DNS/DnsApi}GetServiceInfoResponse
|
117
|
+
# getServiceInfoResult - Nettica::Stubs::ServiceResult
|
118
|
+
class GetServiceInfoResponse
|
119
|
+
attr_accessor :getServiceInfoResult
|
120
|
+
|
121
|
+
def initialize(getServiceInfoResult = nil)
|
122
|
+
@getServiceInfoResult = getServiceInfoResult
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# {http://www.nettica.com/DNS/DnsApi}CreateZone
|
127
|
+
# userName - SOAP::SOAPString
|
128
|
+
# password - SOAP::SOAPString
|
129
|
+
# domainName - SOAP::SOAPString
|
130
|
+
# ipAddress - SOAP::SOAPString
|
131
|
+
class CreateZone
|
132
|
+
attr_accessor :userName
|
133
|
+
attr_accessor :password
|
134
|
+
attr_accessor :domainName
|
135
|
+
attr_accessor :ipAddress
|
136
|
+
|
137
|
+
def initialize(userName = nil, password = nil, domainName = nil, ipAddress = nil)
|
138
|
+
@userName = userName
|
139
|
+
@password = password
|
140
|
+
@domainName = domainName
|
141
|
+
@ipAddress = ipAddress
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# {http://www.nettica.com/DNS/DnsApi}CreateZoneResponse
|
146
|
+
# createZoneResult - Nettica::Stubs::DnsResult
|
147
|
+
class CreateZoneResponse
|
148
|
+
attr_accessor :createZoneResult
|
149
|
+
|
150
|
+
def initialize(createZoneResult = nil)
|
151
|
+
@createZoneResult = createZoneResult
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# {http://www.nettica.com/DNS/DnsApi}CreateSecondaryZone
|
156
|
+
# userName - SOAP::SOAPString
|
157
|
+
# password - SOAP::SOAPString
|
158
|
+
# domainName - SOAP::SOAPString
|
159
|
+
# master - SOAP::SOAPString
|
160
|
+
# ipAddress - SOAP::SOAPString
|
161
|
+
class CreateSecondaryZone
|
162
|
+
attr_accessor :userName
|
163
|
+
attr_accessor :password
|
164
|
+
attr_accessor :domainName
|
165
|
+
attr_accessor :master
|
166
|
+
attr_accessor :ipAddress
|
167
|
+
|
168
|
+
def initialize(userName = nil, password = nil, domainName = nil, master = nil, ipAddress = nil)
|
169
|
+
@userName = userName
|
170
|
+
@password = password
|
171
|
+
@domainName = domainName
|
172
|
+
@master = master
|
173
|
+
@ipAddress = ipAddress
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# {http://www.nettica.com/DNS/DnsApi}CreateSecondaryZoneResponse
|
178
|
+
# createSecondaryZoneResult - Nettica::Stubs::DnsResult
|
179
|
+
class CreateSecondaryZoneResponse
|
180
|
+
attr_accessor :createSecondaryZoneResult
|
181
|
+
|
182
|
+
def initialize(createSecondaryZoneResult = nil)
|
183
|
+
@createSecondaryZoneResult = createSecondaryZoneResult
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# {http://www.nettica.com/DNS/DnsApi}DeleteZone
|
188
|
+
# userName - SOAP::SOAPString
|
189
|
+
# password - SOAP::SOAPString
|
190
|
+
# domainName - SOAP::SOAPString
|
191
|
+
class DeleteZone
|
192
|
+
attr_accessor :userName
|
193
|
+
attr_accessor :password
|
194
|
+
attr_accessor :domainName
|
195
|
+
|
196
|
+
def initialize(userName = nil, password = nil, domainName = nil)
|
197
|
+
@userName = userName
|
198
|
+
@password = password
|
199
|
+
@domainName = domainName
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# {http://www.nettica.com/DNS/DnsApi}DeleteZoneResponse
|
204
|
+
# deleteZoneResult - Nettica::Stubs::DnsResult
|
205
|
+
class DeleteZoneResponse
|
206
|
+
attr_accessor :deleteZoneResult
|
207
|
+
|
208
|
+
def initialize(deleteZoneResult = nil)
|
209
|
+
@deleteZoneResult = deleteZoneResult
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# {http://www.nettica.com/DNS/DnsApi}ListZones
|
214
|
+
# userName - SOAP::SOAPString
|
215
|
+
# password - SOAP::SOAPString
|
216
|
+
class ListZones
|
217
|
+
attr_accessor :userName
|
218
|
+
attr_accessor :password
|
219
|
+
|
220
|
+
def initialize(userName = nil, password = nil)
|
221
|
+
@userName = userName
|
222
|
+
@password = password
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# {http://www.nettica.com/DNS/DnsApi}ListZonesResponse
|
227
|
+
# listZonesResult - Nettica::Stubs::ZoneResult
|
228
|
+
class ListZonesResponse
|
229
|
+
attr_accessor :listZonesResult
|
230
|
+
|
231
|
+
def initialize(listZonesResult = nil)
|
232
|
+
@listZonesResult = listZonesResult
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# {http://www.nettica.com/DNS/DnsApi}ListDomain
|
237
|
+
# userName - SOAP::SOAPString
|
238
|
+
# password - SOAP::SOAPString
|
239
|
+
# domainName - SOAP::SOAPString
|
240
|
+
class ListDomain
|
241
|
+
attr_accessor :userName
|
242
|
+
attr_accessor :password
|
243
|
+
attr_accessor :domainName
|
244
|
+
|
245
|
+
def initialize(userName = nil, password = nil, domainName = nil)
|
246
|
+
@userName = userName
|
247
|
+
@password = password
|
248
|
+
@domainName = domainName
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
# {http://www.nettica.com/DNS/DnsApi}ListDomainResponse
|
253
|
+
# listDomainResult - Nettica::Stubs::DomainResult
|
254
|
+
class ListDomainResponse
|
255
|
+
attr_accessor :listDomainResult
|
256
|
+
|
257
|
+
def initialize(listDomainResult = nil)
|
258
|
+
@listDomainResult = listDomainResult
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# {http://www.nettica.com/DNS/DnsApi}AddRecord
|
263
|
+
# userName - SOAP::SOAPString
|
264
|
+
# password - SOAP::SOAPString
|
265
|
+
# d - Nettica::Stubs::DomainRecord
|
266
|
+
class AddRecord
|
267
|
+
attr_accessor :userName
|
268
|
+
attr_accessor :password
|
269
|
+
attr_accessor :d
|
270
|
+
|
271
|
+
def initialize(userName = nil, password = nil, d = nil)
|
272
|
+
@userName = userName
|
273
|
+
@password = password
|
274
|
+
@d = d
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# {http://www.nettica.com/DNS/DnsApi}AddRecordResponse
|
279
|
+
# addRecordResult - Nettica::Stubs::DnsResult
|
280
|
+
class AddRecordResponse
|
281
|
+
attr_accessor :addRecordResult
|
282
|
+
|
283
|
+
def initialize(addRecordResult = nil)
|
284
|
+
@addRecordResult = addRecordResult
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# {http://www.nettica.com/DNS/DnsApi}UpdateRecord
|
289
|
+
# userName - SOAP::SOAPString
|
290
|
+
# password - SOAP::SOAPString
|
291
|
+
# old - Nettica::Stubs::DomainRecord
|
292
|
+
# new - Nettica::Stubs::DomainRecord
|
293
|
+
class UpdateRecord
|
294
|
+
attr_accessor :userName
|
295
|
+
attr_accessor :password
|
296
|
+
attr_accessor :old
|
297
|
+
attr_accessor :new
|
298
|
+
|
299
|
+
def initialize(userName = nil, password = nil, old = nil, new = nil)
|
300
|
+
@userName = userName
|
301
|
+
@password = password
|
302
|
+
@old = old
|
303
|
+
@new = new
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# {http://www.nettica.com/DNS/DnsApi}UpdateRecordResponse
|
308
|
+
# updateRecordResult - Nettica::Stubs::DnsResult
|
309
|
+
class UpdateRecordResponse
|
310
|
+
attr_accessor :updateRecordResult
|
311
|
+
|
312
|
+
def initialize(updateRecordResult = nil)
|
313
|
+
@updateRecordResult = updateRecordResult
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# {http://www.nettica.com/DNS/DnsApi}DeleteRecord
|
318
|
+
# userName - SOAP::SOAPString
|
319
|
+
# password - SOAP::SOAPString
|
320
|
+
# d - Nettica::Stubs::DomainRecord
|
321
|
+
class DeleteRecord
|
322
|
+
attr_accessor :userName
|
323
|
+
attr_accessor :password
|
324
|
+
attr_accessor :d
|
325
|
+
|
326
|
+
def initialize(userName = nil, password = nil, d = nil)
|
327
|
+
@userName = userName
|
328
|
+
@password = password
|
329
|
+
@d = d
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
# {http://www.nettica.com/DNS/DnsApi}DeleteRecordResponse
|
334
|
+
# deleteRecordResult - Nettica::Stubs::DnsResult
|
335
|
+
class DeleteRecordResponse
|
336
|
+
attr_accessor :deleteRecordResult
|
337
|
+
|
338
|
+
def initialize(deleteRecordResult = nil)
|
339
|
+
@deleteRecordResult = deleteRecordResult
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
# {http://www.nettica.com/DNS/DnsApi}ApplyTemplate
|
344
|
+
# userName - SOAP::SOAPString
|
345
|
+
# password - SOAP::SOAPString
|
346
|
+
# domainName - SOAP::SOAPString
|
347
|
+
# groupName - SOAP::SOAPString
|
348
|
+
class ApplyTemplate
|
349
|
+
attr_accessor :userName
|
350
|
+
attr_accessor :password
|
351
|
+
attr_accessor :domainName
|
352
|
+
attr_accessor :groupName
|
353
|
+
|
354
|
+
def initialize(userName = nil, password = nil, domainName = nil, groupName = nil)
|
355
|
+
@userName = userName
|
356
|
+
@password = password
|
357
|
+
@domainName = domainName
|
358
|
+
@groupName = groupName
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
# {http://www.nettica.com/DNS/DnsApi}ApplyTemplateResponse
|
363
|
+
# applyTemplateResult - Nettica::Stubs::DnsResult
|
364
|
+
class ApplyTemplateResponse
|
365
|
+
attr_accessor :applyTemplateResult
|
366
|
+
|
367
|
+
def initialize(applyTemplateResult = nil)
|
368
|
+
@applyTemplateResult = applyTemplateResult
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
|
373
|
+
end; end
|