megam_api 1.9.7 → 1.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/megam/api/disks.rb +10 -0
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/disks.rb +5 -0
- data/lib/megam/core/quotas.rb +0 -12
- metadata +3 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ac229c6d5f6017e7c13edd4488e1cc8e8e06e76
|
4
|
+
data.tar.gz: 7bb2e1f1e464d3ef41dfee99a3c58ff53f9c318d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80a2c4fced41eac197fc3f1dcab59a3447cdedc873f782958c49eacd2730a795fe11b85e2997566922f9f227a3d3e6a004edfffc9c8377e3e10099ec306c12db
|
7
|
+
data.tar.gz: f21c0a3e93f00a0e8eddfaaa40bfa54e1507b2421b709bf2cebc3bd6dd150dd07689dd76042d6f26e19ee20536846dc47d8f67a872306c16de4d916729dc969c
|
data/lib/megam/api/disks.rb
CHANGED
@@ -29,6 +29,16 @@ module Megam
|
|
29
29
|
:body => @options[:body]
|
30
30
|
)
|
31
31
|
end
|
32
|
+
def remove_disks(asm_id, disk_id)
|
33
|
+
|
34
|
+
@options = {:path => "/disks/delete/#{asm_id}/#{disk_id}",
|
35
|
+
:body => ""}.merge(@options)
|
36
|
+
request(
|
37
|
+
:expects => 201,
|
38
|
+
:method => :get,
|
39
|
+
:body => @options[:body]
|
40
|
+
)
|
41
|
+
end
|
32
42
|
|
33
43
|
end
|
34
44
|
end
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/disks.rb
CHANGED
data/lib/megam/core/quotas.rb
CHANGED
@@ -41,14 +41,6 @@ module Megam
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def cost(arg = nil)
|
45
|
-
if !arg.nil?
|
46
|
-
@cost = arg
|
47
|
-
else
|
48
|
-
@cost
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
44
|
def allowed(arg = nil)
|
53
45
|
if !arg.nil?
|
54
46
|
@allowed = arg
|
@@ -100,7 +92,6 @@ module Megam
|
|
100
92
|
index_hash['id'] = id
|
101
93
|
index_hash["account_id"] = account_id
|
102
94
|
index_hash['name'] = name
|
103
|
-
index_hash['cost'] = cost
|
104
95
|
index_hash['allowed'] = allowed
|
105
96
|
index_hash['allocated_to'] = allocated_to
|
106
97
|
index_hash['inputs'] = inputs
|
@@ -120,7 +111,6 @@ module Megam
|
|
120
111
|
'id' => id,
|
121
112
|
'account_id' => account_id,
|
122
113
|
'name' => name,
|
123
|
-
'cost' => cost,
|
124
114
|
'allowed' => allowed,
|
125
115
|
'allocated_to' => allocated_to,
|
126
116
|
'inputs' => inputs,
|
@@ -136,7 +126,6 @@ module Megam
|
|
136
126
|
quo.id(o['id']) if o.key?('id')
|
137
127
|
quo.account_id(o["account_id"]) if o.has_key?("account_id")
|
138
128
|
quo.name(o['name']) if o.key?('name')
|
139
|
-
quo.cost(o['cost']) if o.key?('cost')
|
140
129
|
quo.allowed(o['allowed']) if o.key?('allowed')
|
141
130
|
quo.allocated_to(o['allocated_to']) if o.key?('allocated_to') # this will be an array? can hash store array?
|
142
131
|
quo.inputs(o['inputs']) if o.key?('inputs')
|
@@ -155,7 +144,6 @@ module Megam
|
|
155
144
|
@id = o['id'] if o.key?('id')
|
156
145
|
@account_id = o["account_id"] if o.has_key?("account_id")
|
157
146
|
@name = o['name'] if o.key?('name')
|
158
|
-
@cost = o['cost'] if o.key?('cost')
|
159
147
|
@allowed = o['allowed'] if o.key?('allowed')
|
160
148
|
@allocated_to = o['allocated_to'] if o.key?('allocated_to')
|
161
149
|
@inputs = o['inputs'] if o.key?('inputs')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Vinodhini V, Rathish VBR, Rajesh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|
@@ -284,31 +284,4 @@ rubygems_version: 2.5.2
|
|
284
284
|
signing_key:
|
285
285
|
specification_version: 4
|
286
286
|
summary: Ruby Client for the Megam Vertice
|
287
|
-
test_files:
|
288
|
-
- test/mixins/test_assemblies.rb
|
289
|
-
- test/mixins/test_assembly.rb
|
290
|
-
- test/mixins/test_component.rb
|
291
|
-
- test/test_accounts.rb
|
292
|
-
- test/test_addons.rb
|
293
|
-
- test/test_assemblies.rb
|
294
|
-
- test/test_assembly.rb
|
295
|
-
- test/test_balances.rb
|
296
|
-
- test/test_billedhistories.rb
|
297
|
-
- test/test_billingtranscations.rb
|
298
|
-
- test/test_components.rb
|
299
|
-
- test/test_disks.rb
|
300
|
-
- test/test_domains.rb
|
301
|
-
- test/test_eventsbilling.rb
|
302
|
-
- test/test_eventscontainer.rb
|
303
|
-
- test/test_eventsstorage.rb
|
304
|
-
- test/test_eventsvm.rb
|
305
|
-
- test/test_helper.rb
|
306
|
-
- test/test_marketplaces.rb
|
307
|
-
- test/test_organizations.rb
|
308
|
-
- test/test_promos.rb
|
309
|
-
- test/test_reports.rb
|
310
|
-
- test/test_requests.rb
|
311
|
-
- test/test_sensors.rb
|
312
|
-
- test/test_snapshots.rb
|
313
|
-
- test/test_sshkeys.rb
|
314
|
-
- test/test_subscriptions.rb
|
287
|
+
test_files: []
|