UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

76 lines (70 loc) 1.79 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'; const models = require('./index'); /** * Class representing a CommitDetails. * @extends models['Commit'] */ class CommitDetails extends models['Commit'] { /** * Create a CommitDetails. * @property {object} [commit] * @property {string} [commit.message] Commit message * @property {object} [commit.author] * @property {string} [commit.author.date] Date and time of the commit * @property {string} [commit.author.name] Author name * @property {string} [commit.author.email] Author's email */ constructor() { super(); } /** * Defines the metadata of CommitDetails * * @returns {object} metadata of CommitDetails * */ mapper() { return { required: false, serializedName: 'CommitDetails', type: { name: 'Composite', className: 'CommitDetails', modelProperties: { sha: { required: false, serializedName: 'sha', type: { name: 'String' } }, url: { required: false, serializedName: 'url', type: { name: 'String' } }, commit: { required: false, serializedName: 'commit', type: { name: 'Composite', className: 'CommitDetailsCommit' } } } } }; } } module.exports = CommitDetails;