diff --git a/profiles/latest/consumption/mgmt/consumption/models.go b/profiles/latest/consumption/mgmt/consumption/models.go index 1a2880a62e0b..d608a8651939 100644 --- a/profiles/latest/consumption/mgmt/consumption/models.go +++ b/profiles/latest/consumption/mgmt/consumption/models.go @@ -84,9 +84,12 @@ const ( type TimeGrainType = original.TimeGrainType const ( - TimeGrainTypeAnnually TimeGrainType = original.TimeGrainTypeAnnually - TimeGrainTypeMonthly TimeGrainType = original.TimeGrainTypeMonthly - TimeGrainTypeQuarterly TimeGrainType = original.TimeGrainTypeQuarterly + TimeGrainTypeAnnually TimeGrainType = original.TimeGrainTypeAnnually + TimeGrainTypeBillingAnnual TimeGrainType = original.TimeGrainTypeBillingAnnual + TimeGrainTypeBillingMonth TimeGrainType = original.TimeGrainTypeBillingMonth + TimeGrainTypeBillingQuarter TimeGrainType = original.TimeGrainTypeBillingQuarter + TimeGrainTypeMonthly TimeGrainType = original.TimeGrainTypeMonthly + TimeGrainTypeQuarterly TimeGrainType = original.TimeGrainTypeQuarterly ) type AggregatedCostClient = original.AggregatedCostClient diff --git a/profiles/preview/consumption/mgmt/consumption/models.go b/profiles/preview/consumption/mgmt/consumption/models.go index 2c5576284c5a..e6a953c5c462 100644 --- a/profiles/preview/consumption/mgmt/consumption/models.go +++ b/profiles/preview/consumption/mgmt/consumption/models.go @@ -84,9 +84,12 @@ const ( type TimeGrainType = original.TimeGrainType const ( - TimeGrainTypeAnnually TimeGrainType = original.TimeGrainTypeAnnually - TimeGrainTypeMonthly TimeGrainType = original.TimeGrainTypeMonthly - TimeGrainTypeQuarterly TimeGrainType = original.TimeGrainTypeQuarterly + TimeGrainTypeAnnually TimeGrainType = original.TimeGrainTypeAnnually + TimeGrainTypeBillingAnnual TimeGrainType = original.TimeGrainTypeBillingAnnual + TimeGrainTypeBillingMonth TimeGrainType = original.TimeGrainTypeBillingMonth + TimeGrainTypeBillingQuarter TimeGrainType = original.TimeGrainTypeBillingQuarter + TimeGrainTypeMonthly TimeGrainType = original.TimeGrainTypeMonthly + TimeGrainTypeQuarterly TimeGrainType = original.TimeGrainTypeQuarterly ) type AggregatedCostClient = original.AggregatedCostClient diff --git a/services/consumption/mgmt/2019-01-01/consumption/models.go b/services/consumption/mgmt/2019-01-01/consumption/models.go index 7130bfce1001..dbc23b9fd50a 100644 --- a/services/consumption/mgmt/2019-01-01/consumption/models.go +++ b/services/consumption/mgmt/2019-01-01/consumption/models.go @@ -149,6 +149,12 @@ type TimeGrainType string const ( // TimeGrainTypeAnnually ... TimeGrainTypeAnnually TimeGrainType = "Annually" + // TimeGrainTypeBillingAnnual ... + TimeGrainTypeBillingAnnual TimeGrainType = "BillingAnnual" + // TimeGrainTypeBillingMonth ... + TimeGrainTypeBillingMonth TimeGrainType = "BillingMonth" + // TimeGrainTypeBillingQuarter ... + TimeGrainTypeBillingQuarter TimeGrainType = "BillingQuarter" // TimeGrainTypeMonthly ... TimeGrainTypeMonthly TimeGrainType = "Monthly" // TimeGrainTypeQuarterly ... @@ -157,7 +163,7 @@ const ( // PossibleTimeGrainTypeValues returns an array of possible values for the TimeGrainType const type. func PossibleTimeGrainTypeValues() []TimeGrainType { - return []TimeGrainType{TimeGrainTypeAnnually, TimeGrainTypeMonthly, TimeGrainTypeQuarterly} + return []TimeGrainType{TimeGrainTypeAnnually, TimeGrainTypeBillingAnnual, TimeGrainTypeBillingMonth, TimeGrainTypeBillingQuarter, TimeGrainTypeMonthly, TimeGrainTypeQuarterly} } // Balance a balance resource. @@ -406,7 +412,7 @@ type BudgetProperties struct { Category CategoryType `json:"category,omitempty"` // Amount - The total amount of cost to track with the budget Amount *decimal.Decimal `json:"amount,omitempty"` - // TimeGrain - The time covered by a budget. Tracking of the amount will be reset based on the time grain. Possible values include: 'TimeGrainTypeMonthly', 'TimeGrainTypeQuarterly', 'TimeGrainTypeAnnually' + // TimeGrain - The time covered by a budget. Tracking of the amount will be reset based on the time grain. Possible values include: 'TimeGrainTypeMonthly', 'TimeGrainTypeQuarterly', 'TimeGrainTypeAnnually', 'TimeGrainTypeBillingMonth', 'TimeGrainTypeBillingQuarter', 'TimeGrainTypeBillingAnnual' TimeGrain TimeGrainType `json:"timeGrain,omitempty"` // TimePeriod - Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. TimePeriod *BudgetTimePeriod `json:"timePeriod,omitempty"`