nettica 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,333 @@
1
+ require 'nettica/stubs/nettica.rb'
2
+ require 'soap/mapping'
3
+
4
+ module Nettica; module Stubs
5
+
6
+ module DefaultMappingRegistry
7
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
+ NsDnsApi = "http://www.nettica.com/DNS/DnsApi"
10
+
11
+ EncodedRegistry.register(
12
+ :class => Nettica::Stubs::ServiceResult,
13
+ :schema_type => XSD::QName.new(NsDnsApi, "ServiceResult"),
14
+ :schema_element => [
15
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
16
+ ["remainingCredits", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "RemainingCredits")]],
17
+ ["totalCredits", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "TotalCredits")]],
18
+ ["serviceRenewalDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsDnsApi, "ServiceRenewalDate")]]
19
+ ]
20
+ )
21
+
22
+ EncodedRegistry.register(
23
+ :class => Nettica::Stubs::DnsResult,
24
+ :schema_type => XSD::QName.new(NsDnsApi, "DnsResult"),
25
+ :schema_element => [
26
+ ["status", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Status")]],
27
+ ["description", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Description")], [0, 1]]
28
+ ]
29
+ )
30
+
31
+ EncodedRegistry.register(
32
+ :class => Nettica::Stubs::ZoneResult,
33
+ :schema_type => XSD::QName.new(NsDnsApi, "ZoneResult"),
34
+ :schema_element => [
35
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
36
+ ["count", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Count")]],
37
+ ["zone", ["Nettica::Stubs::ArrayOfString", XSD::QName.new(NsDnsApi, "Zone")], [0, 1]]
38
+ ]
39
+ )
40
+
41
+ EncodedRegistry.register(
42
+ :class => Nettica::Stubs::ArrayOfString,
43
+ :schema_type => XSD::QName.new(NsDnsApi, "ArrayOfString"),
44
+ :schema_element => [
45
+ ["string", "SOAP::SOAPString[]", [0, nil]]
46
+ ]
47
+ )
48
+
49
+ EncodedRegistry.register(
50
+ :class => Nettica::Stubs::DomainResult,
51
+ :schema_type => XSD::QName.new(NsDnsApi, "DomainResult"),
52
+ :schema_element => [
53
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
54
+ ["count", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Count")]],
55
+ ["record", ["Nettica::Stubs::ArrayOfDomainRecord", XSD::QName.new(NsDnsApi, "Record")], [0, 1]]
56
+ ]
57
+ )
58
+
59
+ EncodedRegistry.register(
60
+ :class => Nettica::Stubs::ArrayOfDomainRecord,
61
+ :schema_type => XSD::QName.new(NsDnsApi, "ArrayOfDomainRecord"),
62
+ :schema_element => [
63
+ ["domainRecord", ["Nettica::Stubs::DomainRecord[]", XSD::QName.new(NsDnsApi, "DomainRecord")], [0, nil]]
64
+ ]
65
+ )
66
+
67
+ EncodedRegistry.register(
68
+ :class => Nettica::Stubs::DomainRecord,
69
+ :schema_type => XSD::QName.new(NsDnsApi, "DomainRecord"),
70
+ :schema_element => [
71
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]],
72
+ ["hostName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "HostName")], [0, 1]],
73
+ ["recordType", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "RecordType")], [0, 1]],
74
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Data")], [0, 1]],
75
+ ["tTL", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "TTL")]],
76
+ ["priority", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Priority")]]
77
+ ]
78
+ )
79
+
80
+ LiteralRegistry.register(
81
+ :class => Nettica::Stubs::ServiceResult,
82
+ :schema_type => XSD::QName.new(NsDnsApi, "ServiceResult"),
83
+ :schema_element => [
84
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
85
+ ["remainingCredits", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "RemainingCredits")]],
86
+ ["totalCredits", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "TotalCredits")]],
87
+ ["serviceRenewalDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsDnsApi, "ServiceRenewalDate")]]
88
+ ]
89
+ )
90
+
91
+ LiteralRegistry.register(
92
+ :class => Nettica::Stubs::DnsResult,
93
+ :schema_type => XSD::QName.new(NsDnsApi, "DnsResult"),
94
+ :schema_element => [
95
+ ["status", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Status")]],
96
+ ["description", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Description")], [0, 1]]
97
+ ]
98
+ )
99
+
100
+ LiteralRegistry.register(
101
+ :class => Nettica::Stubs::ZoneResult,
102
+ :schema_type => XSD::QName.new(NsDnsApi, "ZoneResult"),
103
+ :schema_element => [
104
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
105
+ ["count", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Count")]],
106
+ ["zone", ["Nettica::Stubs::ArrayOfString", XSD::QName.new(NsDnsApi, "Zone")], [0, 1]]
107
+ ]
108
+ )
109
+
110
+ LiteralRegistry.register(
111
+ :class => Nettica::Stubs::ArrayOfString,
112
+ :schema_type => XSD::QName.new(NsDnsApi, "ArrayOfString"),
113
+ :schema_element => [
114
+ ["string", "SOAP::SOAPString[]", [0, nil]]
115
+ ]
116
+ )
117
+
118
+ LiteralRegistry.register(
119
+ :class => Nettica::Stubs::DomainResult,
120
+ :schema_type => XSD::QName.new(NsDnsApi, "DomainResult"),
121
+ :schema_element => [
122
+ ["result", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "Result")], [0, 1]],
123
+ ["count", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Count")]],
124
+ ["record", ["Nettica::Stubs::ArrayOfDomainRecord", XSD::QName.new(NsDnsApi, "Record")], [0, 1]]
125
+ ]
126
+ )
127
+
128
+ LiteralRegistry.register(
129
+ :class => Nettica::Stubs::ArrayOfDomainRecord,
130
+ :schema_type => XSD::QName.new(NsDnsApi, "ArrayOfDomainRecord"),
131
+ :schema_element => [
132
+ ["domainRecord", ["Nettica::Stubs::DomainRecord[]", XSD::QName.new(NsDnsApi, "DomainRecord")], [0, nil]]
133
+ ]
134
+ )
135
+
136
+ LiteralRegistry.register(
137
+ :class => Nettica::Stubs::DomainRecord,
138
+ :schema_type => XSD::QName.new(NsDnsApi, "DomainRecord"),
139
+ :schema_element => [
140
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]],
141
+ ["hostName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "HostName")], [0, 1]],
142
+ ["recordType", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "RecordType")], [0, 1]],
143
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Data")], [0, 1]],
144
+ ["tTL", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "TTL")]],
145
+ ["priority", ["SOAP::SOAPInt", XSD::QName.new(NsDnsApi, "Priority")]]
146
+ ]
147
+ )
148
+
149
+ LiteralRegistry.register(
150
+ :class => Nettica::Stubs::GetServiceInfo,
151
+ :schema_name => XSD::QName.new(NsDnsApi, "GetServiceInfo"),
152
+ :schema_element => [
153
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
154
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]]
155
+ ]
156
+ )
157
+
158
+ LiteralRegistry.register(
159
+ :class => Nettica::Stubs::GetServiceInfoResponse,
160
+ :schema_name => XSD::QName.new(NsDnsApi, "GetServiceInfoResponse"),
161
+ :schema_element => [
162
+ ["getServiceInfoResult", ["Nettica::Stubs::ServiceResult", XSD::QName.new(NsDnsApi, "GetServiceInfoResult")], [0, 1]]
163
+ ]
164
+ )
165
+
166
+ LiteralRegistry.register(
167
+ :class => Nettica::Stubs::CreateZone,
168
+ :schema_name => XSD::QName.new(NsDnsApi, "CreateZone"),
169
+ :schema_element => [
170
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
171
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
172
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]],
173
+ ["ipAddress", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "IpAddress")], [0, 1]]
174
+ ]
175
+ )
176
+
177
+ LiteralRegistry.register(
178
+ :class => Nettica::Stubs::CreateZoneResponse,
179
+ :schema_name => XSD::QName.new(NsDnsApi, "CreateZoneResponse"),
180
+ :schema_element => [
181
+ ["createZoneResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "CreateZoneResult")], [0, 1]]
182
+ ]
183
+ )
184
+
185
+ LiteralRegistry.register(
186
+ :class => Nettica::Stubs::CreateSecondaryZone,
187
+ :schema_name => XSD::QName.new(NsDnsApi, "CreateSecondaryZone"),
188
+ :schema_element => [
189
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
190
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
191
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]],
192
+ ["master", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Master")], [0, 1]],
193
+ ["ipAddress", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "IpAddress")], [0, 1]]
194
+ ]
195
+ )
196
+
197
+ LiteralRegistry.register(
198
+ :class => Nettica::Stubs::CreateSecondaryZoneResponse,
199
+ :schema_name => XSD::QName.new(NsDnsApi, "CreateSecondaryZoneResponse"),
200
+ :schema_element => [
201
+ ["createSecondaryZoneResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "CreateSecondaryZoneResult")], [0, 1]]
202
+ ]
203
+ )
204
+
205
+ LiteralRegistry.register(
206
+ :class => Nettica::Stubs::DeleteZone,
207
+ :schema_name => XSD::QName.new(NsDnsApi, "DeleteZone"),
208
+ :schema_element => [
209
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
210
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
211
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]]
212
+ ]
213
+ )
214
+
215
+ LiteralRegistry.register(
216
+ :class => Nettica::Stubs::DeleteZoneResponse,
217
+ :schema_name => XSD::QName.new(NsDnsApi, "DeleteZoneResponse"),
218
+ :schema_element => [
219
+ ["deleteZoneResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "DeleteZoneResult")], [0, 1]]
220
+ ]
221
+ )
222
+
223
+ LiteralRegistry.register(
224
+ :class => Nettica::Stubs::ListZones,
225
+ :schema_name => XSD::QName.new(NsDnsApi, "ListZones"),
226
+ :schema_element => [
227
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
228
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]]
229
+ ]
230
+ )
231
+
232
+ LiteralRegistry.register(
233
+ :class => Nettica::Stubs::ListZonesResponse,
234
+ :schema_name => XSD::QName.new(NsDnsApi, "ListZonesResponse"),
235
+ :schema_element => [
236
+ ["listZonesResult", ["Nettica::Stubs::ZoneResult", XSD::QName.new(NsDnsApi, "ListZonesResult")], [0, 1]]
237
+ ]
238
+ )
239
+
240
+ LiteralRegistry.register(
241
+ :class => Nettica::Stubs::ListDomain,
242
+ :schema_name => XSD::QName.new(NsDnsApi, "ListDomain"),
243
+ :schema_element => [
244
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
245
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
246
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]]
247
+ ]
248
+ )
249
+
250
+ LiteralRegistry.register(
251
+ :class => Nettica::Stubs::ListDomainResponse,
252
+ :schema_name => XSD::QName.new(NsDnsApi, "ListDomainResponse"),
253
+ :schema_element => [
254
+ ["listDomainResult", ["Nettica::Stubs::DomainResult", XSD::QName.new(NsDnsApi, "ListDomainResult")], [0, 1]]
255
+ ]
256
+ )
257
+
258
+ LiteralRegistry.register(
259
+ :class => Nettica::Stubs::AddRecord,
260
+ :schema_name => XSD::QName.new(NsDnsApi, "AddRecord"),
261
+ :schema_element => [
262
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
263
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
264
+ ["d", "Nettica::Stubs::DomainRecord", [0, 1]]
265
+ ]
266
+ )
267
+
268
+ LiteralRegistry.register(
269
+ :class => Nettica::Stubs::AddRecordResponse,
270
+ :schema_name => XSD::QName.new(NsDnsApi, "AddRecordResponse"),
271
+ :schema_element => [
272
+ ["addRecordResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "AddRecordResult")], [0, 1]]
273
+ ]
274
+ )
275
+
276
+ LiteralRegistry.register(
277
+ :class => Nettica::Stubs::UpdateRecord,
278
+ :schema_name => XSD::QName.new(NsDnsApi, "UpdateRecord"),
279
+ :schema_element => [
280
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
281
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
282
+ ["old", ["Nettica::Stubs::DomainRecord", XSD::QName.new(NsDnsApi, "Old")], [0, 1]],
283
+ ["new", ["Nettica::Stubs::DomainRecord", XSD::QName.new(NsDnsApi, "New")], [0, 1]]
284
+ ]
285
+ )
286
+
287
+ LiteralRegistry.register(
288
+ :class => Nettica::Stubs::UpdateRecordResponse,
289
+ :schema_name => XSD::QName.new(NsDnsApi, "UpdateRecordResponse"),
290
+ :schema_element => [
291
+ ["updateRecordResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "UpdateRecordResult")], [0, 1]]
292
+ ]
293
+ )
294
+
295
+ LiteralRegistry.register(
296
+ :class => Nettica::Stubs::DeleteRecord,
297
+ :schema_name => XSD::QName.new(NsDnsApi, "DeleteRecord"),
298
+ :schema_element => [
299
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
300
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
301
+ ["d", "Nettica::Stubs::DomainRecord", [0, 1]]
302
+ ]
303
+ )
304
+
305
+ LiteralRegistry.register(
306
+ :class => Nettica::Stubs::DeleteRecordResponse,
307
+ :schema_name => XSD::QName.new(NsDnsApi, "DeleteRecordResponse"),
308
+ :schema_element => [
309
+ ["deleteRecordResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "DeleteRecordResult")], [0, 1]]
310
+ ]
311
+ )
312
+
313
+ LiteralRegistry.register(
314
+ :class => Nettica::Stubs::ApplyTemplate,
315
+ :schema_name => XSD::QName.new(NsDnsApi, "ApplyTemplate"),
316
+ :schema_element => [
317
+ ["userName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "UserName")], [0, 1]],
318
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "Password")], [0, 1]],
319
+ ["domainName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "DomainName")], [0, 1]],
320
+ ["groupName", ["SOAP::SOAPString", XSD::QName.new(NsDnsApi, "GroupName")], [0, 1]]
321
+ ]
322
+ )
323
+
324
+ LiteralRegistry.register(
325
+ :class => Nettica::Stubs::ApplyTemplateResponse,
326
+ :schema_name => XSD::QName.new(NsDnsApi, "ApplyTemplateResponse"),
327
+ :schema_element => [
328
+ ["applyTemplateResult", ["Nettica::Stubs::DnsResult", XSD::QName.new(NsDnsApi, "ApplyTemplateResult")], [0, 1]]
329
+ ]
330
+ )
331
+ end
332
+
333
+ end; end
File without changes
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nettica
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Conway
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-28 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: soap4r
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: hoe
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 1.4.0
32
+ version:
33
+ description: The author was too lazy to write a description
34
+ email: wr0ngway@yahoo.com
35
+ executables:
36
+ - nettica
37
+ extensions: []
38
+
39
+ extra_rdoc_files:
40
+ - History.txt
41
+ - Manifest.txt
42
+ - README.txt
43
+ files:
44
+ - History.txt
45
+ - Manifest.txt
46
+ - README.txt
47
+ - Rakefile
48
+ - bin/nettica
49
+ - lib/nettica.rb
50
+ - lib/nettica/client.rb
51
+ - lib/nettica/stubs/DnsApiAsmxClient.rb
52
+ - lib/nettica/stubs/nettica.rb
53
+ - lib/nettica/stubs/nettica.wsdl
54
+ - lib/nettica/stubs/netticaDriver.rb
55
+ - lib/nettica/stubs/netticaMappingRegistry.rb
56
+ - test/test_nettica.rb
57
+ has_rdoc: true
58
+ homepage: http://www.zenspider.com/ZSS/Products/nettica/
59
+ post_install_message:
60
+ rdoc_options:
61
+ - --main
62
+ - README.txt
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ version:
77
+ requirements: []
78
+
79
+ rubyforge_project: nettica
80
+ rubygems_version: 1.0.1
81
+ signing_key:
82
+ specification_version: 2
83
+ summary: A ruby client for managing nettica bulk-dns entries using the Nettica SOAP API
84
+ test_files:
85
+ - test/test_nettica.rb