CreditsValidateModel Class

Definition

Credits validate model.

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

Constructors

Name Description
CreditsValidateModel()

Initializes a new instance of CreditsValidateModel.

Properties

Name Description
BillingAccountResourceId

Fully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers.

BillingProfileResourceId

Fully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers.

Breakdown

Credit line-items/milestones/no-charge services breakdown.

Credit

The entire investment amount for the credit contract, including currency and amount.

CustomerId

Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. Format is /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}.

EndOn

End DateTime in UTC.

ETag

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Identity

Managed service identity (system assigned and/or user assigned identities).

Kind

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Location

The geo-location where the resource lives.

ManagedBy

The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.

Name

The name of the resource.

Plan

Plan for the resource.

Policies

Credit breakdown item representing a milestone, line-item, or no-charge service.

ProductCode

Product UPN for the credit type.

ProvisioningState

Provisioning state.

Reason

The reason for the credit. Not required if not applicable.

ResourceId

Fully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Sku

The resource model definition representing SKU.

StartOn

Start DateTime.

Status

Status of the credit.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

SystemId

System identifier.

Tags

Resource tags.

Methods

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

Explicit Interface Implementations

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

Applies to