Google Cloud Build V2 Client - Class Repository (1.0.2)

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

A repository associated to a parent connection.

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

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

↳ remote_uri string

Required. Git Clone HTTPS URI.

↳ create_time Google\Protobuf\Timestamp

Output only. Server assigned timestamp for when the connection was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Server assigned timestamp for when the connection was updated.

↳ annotations array|Google\Protobuf\Internal\MapField

Allows clients to store small amounts of arbitrary data.

↳ etag string

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

↳ webhook_id string

Output only. External ID of the webhook created for the repository.

getName

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

Returns
Type Description
string

setName

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getRemoteUri

Required. Git Clone HTTPS URI.

Returns
Type Description
string

setRemoteUri

Required. Git Clone HTTPS URI.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. Server assigned timestamp for when the connection was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Server assigned timestamp for when the connection was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Server assigned timestamp for when the connection was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Server assigned timestamp for when the connection was updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getAnnotations

Allows clients to store small amounts of arbitrary data.

Returns
Type Description
Google\Protobuf\Internal\MapField

setAnnotations

Allows clients to store small amounts of arbitrary data.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getEtag

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Returns
Type Description
string

setEtag

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Parameter
Name Description
var string
Returns
Type Description
$this

getWebhookId

Output only. External ID of the webhook created for the repository.

Returns
Type Description
string

setWebhookId

Output only. External ID of the webhook created for the repository.

Parameter
Name Description
var string
Returns
Type Description
$this