akamai_api 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +24 -0
  3. data/README.md +3 -0
  4. data/akamai_api.gemspec +4 -3
  5. data/lib/akamai_api/ccu.rb +60 -52
  6. data/lib/akamai_api/cp_code.rb +12 -7
  7. data/lib/akamai_api/eccu_request.rb +70 -62
  8. data/lib/akamai_api/soap_body.rb +15 -27
  9. data/lib/akamai_api/version.rb +1 -1
  10. data/lib/akamai_api.rb +1 -1
  11. data/spec/fixtures/{purge_request/success.xml → ccu/successful_purge.xml} +0 -0
  12. data/spec/fixtures/{get_cp_codes/sample.xml → cp_code/collection.xml} +0 -0
  13. data/spec/fixtures/{get_cp_codes/sample_one_item.xml → cp_code/single.xml} +0 -0
  14. data/spec/fixtures/{delete/success.xml → eccu/delete/successful.xml} +0 -0
  15. data/spec/fixtures/{get_ids/success.xml → eccu/get_ids/successful.xml} +0 -0
  16. data/spec/fixtures/{get_info/success.xml → eccu/get_info/successful.xml} +0 -0
  17. data/spec/fixtures/{set_notes/success.xml → eccu/set_notes/successful.xml} +0 -0
  18. data/spec/fixtures/eccu/set_status_change_email/fault.xml +8 -0
  19. data/spec/fixtures/{set_status_change_email/success.xml → eccu/set_status_change_email/successful.xml} +0 -0
  20. data/spec/fixtures/{upload → eccu/upload}/fault.xml +0 -0
  21. data/spec/fixtures/{upload/success.xml → eccu/upload/successful.xml} +0 -0
  22. data/spec/lib/akamai_api/ccu_spec.rb +24 -74
  23. data/spec/lib/akamai_api/cp_code_spec.rb +30 -26
  24. data/spec/lib/akamai_api/eccu_request_spec.rb +84 -46
  25. data/spec/lib/akamai_api/soap_body_spec.rb +10 -13
  26. data/spec/spec_helper.rb +7 -3
  27. data/spec/support/savon_backports.rb +10 -0
  28. data/wsdls/cpcode.wsdl +2765 -0
  29. data/wsdls/eccu.wsdl +584 -0
  30. metadata +36 -31
  31. data/spec/support/savon_tester.rb +0 -16
data/wsdls/eccu.wsdl ADDED
@@ -0,0 +1,584 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <wsdl:definitions targetNamespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns:akaawsdt="https://control.akamai.com/AWS.xsd" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:eccuinfodt="https://control.akamai.com/Publish.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
+
4
+ <!--WSDL created by Apache Axis version: 1.3
5
+ Built on Jan 26, 2006 (05:12:02 PST)-->
6
+
7
+ <wsdl:types>
8
+
9
+ <schema targetNamespace="https://control.akamai.com/AWS.xsd" xmlns="http://www.w3.org/2001/XMLSchema">
10
+
11
+ <import namespace="https://control.akamai.com/Publish.xsd"/>
12
+
13
+ <import namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd"/>
14
+
15
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
16
+
17
+ <complexType name="AWSFault">
18
+
19
+ <sequence/>
20
+
21
+ </complexType>
22
+
23
+ </schema>
24
+
25
+ <schema targetNamespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns="http://www.w3.org/2001/XMLSchema">
26
+
27
+ <import namespace="https://control.akamai.com/AWS.xsd"/>
28
+
29
+ <import namespace="https://control.akamai.com/Publish.xsd"/>
30
+
31
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
32
+
33
+ <complexType name="ArrayOfInt">
34
+
35
+ <complexContent>
36
+
37
+ <restriction base="soapenc:Array">
38
+
39
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]"/>
40
+
41
+ </restriction>
42
+
43
+ </complexContent>
44
+
45
+ </complexType>
46
+
47
+ </schema>
48
+
49
+ <schema targetNamespace="https://control.akamai.com/Publish.xsd" xmlns="http://www.w3.org/2001/XMLSchema">
50
+
51
+ <import namespace="https://control.akamai.com/AWS.xsd"/>
52
+
53
+ <import namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd"/>
54
+
55
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
56
+
57
+ <complexType name="EccuInfo">
58
+
59
+ <sequence>
60
+
61
+ <element name="contents" nillable="true" type="xsd:base64Binary"/>
62
+
63
+ <element name="extendedStatusMessage" nillable="true" type="xsd:string"/>
64
+
65
+ <element name="fileId" type="xsd:int"/>
66
+
67
+ <element name="fileSize" type="xsd:int"/>
68
+
69
+ <element name="filename" nillable="true" type="xsd:string"/>
70
+
71
+ <element name="md5Digest" nillable="true" type="xsd:string"/>
72
+
73
+ <element name="notes" nillable="true" type="xsd:string"/>
74
+
75
+ <element name="propertyName" nillable="true" type="xsd:string"/>
76
+
77
+ <element name="propertyNameExactMatch" type="xsd:boolean"/>
78
+
79
+ <element name="propertyType" nillable="true" type="xsd:string"/>
80
+
81
+ <element name="statusChangeEmail" nillable="true" type="xsd:string"/>
82
+
83
+ <element name="statusCode" type="xsd:int"/>
84
+
85
+ <element name="statusMessage" nillable="true" type="xsd:string"/>
86
+
87
+ <element name="statusUpdateDate" nillable="true" type="xsd:dateTime"/>
88
+
89
+ <element name="uploadDate" nillable="true" type="xsd:dateTime"/>
90
+
91
+ <element name="uploadedBy" nillable="true" type="xsd:string"/>
92
+
93
+ <element name="versionString" nillable="true" type="xsd:string"/>
94
+
95
+ </sequence>
96
+
97
+ </complexType>
98
+
99
+ </schema>
100
+
101
+ </wsdl:types>
102
+
103
+
104
+ <wsdl:message name="setStatusChangeEmailResponse">
105
+
106
+
107
+ <wsdl:part name="setStatusChangeEmailReturn" type="xsd:boolean"/>
108
+
109
+
110
+ </wsdl:message>
111
+
112
+
113
+ <wsdl:message name="getIdsResponse">
114
+
115
+
116
+ <wsdl:part name="getIdsReturn" type="akapubeccudt:ArrayOfInt"/>
117
+
118
+
119
+ </wsdl:message>
120
+
121
+
122
+ <wsdl:message name="deleteResponse">
123
+
124
+
125
+ <wsdl:part name="deleteReturn" type="xsd:boolean"/>
126
+
127
+
128
+ </wsdl:message>
129
+
130
+
131
+ <wsdl:message name="setStatusChangeEmailRequest">
132
+
133
+
134
+ <wsdl:part name="fileId" type="xsd:int"/>
135
+
136
+
137
+ <wsdl:part name="statusChangeEmail" type="xsd:string"/>
138
+
139
+
140
+ </wsdl:message>
141
+
142
+
143
+ <wsdl:message name="setNotesRequest">
144
+
145
+
146
+ <wsdl:part name="fileId" type="xsd:int"/>
147
+
148
+
149
+ <wsdl:part name="notes" type="xsd:string"/>
150
+
151
+
152
+ </wsdl:message>
153
+
154
+
155
+ <wsdl:message name="getInfoResponse">
156
+
157
+
158
+ <wsdl:part name="getInfoReturn" type="eccuinfodt:EccuInfo"/>
159
+
160
+
161
+ </wsdl:message>
162
+
163
+
164
+ <wsdl:message name="AWSFault">
165
+
166
+
167
+ <wsdl:part name="fault" type="akaawsdt:AWSFault"/>
168
+
169
+
170
+ </wsdl:message>
171
+
172
+
173
+ <wsdl:message name="uploadResponse">
174
+
175
+
176
+ <wsdl:part name="uploadReturn" type="xsd:int"/>
177
+
178
+
179
+ </wsdl:message>
180
+
181
+
182
+ <wsdl:message name="setNotesResponse">
183
+
184
+
185
+ <wsdl:part name="setNotesReturn" type="xsd:boolean"/>
186
+
187
+
188
+ </wsdl:message>
189
+
190
+
191
+ <wsdl:message name="getInfoRequest">
192
+
193
+
194
+ <wsdl:part name="fileId" type="xsd:int"/>
195
+
196
+
197
+ <wsdl:part name="retrieveContents" type="xsd:boolean"/>
198
+
199
+
200
+ </wsdl:message>
201
+
202
+
203
+ <wsdl:message name="uploadRequest">
204
+
205
+
206
+ <wsdl:part name="filename" type="xsd:string"/>
207
+
208
+
209
+ <wsdl:part name="contents" type="xsd:base64Binary"/>
210
+
211
+
212
+ <wsdl:part name="notes" type="xsd:string"/>
213
+
214
+
215
+ <wsdl:part name="versionString" type="xsd:string"/>
216
+
217
+
218
+ <wsdl:part name="propertyName" type="xsd:string"/>
219
+
220
+
221
+ <wsdl:part name="propertyType" type="xsd:string"/>
222
+
223
+
224
+ <wsdl:part name="propertyNameExactMatch" type="xsd:boolean"/>
225
+
226
+
227
+ <wsdl:part name="statusChangeEmail" type="xsd:string"/>
228
+
229
+
230
+ </wsdl:message>
231
+
232
+
233
+ <wsdl:message name="getIdsRequest">
234
+
235
+
236
+ </wsdl:message>
237
+
238
+
239
+ <wsdl:message name="deleteRequest">
240
+
241
+
242
+ <wsdl:part name="fileId" type="xsd:int"/>
243
+
244
+
245
+ </wsdl:message>
246
+
247
+
248
+ <wsdl:portType name="PublishECCU">
249
+
250
+
251
+ <wsdl:operation name="delete" parameterOrder="fileId">
252
+
253
+
254
+ <wsdl:input message="akapubeccudt:deleteRequest" name="deleteRequest"/>
255
+
256
+
257
+ <wsdl:output message="akapubeccudt:deleteResponse" name="deleteResponse"/>
258
+
259
+
260
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
261
+
262
+
263
+ </wsdl:operation>
264
+
265
+
266
+ <wsdl:operation name="setNotes" parameterOrder="fileId notes">
267
+
268
+
269
+ <wsdl:input message="akapubeccudt:setNotesRequest" name="setNotesRequest"/>
270
+
271
+
272
+ <wsdl:output message="akapubeccudt:setNotesResponse" name="setNotesResponse"/>
273
+
274
+
275
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
276
+
277
+
278
+ </wsdl:operation>
279
+
280
+
281
+ <wsdl:operation name="setStatusChangeEmail" parameterOrder="fileId statusChangeEmail">
282
+
283
+
284
+ <wsdl:input message="akapubeccudt:setStatusChangeEmailRequest" name="setStatusChangeEmailRequest"/>
285
+
286
+
287
+ <wsdl:output message="akapubeccudt:setStatusChangeEmailResponse" name="setStatusChangeEmailResponse"/>
288
+
289
+
290
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
291
+
292
+
293
+ </wsdl:operation>
294
+
295
+
296
+ <wsdl:operation name="upload" parameterOrder="filename contents notes versionString propertyName propertyType propertyNameExactMatch statusChangeEmail">
297
+
298
+
299
+ <wsdl:input message="akapubeccudt:uploadRequest" name="uploadRequest"/>
300
+
301
+
302
+ <wsdl:output message="akapubeccudt:uploadResponse" name="uploadResponse"/>
303
+
304
+
305
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
306
+
307
+
308
+ </wsdl:operation>
309
+
310
+
311
+ <wsdl:operation name="getIds">
312
+
313
+
314
+ <wsdl:input message="akapubeccudt:getIdsRequest" name="getIdsRequest"/>
315
+
316
+
317
+ <wsdl:output message="akapubeccudt:getIdsResponse" name="getIdsResponse"/>
318
+
319
+
320
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
321
+
322
+
323
+ </wsdl:operation>
324
+
325
+
326
+ <wsdl:operation name="getInfo" parameterOrder="fileId retrieveContents">
327
+
328
+
329
+ <wsdl:input message="akapubeccudt:getInfoRequest" name="getInfoRequest"/>
330
+
331
+
332
+ <wsdl:output message="akapubeccudt:getInfoResponse" name="getInfoResponse"/>
333
+
334
+
335
+ <wsdl:fault message="akapubeccudt:AWSFault" name="AWSFault"/>
336
+
337
+
338
+ </wsdl:operation>
339
+
340
+
341
+ </wsdl:portType>
342
+
343
+
344
+ <wsdl:binding name="PublishECCU" type="akapubeccudt:PublishECCU">
345
+
346
+
347
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
348
+
349
+
350
+ <wsdl:operation name="delete">
351
+
352
+
353
+ <wsdlsoap:operation soapAction=""/>
354
+
355
+
356
+ <wsdl:input name="deleteRequest">
357
+
358
+
359
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
360
+
361
+
362
+ </wsdl:input>
363
+
364
+
365
+ <wsdl:output name="deleteResponse">
366
+
367
+
368
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
369
+
370
+
371
+ </wsdl:output>
372
+
373
+
374
+ <wsdl:fault name="AWSFault">
375
+
376
+
377
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
378
+
379
+
380
+ </wsdl:fault>
381
+
382
+
383
+ </wsdl:operation>
384
+
385
+
386
+ <wsdl:operation name="setNotes">
387
+
388
+
389
+ <wsdlsoap:operation soapAction=""/>
390
+
391
+
392
+ <wsdl:input name="setNotesRequest">
393
+
394
+
395
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
396
+
397
+
398
+ </wsdl:input>
399
+
400
+
401
+ <wsdl:output name="setNotesResponse">
402
+
403
+
404
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
405
+
406
+
407
+ </wsdl:output>
408
+
409
+
410
+ <wsdl:fault name="AWSFault">
411
+
412
+
413
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
414
+
415
+
416
+ </wsdl:fault>
417
+
418
+
419
+ </wsdl:operation>
420
+
421
+
422
+ <wsdl:operation name="setStatusChangeEmail">
423
+
424
+
425
+ <wsdlsoap:operation soapAction=""/>
426
+
427
+
428
+ <wsdl:input name="setStatusChangeEmailRequest">
429
+
430
+
431
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
432
+
433
+
434
+ </wsdl:input>
435
+
436
+
437
+ <wsdl:output name="setStatusChangeEmailResponse">
438
+
439
+
440
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
441
+
442
+
443
+ </wsdl:output>
444
+
445
+
446
+ <wsdl:fault name="AWSFault">
447
+
448
+
449
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
450
+
451
+
452
+ </wsdl:fault>
453
+
454
+
455
+ </wsdl:operation>
456
+
457
+
458
+ <wsdl:operation name="upload">
459
+
460
+
461
+ <wsdlsoap:operation soapAction=""/>
462
+
463
+
464
+ <wsdl:input name="uploadRequest">
465
+
466
+
467
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
468
+
469
+
470
+ </wsdl:input>
471
+
472
+
473
+ <wsdl:output name="uploadResponse">
474
+
475
+
476
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
477
+
478
+
479
+ </wsdl:output>
480
+
481
+
482
+ <wsdl:fault name="AWSFault">
483
+
484
+
485
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
486
+
487
+
488
+ </wsdl:fault>
489
+
490
+
491
+ </wsdl:operation>
492
+
493
+
494
+ <wsdl:operation name="getIds">
495
+
496
+
497
+ <wsdlsoap:operation soapAction=""/>
498
+
499
+
500
+ <wsdl:input name="getIdsRequest">
501
+
502
+
503
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
504
+
505
+
506
+ </wsdl:input>
507
+
508
+
509
+ <wsdl:output name="getIdsResponse">
510
+
511
+
512
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
513
+
514
+
515
+ </wsdl:output>
516
+
517
+
518
+ <wsdl:fault name="AWSFault">
519
+
520
+
521
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
522
+
523
+
524
+ </wsdl:fault>
525
+
526
+
527
+ </wsdl:operation>
528
+
529
+
530
+ <wsdl:operation name="getInfo">
531
+
532
+
533
+ <wsdlsoap:operation soapAction=""/>
534
+
535
+
536
+ <wsdl:input name="getInfoRequest">
537
+
538
+
539
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
540
+
541
+
542
+ </wsdl:input>
543
+
544
+
545
+ <wsdl:output name="getInfoResponse">
546
+
547
+
548
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
549
+
550
+
551
+ </wsdl:output>
552
+
553
+
554
+ <wsdl:fault name="AWSFault">
555
+
556
+
557
+ <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AWSFault" namespace="https://control.akamai.com/2003/Sep/PublishECCU.xsd" use="encoded"/>
558
+
559
+
560
+ </wsdl:fault>
561
+
562
+
563
+ </wsdl:operation>
564
+
565
+
566
+ </wsdl:binding>
567
+
568
+
569
+ <wsdl:service name="PublishECCU">
570
+
571
+
572
+ <wsdl:port binding="akapubeccudt:PublishECCU" name="PublishECCU">
573
+
574
+
575
+ <wsdlsoap:address location="https://control.akamai.com/webservices/services/PublishECCU"/>
576
+
577
+
578
+ </wsdl:port>
579
+
580
+
581
+ </wsdl:service>
582
+
583
+
584
+ </wsdl:definitions>