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

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

Private Properties

Property Type Description
ModelizeMaskingFunction MaskingFunction

Protected Methods

Method 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

Method Description
ModelizeMaskingFunction ( ) : MaskingFunction

Transforms the user given data masking function to its model representation

Method Details

ApplyUserInputToModel() protected method

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

GetRule() protected abstract method

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
return Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

PersistChanges() protected method

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
return IEnumerable

UpdateRule() protected method

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
return Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel

UpdateRuleList() protected abstract method

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
return IEnumerable

ValidateOperation() protected abstract method

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
return string

WriteResult() protected method

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