megam_api 1.52.4 → 1.52.5
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/version.rb +1 -1
- data/lib/megam/core/backups.rb +13 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56cf1eac6ae578bc5ae75b89837c65f2f35d5f5
|
4
|
+
data.tar.gz: e3f600efdc781a593c1d3c053e4cd50d7b856601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8044162d9751d05960dd673e6a2b361fa5d580ca7534665d320aa22d73c8af522aff0e9602a7ca17d992719dc15801584455c02eceab08728a7abb2186aa471
|
7
|
+
data.tar.gz: 6f98f70661aa67a4354ee4bbb88b75469c814afeafd359c1309f4382db1b5131f0c2c3ca79e2c263cf8602be78efe33f01f5f29ecc340138645a86e4905086ae
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/backups.rb
CHANGED
@@ -8,6 +8,7 @@ module Megam
|
|
8
8
|
@tosca_type = nil
|
9
9
|
@inputs = []
|
10
10
|
@outputs = []
|
11
|
+
@labels = []
|
11
12
|
@name= nil
|
12
13
|
@status=nil
|
13
14
|
@image_id=nil
|
@@ -66,6 +67,13 @@ module Megam
|
|
66
67
|
@inputs
|
67
68
|
end
|
68
69
|
end
|
70
|
+
def labels(arg=[])
|
71
|
+
if arg != []
|
72
|
+
@labels=arg
|
73
|
+
else
|
74
|
+
@labels
|
75
|
+
end
|
76
|
+
end
|
69
77
|
|
70
78
|
def outputs(arg = [])
|
71
79
|
if arg != []
|
@@ -129,6 +137,7 @@ module Megam
|
|
129
137
|
index_hash["account_id"] = account_id
|
130
138
|
index_hash["asm_id"] = asm_id
|
131
139
|
index_hash["org_id"] = org_id
|
140
|
+
index_hash["labels"] = labels
|
132
141
|
index_hash["tosca_type"] = tosca_type
|
133
142
|
index_hash["inputs"] = inputs
|
134
143
|
index_hash["outputs"] = outputs
|
@@ -158,7 +167,8 @@ module Megam
|
|
158
167
|
"name" => name,
|
159
168
|
"status" => status,
|
160
169
|
"image_id" => image_id,
|
161
|
-
"created_at" => created_at
|
170
|
+
"created_at" => created_at,
|
171
|
+
"labels" =>label,
|
162
172
|
}
|
163
173
|
result
|
164
174
|
end
|
@@ -176,6 +186,7 @@ module Megam
|
|
176
186
|
sps.status(o["status"]) if o.has_key?("status")
|
177
187
|
sps.image_id(o["image_id"]) if o.has_key?("image_id")
|
178
188
|
sps.created_at(o["created_at"]) if o.has_key?("created_at")
|
189
|
+
sps.labels(o["labels"]) if o.key?("labels")
|
179
190
|
sps.some_msg[:code] = o["code"] if o.has_key?("code")
|
180
191
|
sps.some_msg[:msg_type] = o["msg_type"] if o.has_key?("msg_type")
|
181
192
|
sps.some_msg[:msg]= o["msg"] if o.has_key?("msg")
|
@@ -201,6 +212,7 @@ module Megam
|
|
201
212
|
@status = o[:status] if o.has_key?(:status)
|
202
213
|
@image_id = o[:image_id] if o.has_key?(:image_id)
|
203
214
|
@created_at = o[:created_at] if o.has_key?(:created_at)
|
215
|
+
@labels = o[:labels] if o.key?(:labels)
|
204
216
|
self
|
205
217
|
end
|
206
218
|
|
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.52.
|
4
|
+
version: 1.52.5
|
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: 2017-
|
12
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|