Share via


RequestContext Class

Definition

The context of the Cost Details request.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.RequestContextTypeConverter))]
public class RequestContext : Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.IRequestContext, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.IRequestContextInternal
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.RequestContextTypeConverter))>]
type RequestContext = class
    interface IRequestContext
    interface IJsonSerializable
    interface IRequestContextInternal
Public Class RequestContext
Implements IRequestContext, IRequestContextInternal
Inheritance
RequestContext
Attributes
Implements

Constructors

RequestContext()

Creates an new RequestContext instance.

Properties

RequestBodyBillingPeriod

This parameter can be used only by Enterprise Agreement customers. Use the YearMonth(e.g. 202008) format. This parameter cannot be used alongside either the invoiceId or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost.

RequestBodyInvoiceId

This parameter can only be used by Microsoft Customer Agreement customers. Additionally, it can only be used at the Billing Profile or Customer scope. This parameter cannot be used alongside either the billingPeriod or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost.

RequestBodyMetric

The type of the detailed report. By default ActualCost is provided

RequestScope

The request scope of the request.

TimePeriodEnd

The end date to pull data to. example format 2020-03-15

TimePeriodStart

The start date to pull data from. example format 2020-03-15

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RequestContext.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RequestContext.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.IRequestContext.

FromJsonString(String)

Creates a new instance of RequestContext, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of RequestContext into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Explicit Interface Implementations

IRequestContextInternal.RequestBody

Internal Acessors for RequestBody

IRequestContextInternal.RequestBodyTimePeriod

Internal Acessors for RequestBodyTimePeriod

Applies to