Package ai.vectros.types
Class AccessProfileResponse
java.lang.Object
ai.vectros.types.AccessProfileResponse
-
Method Details
-
getCreated
- Returns:
- Whether this call created a new access profile. True when a new profile was created; false when a profile with the same
principalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/app-contexts/{contextId}/profiles); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing profile was returned.
-
getId
- Returns:
- Opaque identifier for this profile. Also serves as the pagination cursor.
-
getContextId
- Returns:
- The app context this profile belongs to.
-
getPrincipalId
- Returns:
- Principal this profile applies to —
usr_<userId>for a user, orkey_<keyId>for a scoped API key acting as its own principal.
-
getScopes
- Returns:
- Inline scope clauses granted to the principal. Mutually exclusive with
roleId— exactly one of the two is present.
-
getRoleId
- Returns:
- Reference to a role that supplies this principal's scopes. Mutually exclusive with
scopes— exactly one of the two is present.
-
getIdentityOverrides
- Returns:
- Per-context identity overrides, keyed by ownership namespace in
scope:<namespace>form (for examplescope:org,scope:client,scope:group). Read back exactly as authored.
-
getStatus
- Returns:
- Profile lifecycle status:
activeorsuspended.
-
getCreatedAt
- Returns:
- When the profile was created (ISO-8601 UTC).
-
getLastModified
- Returns:
- When the profile was last modified (ISO-8601 UTC).
-
getEmail
- Returns:
- The principal's email, when resolvable. Set only for a
usr_principal with a matching user record in your tenant; null for akey_principal (a scoped API key has no email), ausr_principal that could not be resolved (for example, the user was deleted), or when your token lacks theusers:rscope in addition to this endpoint's own scope (email is user data, gated the same as GET /v1/users).
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-