/* tslint:disable */
/* eslint-disable */
/**
* TeamCity REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2018.1 (current)
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { Builds } from './builds';
/**
* Represents a branch of the remote repository that stores sources processed by this build.
* @export
* @interface Branch
*/
export interface Branch {
/**
* A public branch name displayed in TeamCity UI. To get a full VCS name instead (for example, \'refs/heads/main\'), read the *vcsBranchName* property of a nested Revision entity.
* @type {string}
* @memberof Branch
*/
name?: string;
/**
* An internal branch name. Returns `<default>` for default branches, and real branch names for other (non-default) branches.
* @type {string}
* @memberof Branch
*/
internalName?: string;
/**
* Returns **true** if this branch is the default branch of this build configuration; otherwise, **false**. When obtaining builds of the specific BuildType, add the *branch(default:any)* locator to get builds from all existing branches.
* @type {boolean}
* @memberof Branch
*/
default?: boolean;
/**
* Returns **true** for unspecified branches; otherwise, **false**. A branch is labeled as unspecified when TeamCity fails to find a branch for this build. Such branches have a predefined \'<unspecified>\' name.
* @type {boolean}
* @memberof Branch
*/
unspecified?: boolean;
/**
* Returns **true** for active branches and **false** for inactive ones. A branch is considered inactive if it had neither new TeamCity builds in the last 24 hours, nor recent VCS repository changes in the last 7 days. Learn more: [Active branches](https://www.jetbrains.com/help/teamcity/working-with-feature-branches.html#Active+Branches).
* @type {boolean}
* @memberof Branch
*/
active?: boolean;
/**
* Returns the date and time of the last branch activity (the last TeamCity build or the latest VCS commit).
* @type {string}
* @memberof Branch
*/
lastActivity?: string;
/**
* Returns **true** if the branch belongs to the automatically created \'My Branches\' group; otherwise, **false**. Branch grouping allows TeamCity to automatically categorize branches based on current TeamCity user commits.
* @type {boolean}
* @memberof Branch
*/
groupFlag?: boolean;
/**
*
* @type {Builds}
* @memberof Branch
*/
builds?: Builds;
}