# 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::Authorization::Mgmt::V2018_07_01_preview
  module Models
    #
    # Deny assignment principal.
    #
    class Principal

      include MsRestAzure

      # @return [String] Object ID of the Azure AD principal (user, group, or
      # service principal) to which the deny assignment applies. An empty guid
      # '00000000-0000-0000-0000-000000000000' as principal id and principal
      # type as 'Everyone' represents all users, groups and service principals.
      attr_accessor :id

      # @return [String] Type of object represented by principal id (user,
      # group, or service principal). An empty guid
      # '00000000-0000-0000-0000-000000000000' as principal id and principal
      # type as 'Everyone' represents all users, groups and service principals.
      attr_accessor :type


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