megam_api 1.5.beta2 → 1.5.beta4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3b7e1ccc6b734fad35cc5d649f2802ba83392c2
|
4
|
+
data.tar.gz: adf6d7ef48542c53b2f848df6ffe2ede953376a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d9e54d564fb7a3b47290cb6d477d41ad50194eace6f956cf2dc4bd919510dde5b54d36d31fcf86f1a61ae87690c967f7e6a68078bf79f78c921819c9bbbac6
|
7
|
+
data.tar.gz: ec79766a10e0c980a50757a12c663636d5e53e50011c453bcfaa39385de5fa098ce1ad83bb2e94f380185ef53d7f987e8b3e877455230afd5cf552a25d56a9a3
|
data/lib/megam/api/version.rb
CHANGED
@@ -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[
|
156
|
-
@name = o[
|
157
|
-
@accounts_id = o[
|
158
|
-
@org_id = o[
|
159
|
-
@assemblies = o[
|
160
|
-
@inputs = o[
|
161
|
-
@created_at = 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)
|
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
|
-
|
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
|
|
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.
|
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-
|
12
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|