Aracılığıyla paylaş


ResourceManagerModelFactory.ProviderResourceType Method

Definition

Initializes a new instance of ProviderResourceType.

public static Azure.ResourceManager.Resources.Models.ProviderResourceType ProviderResourceType (string resourceType = default, System.Collections.Generic.IEnumerable<string> locations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ProviderExtendedLocation> locationMappings = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ResourceTypeAlias> aliases = default, System.Collections.Generic.IEnumerable<string> apiVersions = default, string defaultApiVersion = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ZoneMapping> zoneMappings = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ApiProfile> apiProfiles = default, string capabilities = default, System.Collections.Generic.IReadOnlyDictionary<string,string> properties = default);
static member ProviderResourceType : string * seq<string> * seq<Azure.ResourceManager.Resources.Models.ProviderExtendedLocation> * seq<Azure.ResourceManager.Resources.Models.ResourceTypeAlias> * seq<string> * string * seq<Azure.ResourceManager.Resources.Models.ZoneMapping> * seq<Azure.ResourceManager.Resources.Models.ApiProfile> * string * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Resources.Models.ProviderResourceType
Public Shared Function ProviderResourceType (Optional resourceType As String = Nothing, Optional locations As IEnumerable(Of String) = Nothing, Optional locationMappings As IEnumerable(Of ProviderExtendedLocation) = Nothing, Optional aliases As IEnumerable(Of ResourceTypeAlias) = Nothing, Optional apiVersions As IEnumerable(Of String) = Nothing, Optional defaultApiVersion As String = Nothing, Optional zoneMappings As IEnumerable(Of ZoneMapping) = Nothing, Optional apiProfiles As IEnumerable(Of ApiProfile) = Nothing, Optional capabilities As String = Nothing, Optional properties As IReadOnlyDictionary(Of String, String) = Nothing) As ProviderResourceType

Parameters

resourceType
String

The resource type.

locations
IEnumerable<String>

The collection of locations where this resource type can be created.

locationMappings
IEnumerable<ProviderExtendedLocation>

The location mappings that are supported by this resource type.

aliases
IEnumerable<ResourceTypeAlias>

The aliases that are supported by this resource type.

apiVersions
IEnumerable<String>

The API version.

defaultApiVersion
String

The default API version.

zoneMappings
IEnumerable<ZoneMapping>
apiProfiles
IEnumerable<ApiProfile>

The API profiles for the resource provider.

capabilities
String

The additional capabilities offered by this resource type.

properties
IReadOnlyDictionary<String,String>

The properties.

Returns

A new ProviderResourceType instance for mocking.

Applies to