Google Cloud Secure Source Manager V1 Client - Class Ref (1.11.1)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class Ref.

Ref represents a git reference within a repository.

Generated from protobuf message google.cloud.securesourcemanager.v1.Ref

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').

↳ target string

Output only. The target of the reference, which is a commit SHA.

↳ type int

Output only. The type of the reference.

getName

Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').

Returns
Type Description
string

setName

Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').

Parameter
Name Description
var string
Returns
Type Description
$this

getTarget

Output only. The target of the reference, which is a commit SHA.

Returns
Type Description
string

setTarget

Output only. The target of the reference, which is a commit SHA.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Output only. The type of the reference.

Returns
Type Description
int Enum of type RefType.

setType

Output only. The type of the reference.

Parameter
Name Description
var int

Enum of type RefType.

Returns
Type Description
$this