3scale-api 1.4.0 → 1.5.0
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 +4 -4
- data/lib/3scale/api/client.rb +8 -0
- data/lib/3scale/api/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 889c02fde022e3dfac63c698c05a631904181e7c5bb8b65f7a73378ede62bcd7
|
|
4
|
+
data.tar.gz: 10756f304d8b25f242416c2cdd3d6ae5141ef73c94103aab6cc9e7674cfcd450
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c029b7cafa5e81c612c2240f30c428d9be066ae9ad3d5b30f4efd1873b98c7600d5a446af4d1069978f32297ba96ffd34ba46d03afdfe34e6b79bfd40a3b66ea
|
|
7
|
+
data.tar.gz: 964b8e3168761498f2789b2f0466d2d52c68273972495e1dffa977c98f7257ac643af7a0600a7b5aab85ba37440cb1e3e337bdfc654bfd4f6b6cb20ce9ac7088
|
data/lib/3scale/api/client.rb
CHANGED
|
@@ -44,6 +44,14 @@ module ThreeScale
|
|
|
44
44
|
extract(collection: 'applications', entity: 'application', from: response)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# @api public
|
|
48
|
+
# @param [Fixnum] account_id Account ID
|
|
49
|
+
# @return [Array<Hash>]
|
|
50
|
+
def list_applications_by_account(account_id)
|
|
51
|
+
response = http_client.get("/admin/api/accounts/#{account_id}/applications")
|
|
52
|
+
extract(collection: 'applications', entity: 'application', from: response)
|
|
53
|
+
end
|
|
54
|
+
|
|
47
55
|
# @api public
|
|
48
56
|
# @return [Hash]
|
|
49
57
|
# @param [Fixnum] id Application ID
|
data/lib/3scale/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: 3scale-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Miguel Soriano
|
|
8
8
|
- Eguzki Astiz Lezaun
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-
|
|
12
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
version: '3.4'
|
|
70
70
|
description: 'API Client to access your 3scale APIs: Account Management API'
|
|
71
71
|
email:
|
|
72
|
-
-
|
|
72
|
+
- msoriano@redhat.com
|
|
73
73
|
- eastizle@redhat.com
|
|
74
74
|
executables: []
|
|
75
75
|
extensions: []
|
|
@@ -94,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
requirements:
|
|
95
95
|
- - ">="
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: '
|
|
97
|
+
version: '2.6'
|
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - ">="
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
|
-
rubygems_version: 3.
|
|
104
|
+
rubygems_version: 3.0.3
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: API Client for 3scale APIs
|