Google Cloud Build V2 Client - Class Repository (0.14.0)

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

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRemoteUri

Required. Git Clone HTTPS URI.

Returns
TypeDescription
string

setRemoteUri

Required. Git Clone HTTPS URI.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getAnnotations

Allows clients to store small amounts of arbitrary data.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAnnotations

Allows clients to store small amounts of arbitrary data.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getWebhookId

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

Returns
TypeDescription
string

setWebhookId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this