Package com.adobe.aio.cloudmanager
Interface RepositoryApi
-
public interface RepositoryApi
Repository APISee the Repository API documentation. See the Branches API documentation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Repository
get(@NotNull Program program, @NotNull String repositoryId)
Get a specific repository in the program.@NotNull Repository
get(@NotNull String programId, @NotNull String repositoryId)
Get a specific repository in the program.@NotNull Collection<Repository>
list(@NotNull Program program)
List all repositories for the specified program.@NotNull Collection<Repository>
list(@NotNull Program program, int limit)
List all repositories for the specified program, up to the defined limit.@NotNull Collection<Repository>
list(@NotNull Program program, int start, int limit)
List all repositories for the specified program, from the starting position, up to the defined limit.@NotNull Collection<Repository>
list(@NotNull String programId)
List all repositories for the specified program.@NotNull Collection<Repository>
list(@NotNull String programId, int limit)
List all repositories for the specified program, up to the defined limit.@NotNull Collection<Repository>
list(@NotNull String programId, int start, int limit)
List all repositories for the specified program, from the starting position, up to the defined limit.@NotNull Collection<String>
listBranches(@NotNull Repository repository)
List all the branches associated with the repository.
-
-
-
Method Detail
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull String programId) throws CloudManagerApiException
List all repositories for the specified program.- Parameters:
programId
- the program id- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull Program program) throws CloudManagerApiException
List all repositories for the specified program.- Parameters:
program
- the program- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull String programId, int limit) throws CloudManagerApiException
List all repositories for the specified program, up to the defined limit.- Parameters:
programId
- the program idlimit
- the maximum number of repositories to retrieve- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull Program program, int limit) throws CloudManagerApiException
List all repositories for the specified program, up to the defined limit.- Parameters:
program
- the programlimit
- the maximum number of repositories to retrieve- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull String programId, int start, int limit) throws CloudManagerApiException
List all repositories for the specified program, from the starting position, up to the defined limit.- Parameters:
programId
- the program idstart
- the starting position in the list to retrievelimit
- the maximum number of repositories to retrieve- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
list
@NotNull @NotNull Collection<Repository> list(@NotNull @NotNull Program program, int start, int limit) throws CloudManagerApiException
List all repositories for the specified program, from the starting position, up to the defined limit.- Parameters:
program
- the programstart
- the starting position in the list to retrievelimit
- the maximum number of repositories to retrieve- Returns:
- list of repositories
- Throws:
CloudManagerApiException
- when any error occurs
-
get
@NotNull @NotNull Repository get(@NotNull @NotNull String programId, @NotNull @NotNull String repositoryId) throws CloudManagerApiException
Get a specific repository in the program.- Parameters:
programId
- the program idrepositoryId
- the repository id- Returns:
- the repository
- Throws:
CloudManagerApiException
- when any error occurs
-
get
@NotNull @NotNull Repository get(@NotNull @NotNull Program program, @NotNull @NotNull String repositoryId) throws CloudManagerApiException
Get a specific repository in the program.- Parameters:
program
- the programrepositoryId
- the repository id- Returns:
- the repository
- Throws:
CloudManagerApiException
- when any error occurs
-
listBranches
@NotNull @NotNull Collection<String> listBranches(@NotNull @NotNull Repository repository) throws CloudManagerApiException
List all the branches associated with the repository.- Parameters:
repository
- the repository- Returns:
- list of branch names
- Throws:
CloudManagerApiException
- when any error occurs- See Also:
- List Branches API
-
-