bwapi 10.0.0.pre.478 → 10.0.0.pre.483
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/bwapi/client/admin/clients/user_groups.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmYzNmQ4MTRjZWEzM2U4MTFhNTYyZmExNGFjZWRiNmZkMWM5MjYwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTA5MDQ1NGVhMzMyYjhhYTA3M2Q3OTRjYjMzY2ExNTEyZmIyMTU0Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTU5MTU4Y2Q1Y2IwYWRkMGJiMzg3ZDgyYjY2MzAyZjRhZGEzOGRlZDQ2N2Fm
|
10
|
+
MmY4ZDQyYmU3MDExNjRiNmI1NGIxODUzY2JmOGM1M2I2NjBjZWY1ZDg0Mzgy
|
11
|
+
MWVhYmYzZGViNmJlZjMwOGU3MTY0MWUzYWMzZmY2OWM5MzExZjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTVmMjgwMzg3YjZiMDRkMzliMDAyYTg5OWQ5MTI4ZTVkZDE1ZjQ3MWE3NTcx
|
14
|
+
YzEwN2Q0NThhN2I1ODk1NDhkNzIyYmIxYjg1NTYyODU3ZjU4YTU0YjdmZDI0
|
15
|
+
NjdiNDg2ZjAxMmIyY2Q3NGJlZGViODc0ODg5NDYyYjQ3N2JhYTA=
|
@@ -9,8 +9,9 @@ module BWAPI
|
|
9
9
|
# @param client_id [Integer] Id of the client
|
10
10
|
# @option opts [Integer] page Page of projects to retrieve
|
11
11
|
# @option opts [Integer] pageSize Results per page of results
|
12
|
-
|
13
|
-
|
12
|
+
# @return [Hash] All client user groups
|
13
|
+
def client_user_groups(client_id, opts = {})
|
14
|
+
get "admin/clients/#{client_id}/usergroups", opts
|
14
15
|
end
|
15
16
|
|
16
17
|
# Create new user group
|
@@ -18,6 +19,7 @@ module BWAPI
|
|
18
19
|
# @param client_id [Integer] Id of the client
|
19
20
|
# @param opts [Hash] options hash of parameters
|
20
21
|
# @option opts [Date] startDate Start date of the client
|
22
|
+
# @return [Hash] New client user group
|
21
23
|
def create_client_user_group(client_id, opts = {})
|
22
24
|
post "admin/clients/#{client_id}/usergroups", opts
|
23
25
|
end
|
@@ -26,6 +28,7 @@ module BWAPI
|
|
26
28
|
#
|
27
29
|
# @param client_id [Integer] Id of the client
|
28
30
|
# @param user_group_id [Integer] Id of the user group
|
31
|
+
# @return [Hash] Updated client user group
|
29
32
|
def update_client_user_group(client_id, user_group_id, opts = {})
|
30
33
|
put "admin/clients/#{client_id}/usergroups/#{user_group_id}", opts
|
31
34
|
end
|
@@ -34,6 +37,7 @@ module BWAPI
|
|
34
37
|
#
|
35
38
|
# @param client_id [Integer] Id of the client
|
36
39
|
# @param user_group_id [Integer] Id of the user group
|
40
|
+
# @return [Hash] Deleted client user group
|
37
41
|
def delete_client_user_group(client_id, user_group_id)
|
38
42
|
delete "admin/clients/#{client_id}/usergroups/#{user_group_id}"
|
39
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.0.pre.
|
4
|
+
version: 10.0.0.pre.483
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|