Class RuleCreateParams.Body

    • Constructor Detail

    • Method Detail

      • issuerId

         final String issuerId()

        Tagged ID of the federation issuer.

      • match

         final FederationRuleMatch 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, or condition is required; audience alone 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:developer or workspace:inference; other scopes (such as org:admin) require a Console session.

      • target

         final ServiceAccountTarget target()

        Identity that tokens minted via this rule act as. Currently always a service_account target.

      • 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_workspaces is true. Additional workspaces can be added via the /federation_rules/{federation_rule_id}/workspaces sub-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<FederationRuleMatch> _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.

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

      • _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 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()