ArmCostManagementModelFactory.TargetCostAllocationEntity Method

Definition

Target resources for cost allocation.

public static Azure.ResourceManager.CostManagement.Models.TargetCostAllocationEntity TargetCostAllocationEntity(Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType resourceType = default, string name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.CostAllocationProportion> values = default, Azure.ResourceManager.CostManagement.Models.CostAllocationPolicyType policyType = default);
static member TargetCostAllocationEntity : Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType * string * seq<Azure.ResourceManager.CostManagement.Models.CostAllocationProportion> * Azure.ResourceManager.CostManagement.Models.CostAllocationPolicyType -> Azure.ResourceManager.CostManagement.Models.TargetCostAllocationEntity
Public Shared Function TargetCostAllocationEntity (Optional resourceType As CostAllocationResourceType = Nothing, Optional name As String = Nothing, Optional values As IEnumerable(Of CostAllocationProportion) = Nothing, Optional policyType As CostAllocationPolicyType = Nothing) As TargetCostAllocationEntity

Parameters

resourceType
CostAllocationResourceType

Type of resources contained in this cost allocation rule.

name
String

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

values
IEnumerable<CostAllocationProportion>

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

policyType
CostAllocationPolicyType

Method of cost allocation for the rule.

Returns

A new TargetCostAllocationEntity instance for mocking.

Applies to