megam_api 1.9.6 → 1.9.7
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 +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/snapshots.rb +8 -8
- data/lib/megam/core/snapshots_collection.rb +1 -1
- data/lib/megam/mixins/common_deployable.rb +3 -2
- metadata +29 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510496bc05f80649964c2122084de474a3c2f0c4
|
4
|
+
data.tar.gz: 927cc27b4a57903926eca10d5d490a022e00cdaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dbdad2b577de1cef35f249917e5fd07394779766946d054bdbfdbb2827faf273909fc0827950a26a51e208696d66ea4383aa3fe9dc2c204567735c4d1925625
|
7
|
+
data.tar.gz: '08c2d64c609d2398c9761c5d758823b6ddeb66c61a397086a1ac89d603fc46c928c0a0b48f834f56e168e99a1e6b6d755f825a3128e4494f7f9232e9848ac7cf'
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/snapshots.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Megam
|
2
2
|
class Snapshots < Megam::RestAdapter
|
3
3
|
def initialize(o)
|
4
|
-
@
|
4
|
+
@id = nil
|
5
5
|
@account_id = nil
|
6
6
|
@asm_id = nil
|
7
7
|
@org_id = nil
|
@@ -19,11 +19,11 @@ module Megam
|
|
19
19
|
def snapshots
|
20
20
|
self
|
21
21
|
end
|
22
|
-
def
|
22
|
+
def id(arg=nil)
|
23
23
|
if arg != nil
|
24
|
-
@
|
24
|
+
@id = arg
|
25
25
|
else
|
26
|
-
@
|
26
|
+
@id
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -125,7 +125,7 @@ module Megam
|
|
125
125
|
def to_hash
|
126
126
|
index_hash = Hash.new
|
127
127
|
index_hash["json_claz"] = self.class.name
|
128
|
-
index_hash["
|
128
|
+
index_hash["id"] = id
|
129
129
|
index_hash["account_id"] = account_id
|
130
130
|
index_hash["asm_id"] = asm_id
|
131
131
|
index_hash["org_id"] = org_id
|
@@ -148,7 +148,7 @@ module Megam
|
|
148
148
|
|
149
149
|
def for_json
|
150
150
|
result = {
|
151
|
-
"
|
151
|
+
"id" => id,
|
152
152
|
"account_id" => account_id,
|
153
153
|
"asm_id" => asm_id,
|
154
154
|
"org_id" => org_id,
|
@@ -165,7 +165,7 @@ module Megam
|
|
165
165
|
|
166
166
|
def self.json_create(o)
|
167
167
|
sps = new({})
|
168
|
-
sps.
|
168
|
+
sps.id(o["id"]) if o.has_key?("id")
|
169
169
|
sps.account_id(o["account_id"]) if o.has_key?("account_id")
|
170
170
|
sps.asm_id(o["asm_id"]) if o.has_key?("asm_id")
|
171
171
|
sps.org_id(o["org_id"]) if o.has_key?("org_id") #this will be an array? can hash store array?
|
@@ -190,7 +190,7 @@ module Megam
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def from_hash(o)
|
193
|
-
@
|
193
|
+
@id = o[:id] if o.has_key?(:id)
|
194
194
|
@account_id = o[:account_id] if o.has_key?(:account_id)
|
195
195
|
@asm_id = o[:asm_id] if o.has_key?(:asm_id)
|
196
196
|
@org_id = o[:org_id] if o.has_key?(:org_id)
|
@@ -57,7 +57,7 @@ module Megam
|
|
57
57
|
|
58
58
|
attr_reader :domain, :keypairoption, :root_password, :sshkey, :provider, :cpu, :ram, :hdd,
|
59
59
|
:version, :display_name, :password, :region, :resource, :storage_hddtype,
|
60
|
-
:ipv4public, :ipv4private, :ipv6public, :ipv6private, :bitnami_username, :bitnami_password, :root_username, :snapshot, :snap_name
|
60
|
+
:ipv4public, :ipv4private, :ipv6public, :ipv6private, :bitnami_username, :bitnami_password, :root_username, :snapshot, :snap_name, :quota_id
|
61
61
|
|
62
62
|
ATTRIBUTES = [
|
63
63
|
:domain,
|
@@ -82,7 +82,8 @@ module Megam
|
|
82
82
|
:bitnami_username,
|
83
83
|
:root_username,
|
84
84
|
:snapshot,
|
85
|
-
:snap_name
|
85
|
+
:snap_name,
|
86
|
+
:quota_id]
|
86
87
|
|
87
88
|
def attributes
|
88
89
|
ATTRIBUTES
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Vinodhini V, Rathish VBR, Rajesh
|
@@ -284,4 +284,31 @@ 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:
|
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
|