| java.lang.Object | ||
| ↳ | com.atlassian.bitbucket.repository.AbstractRepositoryRequest | |
| ↳ | com.atlassian.bitbucket.repository.RepositoryCreateRequest | |
Defines the properties that can be set when creating a new 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:
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 getName(). Both the name and the generated slug must be unique within
the project or the repository cannot be created.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RepositoryCreateRequest.Builder | Constructs requests for creating new repositories. |
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the project in which the new repository will be created.
| |||||||||||
Retrieves the SCM ID, defining the SCM to be used for the new repository.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.repository.AbstractRepositoryRequest
| |||||||||||
From class
java.lang.Object
| |||||||||||
Retrieves the project in which the new repository will be created.
Retrieves the SCM ID, defining the SCM to be used for the new repository. Once created, the SCM for a given repository cannot be changed.