BudgetTimePeriod Class

Definition

The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate. Supported for CategoryType(s): Cost, ReservationUtilization. Required for CategoryType(s): Cost, ReservationUtilization.

public class BudgetTimePeriod : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CostManagement.Models.BudgetTimePeriod>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CostManagement.Models.BudgetTimePeriod>
type BudgetTimePeriod = class
    interface IJsonModel<BudgetTimePeriod>
    interface IPersistableModel<BudgetTimePeriod>
Public Class BudgetTimePeriod
Implements IJsonModel(Of BudgetTimePeriod), IPersistableModel(Of BudgetTimePeriod)
Inheritance
BudgetTimePeriod
Implements

Constructors

Name Description
BudgetTimePeriod(DateTimeOffset)

Initializes a new instance of BudgetTimePeriod.

Properties

Name Description
EndOn

The end date for the budget.

  • Constraints for CategoryType: Cost - No constraints. If not provided, we default this to 10 years from the start date.
  • Constraints for CategoryType: ReservationUtilization - End date cannot be more than 3 years after the start date.
StartOn

The start date for the budget.

  • Constraints for CategoryType: Cost - 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 twelve months. Past start date should be selected within the timegrain period.
  • Constraints for CategoryType: ReservationUtilization - Must be on or after the current date and less than the end date.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<BudgetTimePeriod>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<BudgetTimePeriod>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<BudgetTimePeriod>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<BudgetTimePeriod>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<BudgetTimePeriod>.Write(ModelReaderWriterOptions)

Applies to