Documentation ¶
Index ¶
- func PossibleValuesForDataMaskingFunction() []string
- func PossibleValuesForDataMaskingRuleState() []string
- func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DataMaskingFunction
- type DataMaskingRule
- type DataMaskingRuleOperationPredicate
- type DataMaskingRuleProperties
- type DataMaskingRuleState
- type DataMaskingRulesClient
- func (c DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input DataMaskingRule) (result CreateOrUpdateOperationResponse, err error)
- func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c DataMaskingRulesClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
- func (c DataMaskingRulesClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
- type RuleId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDataMaskingFunction ¶
func PossibleValuesForDataMaskingFunction() []string
func PossibleValuesForDataMaskingRuleState ¶
func PossibleValuesForDataMaskingRuleState() []string
func ValidateRuleID ¶
ValidateRuleID checks that 'input' can be parsed as a Rule ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataMaskingRule }
type DataMaskingFunction ¶
type DataMaskingFunction string
const ( DataMaskingFunctionCCN DataMaskingFunction = "CCN" DataMaskingFunctionDefault DataMaskingFunction = "Default" DataMaskingFunctionEmail DataMaskingFunction = "Email" DataMaskingFunctionNumber DataMaskingFunction = "Number" DataMaskingFunctionSSN DataMaskingFunction = "SSN" DataMaskingFunctionText DataMaskingFunction = "Text" )
func (*DataMaskingFunction) UnmarshalJSON ¶
func (s *DataMaskingFunction) UnmarshalJSON(bytes []byte) error
type DataMaskingRule ¶
type DataMaskingRuleOperationPredicate ¶
type DataMaskingRuleOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (DataMaskingRuleOperationPredicate) Matches ¶
func (p DataMaskingRuleOperationPredicate) Matches(input DataMaskingRule) bool
type DataMaskingRuleProperties ¶
type DataMaskingRuleProperties struct { AliasName *string `json:"aliasName,omitempty"` ColumnName string `json:"columnName"` Id *string `json:"id,omitempty"` MaskingFunction DataMaskingFunction `json:"maskingFunction"` NumberFrom *string `json:"numberFrom,omitempty"` NumberTo *string `json:"numberTo,omitempty"` PrefixSize *string `json:"prefixSize,omitempty"` ReplacementString *string `json:"replacementString,omitempty"` RuleState *DataMaskingRuleState `json:"ruleState,omitempty"` SchemaName string `json:"schemaName"` SuffixSize *string `json:"suffixSize,omitempty"` TableName string `json:"tableName"` }
type DataMaskingRuleState ¶
type DataMaskingRuleState string
const ( DataMaskingRuleStateDisabled DataMaskingRuleState = "Disabled" DataMaskingRuleStateEnabled DataMaskingRuleState = "Enabled" )
func (*DataMaskingRuleState) UnmarshalJSON ¶
func (s *DataMaskingRuleState) UnmarshalJSON(bytes []byte) error
type DataMaskingRulesClient ¶
type DataMaskingRulesClient struct {
Client *resourcemanager.Client
}
func NewDataMaskingRulesClientWithBaseURI ¶
func NewDataMaskingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*DataMaskingRulesClient, error)
func (DataMaskingRulesClient) CreateOrUpdate ¶
func (c DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input DataMaskingRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DataMaskingRulesClient) ListByDatabase ¶
func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (DataMaskingRulesClient) ListByDatabaseComplete ¶
func (c DataMaskingRulesClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (DataMaskingRulesClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c DataMaskingRulesClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, predicate DataMaskingRuleOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct { LatestHttpResponse *http.Response Items []DataMaskingRule }
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DataMaskingRule }
type RuleId ¶
type RuleId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string RuleName string }
RuleId is a struct representing the Resource ID for a Rule
func NewRuleID ¶
func NewRuleID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, ruleName string) RuleId
NewRuleID returns a new RuleId struct
func ParseRuleID ¶
ParseRuleID parses 'input' into a RuleId
func ParseRuleIDInsensitively ¶
ParseRuleIDInsensitively parses 'input' case-insensitively into a RuleId note: this method should only be used for API response data and not user input
func (*RuleId) FromParseResult ¶ added in v0.20231127.1171502
func (id *RuleId) FromParseResult(input resourceids.ParseResult) error
func (RuleId) Segments ¶
func (id RuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Rule ID
Click to show internal directories.
Click to hide internal directories.