Class AccessProfileRequest.Builder
- All Implemented Interfaces:
AccessProfileRequest._FinalStage,AccessProfileRequest.PrincipalIdStage
- Enclosing class:
AccessProfileRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) ThePOST /v1/auth/token/assumeentitlement grant: which values, perscope:<namespace>, a holder of THIS profile may assume via/assume.ThePOST /v1/auth/token/assumeentitlement grant: which values, perscope:<namespace>, a holder of THIS profile may assume via/assume.build()from(AccessProfileRequest other) identityOverrides(Map<String, Object> identityOverrides) Optional per-context identity overrides, keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered (for examplescope:group).identityOverrides(Optional<Map<String, Object>> identityOverrides) Optional per-context identity overrides, keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered (for examplescope:group).principalId(@NotNull String principalId) Principal this profile applies to.Deprecated single-role form ofroleIds, accepted for backward compatibility and equivalent toroleIds: ["<value>"].Deprecated single-role form ofroleIds, accepted for backward compatibility and equivalent toroleIds: ["<value>"].References to one or more roles within the same context that together supply this principal's scopes.References to one or more roles within the same context that together supply this principal's scopes.scopes(List<ScopeClause> scopes) Inline scope clauses to grant the principal.scopes(Optional<List<ScopeClause>> scopes) Inline scope clauses to grant the principal.status(AccessProfileRequestStatus status) Profile lifecycle status.status(Optional<AccessProfileRequestStatus> status) Profile lifecycle status.
-
Method Details
-
from
- Specified by:
fromin interfaceAccessProfileRequest.PrincipalIdStage
-
principalId
Principal this profile applies to. Must start with
usr_(an authenticated user — the suffix is the user id) orkey_(a scoped API key acting as its own principal — the suffix is the key id). The suffix may contain only letters, digits, underscores, and hyphens. Required when creating (POST); ignored when updating (PUT), where it is taken from the path.Principal this profile applies to. Must start with
usr_(an authenticated user — the suffix is the user id) orkey_(a scoped API key acting as its own principal — the suffix is the key id). The suffix may contain only letters, digits, underscores, and hyphens. Required when creating (POST); ignored when updating (PUT), where it is taken from the path.- Specified by:
principalIdin interfaceAccessProfileRequest.PrincipalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
Profile lifecycle status.
activepermits token minting;suspendeddenies it (minting returns a uniform 403). Defaults toactivewhen omitted.- Specified by:
statusin interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
Profile lifecycle status.
activepermits token minting;suspendeddenies it (minting returns a uniform 403). Defaults toactivewhen omitted.- Specified by:
statusin interfaceAccessProfileRequest._FinalStage
-
assumable
The
POST /v1/auth/token/assumeentitlement grant: which values, perscope:<namespace>, a holder of THIS profile may assume via/assume. Only meaningful (and only accepted) alongside inlinescopes— aroleId-referencing profile has no clause list of its own to pair a grant with; author the grant on the referenced Role instead, where every profile referencing that role picks it up uniformly. The principal (userId) can never be named — it is never assumable. Each value list accepts a plain literal,${{ under.self.userId }}, or${{ member.scope.<namespace>[:level] }}— never${{ under.self.scope.<namespace> }}(it resolves against the caller's CURRENT value for a namespace/assumecan itself change, so what it admitted would depend on what was last assumed; that form stays valid indata_scope, where it's re-derived per write), a bare${{ self.<dim> }}, or${{ any }}, all rejected at authoring time. Omitting the field grants no assumption of anything, the safe default.- Specified by:
assumablein interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assumable
The
POST /v1/auth/token/assumeentitlement grant: which values, perscope:<namespace>, a holder of THIS profile may assume via/assume. Only meaningful (and only accepted) alongside inlinescopes— aroleId-referencing profile has no clause list of its own to pair a grant with; author the grant on the referenced Role instead, where every profile referencing that role picks it up uniformly. The principal (userId) can never be named — it is never assumable. Each value list accepts a plain literal,${{ under.self.userId }}, or${{ member.scope.<namespace>[:level] }}— never${{ under.self.scope.<namespace> }}(it resolves against the caller's CURRENT value for a namespace/assumecan itself change, so what it admitted would depend on what was last assumed; that form stays valid indata_scope, where it's re-derived per write), a bare${{ self.<dim> }}, or${{ any }}, all rejected at authoring time. Omitting the field grants no assumption of anything, the safe default.- Specified by:
assumablein interfaceAccessProfileRequest._FinalStage
-
identityOverrides
Optional per-context identity overrides, keyed by ownership namespace in
scope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered (for examplescope:group). At most two namespaces may be overridden; any other key is rejected. Each value is 1-128 characters: a letter or digit first, then letters, digits,_or-. Omitting the field leaves any existing overrides unchanged; sending an empty map clears them, and sending a populated map replaces them wholesale — a namespace absent from the map you send is removed. If you use a scoped credential, two bounds apply and either returns 403: you may only set a value your own identity holds, and you may only change or clear a value the profile already holds if that value is yours as well — so clearing or repointing another principal's established identity is refused. A root API key (sk_) is exempt from both.- Specified by:
identityOverridesin interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identityOverrides
public AccessProfileRequest._FinalStage identityOverrides(Optional<Map<String, Object>> identityOverrides) Optional per-context identity overrides, keyed by ownership namespace in
scope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered (for examplescope:group). At most two namespaces may be overridden; any other key is rejected. Each value is 1-128 characters: a letter or digit first, then letters, digits,_or-. Omitting the field leaves any existing overrides unchanged; sending an empty map clears them, and sending a populated map replaces them wholesale — a namespace absent from the map you send is removed. If you use a scoped credential, two bounds apply and either returns 403: you may only set a value your own identity holds, and you may only change or clear a value the profile already holds if that value is yours as well — so clearing or repointing another principal's established identity is refused. A root API key (sk_) is exempt from both.- Specified by:
identityOverridesin interfaceAccessProfileRequest._FinalStage
-
roleId
Deprecated single-role form of
roleIds, accepted for backward compatibility and equivalent toroleIds: ["<value>"]. Setting both is a 400 — sendroleIdsalone. Reads always returnroleIds;roleIdis also returned, but only when exactly one role composes.- Specified by:
roleIdin interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
roleId
Deprecated single-role form of
roleIds, accepted for backward compatibility and equivalent toroleIds: ["<value>"]. Setting both is a 400 — sendroleIdsalone. Reads always returnroleIds;roleIdis also returned, but only when exactly one role composes.- Specified by:
roleIdin interfaceAccessProfileRequest._FinalStage
-
roleIds
References to one or more roles within the same context that together supply this principal's scopes. The effective grant is each named role's own clauses, concatenated in the order you list them — roles are composed additively, never merged, so each clause keeps meaning exactly what its own author wrote. Provide exactly one of
scopesorroleIds— setting both, or neither, returns a 400. Every id must name a role that exists in this same app context, and no id may repeat. Changes to a role's scopes take effect for all referencing profiles.Composition also decides what
POST /v1/auth/token/assumewill let this principal become: that check is made against ONE role's ownassumablegrant at a time, never against the combination, so listing two roles never creates an entitlement neither role granted on its own.- Specified by:
roleIdsin interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
roleIds
References to one or more roles within the same context that together supply this principal's scopes. The effective grant is each named role's own clauses, concatenated in the order you list them — roles are composed additively, never merged, so each clause keeps meaning exactly what its own author wrote. Provide exactly one of
scopesorroleIds— setting both, or neither, returns a 400. Every id must name a role that exists in this same app context, and no id may repeat. Changes to a role's scopes take effect for all referencing profiles.Composition also decides what
POST /v1/auth/token/assumewill let this principal become: that check is made against ONE role's ownassumablegrant at a time, never against the combination, so listing two roles never creates an entitlement neither role granted on its own.- Specified by:
roleIdsin interfaceAccessProfileRequest._FinalStage
-
scopes
Inline scope clauses to grant the principal. Provide exactly one of
scopesorroleIds— setting both, or neither, returns a 400.- Specified by:
scopesin interfaceAccessProfileRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
scopes
Inline scope clauses to grant the principal. Provide exactly one of
scopesorroleIds— setting both, or neither, returns a 400.- Specified by:
scopesin interfaceAccessProfileRequest._FinalStage
-
build
- Specified by:
buildin interfaceAccessProfileRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceAccessProfileRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceAccessProfileRequest._FinalStage
-