Reference documentation and code samples for the Google Cloud Dataform V1beta1 Client class CheckoutWorkspaceBranchRequest.
CheckoutWorkspaceBranch request message.
Generated from protobuf message google.cloud.dataform.v1beta1.CheckoutWorkspaceBranchRequest
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 which the workspace should be checked out. |
↳ create_if_not_exists |
bool
Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error will be thrown. |
↳ source_branch |
string
Optional. The name of the branch in the Git repository from which the new branch should be created. If left unset, the workspace's current branch name will be used. Accepts only branch names from FetchWorkspaceBranches response, and can only be set if |
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 which the workspace should be checked out.
| Returns | |
|---|---|
| Type | Description |
string |
|
setBranch
Required. The name of the branch in the Git repository to which the workspace should be checked out.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateIfNotExists
Optional. If set to true and the branch does not exist, it will be created.
Otherwise, an error will be thrown.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setCreateIfNotExists
Optional. If set to true and the branch does not exist, it will be created.
Otherwise, an error will be thrown.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceBranch
Optional. The name of the branch in the Git repository from which the new
branch should be created. If left unset, the workspace's current branch
name will be used. Accepts only branch names from FetchWorkspaceBranches
response, and can only be set if create_if_not_exists is true. Oherwise,
an error will be thrown.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSourceBranch
Optional. The name of the branch in the Git repository from which the new
branch should be created. If left unset, the workspace's current branch
name will be used. Accepts only branch names from FetchWorkspaceBranches
response, and can only be set if create_if_not_exists is true. Oherwise,
an error will be thrown.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|