DataMaskingRule Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataMaskingRule() |
Initializes a new instance of the DataMaskingRule class. |
DataMaskingRule(String, String, String, DataMaskingFunction, String, String, String, String, String, Nullable<DataMaskingRuleState>, String, String, String, String, String, String, String) |
Initializes a new instance of the DataMaskingRule class. |
DataMaskingRule()
Initializes a new instance of the DataMaskingRule class.
public DataMaskingRule ();
Public Sub New ()
Applies to
DataMaskingRule(String, String, String, DataMaskingFunction, String, String, String, String, String, Nullable<DataMaskingRuleState>, String, String, String, String, String, String, String)
Initializes a new instance of the DataMaskingRule class.
public DataMaskingRule (string schemaName, string tableName, string columnName, Microsoft.Azure.Management.Sql.Models.DataMaskingFunction maskingFunction, string id = default, string name = default, string type = default, string dataMaskingRuleId = default, string aliasName = default, Microsoft.Azure.Management.Sql.Models.DataMaskingRuleState? ruleState = default, string numberFrom = default, string numberTo = default, string prefixSize = default, string suffixSize = default, string replacementString = default, string location = default, string kind = default);
new Microsoft.Azure.Management.Sql.Models.DataMaskingRule : string * string * string * Microsoft.Azure.Management.Sql.Models.DataMaskingFunction * string * string * string * string * string * Nullable<Microsoft.Azure.Management.Sql.Models.DataMaskingRuleState> * string * string * string * string * string * string * string -> Microsoft.Azure.Management.Sql.Models.DataMaskingRule
Public Sub New (schemaName As String, tableName As String, columnName As String, maskingFunction As DataMaskingFunction, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional dataMaskingRuleId As String = Nothing, Optional aliasName As String = Nothing, Optional ruleState As Nullable(Of DataMaskingRuleState) = 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, Optional location As String = Nothing, Optional kind As String = Nothing)
Parameters
- 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
- DataMaskingFunction
The masking function that is used for the data masking rule. Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text'
- id
- String
Resource ID.
- name
- String
Resource name.
- type
- String
Resource type.
- dataMaskingRuleId
- String
The rule Id.
- 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. Possible values include: 'Disabled', 'Enabled'
- 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.
- location
- String
The location of the data masking rule.
- kind
- String
The kind of Data Masking Rule. Metadata, used for Azure portal.