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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3422f781e513dd882c5ab6ad9b15a971c8736ac5
4
- data.tar.gz: 968a727c9dfde3c0fd1b4d78a075b53207872284
3
+ metadata.gz: 42284f12af369cb295c399dee6f5d8524f876f3a
4
+ data.tar.gz: 355e0bc0b690add2ef5d172827f7696bae0b9a94
5
5
  SHA512:
6
- metadata.gz: 77585d2fcc6712018becb4c93a037bee5136d7d30654703d6e1430ba717c412f93e86d5ffb20be7bc334a661fdd97ec6b53fa751dd03a83ffe4997ae5e64bad6
7
- data.tar.gz: 6e7c38273b203fd99c30734e1b3f14226e1e06cc306a098899cef3d2e2aaf3c6e69ca7e6db478a96046f96c7bffedbb69a4552e865d145feadf6512fd6fdac0d
6
+ metadata.gz: 529eb3c9a8c19080f28707377f938ed6d7d55f50d2148331f50d2fd98b7ebcb1902f283e5812474a84259ef7853dd919bd743669377495301c57ac85be52eb26
7
+ data.tar.gz: 543ac01f1ab2de6c2a7144a540f3d07bbc7df8d27f771de26de47483e700579453404578b7366f8ba32e7994d44ef4a45f040e3a5d5a68f9d5bb9aaaf7769152
data/README.md CHANGED
@@ -74,7 +74,7 @@ Pricing is also available for data transfer
74
74
 
75
75
  And request pricing
76
76
 
77
- region.s3.request.price
77
+ region.s3.requests.price
78
78
 
79
79
  ### EBS
80
80
 
@@ -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:{"†":"chargesForGlacierDeletes03","‡":"glacierNotes01"},tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.05"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"us-west-2",footnotes:{"†":"chargesForGlacierDeletes03","‡":"glacierNotes01"},tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.05"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"us-west-1",footnotes:{"†":"chargesForGlacierDeletes033","‡":"glacierNotes011"},tiers:[{name:"putcopypost",prices:{USD:"0.0055"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.055"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0044"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"eu-west-1",footnotes:{"†":"chargesForGlacierDeletes033","‡":"glacierNotes011"},tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.055"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"eu-central-1",footnotes:{"†":"chargesForGlacierDeletes036","‡":"glacierNotes012"},tiers:[{name:"putcopypost",prices:{USD:"0.0054"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.060"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0043"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"ap-southeast-1",footnotes:{"†":"noChargeForDeletes"},tiers:[{name:"putcopypost",prices:{USD:"0.005"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.004"},rate:"per10kReq"}]},{region:"ap-northeast-1",footnotes:{"†":"chargesForGlacierDeletes0342","‡":"glacierNotes0114"},tiers:[{name:"putcopypost",prices:{USD:"0.0047"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.0571"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0037"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"ap-southeast-2",footnotes:{"†":"chargesForGlacierDeletes036","‡":"glacierNotes012"},tiers:[{name:"putcopypost",prices:{USD:"0.0055"},rate:"per1kReq"},{name:"glacierRequests",prices:{USD:"0.060"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"}},{name:"getEtc",prices:{USD:"0.0044"},rate:"per10kReq"},{name:"glacierDataRestore",prices:{USD:"Free ‡"}}]},{region:"sa-east-1",footnotes:{"†":"noChargeForDeletes"},tiers:[{name:"putcopypost",prices:{USD:"0.007"},rate:"per1kReq"},{name:"deleteRequests",prices:{USD:"Free †"},rate:"per1kReq"},{name:"getEtc",prices:{USD:"0.0056"},rate:"per10kReq"}]}]}});
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
@@ -15,8 +15,10 @@ class AWSCosts::S3Requests
15
15
  result = {}
16
16
  data['config']['regions'].each do |r|
17
17
  tiers = {}
18
- r['tiers'].each do |tier|
19
- tiers[tier['name']] = { rate: tier['rate'], price: tier['prices']['USD'].to_f}
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
-
@@ -1,3 +1,3 @@
1
1
  module AWSCosts
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty