ArmResourcesPolicyModelFactory.PolicyAlias Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The alias type.
public static Azure.ResourceManager.Resources.Policy.Models.PolicyAlias PolicyAlias(string name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPath> paths = default, Azure.ResourceManager.Resources.Policy.Models.PolicyAliasType? type = default, string defaultPath = default, Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPattern defaultPattern = default, Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPathMetadata defaultMetadata = default);
static member PolicyAlias : string * seq<Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPath> * Nullable<Azure.ResourceManager.Resources.Policy.Models.PolicyAliasType> * string * Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPattern * Azure.ResourceManager.Resources.Policy.Models.PolicyAliasPathMetadata -> Azure.ResourceManager.Resources.Policy.Models.PolicyAlias
Public Shared Function PolicyAlias (Optional name As String = Nothing, Optional paths As IEnumerable(Of PolicyAliasPath) = Nothing, Optional type As Nullable(Of PolicyAliasType) = Nothing, Optional defaultPath As String = Nothing, Optional defaultPattern As PolicyAliasPattern = Nothing, Optional defaultMetadata As PolicyAliasPathMetadata = Nothing) As PolicyAlias
Parameters
- name
- String
The alias name.
- paths
- IEnumerable<PolicyAliasPath>
The paths for an alias.
- type
- Nullable<PolicyAliasType>
The type of the alias.
- defaultPath
- String
The default path for an alias.
- defaultPattern
- PolicyAliasPattern
The default pattern for an alias.
- defaultMetadata
- PolicyAliasPathMetadata
The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata.
Returns
A new PolicyAlias instance for mocking.