Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ export default class ConsumptionManagementClient extends AzureServiceClient {
reservationRecommendations: operations.ReservationRecommendations;
budgets: operations.Budgets;
priceSheet: operations.PriceSheet;
costTags: operations.CostTags;
tags: operations.Tags;
forecasts: operations.Forecasts;
operations: operations.Operations;
aggregatedCost: operations.AggregatedCost;
chargesByEnrollmentAccount: operations.ChargesByEnrollmentAccount;
chargesForEnrollmentAccount: operations.ChargesForEnrollmentAccount;
chargesByDepartment: operations.ChargesByDepartment;
chargesForDepartment: operations.ChargesForDepartment;
}

export { ConsumptionManagementClient, models as ConsumptionManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ConsumptionManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-06-30';
this.apiVersion = '2018-08-31';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand Down Expand Up @@ -80,11 +80,14 @@ class ConsumptionManagementClient extends ServiceClient {
this.reservationRecommendations = new operations.ReservationRecommendations(this);
this.budgets = new operations.Budgets(this);
this.priceSheet = new operations.PriceSheet(this);
this.costTags = new operations.CostTags(this);
this.tags = new operations.Tags(this);
this.forecasts = new operations.Forecasts(this);
this.operations = new operations.Operations(this);
this.aggregatedCost = new operations.AggregatedCost(this);
this.chargesByEnrollmentAccount = new operations.ChargesByEnrollmentAccount(this);
this.chargesForEnrollmentAccount = new operations.ChargesForEnrollmentAccount(this);
this.chargesByDepartment = new operations.ChargesByDepartment(this);
this.chargesForDepartment = new operations.ChargesForDepartment(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
/*
* 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');

/**
* A charge summary resource by department.
*
* @extends models['Resource']
*/
class ChargeSummaryByDepartment extends models['Resource'] {
/**
* Create a ChargeSummaryByDepartment.
* @member {string} [billingPeriodId] The id of the billing period resource
* that the charge belongs to.
* @member {string} [usageStart] Usage start date.
* @member {string} [usageEnd] Usage end date.
* @member {number} [azureCharges] Azure Charges.
* @member {number} [chargesBilledSeparately] Charges Billed separately.
* @member {number} [marketplaceCharges] Marketplace Charges.
* @member {string} [currency] Currency Code
*/
constructor() {
super();
}

/**
* Defines the metadata of ChargeSummaryByDepartment
*
* @returns {object} metadata of ChargeSummaryByDepartment
*
*/
mapper() {
return {
required: false,
serializedName: 'ChargeSummaryByDepartment',
type: {
name: 'Composite',
className: 'ChargeSummaryByDepartment',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
tags: {
required: false,
readOnly: true,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
billingPeriodId: {
required: false,
readOnly: true,
serializedName: 'properties.billingPeriodId',
type: {
name: 'String'
}
},
usageStart: {
required: false,
readOnly: true,
serializedName: 'properties.usageStart',
type: {
name: 'String'
}
},
usageEnd: {
required: false,
readOnly: true,
serializedName: 'properties.usageEnd',
type: {
name: 'String'
}
},
azureCharges: {
required: false,
readOnly: true,
serializedName: 'properties.azureCharges',
type: {
name: 'Number'
}
},
chargesBilledSeparately: {
required: false,
readOnly: true,
serializedName: 'properties.chargesBilledSeparately',
type: {
name: 'Number'
}
},
marketplaceCharges: {
required: false,
readOnly: true,
serializedName: 'properties.marketplaceCharges',
type: {
name: 'Number'
}
},
currency: {
required: false,
readOnly: true,
serializedName: 'properties.currency',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ChargeSummaryByDepartment;
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
/*
* 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');

/**
* A charge summary resource by enrollment account.
*
* @extends models['Resource']
*/
class ChargeSummaryByEnrollmentAccount extends models['Resource'] {
/**
* Create a ChargeSummaryByEnrollmentAccount.
* @member {string} [billingPeriodId] The id of the billing period resource
* that the charge belongs to.
* @member {string} [usageStart] Usage start date.
* @member {string} [usageEnd] Usage end date.
* @member {number} [azureCharges] Azure Charges.
* @member {number} [chargesBilledSeparately] Charges Billed separately.
* @member {number} [marketplaceCharges] Marketplace Charges.
* @member {string} [currency] Currency Code
*/
constructor() {
super();
}

/**
* Defines the metadata of ChargeSummaryByEnrollmentAccount
*
* @returns {object} metadata of ChargeSummaryByEnrollmentAccount
*
*/
mapper() {
return {
required: false,
serializedName: 'ChargeSummaryByEnrollmentAccount',
type: {
name: 'Composite',
className: 'ChargeSummaryByEnrollmentAccount',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
tags: {
required: false,
readOnly: true,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
billingPeriodId: {
required: false,
readOnly: true,
serializedName: 'properties.billingPeriodId',
type: {
name: 'String'
}
},
usageStart: {
required: false,
readOnly: true,
serializedName: 'properties.usageStart',
type: {
name: 'String'
}
},
usageEnd: {
required: false,
readOnly: true,
serializedName: 'properties.usageEnd',
type: {
name: 'String'
}
},
azureCharges: {
required: false,
readOnly: true,
serializedName: 'properties.azureCharges',
type: {
name: 'Number'
}
},
chargesBilledSeparately: {
required: false,
readOnly: true,
serializedName: 'properties.chargesBilledSeparately',
type: {
name: 'Number'
}
},
marketplaceCharges: {
required: false,
readOnly: true,
serializedName: 'properties.marketplaceCharges',
type: {
name: 'Number'
}
},
currency: {
required: false,
readOnly: true,
serializedName: 'properties.currency',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ChargeSummaryByEnrollmentAccount;
Loading