共用方式為


BillingSubscriptionData Class

Definition

A class representing the BillingSubscription data model. A billing subscription.

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

Constructors

BillingSubscriptionData()

Initializes a new instance of BillingSubscriptionData.

Properties

AutoRenew

Indicates whether auto renewal is turned on or off for a product.

Beneficiary

The beneficiary of the billing subscription.

BillingFrequency

The billing frequency in ISO8601 format of product in the subscription. Example: P1M, P3M, P1Y.

BillingPolicies

Dictionary of billing policies associated with the subscription.

BillingProfileDisplayName

The name of the billing profile.

BillingProfileId

The fully qualified ID that uniquely identifies a billing profile.

BillingProfileName

The ID that uniquely identifies a billing profile.

ConsumptionCostCenter

The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement or Enterprise Agreement Type billing accounts.

CustomerDisplayName

The name of the customer.

CustomerName

The ID that uniquely identifies a customer.

DisplayName

The name of the billing subscription.

EnrollmentAccountDisplayName

The enrollment Account name associated with the subscription. This field is available only for the Enterprise Agreement Type billing accounts.

EnrollmentAccountId

The enrollment Account ID associated with the subscription. This field is available only for the Enterprise Agreement Type billing accounts.

EnrollmentAccountStartOn

The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement Type.

Id

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

(Inherited from ResourceData)
InvoiceSectionDisplayName

The name of the invoice section.

InvoiceSectionId

The fully qualified ID that uniquely identifies an invoice section.

InvoiceSectionName

The ID that uniquely identifies an invoice section.

LastMonthCharges

The last month's charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.

MonthToDateCharges

The current month to date charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.

Name

The name of the resource.

(Inherited from ResourceData)
NextBillingCycleBillingFrequency

Billing frequency of the product under the subscription.

OfferId

The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.

OperationStatus

The status of an operation on the subscription. When None, there is no ongoing operation. When LockedForUpdate, write operations will be blocked on the Billing Subscription. Other is the default value and you may need to refer to the latest API version for more details.

ProductCategory

The category of the product for which the subscription is purchased. Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder, Software, UsageBased, Other.

ProductType

Type of the product for which the subscription is purchased.

ProductTypeId

Id of the product for which the subscription is purchased.

ProvisioningState

The provisioning state of the resource during a long-running operation.

ProvisioningTenantId

The tenant in which the subscription is provisioned.

PurchaseOn

Purchase date of the product in UTC time.

Quantity

The quantity of licenses or fulfillment units for the subscription.

RenewalTermDetails

Details for the next renewal term of a subscription.

Reseller

Reseller for this subscription. The fields is not available for Microsoft Partner Agreement billing accounts.

ResourceType

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

(Inherited from ResourceData)
ResourceUri

Unique identifier of the linked resource.

SkuDescription

The SKU description of the product for which the subscription is purchased. This field is is only available for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

SkuId

The SKU ID of the product for which the subscription is purchased. This field is is only available for Microsoft Customer Agreement billing accounts.

Status

The status of the subscription. This field is not available for Enterprise Agreement billing accounts.

SubscriptionBeneficiaryTenantId

The provisioning tenant of the subscription.

SubscriptionCustomerId

The fully qualified ID that uniquely identifies a customer.

SubscriptionEnrollmentAccountStatus

The current enrollment account status of the subscription. This field is available only for the Enterprise Agreement Type.

SubscriptionId

The ID of the subscription.

SuspensionReasonDetails

The suspension details for a subscription. This field is not available for Enterprise Agreement billing accounts.

SuspensionReasons

The suspension reason for a subscription. This field is not available for Enterprise Agreement billing accounts.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
SystemOverrides

System imposed policies that regulate behavior of the subscription.

Tags

Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

TermDuration

The duration in ISO8601 format for which you can use the subscription. Example: P1M, P3M, P1Y.

TermEndOn

End date of the term in UTC time.

TermStartOn

Start date of the term in UTC time.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<BillingSubscriptionData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BillingSubscriptionData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BillingSubscriptionData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BillingSubscriptionData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BillingSubscriptionData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to