public class RepositoryCreateRequest extends AbstractRepositoryRequest
Repository. To reduce backwards compatibility
issues as new properties are added over time, instances of this class may only be created using its RepositoryCreateRequest.Builder.
The following properties are required:
AbstractRepositoryRequest.getName(): The name for the new repositorygetProject(): The project to contain the repositorygetScmId(): The SCM type for the new repositoryotherwise specified, the new repository will be forkable
by default.
Unless otherwise specified, the new repository will not be public
by default.
The repository's slug, which is used in URLs (both for the browser and when cloning),
will be generated from the provided AbstractRepositoryRequest.getName(). Both the name and the generated slug must be unique within
the project or the repository cannot be created.
| Modifier and Type | Class and Description |
|---|---|
static class |
RepositoryCreateRequest.Builder
Constructs
requests for creating new repositories. |
AbstractRepositoryRequest.AbstractBuilder<B extends AbstractRepositoryRequest.AbstractBuilder<B>>| Modifier and Type | Method and Description |
|---|---|
Project |
getProject()
Retrieves the project in which the new repository will be created.
|
String |
getScmId()
Retrieves the SCM ID, defining the SCM to be used for the new repository.
|
getDescription, getName, isForkable, isPublicCopyright © 2019 Atlassian. All rights reserved.