Show / Hide Table of Contents

Class ReservationPurchaseRequest

The request for reservation purchase.

Inheritance
System.Object
ReservationPurchaseRequest
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Billing.dll
Syntax
public class ReservationPurchaseRequest : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest>

Constructors

ReservationPurchaseRequest()

Initializes a new instance of ReservationPurchaseRequest.

Declaration
public ReservationPurchaseRequest ();

Properties

AppliedScopeProperties

Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.

Declaration
public Azure.ResourceManager.Billing.Models.ReservationAppliedScopeProperties AppliedScopeProperties { get; set; }
Property Value
ReservationAppliedScopeProperties

AppliedScopes

List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.

Declaration
public System.Collections.Generic.IList<string> AppliedScopes { get; }
Property Value
System.Collections.Generic.IList<System.String>

AppliedScopeType

Type of the Applied Scope.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.BillingAppliedScopeType> AppliedScopeType { get; set; }
Property Value
System.Nullable<BillingAppliedScopeType>

BillingPlan

Represent the billing plans.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.ReservationBillingPlan> BillingPlan { get; set; }
Property Value
System.Nullable<ReservationBillingPlan>

BillingScopeId

Subscription that will be charged for purchasing reservation or savings plan.

Declaration
public string BillingScopeId { get; }
Property Value
System.String

DisplayName

Friendly name of the reservation.

Declaration
public string DisplayName { get; set; }
Property Value
System.String

InstanceFlexibilityPropertiesInstanceFlexibility

Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.InstanceFlexibility> InstanceFlexibilityPropertiesInstanceFlexibility { get; set; }
Property Value
System.Nullable<InstanceFlexibility>

InstanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.InstanceFlexibility> InstanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility { get; set; }
Property Value
System.Nullable<InstanceFlexibility>

IsRenewed

Setting this to true will automatically purchase a new benefit on the expiration date time.

Declaration
public Nullable<bool> IsRenewed { get; set; }
Property Value
System.Nullable<System.Boolean>

Location

The Azure region where the reserved resource lives.

Declaration
public Nullable<Azure.Core.AzureLocation> Location { get; set; }
Property Value
System.Nullable<Azure.Core.AzureLocation>

Quantity

Quantity of the skus that are part of the reservation. Must be greater than zero.

Declaration
public Nullable<int> Quantity { get; set; }
Property Value
System.Nullable<System.Int32>

ReservedResourceType

The reserved source type of the reservation, e.g. virtual machine.

Declaration
public string ReservedResourceType { get; }
Property Value
System.String

ReviewOn

This is the date-time when the Azure hybrid benefit needs to be reviewed.

Declaration
public Nullable<DateTimeOffset> ReviewOn { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>

SkuName

Gets or sets the sku name.

Declaration
public string SkuName { get; set; }
Property Value
System.String

Term

The term of the reservation, e.g. P1Y.

Declaration
public string Term { get; }
Property Value
System.String

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Declaration
protected virtual void JsonModelWriteCore (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter writer

The JSON writer.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The client options for reading and writing models.

Explicit Interface Implementations

IJsonModel<ReservationPurchaseRequest>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

Declaration
Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest IJsonModel<ReservationPurchaseRequest>.Create (ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonReader reader

The System.Text.Json.Utf8JsonReader to read.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
ReservationPurchaseRequest

A T representation of the JSON value.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IJsonModel<ReservationPurchaseRequest>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

Declaration
void IJsonModel<ReservationPurchaseRequest>.Write (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter writer

The System.Text.Json.Utf8JsonWriter to write into.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IPersistableModel<ReservationPurchaseRequest>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

Declaration
Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest IPersistableModel<ReservationPurchaseRequest>.Create (BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.BinaryData data

The System.BinaryData to parse.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
ReservationPurchaseRequest

A T representation of the data.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IPersistableModel<ReservationPurchaseRequest>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

Declaration
string IPersistableModel<ReservationPurchaseRequest>.GetFormatFromOptions (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to consider when serializing and deserializing the model.

Returns
System.String

The format that the model uses when communicating with the serivce.

IPersistableModel<ReservationPurchaseRequest>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Declaration
BinaryData IPersistableModel<ReservationPurchaseRequest>.Write (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
System.BinaryData

A binary representation of the written model.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

Back to top Azure SDK for .NET