Megosztás a következőn keresztül:


ResourceManagerModelFactory.DataManifestCustomResourceFunctionDefinition Method

Definition

Initializes a new instance of DataManifestCustomResourceFunctionDefinition.

public static Azure.ResourceManager.Resources.Models.DataManifestCustomResourceFunctionDefinition DataManifestCustomResourceFunctionDefinition (string name = default, Azure.Core.ResourceType? fullyQualifiedResourceType = default, System.Collections.Generic.IEnumerable<string> defaultProperties = default, bool? allowCustomProperties = default);
static member DataManifestCustomResourceFunctionDefinition : string * Nullable<Azure.Core.ResourceType> * seq<string> * Nullable<bool> -> Azure.ResourceManager.Resources.Models.DataManifestCustomResourceFunctionDefinition
Public Shared Function DataManifestCustomResourceFunctionDefinition (Optional name As String = Nothing, Optional fullyQualifiedResourceType As Nullable(Of ResourceType) = Nothing, Optional defaultProperties As IEnumerable(Of String) = Nothing, Optional allowCustomProperties As Nullable(Of Boolean) = Nothing) As DataManifestCustomResourceFunctionDefinition

Parameters

name
String

The function name as it will appear in the policy rule. eg - 'vault'.

fullyQualifiedResourceType
Nullable<ResourceType>

The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'.

defaultProperties
IEnumerable<String>

The top-level properties that can be selected on the function's output. eg - [ "name", "location" ] if vault().name and vault().location are supported.

allowCustomProperties
Nullable<Boolean>

A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified in the policy rule eg - vault('2019-06-01').

Returns

A new DataManifestCustomResourceFunctionDefinition instance for mocking.

Applies to