cloudstack_client 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudstack_client/commands/account.rb +20 -4
- data/lib/cloudstack_client/version.rb +1 -1
- data/lib/cloudstack_client.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e2682ae8469891cdb15722491e18e86dd69c492
|
4
|
+
data.tar.gz: d6aff5e73cb6eeb7c9d4153be607e1ca5e1d12d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca2ac6bde98ae3caf8527a01f9616172d6889db61bf9533059657a7bde695d0b1a913e612ca4ce9f34e4ae3375253fde5faafb5268d4cee6dffa2a1d86a2dcfb
|
7
|
+
data.tar.gz: 43597edeaa138da7ab8271823415138f0876d26b59e7b4614fb222c59a70d2a5c1d0b45ba26f1d7595f9e28ec7d4077ceebc16782868463a6c4afe7c4bbb39a1
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module CloudstackClient
|
2
2
|
|
3
|
-
|
3
|
+
module Account
|
4
4
|
|
5
|
-
|
5
|
+
##
|
6
6
|
# Lists accounts.
|
7
7
|
|
8
8
|
def list_accounts(args = { :name => nil })
|
@@ -17,6 +17,22 @@ module CloudstackClient
|
|
17
17
|
json['account'] || []
|
18
18
|
end
|
19
19
|
|
20
|
-
|
20
|
+
##
|
21
|
+
# Lists project accounts.
|
21
22
|
|
22
|
-
|
23
|
+
def list_project_accounts(project_id, args)
|
24
|
+
params = {
|
25
|
+
'command' => 'listProjectAccounts',
|
26
|
+
'projectid' => project_id,
|
27
|
+
'listall' => 'true',
|
28
|
+
'isrecursive' => 'true'
|
29
|
+
}
|
30
|
+
params['name'] = args[:name] if args[:name]
|
31
|
+
|
32
|
+
json = send_request(params)
|
33
|
+
json['account'] || []
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
data/lib/cloudstack_client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nik Wolfgramm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|