# 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
    #
    # Grant sql control to managed identity
    #
    class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity

      include MsRestAzure

      # @return [Enum] Desired state. Possible values include: 'Enabled',
      # 'Disabled'
      attr_accessor :desired_state

      # @return [Enum] Actual state. Possible values include: 'Enabling',
      # 'Enabled', 'Disabling', 'Disabled', 'Unknown'
      attr_accessor :actual_state


      #
      # Mapper for
      # ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity
      # class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedIdentitySqlControlSettingsModel_properties_grantSqlControlToManagedIdentity',
          type: {
            name: 'Composite',
            class_name: 'ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity',
            model_properties: {
              desired_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'desiredState',
                type: {
                  name: 'String'
                }
              },
              actual_state: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'actualState',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
