Class RuleUpdateParams.Body

  • All Implemented Interfaces:

    
    public final class RuleUpdateParams.Body
    
                        

    Partial update. Set fields are applied; omitted fields are unchanged.

    issuer_id is immutable. match and target are replaced as whole objects when set. Explicit null clears description and attributes; other fields can only be replaced, not cleared.

    • Constructor Detail

    • Method Detail

      • appliesToAllWorkspaces

         final Optional<Boolean> appliesToAllWorkspaces()

        When true, enables this rule for every workspace in the org (including workspaces created later). Setting false is rejected with 400 if no workspace would remain enabled; a rule with only a legacy workspace_id binding 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 null to clear (the field is stored as an empty string).

      • 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:developer or workspace:inference; other scopes (such as org:admin) require a Console session.

      • 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}/workspaces sub-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.

      • _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.

      • _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.

      • _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.

      • 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.