Class RuleUpdateParams.Body
-
- All Implemented Interfaces:
public final class RuleUpdateParams.BodyPartial update. Set fields are applied; omitted fields are unchanged.
issuer_idis immutable.matchandtargetare replaced as whole objects when set. Explicitnullclearsdescriptionandattributes; other fields can only be replaced, not cleared.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRuleUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>appliesToAllWorkspaces()When true, enables this rule for every workspace in the org (including workspaces created later). final Optional<RuleUpdateParams.Attributes>attributes()Replaces the CEL expressions {name: expr}extracting named values from claims.final Optional<String>description()Replaces the description. final Optional<BetaFederationRuleMatch>match()Replaces the entire match object. final Optional<String>name()Replaces the slug identifier (lowercase, digits, hyphens). final Optional<String>oauthScope()Replaces the space-separated OAuth scopes granted on minted tokens. final Optional<BetaServiceAccountTarget>target()Replaces the entire target object. final Optional<Long>tokenLifetimeSeconds()Replaces the lifetime in seconds for access tokens minted via this rule (60-86400). final Optional<String>workspaceId()Replaces the existing single workspace enablement (the previous one is removed). final JsonField<Boolean>_appliesToAllWorkspaces()Returns the raw JSON value of appliesToAllWorkspaces. final JsonField<RuleUpdateParams.Attributes>_attributes()Returns the raw JSON value of attributes. final JsonField<String>_description()Returns the raw JSON value of description. 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<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 RuleUpdateParams.Body.BuildertoBuilder()final RuleUpdateParams.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 RuleUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
appliesToAllWorkspaces
final Optional<Boolean> appliesToAllWorkspaces()
When true, enables this rule for every workspace in the org (including workspaces created later). Setting
falseis rejected with 400 if no workspace would remain enabled; a rule with only a legacyworkspace_idbinding continues to mint.
-
attributes
final Optional<RuleUpdateParams.Attributes> attributes()
Replaces the CEL expressions
{name: expr}extracting named values from claims. Send null to clear them. Not yet supported; any non-empty value is rejected with 400.
-
description
final Optional<String> description()
Replaces the description. Omit to leave unchanged; send
nullto clear (the field is stored as an empty string).
-
match
final Optional<BetaFederationRuleMatch> match()
Replaces the entire match object. All populated matcher fields must pass.
-
name
final Optional<String> name()
Replaces the slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
oauthScope
final Optional<String> oauthScope()
Replaces the space-separated OAuth scopes granted on minted tokens. OAuth callers may only set
workspace:developerorworkspace:inference; other scopes (such asorg:admin) require a Console session.
-
target
final Optional<BetaServiceAccountTarget> target()
Replaces the entire target object. Currently always a
service_accounttarget.
-
tokenLifetimeSeconds
final Optional<Long> tokenLifetimeSeconds()
Replaces the lifetime in seconds for access tokens minted via this rule (60-86400). Minted tokens are capped at
max(60, min(this value, 2 × remaining assertion validity))seconds.
-
workspaceId
final Optional<String> workspaceId()
Replaces the existing single workspace enablement (the previous one is removed). Rejected with 400 if the rule is enabled for more than one workspace; use the
/federation_rules/{federation_rule_id}/workspacessub-resource instead.
-
_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<RuleUpdateParams.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.
-
_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.
-
_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 RuleUpdateParams.Body.Builder toBuilder()
-
validate
final RuleUpdateParams.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 RuleUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-