Compartilhar via


ArmSqlModelFactory.DataMaskingRule Method

Definition

Initializes a new instance of DataMaskingRule.

public static Azure.ResourceManager.Sql.Models.DataMaskingRule DataMaskingRule (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.AzureLocation? location = default, string kind = default, string aliasName = default, Azure.ResourceManager.Sql.Models.DataMaskingRuleState? ruleState = default, string schemaName = default, string tableName = default, string columnName = default, Azure.ResourceManager.Sql.Models.DataMaskingFunction? maskingFunction = default, string numberFrom = default, string numberTo = default, string prefixSize = default, string suffixSize = default, string replacementString = default);
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.DataMaskingRuleState> * string * string * string * Nullable<Azure.ResourceManager.Sql.Models.DataMaskingFunction> * string * string * string * string * string -> Azure.ResourceManager.Sql.Models.DataMaskingRule
Public Shared Function DataMaskingRule (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional kind As String = Nothing, Optional aliasName As String = Nothing, Optional ruleState As Nullable(Of DataMaskingRuleState) = Nothing, Optional schemaName As String = Nothing, Optional tableName As String = Nothing, Optional columnName As String = Nothing, Optional maskingFunction As Nullable(Of DataMaskingFunction) = Nothing, Optional numberFrom As String = Nothing, Optional numberTo As String = Nothing, Optional prefixSize As String = Nothing, Optional suffixSize As String = Nothing, Optional replacementString As String = Nothing) As DataMaskingRule

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

location
Nullable<AzureLocation>

The location of the data masking rule.

kind
String

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

aliasName
String

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

ruleState
Nullable<DataMaskingRuleState>

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.

maskingFunction
Nullable<DataMaskingFunction>

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