Google Cloud Build V2 Client - Class CreateConnectionRequest (0.12.0)

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
NameDescription
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
TypeDescription
string

setParent

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

Format: projects/*/locations/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConnection

Required. The Connection to create.

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

hasConnection

clearConnection

setConnection

Required. The Connection to create.

Parameter
NameDescription
var Google\Cloud\Build\V2\Connection
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Build\V2\CreateConnectionRequest