Sprog

ArmSqlModelFactory.DataMaskingRule Method

Definition

public static Azure.ResourceManager.Sql.Models.DataMaskingRule DataMaskingRule(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.Core.AzureLocation? location, string kind, string ruleId, Azure.ResourceManager.Sql.Models.SqlDataMaskingRuleState? dataMaskingRuleState, string schemaName, string tableName, string columnName, string aliasName, Azure.ResourceManager.Sql.Models.SqlDataMaskingFunction? dataMaskingFunction, string numberFrom, string numberTo, string prefixSize, string suffixSize, string replacementString);
static member DataMaskingRule : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.Core.AzureLocation> * string * string * Nullable<Azure.ResourceManager.Sql.Models.SqlDataMaskingRuleState> * string * string * string * string * Nullable<Azure.ResourceManager.Sql.Models.SqlDataMaskingFunction> * string * string * string * string * string -> Azure.ResourceManager.Sql.Models.DataMaskingRule
Public Shared Function DataMaskingRule (id As ResourceIdentifier, name As String, resourceType As ResourceType, systemData As SystemData, location As Nullable(Of AzureLocation), kind As String, ruleId As String, dataMaskingRuleState As Nullable(Of SqlDataMaskingRuleState), schemaName As String, tableName As String, columnName As String, aliasName As String, dataMaskingFunction As Nullable(Of SqlDataMaskingFunction), numberFrom As String, numberTo As String, prefixSize As String, suffixSize As String, replacementString As String) As DataMaskingRule

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

location
Nullable<AzureLocation>

The location of the data masking rule.

kind
String

The kind of Data Masking Rule. Metadata, used for Azure portal.

ruleId
String

The rule Id.

dataMaskingRuleState
Nullable<SqlDataMaskingRuleState>

The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState.

schemaName
String

The schema name on which the data masking rule is applied.

tableName
String

The table name on which the data masking rule is applied.

columnName
String

The column name on which the data masking rule is applied.

aliasName
String

The alias name. This is a legacy parameter and is no longer used.

dataMaskingFunction
Nullable<SqlDataMaskingFunction>

The masking function that is used for the data masking rule.

numberFrom
String

The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.

numberTo
String

The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.

prefixSize
String

If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored.

suffixSize
String

If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored.

replacementString
String

If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored.

Returns

A new DataMaskingRule instance for mocking.

Applies to