Google Cloud Build V2 Client - Class Repository (0.7.3)

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.

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

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

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

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getAnnotations

Allows clients to store small amounts of arbitrary data.

Returns
Type
Description

setAnnotations

Allows clients to store small amounts of arbitrary data.

Parameter
Name
Description
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
Design a Mobile Site
View Site in Mobile | Classic
Share by: