EntityTypePrimaryDiscount Class

Definition

Entity type for primary discounts.

public class EntityTypePrimaryDiscount : Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsDiscountProperties, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.BillingBenefits.Models.EntityTypePrimaryDiscount>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.BillingBenefits.Models.EntityTypePrimaryDiscount>
type EntityTypePrimaryDiscount = class
    inherit BillingBenefitsDiscountProperties
    interface IJsonModel<EntityTypePrimaryDiscount>
    interface IPersistableModel<EntityTypePrimaryDiscount>
Public Class EntityTypePrimaryDiscount
Inherits BillingBenefitsDiscountProperties
Implements IJsonModel(Of EntityTypePrimaryDiscount), IPersistableModel(Of EntityTypePrimaryDiscount)
Inheritance
EntityTypePrimaryDiscount
Implements

Constructors

Name Description
EntityTypePrimaryDiscount(String, DateTimeOffset, DateTimeOffset)

Initializes a new instance of EntityTypePrimaryDiscount.

Properties

Name Description
AppliedScopeType

List of applied scopes supported for discounts.

(Inherited from BillingBenefitsDiscountProperties)
BenefitResourceId

Fully-qualified identifier of the benefit under applicable benefit list.

(Inherited from BillingBenefitsDiscountProperties)
BillingAccountResourceId

Billing account resource id where the discount metadata is present.

(Inherited from BillingBenefitsDiscountProperties)
BillingProfileResourceId

Billing profile resource id where the discount is scoped to.

(Inherited from BillingBenefitsDiscountProperties)
CustomerResourceId

Customer resource id where the discount is scoped to.

(Inherited from BillingBenefitsDiscountProperties)
DiscountTypeProperties

This defines the conditions for a given discount type.

DisplayName

This defines a user friendly display name for the discount.

(Inherited from BillingBenefitsDiscountProperties)
EndOn

End date of the discount. No duration will be supported. Allowed value is any date greater than or equal to startDate.

ProductCode

This is the catalog UPN for the product.

(Inherited from BillingBenefitsDiscountProperties)
ProvisioningState

The state of the resource. Supported values are Pending, Failed, Succeeded, Canceled.

(Inherited from BillingBenefitsDiscountProperties)
StartOn

Start date of the discount. Value is the date the discount started or will start in the future.

(Inherited from BillingBenefitsDiscountProperties)
Status

Represents the current status of the discount.

(Inherited from BillingBenefitsDiscountProperties)
SystemId

This is the globally unique identifier of the Discount which will not change for the lifetime of the Discount.

(Inherited from BillingBenefitsDiscountProperties)

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<BillingBenefitsDiscountProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from BillingBenefitsDiscountProperties)
IJsonModel<BillingBenefitsDiscountProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from BillingBenefitsDiscountProperties)
IJsonModel<EntityTypePrimaryDiscount>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<EntityTypePrimaryDiscount>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<BillingBenefitsDiscountProperties>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from BillingBenefitsDiscountProperties)
IPersistableModel<BillingBenefitsDiscountProperties>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from BillingBenefitsDiscountProperties)
IPersistableModel<BillingBenefitsDiscountProperties>.Write(ModelReaderWriterOptions) (Inherited from BillingBenefitsDiscountProperties)
IPersistableModel<EntityTypePrimaryDiscount>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<EntityTypePrimaryDiscount>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<EntityTypePrimaryDiscount>.Write(ModelReaderWriterOptions)

Applies to