appcenter-cli
Version:
Command line tool for Visual Studio App Center
67 lines (62 loc) • 1.64 kB
JavaScript
/*
* 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.
*/
;
/**
* GitHub Marketplace purchase
*
*/
class GitHubMarketplacePurchase {
/**
* Create a GitHubMarketplacePurchase.
* @property {object} [account]
* @property {number} [account.id] Id of GitHub account
* @property {string} [account.accountType] Type of GitHub account. Possible
* values include: 'User', 'Organization'
* @property {object} [plan]
* @property {number} [plan.id] Id of the GitHub plan
*/
constructor() {
}
/**
* Defines the metadata of GitHubMarketplacePurchase
*
* @returns {object} metadata of GitHubMarketplacePurchase
*
*/
mapper() {
return {
required: false,
serializedName: 'GitHubMarketplacePurchase',
type: {
name: 'Composite',
className: 'GitHubMarketplacePurchase',
modelProperties: {
account: {
required: false,
serializedName: 'account',
type: {
name: 'Composite',
className: 'GitHubAccount'
}
},
plan: {
required: false,
serializedName: 'plan',
type: {
name: 'Composite',
className: 'GitHubMarketplacePlan'
}
}
}
}
};
}
}
module.exports = GitHubMarketplacePurchase;