Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreatePullRequestRequest.
CreatePullRequestRequest is the request to create a pull request.
Generated from protobuf message google.cloud.securesourcemanager.v1.CreatePullRequestRequest
Namespace
Google \ Cloud \ SecureSourceManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ parent | stringRequired. The repository that the pull request is created from. Format:  | 
| ↳ pull_request | PullRequestRequired. The pull request to create. | 
getParent
Required. The repository that the pull request is created from. Format:
projects/{project_number}/locations/{location_id}/repositories/{repository_id}
| Returns | |
|---|---|
| Type | Description | 
| string | |
setParent
Required. The repository that the pull request is created from. Format:
projects/{project_number}/locations/{location_id}/repositories/{repository_id}
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getPullRequest
Required. The pull request to create.
| Returns | |
|---|---|
| Type | Description | 
| PullRequest|null | |
hasPullRequest
clearPullRequest
setPullRequest
Required. The pull request to create.
| Parameter | |
|---|---|
| Name | Description | 
| var | PullRequest | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
static::build
| Parameters | |
|---|---|
| Name | Description | 
| parent | stringRequired. The repository that the pull request is created from. Format:
 | 
| pullRequest | PullRequestRequired. The pull request to create. | 
| Returns | |
|---|---|
| Type | Description | 
| CreatePullRequestRequest | |