# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # Model object.
    #
    #
    class DataMaskingPolicy < ProxyResource

      include MsRestAzure

      # @return [DataMaskingState] The state of the data masking policy.
      # Possible values include: 'Disabled', 'Enabled'
      attr_accessor :data_masking_state

      # @return [String] 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.
      attr_accessor :exempt_principals

      # @return [String] The list of the application principals. This is a
      # legacy parameter and is no longer used.
      attr_accessor :application_principals

      # @return [String] The masking level. This is a legacy parameter and is
      # no longer used.
      attr_accessor :masking_level

      # @return [String] The location of the data masking policy.
      attr_accessor :location

      # @return [String] The kind of data masking policy. Metadata, used for
      # Azure portal.
      attr_accessor :kind

      # @return [String] Fully qualified resource ID of the sql pool
      attr_accessor :managed_by


      #
      # Mapper for DataMaskingPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DataMaskingPolicy',
          type: {
            name: 'Composite',
            class_name: 'DataMaskingPolicy',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              data_masking_state: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.dataMaskingState',
                type: {
                  name: 'Enum',
                  module: 'DataMaskingState'
                }
              },
              exempt_principals: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.exemptPrincipals',
                type: {
                  name: 'String'
                }
              },
              application_principals: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.applicationPrincipals',
                type: {
                  name: 'String'
                }
              },
              masking_level: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.maskingLevel',
                type: {
                  name: 'String'
                }
              },
              location: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'location',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              managed_by: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'managedBy',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
