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 Repository extends API\Api |
||
23 | { |
||
24 | /** |
||
25 | * Get information associated with an individual repository. |
||
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 MessageInterface |
||
31 | */ |
||
32 | 1 | public function get($account, $repo) |
|
38 | |||
39 | /** |
||
40 | * Create a new repository |
||
41 | * |
||
42 | * If `$params` are omitted, a private git repository will be created, |
||
43 | * with a "no forking" policy. |
||
44 | * |
||
45 | * @access public |
||
46 | * @param string $account The team or individual account owning the repository. |
||
47 | * @param string $repo The repository identifier. |
||
48 | * @param array|string $params Additional parameters as array or JSON string |
||
49 | * @return MessageInterface |
||
50 | * |
||
51 | * @throws \InvalidArgumentException If invalid JSON is provided. |
||
52 | * |
||
53 | * @see https://confluence.atlassian.com/x/WwZAGQ |
||
54 | */ |
||
55 | 13 | public function create($account, $repo, $params = array()) |
|
82 | 3 | ||
83 | 3 | /** |
|
84 | 3 | * Update a repository |
|
85 | 3 | * |
|
86 | * @access public |
||
87 | * @param string $account The team or individual account owning the repository. |
||
88 | * @param string $repo The repository identifier. |
||
89 | * @param array $params Additional parameters |
||
90 | * @return MessageInterface |
||
91 | * |
||
92 | * @see https://confluence.atlassian.com/x/WwZAGQ |
||
93 | */ |
||
94 | public function update($account, $repo, array $params = array()) |
||
101 | |||
102 | /** |
||
103 | * Delete a repository |
||
104 | * |
||
105 | * @access public |
||
106 | * @param string $account The team or individual account owning the repository. |
||
107 | * @param string $repo The repository identifier. |
||
108 | * @return MessageInterface |
||
109 | */ |
||
110 | public function delete($account, $repo) |
||
116 | |||
117 | /** |
||
118 | * Gets the list of accounts watching a repository. |
||
119 | * |
||
120 | * @access public |
||
121 | * @param string $account The team or individual account owning the repository. |
||
122 | * @param string $repo The repository identifier. |
||
123 | * @return MessageInterface |
||
124 | */ |
||
125 | public function watchers($account, $repo) |
||
131 | |||
132 | 1 | /** |
|
133 | 1 | * Gets the list of repository forks. |
|
134 | 1 | * |
|
135 | * @access public |
||
136 | * @param string $account The team or individual account owning the repository. |
||
137 | * @param string $repo The repository identifier. |
||
138 | * @return MessageInterface |
||
139 | */ |
||
140 | public function forks($account, $repo) |
||
146 | 1 | ||
147 | /** |
||
148 | 1 | * Fork a repository |
|
149 | 1 | * |
|
150 | * @access public |
||
151 | * @param string $account The team or individual account owning the repository. |
||
152 | * @param string $repo The repository identifier. |
||
153 | * @param string $name Fork name |
||
154 | * @param array $params Additional parameters |
||
155 | * @return MessageInterface |
||
156 | * |
||
157 | * @see https://confluence.atlassian.com/display/BITBUCKET/repository+Resource#repositoryResource-POSTanewfork |
||
158 | */ |
||
159 | public function fork($account, $repo, $name, array $params = array()) |
||
171 | |||
172 | /** |
||
173 | * Get a list of branches associated with a repository. |
||
174 | * |
||
175 | * @access public |
||
176 | 1 | * @param string $account The team or individual account owning the repository. |
|
177 | * @param string $repo The repository identifier. |
||
178 | 1 | * @param string $name The name of the branch |
|
179 | 1 | * @return MessageInterface |
|
180 | */ |
||
181 | public function branches($account, $repo, $name = '') |
||
187 | |||
188 | /** |
||
189 | * Get a pagination list of tags or tag object by name |
||
190 | * |
||
191 | * @access public |
||
192 | * @param string $account The team or individual account owning the repository. |
||
193 | * @param string $repo The repository identifier. |
||
194 | * @param string $name The name of the tag |
||
195 | 1 | * @return MessageInterface |
|
196 | */ |
||
197 | 1 | public function tags($account, $repo, $name = '') |
|
203 | 1 | ||
204 | 1 | /** |
|
205 | * Get the history of a file in a changeset |
||
206 | * |
||
207 | * Returns the history of a file starting from the provided changeset. |
||
208 | * |
||
209 | * @access public |
||
210 | * @param string $account The team or individual account owning the repository. |
||
211 | * @param string $repo The repository identifier. |
||
212 | * @param string $node The simple changeset node id. |
||
213 | * @param string $path Filename. |
||
214 | * @return MessageInterface |
||
215 | */ |
||
216 | 1 | public function filehistory($account, $repo, $node, $path) |
|
222 | } |
||
223 |