amazon-pricing 0.1.120 → 0.1.121
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzUyM2VjNDk5NzU3NTY0MzNkNjdlYTUxOTlkZjcxNWYyMzBkYWQ3OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmYwN2EwYzFmZjdkNDBlYTdkODMxN2Q5OWRlMWU1N2ZjMGEzYmUzNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjgyNDZlZWM5Yzc2MjkxMjU2NDZmYjU1M2U4ZTkwMjQ0MDI0NzkwN2IzYWNm
|
10
|
+
ZTJhODM3OGUzNTQzYTMwYzBjNThjMzNlOGIyNzA3ZTA5Y2U4NmNjYWIzNWZj
|
11
|
+
NGQ2NTk5NGYxZDQ2OGZkOGY2OWUwMWQyMzViZTg4YmFiMmM0OTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTljZjQ4OTUwZTRhZWI4ZTVmOGMyMGZhM2RlMTljYmY0NjViOTAxYzhjYWM2
|
14
|
+
NzM5ZmQxNjExYzY5MjRiOTcxNTAwNWVjMTAxZDZkY2ZjNWQyMGI3ZGZiNWRj
|
15
|
+
NjQ4NmNmNDM5M2Q0ZDQ3ZmRjNGQ0YjhjZGIzYjVhOWJlY2U5NGU=
|
@@ -143,6 +143,35 @@ module AwsPricing
|
|
143
143
|
network_mbps
|
144
144
|
end
|
145
145
|
|
146
|
+
# Take in string from amazon pricing api, return network properties
|
147
|
+
# Input: String containing network capacity from amazon-pricing-api
|
148
|
+
# Output: network throughput as a string, int containing network mbps
|
149
|
+
def self.get_network_information(network_string)
|
150
|
+
throughput = nil
|
151
|
+
case network_string
|
152
|
+
when 'Very Low'
|
153
|
+
throughput = :very_low
|
154
|
+
when 'Low'
|
155
|
+
throughput = :low
|
156
|
+
when 'Low to Moderate'
|
157
|
+
throughput = :low_to_moderate
|
158
|
+
when 'Moderate'
|
159
|
+
throughput = :moderate
|
160
|
+
when 'High'
|
161
|
+
throughput = :high
|
162
|
+
when '10 Gigabit','Up to 10 Gigabit'
|
163
|
+
throughput = :ten_gigabit
|
164
|
+
when '20 Gigabit'
|
165
|
+
throughput = :twenty_gigabit
|
166
|
+
when '25 Gigabit'
|
167
|
+
throughput = :twentyfive_gigabit
|
168
|
+
else
|
169
|
+
$stderr.puts "[#{__method__}] WARNING: unknown network throughput string:#{network_string}"
|
170
|
+
end
|
171
|
+
network_mbps = @Network_Throughput_MBits_Per_Second[throughput]
|
172
|
+
[throughput.to_s, network_mbps]
|
173
|
+
end
|
174
|
+
|
146
175
|
protected
|
147
176
|
# Returns [api_name, name]
|
148
177
|
def self.get_name(instance_type, api_name, is_reserved = false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon-pricing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.121
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Kinsella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|