UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

72 lines (67 loc) 1.64 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'; /** * Contains metadata about the build that produced the release being uploaded * */ class BuildInfo { /** * Create a BuildInfo. * @property {string} [branch] The branch name of the build producing the * release * @property {string} [commitHash] The commit hash of the build producing the * release * @property {string} [commitMessage] The commit message of the build * producing the release */ constructor() { } /** * Defines the metadata of BuildInfo * * @returns {object} metadata of BuildInfo * */ mapper() { return { required: false, serializedName: 'BuildInfo', type: { name: 'Composite', className: 'BuildInfo', modelProperties: { branch: { required: false, serializedName: 'branch', type: { name: 'String' } }, commitHash: { required: false, serializedName: 'commit_hash', type: { name: 'String' } }, commitMessage: { required: false, serializedName: 'commit_message', type: { name: 'String' } } } } }; } } module.exports = BuildInfo;