UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

63 lines (58 loc) 1.32 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'; /** * Class representing a Branch. */ class Branch { /** * Create a Branch. * @property {string} name The branch name * @property {object} commit * @property {string} [commit.sha] The commit SHA * @property {string} [commit.url] The URL to the commit */ constructor() { } /** * Defines the metadata of Branch * * @returns {object} metadata of Branch * */ mapper() { return { required: false, serializedName: 'Branch', type: { name: 'Composite', className: 'Branch', modelProperties: { name: { required: true, serializedName: 'name', type: { name: 'String' } }, commit: { required: true, serializedName: 'commit', type: { name: 'Composite', className: 'Commit' } } } } }; } } module.exports = Branch;