TargetCostAllocationEntity Class

Definition

Target resources for cost allocation.

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

Constructors

Name Description
TargetCostAllocationEntity(CostAllocationResourceType, String, IEnumerable<CostAllocationProportion>, CostAllocationPolicyType)

Initializes a new instance of TargetCostAllocationEntity.

Properties

Name Description
Name

If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag.

(Inherited from CostAllocationEntity)
PolicyType

Method of cost allocation for the rule.

ResourceType

Type of resources contained in this cost allocation rule.

(Inherited from CostAllocationEntity)
Values

Target resources for cost allocation. This list cannot contain more than 25 values.

Methods

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

Explicit Interface Implementations

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

Applies to