Share via


DataMaskingRuleInner Class

Definition

Represents a database data masking rule.

[Microsoft.Rest.Serialization.JsonTransformation]
public class DataMaskingRuleInner : Microsoft.Azure.Management.Sql.Fluent.Models.ProxyResourceInner
[<Microsoft.Rest.Serialization.JsonTransformation>]
type DataMaskingRuleInner = class
    inherit ProxyResourceInner
Public Class DataMaskingRuleInner
Inherits ProxyResourceInner
Inheritance
Attributes

Constructors

DataMaskingRuleInner()

Initializes a new instance of the DataMaskingRuleInner class.

DataMaskingRuleInner(String, String, String, DataMaskingFunction, String, String, String, String, String, Nullable<DataMaskingRuleState>, String, String, String, String, String, String, String)

Initializes a new instance of the DataMaskingRuleInner class.

Properties

AliasName

Gets or sets the alias name. This is a legacy parameter and is no longer used.

ColumnName

Gets or sets the column name on which the data masking rule is applied.

DataMaskingRuleId

Gets the rule Id.

Id

Resource Id. Setter is protected because Id needs to be set in Network resources.

(Inherited from ProxyResource)
Kind

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

Location

Gets the location of the data masking rule.

MaskingFunction

Gets or sets the masking function that is used for the data masking rule. Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text'

Name

Resource name

(Inherited from ProxyResource)
NumberFrom

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

NumberTo

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

PrefixSize

Gets or sets 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.

ReplacementString

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

RuleState

Gets or sets 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'

SchemaName

Gets or sets the schema name on which the data masking rule is applied.

SuffixSize

Gets or sets 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.

TableName

Gets or sets the table name on which the data masking rule is applied.

Tags

Resource tags

(Inherited from Resource)
Type

Resource type

(Inherited from ProxyResource)

Methods

Validate()

Validate the object.

Applies to