megam_api 1.5.beta2 → 1.5.beta4

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: e3c1c1f8eda74d69c6e721b36a1d4266a35c013b
4
- data.tar.gz: e601f5d38a95771f9640f208c3b4978df0c4404d
3
+ metadata.gz: f3b7e1ccc6b734fad35cc5d649f2802ba83392c2
4
+ data.tar.gz: adf6d7ef48542c53b2f848df6ffe2ede953376a9
5
5
  SHA512:
6
- metadata.gz: 4fcb38fe7ddcd5df82f7dd441f24e000ed8df47ed946f09941aa3904631017d74174ea9c346b308dd662da5d72ed41773a5ac541ba4d9f2d3b376174e448136e
7
- data.tar.gz: 292a610d1c3d11c95c20e05af0b9dde48f2f33b37ce4abdd0be76c6fc7bc6e236b74264cc243a42d26d55efe7b3280b31f4198b0f5316926c965480d52553cee
6
+ metadata.gz: 70d9e54d564fb7a3b47290cb6d477d41ad50194eace6f956cf2dc4bd919510dde5b54d36d31fcf86f1a61ae87690c967f7e6a68078bf79f78c921819c9bbbac6
7
+ data.tar.gz: ec79766a10e0c980a50757a12c663636d5e53e50011c453bcfaa39385de5fa098ce1ad83bb2e94f380185ef53d7f987e8b3e877455230afd5cf552a25d56a9a3
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Megam
17
17
  class API
18
- VERSION = "1.5.beta2"
18
+ VERSION = "1.5.beta4"
19
19
  end
20
20
  end
@@ -47,7 +47,7 @@ module Megam
47
47
  @accounts_id
48
48
  end
49
49
  end
50
-
50
+
51
51
  def org_id(arg=nil)
52
52
  if arg != nil
53
53
  @org_id = arg
@@ -152,13 +152,13 @@ module Megam
152
152
  end
153
153
 
154
154
  def from_hash(o)
155
- @id = o["id"] if o.has_key?("id")
156
- @name = o["name"] if o.has_key?("name")
157
- @accounts_id = o["accounts_id"] if o.has_key?("accounts_id")
158
- @org_id = o["org_id"] if o.has_key?("org_id")
159
- @assemblies = o["assemblies"] if o.has_key?("assemblies")
160
- @inputs = o["inputs"] if o.has_key?("inputs")
161
- @created_at = o["created_at"] if o.has_key?("created_at")
155
+ @id = o[:id] if o.has_key?(:id)
156
+ @name = o[:name] if o.has_key?(:name)
157
+ @accounts_id = o[:accounts_id] if o.has_key?(:accounts_id)
158
+ @org_id = o[:org_id] if o.has_key?(:org_id)
159
+ @assemblies = o[:assemblies] if o.has_key?(:assemblies)
160
+ @inputs = o[:inputs] if o.has_key?(:inputs)
161
+ @created_at = o[:created_at] if o.has_key?(:created_at)
162
162
  self
163
163
  end
164
164
 
@@ -60,9 +60,13 @@ module Megam
60
60
 
61
61
  class InputGroupData
62
62
  include Nilavu::MegamAttributes
63
- attr_reader :domain, :sshkey, :provider, :cpu, :ram, :hdd, :version, :display_name, :password
63
+
64
+ attr_reader :domain, :keypairoption, :sshkey, :provider, :cpu, :ram, :hdd,
65
+ :version, :display_name, :password, :region, :resource, :storagetype, :ipv6, :privnetwork
66
+
64
67
  ATTRIBUTES = [
65
68
  :domain,
69
+ :keypairoption,
66
70
  :sshkey,
67
71
  :provider,
68
72
  :cpu,
@@ -70,7 +74,12 @@ module Megam
70
74
  :hdd,
71
75
  :version,
72
76
  :display_name,
73
- :password]
77
+ :password,
78
+ :region,
79
+ :resource,
80
+ :storagetype,
81
+ :ipv6,
82
+ :privnetwork]
74
83
 
75
84
  def attributes
76
85
  ATTRIBUTES
@@ -120,15 +120,16 @@ module Megam
120
120
  def attributes
121
121
  ATTRIBUTES
122
122
  end
123
+
123
124
  CI = 'CI'.freeze
124
125
  CI_DESCRIPTON = 'always up to date code. sweet.'
125
126
  NOTBOUND = "notbound".freeze
126
127
  BIND = 'bind'.freeze
127
128
  BIND_DESCRIPTON = 'bind. sweet.'
129
+
128
130
  def initialize(params, type, desc)
129
131
  @type = type
130
132
  @desc = desc
131
- # set_attributes(params)
132
133
  @prop = prop(params)
133
134
  end
134
135
 
@@ -18,7 +18,9 @@ module Nilavu
18
18
  ATTRIBUTES = []
19
19
  KEY = 'key'.freeze
20
20
  VALUE = 'value'.freeze
21
+
21
22
  attr_accessor *ATTRIBUTES
23
+
22
24
  def attributes
23
25
  NotImplementedError
24
26
  end
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.5.beta2
4
+ version: 1.5.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-14 00:00:00.000000000 Z
12
+ date: 2016-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon