Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the DataMaskingPolicyInner class.
 /// </summary>
 /// <param name="dataMaskingState">The state of the data masking
 /// policy. Possible values include: 'Disabled', 'Enabled'</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="exemptPrincipals">The list of the exempt principals.
 /// Specifies the semicolon-separated list of database users for which
 /// the data masking policy does not apply. The specified users receive
 /// data results without masking for all of the database
 /// queries.</param>
 /// <param name="applicationPrincipals">The list of the application
 /// principals. This is a legacy parameter and is no longer
 /// used.</param>
 /// <param name="maskingLevel">The masking level. This is a legacy
 /// parameter and is no longer used.</param>
 /// <param name="location">The location of the data masking
 /// policy.</param>
 /// <param name="kind">The kind of data masking policy. Metadata, used
 /// for Azure portal.</param>
 public DataMaskingPolicyInner(DataMaskingState dataMaskingState, string id = default(string), string name = default(string), string type = default(string), string exemptPrincipals = default(string), string applicationPrincipals = default(string), string maskingLevel = default(string), string location = default(string), string kind = default(string))
     : base(id, name, type)
 {
     DataMaskingState      = dataMaskingState;
     ExemptPrincipals      = exemptPrincipals;
     ApplicationPrincipals = applicationPrincipals;
     MaskingLevel          = maskingLevel;
     Location = location;
     Kind     = kind;
     CustomInit();
 }
Exemplo n.º 2
0
        internal static string ToSerializedValue(this DataMaskingState value)
        {
            switch (value)
            {
            case DataMaskingState.Disabled:
                return("Disabled");

            case DataMaskingState.Enabled:
                return("Enabled");
            }
            return(null);
        }
Exemplo n.º 3
0
 public static string ToSerialString(this DataMaskingState value) => value switch
 {