Language

SavingsPlanModel Class

Definition

Savings plan

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SavingsPlanModelTypeConverter))]
public class SavingsPlanModel : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SavingsPlanModelTypeConverter))>]
type SavingsPlanModel = class
    interface ISavingsPlanModel
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class SavingsPlanModel
Implements ISavingsPlanModel, IValidates
Inheritance
SavingsPlanModel
Attributes
Implements

Constructors

Name Description
SavingsPlanModel()

Creates an new SavingsPlanModel instance.

Properties

Name Description
AppliedScopePropertyDisplayName

Display name

AppliedScopePropertyManagementGroupId

Fully-qualified identifier of the management group where the benefit must be applied.

AppliedScopePropertyResourceGroupId

Fully-qualified identifier of the resource group.

AppliedScopePropertySubscriptionId

Fully-qualified identifier of the subscription.

AppliedScopePropertyTenantId

Tenant ID where the benefit is applied.

AppliedScopeType

Type of the Applied Scope.

BenefitStartTime

This is the DateTime when the savings plan benefit started.

BillingAccountId

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

BillingPlan

Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.

BillingProfileId

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

BillingScopeId

Subscription that will be charged for purchasing the benefit

CommitmentAmount
CommitmentCurrencyCode

The ISO 4217 3-letter currency code for the currency used by this purchase record.

CommitmentGrain

Commitment grain.

CustomerId

Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.

DisplayName

Display name

DisplayProvisioningState

The provisioning state of the savings plan for display, e.g. Succeeded

EffectiveDateTime

DateTime of the savings plan starts providing benefit from.

ExpiryDateTime

Expiry date time

ExtendedStatusInfoMessage

The message giving detailed information about the status code.

ExtendedStatusInfoStatusCode

Status code providing additional information.

Id

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

Name

The name of the resource

ProvisioningState

Provisioning state

PurchaseDateTime

Date time when the savings plan was purchased

Renew

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

RenewDestination

SavingsPlan Id of the SavingsPlan which is purchased because of renew.

RenewProperty
RenewSource

SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed.

ResourceGroupName

Gets the resource group name

SkuName

Name of the SKU to be applied

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Term

Represent benefit term in ISO 8601 format.

Type

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

UserFriendlyAppliedScopeType

The applied scope type of the savings plan for display, e.g. Shared

UtilizationAggregate

The array of aggregates of a savings plan's utilization

UtilizationTrend

The number of days trend for a savings plan

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SavingsPlanModel.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SavingsPlanModel.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of SavingsPlanModel into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to