megam_api 0.46 → 0.47
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a839f88d93e8ac8b41192469ebc836c8941991cf
|
|
4
|
+
data.tar.gz: 550a304c234180b30b3df2f73fe9280535151dac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc465053c9bb085a926d96deab557b0e91ed6c279a122b9100bded1b3e09272dfae3797735f6d2cbeb7bf47df7e7260087f46db3b7da084802024d6aa3892c77
|
|
7
|
+
data.tar.gz: 9e74ca42c0dc2f66c3d5ef51617b213d6cf85be993ce18ecfc89cc518af73853e29badace307b1ba353b0e714e5d0587fe3f269db5eac53dbd330ebb8f7bd368
|
data/lib/megam/api.rb
CHANGED
|
File without changes
|
data/lib/megam/api/version.rb
CHANGED
|
File without changes
|
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: '0.
|
|
4
|
+
version: '0.47'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan
|
|
@@ -131,13 +131,13 @@ files:
|
|
|
131
131
|
- lib/certs/cacert.pem
|
|
132
132
|
- lib/megam/api.rb
|
|
133
133
|
- lib/megam/api/accounts.rb
|
|
134
|
-
- lib/megam/api/app_requests.rb
|
|
135
134
|
- lib/megam/api/assemblies.rb
|
|
136
135
|
- lib/megam/api/assembly.rb
|
|
137
136
|
- lib/megam/api/availableunits.rb
|
|
138
137
|
- lib/megam/api/balances.rb
|
|
139
138
|
- lib/megam/api/billinghistories.rb
|
|
140
139
|
- lib/megam/api/billings.rb
|
|
140
|
+
- lib/megam/api/cat_requests.rb
|
|
141
141
|
- lib/megam/api/cloud_tool_settings.rb
|
|
142
142
|
- lib/megam/api/components.rb
|
|
143
143
|
- lib/megam/api/credithistories.rb
|
|
@@ -151,7 +151,6 @@ files:
|
|
|
151
151
|
- lib/megam/api/marketplaces.rb
|
|
152
152
|
- lib/megam/api/organizations.rb
|
|
153
153
|
- lib/megam/api/predef_clouds.rb
|
|
154
|
-
- lib/megam/api/profile.rb
|
|
155
154
|
- lib/megam/api/requests.rb
|
|
156
155
|
- lib/megam/api/sshkeys.rb
|
|
157
156
|
- lib/megam/api/subscriptions.rb
|
|
@@ -211,13 +210,13 @@ files:
|
|
|
211
210
|
- lib/megam_api.rb
|
|
212
211
|
- megam_api.gemspec
|
|
213
212
|
- test/test_accounts.rb
|
|
214
|
-
- test/test_app_requests.rb
|
|
215
213
|
- test/test_assemblies.rb
|
|
216
214
|
- test/test_assembly.rb
|
|
217
215
|
- test/test_availableunits.rb
|
|
218
216
|
- test/test_balances.rb
|
|
219
217
|
- test/test_billinghistories.rb
|
|
220
218
|
- test/test_billings.rb
|
|
219
|
+
- test/test_cat_requests.rb
|
|
221
220
|
- test/test_cloudtoolsettings.rb
|
|
222
221
|
- test/test_components.rb
|
|
223
222
|
- test/test_credithistories.rb
|
|
@@ -261,13 +260,13 @@ specification_version: 4
|
|
|
261
260
|
summary: Ruby Client for the Megam
|
|
262
261
|
test_files:
|
|
263
262
|
- test/test_accounts.rb
|
|
264
|
-
- test/test_app_requests.rb
|
|
265
263
|
- test/test_assemblies.rb
|
|
266
264
|
- test/test_assembly.rb
|
|
267
265
|
- test/test_availableunits.rb
|
|
268
266
|
- test/test_balances.rb
|
|
269
267
|
- test/test_billinghistories.rb
|
|
270
268
|
- test/test_billings.rb
|
|
269
|
+
- test/test_cat_requests.rb
|
|
271
270
|
- test/test_cloudtoolsettings.rb
|
|
272
271
|
- test/test_components.rb
|
|
273
272
|
- test/test_credithistories.rb
|
data/lib/megam/api/profile.rb
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Megam
|
|
2
|
-
class API
|
|
3
|
-
|
|
4
|
-
def get_profile
|
|
5
|
-
|
|
6
|
-
@options = {:path => '/profile',:body => ''}.merge(@options)
|
|
7
|
-
|
|
8
|
-
request(
|
|
9
|
-
:expects => 200,
|
|
10
|
-
:method => :get,
|
|
11
|
-
:body => @options[:body]
|
|
12
|
-
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def get_profile(email)
|
|
17
|
-
|
|
18
|
-
@options = {:path => "/profile/#{email}",
|
|
19
|
-
:body => ''}.merge(@options)
|
|
20
|
-
|
|
21
|
-
request(
|
|
22
|
-
:expects => 200,
|
|
23
|
-
:method => :get,
|
|
24
|
-
:body => @options[:body]
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def post_profile(new_profile_details)
|
|
30
|
-
|
|
31
|
-
@options = {:path => '/profile/content',
|
|
32
|
-
:body => Megam::JSONCompat.to_json(new_profile_details)}.merge(@options)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
request(
|
|
36
|
-
:expects => 201,
|
|
37
|
-
:method => :post,
|
|
38
|
-
:body => @options[:body]
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|