CheckoutWorkspaceBranchRequest(
mapping=None, *, ignore_unknown_fields=False, **kwargs
)CheckoutWorkspaceBranch request message.
Attributes |
|
|---|---|
| Name | Description |
name |
str
Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} |
branch |
str
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 |
str
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.
|