cloudstack_client 0.9.5 → 0.9.6

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: 0d1d51bf68725404db9006534420b13ac450a1bb
4
- data.tar.gz: d09a8235274755a8bd11dab962df25291018dc88
3
+ metadata.gz: 5e2682ae8469891cdb15722491e18e86dd69c492
4
+ data.tar.gz: d6aff5e73cb6eeb7c9d4153be607e1ca5e1d12d4
5
5
  SHA512:
6
- metadata.gz: 92c1dbd1365de20fb70d73b98f691c7ad228bc18f048d8f1a3bbf28702851b53dc5e5fca16a1d84a35c487486207c19b164529992f5f2564e9ee75f9832074c1
7
- data.tar.gz: d203d2ca6a8361b210c7dcfa05874e70a4cdaf0940f03dd1c252483ccdf02f7ec1388631c4fe8da60500561d819e835204ed8925810fd97b75d0563e8e6ba891
6
+ metadata.gz: ca2ac6bde98ae3caf8527a01f9616172d6889db61bf9533059657a7bde695d0b1a913e612ca4ce9f34e4ae3375253fde5faafb5268d4cee6dffa2a1d86a2dcfb
7
+ data.tar.gz: 43597edeaa138da7ab8271823415138f0876d26b59e7b4614fb222c59a70d2a5c1d0b45ba26f1d7595f9e28ec7d4077ceebc16782868463a6c4afe7c4bbb39a1
@@ -1,8 +1,8 @@
1
1
  module CloudstackClient
2
2
 
3
- module Account
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
- end
20
+ ##
21
+ # Lists project accounts.
21
22
 
22
- end
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
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
@@ -1,2 +1,3 @@
1
1
  require "cloudstack_client/version"
2
- require "cloudstack_client/client"
2
+ require "cloudstack_client/client"
3
+
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.5
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 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc