Google Cloud Build V2 Client - Class CreateRepositoryRequest (0.15.0)

Reference documentation and code samples for the Google Cloud Build V2 Client class CreateRepositoryRequest.

Message for creating a Repository.

Generated from protobuf message google.devtools.cloudbuild.v2.CreateRepositoryRequest

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

↳ repository Google\Cloud\Build\V2\Repository

Required. The repository to create.

↳ repository_id string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

getParent

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

Returns
TypeDescription
string

setParent

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepository

Required. The repository to create.

Returns
TypeDescription
Google\Cloud\Build\V2\Repository|null

hasRepository

clearRepository

setRepository

Required. The repository to create.

Parameter
NameDescription
var Google\Cloud\Build\V2\Repository
Returns
TypeDescription
$this

getRepositoryId

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Returns
TypeDescription
string

setRepositoryId

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there. Please see Google\Cloud\Build\V2\RepositoryManagerClient::connectionName() for help formatting this field.

repository Google\Cloud\Build\V2\Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Returns
TypeDescription
Google\Cloud\Build\V2\CreateRepositoryRequest