cozaepp 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +86 -0
  5. data/Rakefile +2 -0
  6. data/cozaepp.gemspec +19 -0
  7. data/erb/apply_clienthold.erb +13 -0
  8. data/erb/check.erb +14 -0
  9. data/erb/check_contact.erb +14 -0
  10. data/erb/check_domain.erb +11 -0
  11. data/erb/check_host.erb +14 -0
  12. data/erb/create_contact.erb +31 -0
  13. data/erb/create_domain.erb +20 -0
  14. data/erb/create_domain_with_host.erb +25 -0
  15. data/erb/create_domain_with_ns.erb +20 -0
  16. data/erb/create_host.erb +13 -0
  17. data/erb/create_testregistrar.erb +27 -0
  18. data/erb/delete_contact.erb +11 -0
  19. data/erb/delete_domain.erb +12 -0
  20. data/erb/delete_host.erb +11 -0
  21. data/erb/epp_metadata.erb +18 -0
  22. data/erb/info.erb +12 -0
  23. data/erb/info_balance.erb +15 -0
  24. data/erb/info_contact.erb +15 -0
  25. data/erb/info_contact_coza.erb +20 -0
  26. data/erb/info_contact_response.erb +49 -0
  27. data/erb/info_domain.erb +12 -0
  28. data/erb/info_host.erb +12 -0
  29. data/erb/login.erb +18 -0
  30. data/erb/logout.erb +8 -0
  31. data/erb/pack.erb +8 -0
  32. data/erb/poll.erb +8 -0
  33. data/erb/poll_ack.erb +8 -0
  34. data/erb/remove_clienthold.erb +13 -0
  35. data/erb/renew.erb +13 -0
  36. data/erb/set_autorenew.erb +15 -0
  37. data/erb/transfer_approve.erb +11 -0
  38. data/erb/transfer_cancel.erb +11 -0
  39. data/erb/transfer_domain.erb +11 -0
  40. data/erb/transfer_query.erb +11 -0
  41. data/erb/transfer_reject.erb +11 -0
  42. data/erb/update_contact.erb +33 -0
  43. data/erb/update_domain.erb +33 -0
  44. data/erb/update_domain_ns.erb +17 -0
  45. data/erb/update_domain_registrant.erb +13 -0
  46. data/erb/update_host.erb +23 -0
  47. data/lib/cozaepp/version.rb +3 -0
  48. data/lib/cozaepp.rb +364 -0
  49. data/xsd/contact-1.0.xsd +270 -0
  50. data/xsd/coza-contact-1.0.xsd +72 -0
  51. data/xsd/coza-domain-1.0.xsd +84 -0
  52. data/xsd/domain-1.0.xsd +432 -0
  53. data/xsd/epp-1.0.xsd +375 -0
  54. data/xsd/eppcom-1.0.xsd +97 -0
  55. data/xsd/host-1.0.xsd +238 -0
  56. data/xsd/secDNS-1.1.xsd +134 -0
  57. metadata +117 -0
@@ -0,0 +1,432 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <schema targetNamespace="urn:ietf:params:xml:ns:domain-1.0"
4
+ xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"
5
+ xmlns:host="urn:ietf:params:xml:ns:host-1.0"
6
+ xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
7
+ xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
8
+ xmlns="http://www.w3.org/2001/XMLSchema"
9
+ elementFormDefault="qualified">
10
+
11
+ <!--
12
+ Import common element types.
13
+ -->
14
+ <import namespace="urn:ietf:params:xml:ns:eppcom-1.0"/>
15
+ <import namespace="urn:ietf:params:xml:ns:epp-1.0"/>
16
+ <import namespace="urn:ietf:params:xml:ns:host-1.0"/>
17
+
18
+ <annotation>
19
+ <documentation>
20
+ Extensible Provisioning Protocol v1.0
21
+ domain provisioning schema.
22
+ </documentation>
23
+ </annotation>
24
+
25
+ <!--
26
+ Child elements found in EPP commands.
27
+ -->
28
+ <element name="check" type="domain:mNameType"/>
29
+ <element name="create" type="domain:createType"/>
30
+ <element name="delete" type="domain:sNameType"/>
31
+ <element name="info" type="domain:infoType"/>
32
+ <element name="renew" type="domain:renewType"/>
33
+ <element name="transfer" type="domain:transferType"/>
34
+ <element name="update" type="domain:updateType"/>
35
+ <!--
36
+ Child elements of the <create> command.
37
+ -->
38
+ <complexType name="createType">
39
+ <sequence>
40
+ <element name="name" type="eppcom:labelType"/>
41
+ <element name="period" type="domain:periodType"
42
+ minOccurs="0"/>
43
+ <element name="ns" type="domain:nsType"
44
+ minOccurs="0"/>
45
+ <element name="registrant" type="eppcom:clIDType"
46
+ minOccurs="0"/>
47
+ <element name="contact" type="domain:contactType"
48
+ minOccurs="0" maxOccurs="unbounded"/>
49
+ <element name="authInfo" type="domain:authInfoType"/>
50
+ </sequence>
51
+ </complexType>
52
+
53
+ <complexType name="periodType">
54
+ <simpleContent>
55
+ <extension base="domain:pLimitType">
56
+ <attribute name="unit" type="domain:pUnitType"
57
+ use="required"/>
58
+ </extension>
59
+ </simpleContent>
60
+ </complexType>
61
+
62
+ <simpleType name="pLimitType">
63
+ <restriction base="unsignedShort">
64
+ <minInclusive value="1"/>
65
+ <maxInclusive value="99"/>
66
+ </restriction>
67
+ </simpleType>
68
+
69
+ <simpleType name="pUnitType">
70
+ <restriction base="token">
71
+ <enumeration value="y"/>
72
+ <enumeration value="m"/>
73
+ </restriction>
74
+ </simpleType>
75
+
76
+ <complexType name="nsType">
77
+ <choice>
78
+ <element name="hostObj" type="eppcom:labelType"
79
+ maxOccurs="unbounded"/>
80
+ <element name="hostAttr" type="domain:hostAttrType"
81
+ maxOccurs="unbounded"/>
82
+ </choice>
83
+ </complexType>
84
+ <!--
85
+ Name servers are either host objects or attributes.
86
+ -->
87
+
88
+ <complexType name="hostAttrType">
89
+ <sequence>
90
+ <element name="hostName" type="eppcom:labelType"/>
91
+ <element name="hostAddr" type="host:addrType"
92
+ minOccurs="0" maxOccurs="unbounded"/>
93
+ </sequence>
94
+ </complexType>
95
+ <!--
96
+ If attributes, addresses are optional and follow the
97
+ structure defined in the host mapping.
98
+ -->
99
+
100
+ <complexType name="contactType">
101
+ <simpleContent>
102
+ <extension base="eppcom:clIDType">
103
+ <attribute name="type" type="domain:contactAttrType"/>
104
+ </extension>
105
+ </simpleContent>
106
+ </complexType>
107
+
108
+ <simpleType name="contactAttrType">
109
+ <restriction base="token">
110
+ <enumeration value="admin"/>
111
+ <enumeration value="billing"/>
112
+ <enumeration value="tech"/>
113
+ </restriction>
114
+ </simpleType>
115
+
116
+ <complexType name="authInfoType">
117
+ <choice>
118
+ <element name="pw" type="eppcom:pwAuthInfoType"/>
119
+ <element name="ext" type="eppcom:extAuthInfoType"/>
120
+ </choice>
121
+ </complexType>
122
+
123
+ <!--
124
+ Child element of commands that require a single name.
125
+ -->
126
+ <complexType name="sNameType">
127
+ <sequence>
128
+ <element name="name" type="eppcom:labelType"/>
129
+ </sequence>
130
+ </complexType>
131
+ <!--
132
+ Child element of commands that accept multiple names.
133
+ -->
134
+ <complexType name="mNameType">
135
+ <sequence>
136
+ <element name="name" type="eppcom:labelType"
137
+ maxOccurs="unbounded"/>
138
+ </sequence>
139
+ </complexType>
140
+
141
+ <!--
142
+ Child elements of the <info> command.
143
+ -->
144
+ <complexType name="infoType">
145
+ <sequence>
146
+ <element name="name" type="domain:infoNameType"/>
147
+ <element name="authInfo" type="domain:authInfoType"
148
+ minOccurs="0"/>
149
+ </sequence>
150
+ </complexType>
151
+
152
+ <complexType name="infoNameType">
153
+ <simpleContent>
154
+ <extension base = "eppcom:labelType">
155
+ <attribute name="hosts" type="domain:hostsType"
156
+ default="all"/>
157
+ </extension>
158
+ </simpleContent>
159
+ </complexType>
160
+
161
+ <simpleType name="hostsType">
162
+ <restriction base="token">
163
+ <enumeration value="all"/>
164
+ <enumeration value="del"/>
165
+ <enumeration value="none"/>
166
+ <enumeration value="sub"/>
167
+ </restriction>
168
+ </simpleType>
169
+
170
+ <!--
171
+ Child elements of the <renew> command.
172
+ -->
173
+ <complexType name="renewType">
174
+ <sequence>
175
+ <element name="name" type="eppcom:labelType"/>
176
+ <element name="curExpDate" type="date"/>
177
+ <element name="period" type="domain:periodType"
178
+ minOccurs="0"/>
179
+ </sequence>
180
+ </complexType>
181
+
182
+ <!--
183
+ Child elements of the <transfer> command.
184
+ -->
185
+ <complexType name="transferType">
186
+ <sequence>
187
+ <element name="name" type="eppcom:labelType"/>
188
+ <element name="period" type="domain:periodType"
189
+ minOccurs="0"/>
190
+ <element name="authInfo" type="domain:authInfoType"
191
+ minOccurs="0"/>
192
+ </sequence>
193
+ </complexType>
194
+
195
+ <!--
196
+ Child elements of the <update> command.
197
+ -->
198
+
199
+ <complexType name="updateType">
200
+ <sequence>
201
+ <element name="name" type="eppcom:labelType"/>
202
+ <element name="add" type="domain:addRemType"
203
+ minOccurs="0"/>
204
+ <element name="rem" type="domain:addRemType"
205
+ minOccurs="0"/>
206
+ <element name="chg" type="domain:chgType"
207
+ minOccurs="0"/>
208
+ </sequence>
209
+ </complexType>
210
+
211
+ <!--
212
+ Data elements that can be added or removed.
213
+ -->
214
+ <complexType name="addRemType">
215
+ <sequence>
216
+ <element name="ns" type="domain:nsType"
217
+ minOccurs="0"/>
218
+ <element name="contact" type="domain:contactType"
219
+ minOccurs="0" maxOccurs="unbounded"/>
220
+ <element name="status" type="domain:statusType"
221
+ minOccurs="0" maxOccurs="11"/>
222
+ </sequence>
223
+ </complexType>
224
+
225
+ <!--
226
+ Data elements that can be changed.
227
+ -->
228
+ <complexType name="chgType">
229
+ <sequence>
230
+ <element name="registrant" type="domain:clIDChgType"
231
+ minOccurs="0"/>
232
+ <element name="authInfo" type="domain:authInfoChgType"
233
+ minOccurs="0"/>
234
+ </sequence>
235
+ </complexType>
236
+
237
+ <!--
238
+ Allow the registrant value to be nullified by changing the
239
+ minLength restriction to "0".
240
+ -->
241
+ <simpleType name="clIDChgType">
242
+ <restriction base="token">
243
+ <minLength value="0"/>
244
+ <maxLength value="16"/>
245
+ </restriction>
246
+ </simpleType>
247
+
248
+ <!--
249
+ Allow the authInfo value to be nullified by including an
250
+ empty element within the choice.
251
+ -->
252
+ <complexType name="authInfoChgType">
253
+ <choice>
254
+ <element name="pw" type="eppcom:pwAuthInfoType"/>
255
+ <element name="ext" type="eppcom:extAuthInfoType"/>
256
+ <element name="null"/>
257
+ </choice>
258
+ </complexType>
259
+
260
+ <!--
261
+ Child response elements.
262
+ -->
263
+ <element name="chkData" type="domain:chkDataType"/>
264
+ <element name="creData" type="domain:creDataType"/>
265
+ <element name="infData" type="domain:infDataType"/>
266
+ <element name="panData" type="domain:panDataType"/>
267
+ <element name="renData" type="domain:renDataType"/>
268
+ <element name="trnData" type="domain:trnDataType"/>
269
+
270
+ <!--
271
+ <check> response elements.
272
+ -->
273
+ <complexType name="chkDataType">
274
+ <sequence>
275
+ <element name="cd" type="domain:checkType"
276
+ maxOccurs="unbounded"/>
277
+ </sequence>
278
+ </complexType>
279
+
280
+ <complexType name="checkType">
281
+ <sequence>
282
+ <element name="name" type="domain:checkNameType"/>
283
+ <element name="reason" type="eppcom:reasonType"
284
+ minOccurs="0"/>
285
+ </sequence>
286
+ </complexType>
287
+
288
+ <complexType name="checkNameType">
289
+ <simpleContent>
290
+ <extension base="eppcom:labelType">
291
+ <attribute name="avail" type="boolean"
292
+ use="required"/>
293
+ </extension>
294
+ </simpleContent>
295
+ </complexType>
296
+
297
+ <!--
298
+ <create> response elements.
299
+ -->
300
+ <complexType name="creDataType">
301
+ <sequence>
302
+ <element name="name" type="eppcom:labelType"/>
303
+ <element name="crDate" type="dateTime"/>
304
+ <element name="exDate" type="dateTime"
305
+ minOccurs="0"/>
306
+ </sequence>
307
+ </complexType>
308
+
309
+ <!--
310
+ <info> response elements.
311
+ -->
312
+ <complexType name="infDataType">
313
+ <sequence>
314
+ <element name="name" type="eppcom:labelType"/>
315
+ <element name="roid" type="eppcom:roidType"/>
316
+ <element name="status" type="domain:statusType"
317
+ minOccurs="0" maxOccurs="11"/>
318
+ <element name="registrant" type="eppcom:clIDType"
319
+ minOccurs="0"/>
320
+ <element name="contact" type="domain:contactType"
321
+ minOccurs="0" maxOccurs="unbounded"/>
322
+ <element name="ns" type="domain:nsType"
323
+ minOccurs="0"/>
324
+ <element name="host" type="eppcom:labelType"
325
+ minOccurs="0" maxOccurs="unbounded"/>
326
+ <element name="clID" type="eppcom:clIDType"/>
327
+ <element name="crID" type="eppcom:clIDType"
328
+ minOccurs="0"/>
329
+ <element name="crDate" type="dateTime"
330
+ minOccurs="0"/>
331
+ <element name="upID" type="eppcom:clIDType"
332
+ minOccurs="0"/>
333
+ <element name="upDate" type="dateTime"
334
+ minOccurs="0"/>
335
+ <element name="exDate" type="dateTime"
336
+ minOccurs="0"/>
337
+ <element name="trDate" type="dateTime"
338
+ minOccurs="0"/>
339
+ <element name="authInfo" type="domain:authInfoType"
340
+ minOccurs="0"/>
341
+ </sequence>
342
+ </complexType>
343
+
344
+ <!--
345
+ Status is a combination of attributes and an optional
346
+ human-readable message that may be expressed in languages other
347
+ than English.
348
+ -->
349
+ <complexType name="statusType">
350
+ <simpleContent>
351
+ <extension base="normalizedString">
352
+ <attribute name="s" type="domain:statusValueType"
353
+ use="required"/>
354
+ <attribute name="lang" type="language"
355
+ default="en"/>
356
+ </extension>
357
+ </simpleContent>
358
+ </complexType>
359
+
360
+ <simpleType name="statusValueType">
361
+ <restriction base="token">
362
+ <enumeration value="clientDeleteProhibited"/>
363
+ <enumeration value="clientHold"/>
364
+ <enumeration value="clientRenewProhibited"/>
365
+ <enumeration value="clientTransferProhibited"/>
366
+ <enumeration value="clientUpdateProhibited"/>
367
+ <enumeration value="inactive"/>
368
+ <enumeration value="ok"/>
369
+ <enumeration value="pendingCreate"/>
370
+ <enumeration value="pendingDelete"/>
371
+ <enumeration value="pendingRenew"/>
372
+ <enumeration value="pendingTransfer"/>
373
+ <enumeration value="pendingUpdate"/>
374
+ <enumeration value="serverDeleteProhibited"/>
375
+ <enumeration value="serverHold"/>
376
+ <enumeration value="serverRenewProhibited"/>
377
+ <enumeration value="serverTransferProhibited"/>
378
+ <enumeration value="serverUpdateProhibited"/>
379
+ </restriction>
380
+ </simpleType>
381
+
382
+ <!--
383
+ Pending action notification response elements.
384
+ -->
385
+ <complexType name="panDataType">
386
+ <sequence>
387
+ <element name="name" type="domain:paNameType"/>
388
+ <element name="paTRID" type="epp:trIDType"/>
389
+ <element name="paDate" type="dateTime"/>
390
+ </sequence>
391
+ </complexType>
392
+
393
+ <complexType name="paNameType">
394
+ <simpleContent>
395
+ <extension base="eppcom:labelType">
396
+ <attribute name="paResult" type="boolean"
397
+ use="required"/>
398
+ </extension>
399
+ </simpleContent>
400
+ </complexType>
401
+
402
+ <!--
403
+ <renew> response elements.
404
+ -->
405
+ <complexType name="renDataType">
406
+ <sequence>
407
+ <element name="name" type="eppcom:labelType"/>
408
+ <element name="exDate" type="dateTime"
409
+ minOccurs="0"/>
410
+ </sequence>
411
+ </complexType>
412
+
413
+ <!--
414
+ <transfer> response elements.
415
+ -->
416
+ <complexType name="trnDataType">
417
+ <sequence>
418
+ <element name="name" type="eppcom:labelType"/>
419
+ <element name="trStatus" type="eppcom:trStatusType"/>
420
+ <element name="reID" type="eppcom:clIDType"/>
421
+ <element name="reDate" type="dateTime"/>
422
+ <element name="acID" type="eppcom:clIDType"/>
423
+ <element name="acDate" type="dateTime"/>
424
+ <element name="exDate" type="dateTime"
425
+ minOccurs="0"/>
426
+ </sequence>
427
+ </complexType>
428
+
429
+ <!--
430
+ End of schema.
431
+ -->
432
+ </schema>