public class

RepositoryCreateRequest

extends AbstractRepositoryRequest
java.lang.Object
   ↳ com.atlassian.bitbucket.repository.AbstractRepositoryRequest
     ↳ com.atlassian.bitbucket.repository.RepositoryCreateRequest

Class Overview

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:

Unless otherwise 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.

Summary

Nested Classes
class RepositoryCreateRequest.Builder Constructs requests for creating new repositories. 
Public Methods
@Nonnull Project getProject()
Retrieves the project in which the new repository will be created.
@Nonnull String getScmId()
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

Public Methods

@Nonnull public Project getProject ()

Retrieves the project in which the new repository will be created.

Returns
  • the destination project

@Nonnull public String getScmId ()

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.

Returns
  • the SCM for the new repository