CarbonEmissionQueryDateRange Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Date range to be used with QueryParameter, it should be within 12 months between start and end date. In certain cases, start and end dates must be the same date.
public class CarbonEmissionQueryDateRange : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryDateRange>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryDateRange>
type CarbonEmissionQueryDateRange = class
interface IJsonModel<CarbonEmissionQueryDateRange>
interface IPersistableModel<CarbonEmissionQueryDateRange>
Public Class CarbonEmissionQueryDateRange
Implements IJsonModel(Of CarbonEmissionQueryDateRange), IPersistableModel(Of CarbonEmissionQueryDateRange)
- Inheritance
-
CarbonEmissionQueryDateRange
- Implements
Constructors
CarbonEmissionQueryDateRange(DateTimeOffset, DateTimeOffset) |
Initializes a new instance of CarbonEmissionQueryDateRange. |
Properties
EndOn |
End date parameter in yyyy-MM-01 format. Only the first day of each month is accepted. |
StartOn |
Start date parameter in yyyy-MM-01 format. Only the first day of each month is accepted. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<CarbonEmissionQueryDateRange>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<CarbonEmissionQueryDateRange>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<CarbonEmissionQueryDateRange>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<CarbonEmissionQueryDateRange>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<CarbonEmissionQueryDateRange>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |