Reference documentation and code samples for the Google Cloud Dataform V1beta1 Client class DeleteBranchRequest.
DeleteBranch request message.
Generated from protobuf message google.cloud.dataform.v1beta1.DeleteBranchRequest
Namespace
Google \ Cloud \ Dataform \ V1beta1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} |
↳ branch |
string
Required. The name of the branch in the Git repository to delete. |
↳ force |
bool
Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete. |
getName
Required. The workspace resource name.
Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The workspace resource name.
Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBranch
Required. The name of the branch in the Git repository to delete.
| Returns | |
|---|---|
| Type | Description |
string |
|
setBranch
Required. The name of the branch in the Git repository to delete.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getForce
Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setForce
Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|