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

Base for creation and update of data masking rule.
Inheritance: SqlDatabaseDataMaskingRuleCmdletBase
Afficher le fichier Open project: Azure/azure-powershell

Private Properties

Свойство Type Description
ModelizeMaskingFunction MaskingFunction

Méthodes protégées

Méthode Description
ApplyUserInputToModel ( IEnumerable rules ) : IEnumerable

Updates the given model element with the cmdlet specific operation

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

Returns the rule that this cmdlet operates on

PersistChanges ( IEnumerable rules ) : IEnumerable

This method is responsible to call the right API in the communication layer that will eventually send the information in the object to the REST endpoint

UpdateRule ( Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel rule ) : Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

Update the rule this cmdlet is operating on based on the values provided by the user

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

Update the rule that this cmdlet operates on based on the user provided values

ValidateOperation ( IEnumerable rules ) : string

An additional validation hook for inheriting classes to provide specific validation.

WriteResult ( ) : bool

Returns true if the model object that was constructed by this cmdlet should be written out

Private Methods

Méthode Description
ModelizeMaskingFunction ( ) : MaskingFunction

Transforms the user given data masking function to its model representation

Method Details

ApplyUserInputToModel() protected méthode

Updates the given model element with the cmdlet specific operation
protected ApplyUserInputToModel ( IEnumerable rules ) : IEnumerable
rules IEnumerable
Résultat IEnumerable

GetRule() protected abstract méthode

Returns the rule that this cmdlet operates on
protected abstract GetRule ( IEnumerable rules ) : Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel
rules IEnumerable All the data masking rules of the database
Résultat Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

PersistChanges() protected méthode

This method is responsible to call the right API in the communication layer that will eventually send the information in the object to the REST endpoint
protected PersistChanges ( IEnumerable rules ) : IEnumerable
rules IEnumerable
Résultat IEnumerable

UpdateRule() protected méthode

Update the rule this cmdlet is operating on based on the values provided by the user
protected UpdateRule ( Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel rule ) : Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel
rule Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel The rule this cmdlet operates on
Résultat Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

UpdateRuleList() protected abstract méthode

Update the rule that this cmdlet operates on based on the user provided values
protected abstract UpdateRuleList ( IEnumerable rules, Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel rule ) : IEnumerable
rules IEnumerable The data masking rules of the database
rule Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel The rule that this cmdlet operates on
Résultat IEnumerable

ValidateOperation() protected abstract méthode

An additional validation hook for inheriting classes to provide specific validation.
protected abstract ValidateOperation ( IEnumerable rules ) : string
rules IEnumerable The rule the cmdlet operates on
Résultat string

WriteResult() protected méthode

Returns true if the model object that was constructed by this cmdlet should be written out
protected WriteResult ( ) : bool
Résultat bool