type: object
properties:
  scope:
    $ref: './RoleMiningSessionScope.yaml'
    description: The scope of identities for this role mining session
    example: {
      identityIds: [],
      criteria: "source.name:DataScienceDataset",
      attributeFilterCriteria: {
        displayName: {untranslated: "Location: Miami"},
        ariaLabel: {untranslated: "Location: Miami"},
        data: {
          displayName: {translateKey: "IDN.IDENTITY_ATTRIBUTES.LOCATION"},
          name: "location",
          operator: "EQUALS",
          values: ["Miami"]
        }
      }
    }
  pruneThreshold:
    type: integer
    description: The prune threshold to be used or null to calculate prescribedPruneThreshold
    example: 5
    format: int32
  prescribedPruneThreshold:
    type: integer
    description: The calculated prescribedPruneThreshold
    example: 10
    format: int32
  minNumIdentitiesInPotentialRole:
    type: integer
    description: Minimum number of identities in a potential role
    example: 20
    format: int32
  potentialRoleCount:
    type: integer
    description: Number of potential roles
    example: 0
    format: int32
  potentialRolesReadyCount:
    type: integer
    description: Number of potential roles ready
    example: 0
    format: int32
  status:
    $ref: './RoleMiningSessionStatus.yaml'
    description: The status of the role mining session
    example: CREATED
  type:
    $ref: './iai/RoleMiningRoleType.yaml'
    description: Role mining session type
    example: SPECIALIZED
  emailRecipientId:
    type: string
    description: The id of the user who will receive an email about the role mining session
    example: "2c918090761a5aac0176215c46a62d58"
  createdBy:
    $ref: './iai/EntityCreatedByDTO.yaml'
    description: The session created by details
  identityCount:
    type: integer
    description: Number of identities in the population which meet the search criteria or identity list provided
    example: 0
    format: int32
  saved:
    type: boolean
    description: The session's saved status
    example: true
  name:
    type: string
    description: The session's saved name
    example: "Saved RM Session - 07/10"