C# Class Microsoft.Azure.Commands.Sql.DataMasking.Cmdlet.NewAzureSqlDatabaseDataMaskingRule

Inheritance: BuildAzureSqlDatabaseDataMaskingRule
Datei anzeigen Open project: Azure/azure-powershell

Private Properties

Property Type Description

Protected Methods

Method Description
GetEntity ( ) : IEnumerable

Provides the model element that this cmdlet operates on

GetRule ( IEnumerable rules ) : Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

Returns a new data masking rule model

UpdateRuleList ( IEnumerable rules, Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel rule ) : IEnumerable

Adds the data masking rule that this cmdlet operated on to the list of rules of this database

ValidateOperation ( IEnumerable rules ) : string

An additional validation to see that no rule with the user provided Id already exists.

Method Details

GetEntity() protected method

Provides the model element that this cmdlet operates on
protected GetEntity ( ) : IEnumerable
return IEnumerable

GetRule() protected method

Returns a new data masking rule model
protected GetRule ( IEnumerable rules ) : Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel
rules IEnumerable The database's data masking rules
return Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

UpdateRuleList() protected method

Adds the data masking rule that this cmdlet operated on to the list of rules of this database
protected UpdateRuleList ( IEnumerable rules, Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel rule ) : IEnumerable
rules IEnumerable The data masking rules already defined for this database
rule Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel The rule that this cmdlet operated on
return IEnumerable

ValidateOperation() protected method

An additional validation to see that no rule with the user provided Id already exists.
protected ValidateOperation ( IEnumerable rules ) : string
rules IEnumerable The rule the cmdlet operates on
return string