awscosts 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fixtures/vcr_cassettes/AWSCosts_S3Requests.yml +1 -1
- data/lib/awscosts/s3_requests.rb +4 -5
- data/lib/awscosts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42284f12af369cb295c399dee6f5d8524f876f3a
|
4
|
+
data.tar.gz: 355e0bc0b690add2ef5d172827f7696bae0b9a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 529eb3c9a8c19080f28707377f938ed6d7d55f50d2148331f50d2fd98b7ebcb1902f283e5812474a84259ef7853dd919bd743669377495301c57ac85be52eb26
|
7
|
+
data.tar.gz: 543ac01f1ab2de6c2a7144a540f3d07bbc7df8d27f771de26de47483e700579453404578b7366f8ba32e7994d44ef4a45f040e3a5d5a68f9d5bb9aaaf7769152
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
*
|
47
47
|
* Copyright 2014 Amazon.com, Inc. or its affiliates. All rights reserved.
|
48
48
|
*/
|
49
|
-
callback({vers:0.01,config:{currencies:["USD"],valueColumns:["pricing"],regions:[{region:"us-std",footnotes:{"†":"
|
49
|
+
callback({vers:0.01,config:{currencies:["USD"],valueColumns:["pricing"],regions:[{region:"us-std",footnotes:{"†":"chargesForGlacierDeletes021","‡":"glacierNotes01"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.05"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"us-west-2",footnotes:{"†":"chargesForGlacierDeletes021","‡":"glacierNotes01"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.05"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"us-west-1",footnotes:{"†":"chargesForGlacierDeletes033","‡":"glacierNotes011"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.0055"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0044"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.055"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"eu-west-1",footnotes:{"†":"chargesForGlacierDeletes021","‡":"glacierNotes011"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.055"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"eu-central-1",footnotes:{"†":"chargesForGlacierDeletes036","‡":"glacierNotes012"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.0054"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0043"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.060"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"ap-southeast-1",footnotes:{"†":"noChargeForDeletes"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]}]},{region:"ap-northeast-1",footnotes:{"†":"chargesForGlacierDeletes0342","‡":"glacierNotes0114"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.0047"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0037"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.0571"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"ap-southeast-2",footnotes:{"†":"chargesForGlacierDeletes036","‡":"glacierNotes012"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.0055"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0044"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]},{name:"forGlacierRequests",tiers:[{name:"glacierRequests",prices:{USD:"0.060"},rate:"per1kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]}]},{region:"sa-east-1",footnotes:{"†":"noChargeForDeletes"},types:[{name:"requestNotSpecified",tiers:[{name:"putcopypost",prices:{USD:"0.007"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0056"},rate:"per10kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"}]},{name:"infrequentAccessRequests",tiers:[{name:"putCopyOrPost",prices:{USD:"0.01"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.01"},rate:"per10kReq"},{name:"infrequentTransitionRequests",prices:{USD:"0.01"},rate:"per1kReq"},{name:"dataRetrieval",prices:{USD:"0.01"},rate:"perGB"}]}]}]}});
|
50
50
|
http_version: '1.1'
|
51
51
|
recorded_at: Wed, 08 Jul 2015 06:40:44 GMT
|
52
52
|
recorded_with: VCR 2.9.3
|
data/lib/awscosts/s3_requests.rb
CHANGED
@@ -15,8 +15,10 @@ class AWSCosts::S3Requests
|
|
15
15
|
result = {}
|
16
16
|
data['config']['regions'].each do |r|
|
17
17
|
tiers = {}
|
18
|
-
r['
|
19
|
-
|
18
|
+
r['types'].each do |tier|
|
19
|
+
tier['tiers'].each do |t|
|
20
|
+
tiers[t['name']] = { rate: t['rate'], price: t['prices']['USD'].to_f}
|
21
|
+
end
|
20
22
|
end
|
21
23
|
result[r['region']] = tiers
|
22
24
|
end
|
@@ -24,7 +26,4 @@ class AWSCosts::S3Requests
|
|
24
26
|
end
|
25
27
|
self.new(transformed[region])
|
26
28
|
end
|
27
|
-
|
28
29
|
end
|
29
|
-
|
30
|
-
|
data/lib/awscosts/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awscosts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Bartlett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|