Google Cloud Build V2 Client - Class BatchCreateRepositoriesRequest (0.11.0)

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

Message for creating repositoritories in batch.

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

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 all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

↳ requests array<Google\Cloud\Build\V2\CreateRepositoryRequest>

Required. The request messages specifying the repositories to create.

getParent

Required. The connection to contain all the repositories being created.

Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

Returns
TypeDescription
string

setParent

Required. The connection to contain all the repositories being created.

Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRequests

Required. The request messages specifying the repositories to create.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRequests

Required. The request messages specifying the repositories to create.

Parameter
NameDescription
var array<Google\Cloud\Build\V2\CreateRepositoryRequest>
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field. Please see Google\Cloud\Build\V2\RepositoryManagerClient::connectionName() for help formatting this field.

requests array<Google\Cloud\Build\V2\CreateRepositoryRequest>

Required. The request messages specifying the repositories to create.

Returns
TypeDescription
Google\Cloud\Build\V2\BatchCreateRepositoriesRequest