# 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::DevTestLabs::Mgmt::V2018_09_15
  module Models
    #
    # Identity attributes of a lab user.
    #
    class UserIdentity

      include MsRestAzure

      # @return [String] Set to the principal name / UPN of the client JWT
      # making the request.
      attr_accessor :principal_name

      # @return [String] Set to the principal Id of the client JWT making the
      # request. Service principal will not have the principal Id.
      attr_accessor :principal_id

      # @return [String] Set to the tenant ID of the client JWT making the
      # request.
      attr_accessor :tenant_id

      # @return [String] Set to the object Id of the client JWT making the
      # request. Not all users have object Id. For CSP (reseller) scenarios for
      # example, object Id is not available.
      attr_accessor :object_id

      # @return [String] Set to the app Id of the client JWT making the
      # request.
      attr_accessor :app_id


      #
      # Mapper for UserIdentity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UserIdentity',
          type: {
            name: 'Composite',
            class_name: 'UserIdentity',
            model_properties: {
              principal_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'principalName',
                type: {
                  name: 'String'
                }
              },
              principal_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'principalId',
                type: {
                  name: 'String'
                }
              },
              tenant_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tenantId',
                type: {
                  name: 'String'
                }
              },
              object_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'objectId',
                type: {
                  name: 'String'
                }
              },
              app_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'appId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
