Class: Anthropic::Models::Organization::Federation::FederationRuleMatch
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::Federation::FederationRuleMatch
- Defined in:
- lib/anthropic/models/organization/federation/federation_rule_match.rb,
sig/anthropic/models/organization/federation/federation_rule_match.rbs
Instance Attribute Summary collapse
-
#audience ⇒ String?
Exact match against the
audclaim (any element if array). -
#claims ⇒ Hash{Symbol=>String}?
Exact-match
{claim: value}pairs against top-level claims. -
#condition ⇒ String?
CEL expression over claims for logic the structural fields can't express.
-
#subject_prefix ⇒ String?
Match the verified JWT
subclaim.
Instance Method Summary collapse
- #initialize ⇒ void constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ void
24 |
# File 'sig/anthropic/models/organization/federation/federation_rule_match.rbs', line 24 def initialize: ( |
Instance Attribute Details
#audience ⇒ String?
Exact match against the aud claim (any element if array). When omitted, the
JWT's aud must still equal Anthropic's expected audience for the issuer;
setting this field overrides that default.
14 |
# File 'lib/anthropic/models/organization/federation/federation_rule_match.rb', line 14 optional :audience, String, nil?: true |
#claims ⇒ Hash{Symbol=>String}?
Exact-match {claim: value} pairs against top-level claims. Only string-valued
claims can be matched; use condition for non-string claims.
21 |
# File 'lib/anthropic/models/organization/federation/federation_rule_match.rb', line 21 optional :claims, Anthropic::Internal::Type::HashOf[String], nil?: true |
#condition ⇒ String?
CEL expression over claims for logic the structural fields can't express. Must
evaluate to a boolean and may reference only the claims variable; a
constant-true expression (such as true) is rejected with 400.
29 |
# File 'lib/anthropic/models/organization/federation/federation_rule_match.rb', line 29 optional :condition, String, nil?: true |
#subject_prefix ⇒ String?
Match the verified JWT sub claim. Exact match unless the value ends with *,
in which case it is a prefix match. Example:
repo:my-org/my-repo:ref:refs/heads/main.
37 |
# File 'lib/anthropic/models/organization/federation/federation_rule_match.rb', line 37 optional :subject_prefix, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
31 |
# File 'sig/anthropic/models/organization/federation/federation_rule_match.rbs', line 31 def to_hash: -> { |