megam_api 1.8.11 → 1.8.12

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: 4da40e9ab392e1d3a1b26d97467139f749825987
4
- data.tar.gz: 832826500a8e976eb192f2f22991bff4c299aa99
3
+ metadata.gz: daf46476adb02af8e0cc3f93704cb33cb25c46d0
4
+ data.tar.gz: eeed640b4382130111658aae22a8f7903b935a87
5
5
  SHA512:
6
- metadata.gz: c9c5391b4c196598a2d60a09dd7681998a0fcf66216e0d18991bdd0253e512594ee7adc2f19d5da064048554290029c83a52be137ff22ea944af4a3c7e2874fe
7
- data.tar.gz: 6c8690543318c8475b6884a63010fe70279c8aeae9e4d570b4926ae40263a49775fbc410998e37b4e37cb89f81ec8781d91ed774f015a752c4f0f4cc55238652
6
+ metadata.gz: 48de42573abbf43b2d69a76782efb0cb6270c813f27245abeb8e94d90f78cb5a43b9960ed96b1a4c32be53efc9975b20e7d0c568975de66e54e4beb337f6438e
7
+ data.tar.gz: b317cd8158acda180458fe7651a8021f541207ae907cd1506e9c670706bf0bc44d522035706aa54fa37d51c9bf44bda59f09c5ca2654bb97b2ccaf71232a8d9b
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.8.11"
3
+ VERSION = "1.8.12"
4
4
  end
5
5
  end
@@ -5,6 +5,9 @@ module Megam
5
5
  @account_id = nil
6
6
  @asm_id = nil
7
7
  @org_id = nil
8
+ @tosca_type = nil
9
+ @inputs = []
10
+ @outputs = []
8
11
  @name= nil
9
12
  @status=nil
10
13
  @image_id=nil
@@ -48,6 +51,30 @@ module Megam
48
51
  end
49
52
  end
50
53
 
54
+ def tosca_type(arg = nil)
55
+ if !arg.nil?
56
+ @tosca_type = arg
57
+ else
58
+ @tosca_type
59
+ end
60
+ end
61
+
62
+ def inputs(arg = [])
63
+ if arg != []
64
+ @inputs = arg
65
+ else
66
+ @inputs
67
+ end
68
+ end
69
+
70
+ def outputs(arg = [])
71
+ if arg != []
72
+ @outputs = arg
73
+ else
74
+ @outputs
75
+ end
76
+ end
77
+
51
78
  def name(arg=nil)
52
79
  if arg != nil
53
80
  @name = arg
@@ -102,6 +129,9 @@ module Megam
102
129
  index_hash["account_id"] = account_id
103
130
  index_hash["asm_id"] = asm_id
104
131
  index_hash["org_id"] = org_id
132
+ index_hash["tosca_type"] = tosca_type
133
+ index_hash["inputs"] = inputs
134
+ index_hash["outputs"] = outputs
105
135
  index_hash["name"] = name
106
136
  index_hash["status"] = status
107
137
  index_hash["image_id"] = image_id
@@ -122,6 +152,9 @@ module Megam
122
152
  "account_id" => account_id,
123
153
  "asm_id" => asm_id,
124
154
  "org_id" => org_id,
155
+ "tosca_type" => tosca_type,
156
+ "inputs" => inputs,
157
+ "outputs" => outputs,
125
158
  "name" => name,
126
159
  "status" => status,
127
160
  "image_id" => image_id,
@@ -136,6 +169,9 @@ module Megam
136
169
  sps.account_id(o["account_id"]) if o.has_key?("account_id")
137
170
  sps.asm_id(o["asm_id"]) if o.has_key?("asm_id")
138
171
  sps.org_id(o["org_id"]) if o.has_key?("org_id") #this will be an array? can hash store array?
172
+ sps.tosca_type(o['tosca_type']) if o.key?('tosca_type')
173
+ sps.inputs(o['inputs']) if o.key?('inputs')
174
+ sps.outputs(o['outputs']) if o.key?('outputs')
139
175
  sps.name(o["name"]) if o.has_key?("name")
140
176
  sps.status(o["status"]) if o.has_key?("status")
141
177
  sps.image_id(o["status"]) if o.has_key?("image_id")
@@ -158,6 +194,9 @@ module Megam
158
194
  @account_id = o[:account_id] if o.has_key?(:account_id)
159
195
  @asm_id = o[:asm_id] if o.has_key?(:asm_id)
160
196
  @org_id = o[:org_id] if o.has_key?(:org_id)
197
+ @tosca_type = o[:tosca_type] if o.key?(:tosca_type)
198
+ @inputs = o[:inputs] if o.key?(:inputs)
199
+ @outputs = o[:outputs] if o.key?(:outputs)
161
200
  @name = o[:name] if o.has_key?(:name)
162
201
  @status = o[:status] if o.has_key?(:status)
163
202
  @image_id = o[:image_id] if o.has_key?(:image_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
60
+ :ipv4public, :ipv4private, :ipv6public, :ipv6private, :bitnami_username, :bitnami_password, :root_username, :snapshot, :snap_name
61
61
 
62
62
  ATTRIBUTES = [
63
63
  :domain,
@@ -79,7 +79,10 @@ module Megam
79
79
  :ipv6private,
80
80
  :ipv6public,
81
81
  :bitnami_password,
82
- :bitnami_username]
82
+ :bitnami_username,
83
+ :root_username,
84
+ :snapshot,
85
+ :snap_name]
83
86
 
84
87
  def attributes
85
88
  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.8.11
4
+ version: 1.8.12
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-10-14 00:00:00.000000000 Z
12
+ date: 2016-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon