@Immutable public interface Repos
Modifier and Type | Method and Description |
---|---|
Repo |
create(javax.json.JsonObject json)
Create repository.
|
Repo |
get(Coordinates coords)
Get repository by name.
|
Github |
github()
Get its owner.
|
Iterable<Repo> |
iterate(String identifier)
Iterate all public repos, starting with the one you've seen already.
|
void |
remove(Coordinates coords)
Remove repository by name.
|
@NotNull(message="repository is never NULL") Repo create(@NotNull(message="JSON can\'t be NULL") javax.json.JsonObject json) throws IOException
json
- Repository creation JSONIOException
- If there is any I/O problem@NotNull(message="repository is never NULL") Repo get(@NotNull(message="coordinates can\'t be NULL") Coordinates coords)
coords
- Repository name in "user/repo" formatvoid remove(@NotNull(message="coordinates can\'t be NULL") Coordinates coords) throws IOException
Note: Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.
coords
- Repository name in "user/repo" formatIOException
- If there is any I/O problem@NotNull(message="iterable is never NULL") Iterable<Repo> iterate(@NotNull(message="identifier can\'t be NULL") String identifier)
identifier
- The integer ID of the last Repo that you’ve seen.Copyright © 2012–2014 jcabi.com. All rights reserved.