Google Cloud Developer Connect V1 Client - Class FetchGitRepositoryLinkCommitRequest (0.9.0)

Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchGitRepositoryLinkCommitRequest.

Request message for FetchGitRepositoryLinkCommit.

Generated from protobuf message google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameter
Name Description
data mixed

getName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

Returns
Type Description
string

setName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getCommitSha

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

Returns
Type Description
string

setCommitSha

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

Parameter
Name Description
var string
Returns
Type Description
$this

getView

Optional. The level of commit details to return in the response.

Defaults to FULL if unspecified. In FULL view, files metadata (paths and statuses) are returned; path_filters must also be specified to populate line patch hunks.

Returns
Type Description
int Enum of type CommitView.

setView

Optional. The level of commit details to return in the response.

Defaults to FULL if unspecified. In FULL view, files metadata (paths and statuses) are returned; path_filters must also be specified to populate line patch hunks.

Parameter
Name Description
var int

Enum of type CommitView.

Returns
Type Description
$this

getPathFilters

Optional. Path patterns or exact paths to filter returned files (only applicable in FULL view).

When path_filters is specified, FileDiff.patch is populated for all matching files (use ["**"] to include patches for all changed files). When path_filters is omitted or empty, the full list of FileDiff is returned without patch diffs (FileDiff.patch is empty).

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setPathFilters

Optional. Path patterns or exact paths to filter returned files (only applicable in FULL view).

When path_filters is specified, FileDiff.patch is populated for all matching files (use ["**"] to include patches for all changed files). When path_filters is omitted or empty, the full list of FileDiff is returned without patch diffs (FileDiff.patch is empty).

Parameter
Name Description
var string[]
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*. Please see DeveloperConnectClient::gitRepositoryLinkName() for help formatting this field.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

Returns
Type Description
FetchGitRepositoryLinkCommitRequest