# 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::SQL::Mgmt::V2017_03_01_preview
  module Models
    #
    # An Azure SQL managed instance administrator.
    #
    class ManagedInstanceAdministrator < ProxyResource

      include MsRestAzure

      # @return [String] Type of the managed instance administrator. Default
      # value: 'ActiveDirectory' .
      attr_accessor :administrator_type

      # @return [String] Login name of the managed instance administrator.
      attr_accessor :login

      # @return SID (object ID) of the managed instance administrator.
      attr_accessor :sid

      # @return Tenant ID of the managed instance administrator.
      attr_accessor :tenant_id


      #
      # Mapper for ManagedInstanceAdministrator class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedInstanceAdministrator',
          type: {
            name: 'Composite',
            class_name: 'ManagedInstanceAdministrator',
            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'
                }
              },
              administrator_type: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: 'properties.administratorType',
                default_value: 'ActiveDirectory',
                type: {
                  name: 'String'
                }
              },
              login: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.login',
                type: {
                  name: 'String'
                }
              },
              sid: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.sid',
                type: {
                  name: 'String'
                }
              },
              tenant_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.tenantId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
