Class RuleCreateParams.Body
-
- All Implemented Interfaces:
public final class RuleCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRuleCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final StringissuerId()Tagged ID of the federation issuer. final BetaFederationRuleMatchmatch()Conditions the verified JWT must satisfy for this rule to apply. final Stringname()Slug identifier (lowercase, digits, hyphens). final StringoauthScope()Space-separated OAuth scopes. final BetaServiceAccountTargettarget()Identity that tokens minted via this rule act as. final Optional<Boolean>appliesToAllWorkspaces()When true, enable this rule for every workspace in the org (including workspaces created later). final Optional<RuleCreateParams.Attributes>attributes()CEL expressions {name: expr}extracting named values from claims.final Optional<String>description()Optional free-text description. final Optional<Long>tokenLifetimeSeconds()Lifetime in seconds for access tokens minted via this rule (60-86400). final Optional<String>workspaceId()Tagged ID of the workspace to enable this rule for. final JsonField<String>_issuerId()Returns the raw JSON value of issuerId. final JsonField<BetaFederationRuleMatch>_match()Returns the raw JSON value of match. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_oauthScope()Returns the raw JSON value of oauthScope. final JsonField<BetaServiceAccountTarget>_target()Returns the raw JSON value of target. final JsonField<Boolean>_appliesToAllWorkspaces()Returns the raw JSON value of appliesToAllWorkspaces. final JsonField<RuleCreateParams.Attributes>_attributes()Returns the raw JSON value of attributes. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<Long>_tokenLifetimeSeconds()Returns the raw JSON value of tokenLifetimeSeconds. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final Map<String, JsonValue>_additionalProperties()final RuleCreateParams.Body.BuildertoBuilder()final RuleCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RuleCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
match
final BetaFederationRuleMatch match()
Conditions the verified JWT must satisfy for this rule to apply. At least one of
subject_prefix(other than a wildcard-only value like*),claims, orconditionis required;audiencealone is not sufficient.
-
name
final String name()
Slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
oauthScope
final String oauthScope()
Space-separated OAuth scopes. OAuth callers may only set
workspace:developerorworkspace:inference; other scopes (such asorg:admin) require a Console session.
-
target
final BetaServiceAccountTarget target()
Identity that tokens minted via this rule act as. Currently always a
service_accounttarget.
-
appliesToAllWorkspaces
final Optional<Boolean> appliesToAllWorkspaces()
When true, enable this rule for every workspace in the org (including workspaces created later).
-
attributes
final Optional<RuleCreateParams.Attributes> attributes()
CEL expressions
{name: expr}extracting named values from claims. Not yet supported; any non-empty value is rejected with 400.
-
description
final Optional<String> description()
Optional free-text description.
-
tokenLifetimeSeconds
final Optional<Long> tokenLifetimeSeconds()
Lifetime in seconds for access tokens minted via this rule (60-86400). Defaults to 3600 (1h). Minted tokens are capped at
max(60, min(this value, 2 × remaining assertion validity))seconds.
-
workspaceId
final Optional<String> workspaceId()
Tagged ID of the workspace to enable this rule for. Required unless
applies_to_all_workspacesis true. Additional workspaces can be added via the/federation_rules/{federation_rule_id}/workspacessub-resource.
-
_issuerId
final JsonField<String> _issuerId()
Returns the raw JSON value of issuerId.
Unlike issuerId, this method doesn't throw if the JSON field has an unexpected type.
-
_match
final JsonField<BetaFederationRuleMatch> _match()
Returns the raw JSON value of match.
Unlike match, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_oauthScope
final JsonField<String> _oauthScope()
Returns the raw JSON value of oauthScope.
Unlike oauthScope, this method doesn't throw if the JSON field has an unexpected type.
-
_target
final JsonField<BetaServiceAccountTarget> _target()
Returns the raw JSON value of target.
Unlike target, this method doesn't throw if the JSON field has an unexpected type.
-
_appliesToAllWorkspaces
final JsonField<Boolean> _appliesToAllWorkspaces()
Returns the raw JSON value of appliesToAllWorkspaces.
Unlike appliesToAllWorkspaces, this method doesn't throw if the JSON field has an unexpected type.
-
_attributes
final JsonField<RuleCreateParams.Attributes> _attributes()
Returns the raw JSON value of attributes.
Unlike attributes, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_tokenLifetimeSeconds
final JsonField<Long> _tokenLifetimeSeconds()
Returns the raw JSON value of tokenLifetimeSeconds.
Unlike tokenLifetimeSeconds, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaceId
final JsonField<String> _workspaceId()
Returns the raw JSON value of workspaceId.
Unlike workspaceId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RuleCreateParams.Body.Builder toBuilder()
-
validate
final RuleCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RuleCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.issuerId() .match() .name() .oauthScope() .target()
-
-
-
-