appcenter-cli
Version:
Command line tool for Visual Studio App Center
207 lines (202 loc) • 8.08 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.
*/
;
/**
* Aggregated Billing Information for a user or an organization
*
*/
class AggregatedBillingInformation {
/**
* Create a AggregatedBillingInformation.
* @property {string} [version] Version of the Billing Information schema
* @property {string} [timestamp] The ISO 8601 datetime of last modification
* @property {string} [id] ID of the user or organization
* @property {object} [billingPlans]
* @property {object} [billingPlans.buildService]
* @property {boolean} [billingPlans.buildService.canSelectTrialPlan] Can
* customer select trial plan for that service (if it exists)?
* @property {string} [billingPlans.buildService.lastTrialPlanExpirationTime]
* Expiration time of the last selected trial plan. Will be null if trial
* plan was not used.
* @property {object} [billingPlans.buildService.currentBillingPeriod]
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.startTime] Inclusive start
* of the period
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.endTime] Exclusive end of
* the period.
* @property {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount]
* @property {number}
* [billingPlans.buildService.currentBillingPeriod.byAccount.count] Number of
* instances of the billing plan.
* @property {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan]
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.id] The
* Billing Plan ID
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.version]
* Version of the Billing Plan schema
* @property {number}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.price]
* Price of the Billing Plan
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.paymentSource]
* Service that receives payments for this billing plan. Possible values
* include: 'None', 'AppCenter', 'GitHub', 'Xtc'
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.service]
* Name of the service that the plan applies to. Possible values include:
* 'Build', 'Test'
* @property {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.limits]
* @property {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.attributes]
* @property {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.parentId]
* @property {object} [billingPlans.testService]
* @property {boolean} [billingPlans.testService.canSelectTrialPlan] Can
* customer select trial plan for that service (if it exists)?
* @property {string} [billingPlans.testService.lastTrialPlanExpirationTime]
* Expiration time of the last selected trial plan. Will be null if trial
* plan was not used.
* @property {object} [billingPlans.testService.currentBillingPeriod]
* @property {string}
* [billingPlans.testService.currentBillingPeriod.startTime] Inclusive start
* of the period
* @property {string} [billingPlans.testService.currentBillingPeriod.endTime]
* Exclusive end of the period.
* @property {object}
* [billingPlans.testService.currentBillingPeriod.byAccount]
* @property {number}
* [billingPlans.testService.currentBillingPeriod.byAccount.count] Number of
* instances of the billing plan.
* @property {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan]
* @property {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.id] The
* Billing Plan ID
* @property {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.version]
* Version of the Billing Plan schema
* @property {number}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.price] Price
* of the Billing Plan
* @property {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.paymentSource]
* Service that receives payments for this billing plan. Possible values
* include: 'None', 'AppCenter', 'GitHub', 'Xtc'
* @property {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.service]
* Name of the service that the plan applies to. Possible values include:
* 'Build', 'Test'
* @property {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.limits]
* @property {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.attributes]
* @property {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.parentId]
* @property {object} [usage]
* @property {object} [usage.buildService]
* @property {object} [usage.buildService.currentUsagePeriod]
* @property {string} [usage.buildService.currentUsagePeriod.startTime]
* Inclusive start time of the usage period
* @property {string} [usage.buildService.currentUsagePeriod.endTime]
* Exclusive end time of the usage period.
* @property {object} [usage.buildService.currentUsagePeriod.byAccount]
* @property {object} [usage.buildService.currentUsagePeriod.byApp]
* @property {object} [usage.testService]
* @property {object} [usage.testService.currentUsagePeriod]
* @property {string} [usage.testService.currentUsagePeriod.startTime]
* Inclusive start time of the usage period
* @property {string} [usage.testService.currentUsagePeriod.endTime]
* Exclusive end time of the usage period.
* @property {object} [usage.testService.currentUsagePeriod.byAccount]
* @property {object} [usage.testService.currentUsagePeriod.byApp]
* @property {string} [azureSubscriptionId] Unique identifier for the Azure
* subscription used for billing
* @property {string} [azureSubscriptionState] State of the Azure
* subscription used for billing. Possible values include: 'Enabled',
* 'Disabled', 'NotSet'
*/
constructor() {
}
/**
* Defines the metadata of AggregatedBillingInformation
*
* @returns {object} metadata of AggregatedBillingInformation
*
*/
mapper() {
return {
required: false,
serializedName: 'AggregatedBillingInformation',
type: {
name: 'Composite',
className: 'AggregatedBillingInformation',
modelProperties: {
version: {
required: false,
serializedName: 'version',
type: {
name: 'String'
}
},
timestamp: {
required: false,
serializedName: 'timestamp',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
billingPlans: {
required: false,
serializedName: 'billingPlans',
type: {
name: 'Composite',
className: 'BillingInformationPlans'
}
},
usage: {
required: false,
serializedName: 'usage',
type: {
name: 'Composite',
className: 'BillingResourceUsage'
}
},
azureSubscriptionId: {
required: false,
serializedName: 'azureSubscriptionId',
type: {
name: 'String'
}
},
azureSubscriptionState: {
required: false,
serializedName: 'azureSubscriptionState',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AggregatedBillingInformation;