megam_api 1.52.4 → 1.52.5

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: dc103278812badf05756a07b15fd92a49fd4164e
4
- data.tar.gz: 59af9286063abd2e99f12a1b6abfed752f83e5d3
3
+ metadata.gz: a56cf1eac6ae578bc5ae75b89837c65f2f35d5f5
4
+ data.tar.gz: e3f600efdc781a593c1d3c053e4cd50d7b856601
5
5
  SHA512:
6
- metadata.gz: f0849c39c1c9565589a20309ebf9f96da06065d7e38ce5bf363bc2fd8e7912d038e63c82463620707057a4537be2fc1fc7a22d406d8ab415c13cdb153df66109
7
- data.tar.gz: a0c89ba3a09ce3dd1ef55051f0665aa65de74c15810c37ef6341aadf6952f1611da994c9642008bebd1da2a56ecbf540b6cd0f6e85efdf41e3a228af93af481b
6
+ metadata.gz: f8044162d9751d05960dd673e6a2b361fa5d580ca7534665d320aa22d73c8af522aff0e9602a7ca17d992719dc15801584455c02eceab08728a7abb2186aa471
7
+ data.tar.gz: 6f98f70661aa67a4354ee4bbb88b75469c814afeafd359c1309f4382db1b5131f0c2c3ca79e2c263cf8602be78efe33f01f5f29ecc340138645a86e4905086ae
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.52.4"
3
+ VERSION = "1.52.5"
4
4
  end
5
5
  end
@@ -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
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-05-09 00:00:00.000000000 Z
12
+ date: 2017-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon