Udostępnij za pośrednictwem


ResourceManagerModelFactory.ResourceTypeAlias Method

Definition

Initializes a new instance of ResourceTypeAlias.

public static Azure.ResourceManager.Resources.Models.ResourceTypeAlias ResourceTypeAlias (string name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ResourceTypeAliasPath> paths = default, Azure.ResourceManager.Resources.Models.ResourceTypeAliasType? aliasType = default, string defaultPath = default, Azure.ResourceManager.Resources.Models.ResourceTypeAliasPattern defaultPattern = default, Azure.ResourceManager.Resources.Models.ResourceTypeAliasPathMetadata defaultMetadata = default);
static member ResourceTypeAlias : string * seq<Azure.ResourceManager.Resources.Models.ResourceTypeAliasPath> * Nullable<Azure.ResourceManager.Resources.Models.ResourceTypeAliasType> * string * Azure.ResourceManager.Resources.Models.ResourceTypeAliasPattern * Azure.ResourceManager.Resources.Models.ResourceTypeAliasPathMetadata -> Azure.ResourceManager.Resources.Models.ResourceTypeAlias
Public Shared Function ResourceTypeAlias (Optional name As String = Nothing, Optional paths As IEnumerable(Of ResourceTypeAliasPath) = Nothing, Optional aliasType As Nullable(Of ResourceTypeAliasType) = Nothing, Optional defaultPath As String = Nothing, Optional defaultPattern As ResourceTypeAliasPattern = Nothing, Optional defaultMetadata As ResourceTypeAliasPathMetadata = Nothing) As ResourceTypeAlias

Parameters

name
String

The alias name.

paths
IEnumerable<ResourceTypeAliasPath>

The paths for an alias.

aliasType
Nullable<ResourceTypeAliasType>

The type of the alias.

defaultPath
String

The default path for an alias.

defaultPattern
ResourceTypeAliasPattern

The default pattern for an alias.

defaultMetadata
ResourceTypeAliasPathMetadata

The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata.

Returns

A new ResourceTypeAlias instance for mocking.

Applies to