megam_api 1.10.8 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef8179eb066686dd34c028f4d6c70be11e98011e
4
- data.tar.gz: 706e01c77f578c3cdf19afb42d037111d1deeb8a
3
+ metadata.gz: 7aa472adc539b1a6d3537fb9b8a4ea3732e26753
4
+ data.tar.gz: 5faa64a818de996faa61017f69b60c745c1f9884
5
5
  SHA512:
6
- metadata.gz: 593c248b60dc7d654e7a0e79cdae692ad306ff4c3cdb9d6be6cffd2c7703b2d4ee2b3bf9d271f39696964eb742efe46c78741423e97ee7de372c63cffeb9834a
7
- data.tar.gz: 1596a21149c68610b9fc29d4982c64297a9f95b83b63a3eebf658397581204d6349b53a4f09b9806cf09b88c51b13327f5fd95697e38d361375aa49520bf8882
6
+ metadata.gz: c464c9305916044a52e67e8e2f442bec72bfba0793333c39cd62cf639001edfa22e2adb179a2c8c4794d5fffa83dacd7863b09e774bd45a90e7d35f66d42c4d1
7
+ data.tar.gz: 389861d893429f24713053d5908c6b617d47c99cdd297883110aa0fd7281b955b6a573cc6915bb8be2ea08dac0be6edcabf299192381b93e4bd89195fcf7e6c7
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.10.8"
3
+ VERSION = "1.11.1"
4
4
  end
5
5
  end
@@ -13,6 +13,7 @@ module Megam
13
13
  @disk_id=nil
14
14
  @snap_id=nil
15
15
  @created_at = nil
16
+ @updated_at = nil
16
17
  @some_msg = {}
17
18
  super(o)
18
19
  end
@@ -116,6 +117,14 @@ module Megam
116
117
  end
117
118
  end
118
119
 
120
+ def updated_at(arg=nil)
121
+ if arg != nil
122
+ @updated_at = arg
123
+ else
124
+ @updated_at
125
+ end
126
+ end
127
+
119
128
  def error?
120
129
  crocked = true if (some_msg.has_key?(:msg_type) && some_msg[:msg_type] == "error")
121
130
  end
@@ -146,6 +155,7 @@ module Megam
146
155
  index_hash["disk_id"] = disk_id
147
156
  index_hash["snap_id"] = snap_id
148
157
  index_hash["created_at"] = created_at
158
+ index_hash["updated_at"] = updated_at
149
159
  index_hash["some_msg"] = some_msg
150
160
  index_hash
151
161
  end
@@ -169,7 +179,8 @@ module Megam
169
179
  "status" => status,
170
180
  "disk_id" => disk_id,
171
181
  "snap_id" => snap_id,
172
- "created_at" => created_at
182
+ "created_at" => created_at,
183
+ "updated_at" => updated_at
173
184
  }
174
185
  result
175
186
  end
@@ -188,6 +199,7 @@ module Megam
188
199
  sps.disk_id(o["disk_id"]) if o.has_key?("disk_id")
189
200
  sps.snap_id(o["snap_id"]) if o.has_key?("snap_id")
190
201
  sps.created_at(o["created_at"]) if o.has_key?("created_at")
202
+ sps.created_at(o["updated_at"]) if o.has_key?("updated_at")
191
203
  sps.some_msg[:code] = o["code"] if o.has_key?("code")
192
204
  sps.some_msg[:msg_type] = o["msg_type"] if o.has_key?("msg_type")
193
205
  sps.some_msg[:msg]= o["msg"] if o.has_key?("msg")
@@ -214,6 +226,7 @@ module Megam
214
226
  @disk_id = o[:disk_id] if o.has_key?(:disk_id)
215
227
  @snap_id = o[:snap_id] if o.has_key?(:snap_id)
216
228
  @created_at = o[:created_at] if o.has_key?(:created_at)
229
+ @updated_at = o[:updated_at] if o.has_key?(:updated_at)
217
230
  self
218
231
  end
219
232
 
@@ -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, :quota_id,
60
+ :ipv4public, :ipv4private, :ipv6public, :ipv6private, :bitnami_username, :bitnami_password, :root_username, :backup, :backup_name, :quota_id,
61
61
  :vm_cpu_cost_per_hour, :vm_ram_cost_per_hour,
62
62
  :vm_disk_cost_per_hour, :container_cpu_cost_per_hour, :container_memory_cost_per_hour
63
63
 
@@ -83,8 +83,8 @@ module Megam
83
83
  :bitnami_password,
84
84
  :bitnami_username,
85
85
  :root_username,
86
- :snapshot,
87
- :snap_name,
86
+ :backup,
87
+ :backup_name,
88
88
  :quota_id,
89
89
  :vm_cpu_cost_per_hour,
90
90
  :vm_ram_cost_per_hour,
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.10.8
4
+ version: 1.11.1
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-02-02 00:00:00.000000000 Z
12
+ date: 2017-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon