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

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

Message for opening SCM Pull Request.

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

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameter
Name Description
data mixed

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getPullRequest

Required. The Pull Request details to open.

Input fields used: title, body, head_ref, base_ref.

Returns
Type Description
PullRequest|null

hasPullRequest

clearPullRequest

setPullRequest

Required. The Pull Request details to open.

Input fields used: title, body, head_ref, base_ref.

Parameter
Name Description
var PullRequest
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

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

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

Returns
Type Description
OpenGitRepositoryLinkPullRequestRequest