CostAllocationRuleData Class

Definition

The cost allocation rule model definition.

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

Constructors

Name Description
CostAllocationRuleData()

Initializes a new instance of CostAllocationRuleData.

Properties

Name Description
Id

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

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
Properties

Cost allocation rule properties.

ResourceType

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

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<CostAllocationRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CostAllocationRuleData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CostAllocationRuleData>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CostAllocationRuleData>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CostAllocationRuleData>.Write(ModelReaderWriterOptions)

Applies to