Class: Anthropic::Models::Organization::Federation::FederationRule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::Federation::FederationRule
- Defined in:
- lib/anthropic/models/organization/federation/federation_rule.rb,
sig/anthropic/models/organization/federation/federation_rule.rbs
Overview
Instance Attribute Summary collapse
-
#applies_to_all_workspaces ⇒ Boolean
When true, this rule is enabled for every workspace in the org (including ones created after the rule).
-
#archived_at ⇒ Time?
If set, this rule is archived and rejects token exchange.
-
#archived_by_actor_id ⇒ String?
Tagged ID (
user_/svac_) of the actor that archived this rule. -
#created_at ⇒ Time
When this rule was created.
-
#created_by_actor_id ⇒ String?
Tagged ID (
user_/svac_) of the actor that created this rule. -
#description ⇒ String?
Optional free-text description.
-
#id ⇒ String
Tagged ID of the federation rule.
-
#issuer_id ⇒ String
Tagged ID of the issuer whose tokens this rule accepts.
-
#issuer_name ⇒ String?
Issuer's display name at read time.
-
#match ⇒ Anthropic::Models::Organization::Federation::FederationRuleMatch
Conditions the verified JWT must satisfy for this rule to apply.
-
#name ⇒ String
Admin-chosen slug identifier.
-
#oauth_scope ⇒ String
Space-separated OAuth scopes granted on the minted token.
-
#target ⇒ Anthropic::Models::Organization::Federation::ServiceAccountTarget
What this rule targets.
-
#token_lifetime_seconds ⇒ Integer
Lifetime in seconds of access tokens minted via this rule.
- #type ⇒ Symbol, :federation_rule
-
#updated_at ⇒ Time
When this rule was last updated.
-
#updated_by_actor_id ⇒ String?
Tagged ID (
user_/svac_) of the actor that last updated this rule. -
#workspace_ids ⇒ Array<String>
Tagged IDs of the workspaces this rule is enabled for.
Instance Method Summary collapse
-
#initialize ⇒ FederationRule
constructor
A new instance of FederationRule.
- #to_hash ⇒ { id: String, applies_to_all_workspaces: bool, archived_at: Time?, archived_by_actor_id: String?, created_at: Time, created_by_actor_id: String?, description: String?, issuer_id: String, issuer_name: String?, match: Anthropic::Organization::Federation::FederationRuleMatch, name: String, oauth_scope: String, target: Anthropic::Organization::Federation::ServiceAccountTarget, token_lifetime_seconds: Integer, type: :federation_rule, updated_at: Time, updated_by_actor_id: String?, workspace_ids: ::Array[String] }
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 ⇒ FederationRule
Returns a new instance of FederationRule.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'sig/anthropic/models/organization/federation/federation_rule.rbs', line 66
def initialize: (
id: String,
applies_to_all_workspaces: bool,
archived_at: Time?,
archived_by_actor_id: String?,
created_at: Time,
created_by_actor_id: String?,
description: String?,
issuer_id: String,
issuer_name: String?,
match: Anthropic::Organization::Federation::FederationRuleMatch,
name: String,
oauth_scope: String,
target: Anthropic::Organization::Federation::ServiceAccountTarget,
token_lifetime_seconds: Integer,
updated_at: Time,
updated_by_actor_id: String?,
workspace_ids: ::Array[String],
?type: :federation_rule
) -> void
|
Instance Attribute Details
#applies_to_all_workspaces ⇒ Boolean
When true, this rule is enabled for every workspace in the org (including ones
created after the rule). workspace_ids is ignored at exchange time.
20 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 20 required :applies_to_all_workspaces, Anthropic::Internal::Type::Boolean |
#archived_at ⇒ Time?
If set, this rule is archived and rejects token exchange.
26 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 26 required :archived_at, Time, nil?: true |
#archived_by_actor_id ⇒ String?
Tagged ID (user_/svac_) of the actor that archived this rule.
32 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 32 required :archived_by_actor_id, String, nil?: true |
#created_at ⇒ Time
When this rule was created.
38 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 38 required :created_at, Time |
#created_by_actor_id ⇒ String?
Tagged ID (user_/svac_) of the actor that created this rule.
44 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 44 required :created_by_actor_id, String, nil?: true |
#description ⇒ String?
Optional free-text description.
50 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 50 required :description, String, nil?: true |
#id ⇒ String
Tagged ID of the federation rule.
13 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 13 required :id, String |
#issuer_id ⇒ String
Tagged ID of the issuer whose tokens this rule accepts.
56 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 56 required :issuer_id, String |
#issuer_name ⇒ String?
Issuer's display name at read time.
62 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 62 required :issuer_name, String, nil?: true |
#match ⇒ Anthropic::Models::Organization::Federation::FederationRuleMatch
Conditions the verified JWT must satisfy for this rule to apply. All populated matcher fields must pass.
69 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 69 required :match, -> { Anthropic::Organization::Federation::FederationRuleMatch } |
#name ⇒ String
Admin-chosen slug identifier.
75 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 75 required :name, String |
#oauth_scope ⇒ String
Space-separated OAuth scopes granted on the minted token.
81 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 81 required :oauth_scope, String |
#target ⇒ Anthropic::Models::Organization::Federation::ServiceAccountTarget
What this rule targets. Check type before reading the other fields. Tokens
minted via a rule whose target type is service_account act as that service
account.
89 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 89 required :target, -> { Anthropic::Organization::Federation::ServiceAccountTarget } |
#token_lifetime_seconds ⇒ Integer
Lifetime in seconds of access tokens minted via this rule. Minted tokens are
capped at max(60, min(this value, 2 × remaining assertion validity)) seconds.
96 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 96 required :token_lifetime_seconds, Integer |
#type ⇒ Symbol, :federation_rule
101 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 101 required :type, const: :federation_rule |
#updated_at ⇒ Time
When this rule was last updated.
107 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 107 required :updated_at, Time |
#updated_by_actor_id ⇒ String?
Tagged ID (user_/svac_) of the actor that last updated this rule.
113 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 113 required :updated_by_actor_id, String, nil?: true |
#workspace_ids ⇒ Array<String>
Tagged IDs of the workspaces this rule is enabled for. May be empty for older
rules that only carry the legacy workspace_id binding. Ignored at exchange
time when applies_to_all_workspaces is true (the list may still be non-empty).
121 |
# File 'lib/anthropic/models/organization/federation/federation_rule.rb', line 121 required :workspace_ids, Anthropic::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ { id: String, applies_to_all_workspaces: bool, archived_at: Time?, archived_by_actor_id: String?, created_at: Time, created_by_actor_id: String?, description: String?, issuer_id: String, issuer_name: String?, match: Anthropic::Organization::Federation::FederationRuleMatch, name: String, oauth_scope: String, target: Anthropic::Organization::Federation::ServiceAccountTarget, token_lifetime_seconds: Integer, type: :federation_rule, updated_at: Time, updated_by_actor_id: String?, workspace_ids: ::Array[String] }
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'sig/anthropic/models/organization/federation/federation_rule.rbs', line 87
def to_hash: -> {
id: String,
applies_to_all_workspaces: bool,
archived_at: Time?,
archived_by_actor_id: String?,
created_at: Time,
created_by_actor_id: String?,
description: String?,
issuer_id: String,
issuer_name: String?,
match: Anthropic::Organization::Federation::FederationRuleMatch,
name: String,
oauth_scope: String,
target: Anthropic::Organization::Federation::ServiceAccountTarget,
token_lifetime_seconds: Integer,
type: :federation_rule,
updated_at: Time,
updated_by_actor_id: String?,
workspace_ids: ::Array[String]
}
|