akamai_ccu 1.3.6 → 1.3.7
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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/akamai_ccu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34081b860a9117fcb8b29d71142e7fc3b9a35f21
|
|
4
|
+
data.tar.gz: c050cdf93d6438e15e7117e6408f70b7b6f7ae76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7529688f00dda88a6f27d515b8e87efb59a5a59448fb8a0b5f1e942c6bbf4cb9b5d32444e627c8e6b89e957f390cdf27ae73f7629f1d071d1774ab646603df40
|
|
7
|
+
data.tar.gz: 384ab0c12360473d0b4751a13d8888c4eebd66c83934e595ea4a896dec633a89d232b107d06ba889f64f1a22c328e5c72382d134f73139f5e3a7ea126aca0fe5
|
data/README.md
CHANGED
|
@@ -112,26 +112,26 @@ AkamaiCCU::Wrapper.setup(secret)
|
|
|
112
112
|
The CCU V3 APIs allow for invalidating contents by URL or content provider (CP) code:
|
|
113
113
|
```ruby
|
|
114
114
|
# invalidating resources on staging by url
|
|
115
|
-
AkamaiCCU::Wrapper.invalidate_by_url(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/index.html]
|
|
115
|
+
AkamaiCCU::Wrapper.invalidate_by_url(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/index.html])
|
|
116
116
|
|
|
117
117
|
# invalidating resources on production (mind the "!") by CP code
|
|
118
|
-
AkamaiCCU::Wrapper.invalidate_by_cpcode!([12345, 98765]
|
|
118
|
+
AkamaiCCU::Wrapper.invalidate_by_cpcode!([12345, 98765])
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
#### Deleting
|
|
122
122
|
You can also delete contents by URL or CP code (just be aware of what you're doing):
|
|
123
123
|
```ruby
|
|
124
124
|
# deleting resources on staging by CP code
|
|
125
|
-
AkamaiCCU::Wrapper.delete_by_cpcode([12345, 98765]
|
|
125
|
+
AkamaiCCU::Wrapper.delete_by_cpcode([12345, 98765])
|
|
126
126
|
|
|
127
127
|
# deleting resources on production (mind the "!") by url
|
|
128
|
-
AkamaiCCU::Wrapper.delete_by_url!(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/main.js]
|
|
128
|
+
AkamaiCCU::Wrapper.delete_by_url!(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/main.js])
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
#### Response
|
|
132
132
|
The Net::HTTP response is wrapped by an utility struct:
|
|
133
133
|
```ruby
|
|
134
|
-
res = AkamaiCCU::Wrapper.invalidate_by_cpcode([12345, 98765]
|
|
134
|
+
res = AkamaiCCU::Wrapper.invalidate_by_cpcode([12345, 98765])
|
|
135
135
|
puts res
|
|
136
136
|
# status=201; detail=Request accepted; purge_id=e535071c-26b2-11e7-94d7-276f2f54d938; support_id=17PY1492793544958045-219026624; copletion_at=20170620T11:19:16+0000
|
|
137
137
|
```
|
data/lib/akamai_ccu/version.rb
CHANGED