appcenter-cli
Version:
Command line tool for Visual Studio App Center
98 lines (93 loc) • 2.38 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.
*/
;
/**
* Usage for a single period
*
*/
class UsagePeriod {
/**
* Create a UsagePeriod.
* @property {string} [startTime] Inclusive start time of the usage period
* @property {string} [endTime] Exclusive end time of the usage period.
* @property {object} [byAccount]
* @property {object} [byApp]
*/
constructor() {
}
/**
* Defines the metadata of UsagePeriod
*
* @returns {object} metadata of UsagePeriod
*
*/
mapper() {
return {
required: false,
serializedName: 'UsagePeriod',
type: {
name: 'Composite',
className: 'UsagePeriod',
modelProperties: {
startTime: {
required: false,
serializedName: 'startTime',
type: {
name: 'String'
}
},
endTime: {
required: false,
serializedName: 'endTime',
type: {
name: 'String'
}
},
byAccount: {
required: false,
serializedName: 'byAccount',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'NumberElementType',
type: {
name: 'Number'
}
}
}
},
byApp: {
required: false,
serializedName: 'byApp',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'NumberElementType',
type: {
name: 'Number'
}
}
}
}
}
}
}
}
};
}
}
module.exports = UsagePeriod;