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 Deploykeys extends API\Api |
||
23 | { |
||
24 | /** |
||
25 | * Get a list of keys |
||
26 | * |
||
27 | * @access public |
||
28 | * @param string $account The team or individual account owning the repository. |
||
29 | * @param string $repo The repository identifier. |
||
30 | * @return ResponseInterface |
||
31 | */ |
||
32 | 1 | public function all($account, $repo) |
|
38 | |||
39 | /** |
||
40 | * Get the key's content |
||
41 | * |
||
42 | * TIP: You can use `$this->all()` to obtain assigned `$keyId`. |
||
43 | * |
||
44 | * @access public |
||
45 | * @param string $account The team or individual account owning the repository. |
||
46 | * @param string $repo The repository identifier. |
||
47 | * @param string $keyId The key identifier assigned by Bitbucket. |
||
48 | * @return ResponseInterface |
||
49 | */ |
||
50 | 1 | public function get($account, $repo, $keyId) |
|
56 | |||
57 | /** |
||
58 | * Add a new key |
||
59 | * |
||
60 | * @access public |
||
61 | * @param string $account The team or individual account owning the repository. |
||
62 | * @param string $repo The repository identifier. |
||
63 | * @param string $key The content of the key. |
||
64 | * @param string $label A display name for the key. (optional) |
||
65 | * @return ResponseInterface |
||
66 | */ |
||
67 | 1 | public function create($account, $repo, $key, $label = null) |
|
80 | |||
81 | /** |
||
82 | * Update an existing key |
||
83 | * |
||
84 | * Available `$options`: |
||
85 | * |
||
86 | * <example> |
||
87 | * 'label' (string) = A display name for the key. |
||
88 | * 'key' (string) = The content of the key. |
||
89 | * </example> |
||
90 | * |
||
91 | * @access public |
||
92 | * @param string $account The team or individual account owning the repository. |
||
93 | * @param string $repo The repository identifier. |
||
94 | * @param string $keyId The key identifier assigned by Bitbucket. |
||
95 | * @param array $options The rest of available options |
||
96 | * @return ResponseInterface |
||
97 | */ |
||
98 | 1 | public function update($account, $repo, $keyId, $options = array()) |
|
105 | |||
106 | /** |
||
107 | * Delete a key |
||
108 | * |
||
109 | * TIP: You can use `$this->all()` to obtain assigned `$keyId`. |
||
110 | * |
||
111 | * @access public |
||
112 | * @param string $account The team or individual account owning the repository. |
||
113 | * @param string $repo The repository identifier. |
||
114 | * @param string $keyId The key identifier assigned by Bitbucket. |
||
115 | * @return ResponseInterface |
||
116 | */ |
||
117 | 1 | public function delete($account, $repo, $keyId) |
|
123 | } |
||
124 |