megam_api 1.9.7 → 1.9.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 510496bc05f80649964c2122084de474a3c2f0c4
4
- data.tar.gz: 927cc27b4a57903926eca10d5d490a022e00cdaf
3
+ metadata.gz: 8ac229c6d5f6017e7c13edd4488e1cc8e8e06e76
4
+ data.tar.gz: 7bb2e1f1e464d3ef41dfee99a3c58ff53f9c318d
5
5
  SHA512:
6
- metadata.gz: 3dbdad2b577de1cef35f249917e5fd07394779766946d054bdbfdbb2827faf273909fc0827950a26a51e208696d66ea4383aa3fe9dc2c204567735c4d1925625
7
- data.tar.gz: '08c2d64c609d2398c9761c5d758823b6ddeb66c61a397086a1ac89d603fc46c928c0a0b48f834f56e168e99a1e6b6d755f825a3128e4494f7f9232e9848ac7cf'
6
+ metadata.gz: 80a2c4fced41eac197fc3f1dcab59a3447cdedc873f782958c49eacd2730a795fe11b85e2997566922f9f227a3d3e6a004edfffc9c8377e3e10099ec306c12db
7
+ data.tar.gz: f21c0a3e93f00a0e8eddfaaa40bfa54e1507b2421b709bf2cebc3bd6dd150dd07689dd76042d6f26e19ee20536846dc47d8f67a872306c16de4d916729dc969c
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.9.7"
3
+ VERSION = "1.9.8"
4
4
  end
5
5
  end
@@ -186,6 +186,11 @@ module Megam
186
186
  dks.megam_rest.list_disks
187
187
  end
188
188
 
189
+ def self.remove(o)
190
+ dks = self.new(o)
191
+ dks.megam_rest.remove_disks(o[:id], o[:disk_id])
192
+ end
193
+
189
194
  def to_s
190
195
  Megam::Stuff.styled_hash(to_hash)
191
196
  end
@@ -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.7
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-19 00:00:00.000000000 Z
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: []