UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

86 lines (81 loc) 2.34 kB
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; /** * The branch build status * */ class BranchStatus { /** * Create a BranchStatus. * @property {boolean} configured * @property {object} [lastBuild] * @property {number} [lastBuild.id] The build ID * @property {string} [lastBuild.buildNumber] The build number * @property {string} [lastBuild.queueTime] The time the build was queued * @property {string} [lastBuild.startTime] The time the build was started * @property {string} [lastBuild.finishTime] The time the build was finished * @property {string} [lastBuild.lastChangedDate] The time the build status * was last changed * @property {string} [lastBuild.status] The build status * @property {string} [lastBuild.result] The build result * @property {string} [lastBuild.sourceBranch] The source branch name * @property {string} [lastBuild.sourceVersion] The source SHA */ constructor() { } /** * Defines the metadata of BranchStatus * * @returns {object} metadata of BranchStatus * */ mapper() { return { required: false, serializedName: 'BranchStatus', type: { name: 'Composite', additionalProperties: { type: { name: 'Dictionary', value: { required: false, serializedName: 'BranchPropertiesElementType', type: { name: 'Composite', className: 'BranchProperties' } } } }, className: 'BranchStatus', modelProperties: { configured: { required: true, serializedName: 'configured', type: { name: 'Boolean' } }, lastBuild: { required: false, serializedName: 'lastBuild', type: { name: 'Composite', className: 'Build' } } } } }; } } module.exports = BranchStatus;