Google Cloud Build V2 Client - Class CreateConnectionRequest (1.0.0-RC1)

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

Message for creating a Connection

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

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

↳ connection Google\Cloud\Build\V2\Connection

Required. The Connection to create.

↳ connection_id string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

getParent

Required. Project and location where the connection will be created.

Format: projects/*/locations/*.

Returns
Type Description
string

setParent

Required. Project and location where the connection will be created.

Format: projects/*/locations/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getConnection

Required. The Connection to create.

Returns
Type Description
Google\Cloud\Build\V2\Connection|null

hasConnection

clearConnection

setConnection

Required. The Connection to create.

Parameter
Name Description
var Google\Cloud\Build\V2\Connection
Returns
Type Description
$this

getConnectionId

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Returns
Type Description
string

setConnectionId

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Project and location where the connection will be created. Format: projects/*/locations/*. Please see Google\Cloud\Build\V2\RepositoryManagerClient::locationName() for help formatting this field.

connection Google\Cloud\Build\V2\Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Returns
Type Description
Google\Cloud\Build\V2\CreateConnectionRequest