We have detected an error in your notification set-up
(Event-ID dab39dc24f564ec7bd4628d1305fd03c).
Currently, we cannot inform you about inspection progress.
Please check that the user
557058:bca11929-8c2d-43f2-8a82-c5416880d395
still has access to your repository or
update the API account.
1 | <?php |
||
22 | class GroupPrivileges extends Api |
||
23 | { |
||
24 | /** |
||
25 | * Get a list of privileged groups |
||
26 | * |
||
27 | * Gets all the groups granted access to an account's repositories. |
||
28 | * |
||
29 | * @access public |
||
30 | * @param string $workspaceId The team or individual account owning the repository. |
||
31 | * @return ResponseInterface |
||
32 | 1 | */ |
|
33 | public function groups($workspaceId) |
||
39 | |||
40 | /** |
||
41 | * Get a list of privileged groups for a repository |
||
42 | * |
||
43 | * Get a list of the privilege groups for a specific repository. |
||
44 | * |
||
45 | * @access public |
||
46 | * @param string $workspaceId The team or individual account owning the repository. |
||
47 | * @param string $repo A repository belonging to the account. |
||
48 | * @return ResponseInterface |
||
49 | 1 | */ |
|
50 | public function repository($workspaceId, $repo) |
||
56 | |||
57 | /** |
||
58 | * Get a group on a repository |
||
59 | * |
||
60 | * Gets the privileges of a group on a repository. |
||
61 | * |
||
62 | * @access public |
||
63 | * @param string $workspaceId The team or individual account owning the repository. |
||
64 | * @param string $repo A repository belonging to the account. |
||
65 | * @param string $groupOwner The account that owns the group. |
||
66 | * @param string $groupSlug The group slug. |
||
67 | * @return ResponseInterface |
||
68 | 1 | */ |
|
69 | public function group($workspaceId, $repo, $groupOwner, $groupSlug) |
||
75 | |||
76 | /** |
||
77 | * Get a list of repositories with a specific privilege group |
||
78 | * |
||
79 | * Get a list of the repositories on which a particular privilege group appears. |
||
80 | * |
||
81 | * @access public |
||
82 | * @param string $workspaceId The team or individual account owning the repository. |
||
83 | * @param string $groupOwner The account that owns the group. |
||
84 | * @param string $groupSlug The group slug. |
||
85 | * @return ResponseInterface |
||
86 | 1 | */ |
|
87 | public function repositories($workspaceId, $groupOwner, $groupSlug) |
||
93 | |||
94 | /** |
||
95 | * |
||
96 | * Grant group privileges on a repository. |
||
97 | * |
||
98 | * @access public |
||
99 | * @param string $workspaceId The team or individual account owning the repository. |
||
100 | * @param string $repo The repository to grant privileges on. |
||
101 | * @param string $groupOwner The account that owns the group. |
||
102 | * @param string $groupSlug The group slug. |
||
103 | * @param string $privilege A privilege value |
||
104 | * @return ResponseInterface |
||
105 | * |
||
106 | * @throws \InvalidArgumentException |
||
107 | 2 | */ |
|
108 | public function grant($workspaceId, $repo, $groupOwner, $groupSlug, $privilege) |
||
119 | |||
120 | /** |
||
121 | * Delete group privileges from a repository |
||
122 | * |
||
123 | * @access public |
||
124 | * @param string $workspaceId The team or individual account. |
||
125 | * @param string $repo The repository to remove privileges from. |
||
126 | * @param string $groupOwner The account that owns the group. |
||
127 | * @param string $groupSlug The group slug. |
||
128 | * @return ResponseInterface |
||
129 | 1 | */ |
|
130 | public function delete($workspaceId, $repo, $groupOwner, $groupSlug) |
||
136 | } |
||
137 |