Class: Anthropic::Models::Beta::Organization::Federation::RuleUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Federation::RuleUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/organization/federation/rule_update_params.rb,
sig/anthropic/models/beta/organization/federation/rule_update_params.rbs
Overview
Instance Attribute Summary collapse
-
#applies_to_all_workspaces ⇒ Boolean?
When true, enables this rule for every workspace in the org (including workspaces created later).
-
#attributes ⇒ Hash{Symbol=>String}?
Replaces the CEL expressions
{name: expr}extracting named values from claims. -
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#description ⇒ String?
Replaces the description.
-
#federation_rule_id ⇒ String
ID of the federation rule to update.
-
#match ⇒ Anthropic::Models::Beta::Organization::Federation::BetaFederationRuleMatch?
Replaces the entire match object.
-
#name ⇒ String?
Replaces the slug identifier (lowercase, digits, hyphens).
-
#oauth_scope ⇒ String?
Replaces the space-separated OAuth scopes granted on minted tokens.
-
#target ⇒ Anthropic::Models::Beta::Organization::Federation::BetaServiceAccountTarget?
Replaces the entire target object.
-
#token_lifetime_seconds ⇒ Integer?
Replaces the lifetime in seconds for access tokens minted via this rule (60-86400).
-
#workspace_id ⇒ String?
Replaces the existing single workspace enablement (the previous one is removed).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(federation_rule_id:, applies_to_all_workspaces: nil, attributes: nil, description: nil, match: nil, name: nil, oauth_scope: nil, target: nil, token_lifetime_seconds: nil, workspace_id: nil, betas: nil, request_options: {}) ⇒ RuleUpdateParams
constructor
Some parameter documentations has been truncated, see RuleUpdateParams for more details.
- #to_hash ⇒ { federation_rule_id: String, applies_to_all_workspaces: bool?, attributes: ::Hash[Symbol, String]?, description: String?, match: Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch?, name: String?, oauth_scope: String?, target: Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget?, token_lifetime_seconds: Integer?, workspace_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(federation_rule_id:, applies_to_all_workspaces: nil, attributes: nil, description: nil, match: nil, name: nil, oauth_scope: nil, target: nil, token_lifetime_seconds: nil, workspace_id: nil, betas: nil, request_options: {}) ⇒ RuleUpdateParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::Federation::RuleUpdateParams for more details.
|
|
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 100
|
Instance Attribute Details
#applies_to_all_workspaces ⇒ Boolean?
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.
26 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 26 optional :applies_to_all_workspaces, Anthropic::Internal::Type::Boolean, nil?: true |
#attributes ⇒ Hash{Symbol=>String}?
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.
34 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 34 optional :attributes, Anthropic::Internal::Type::HashOf[String], nil?: true |
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
98 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 98 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#description ⇒ String?
Replaces the description. Omit to leave unchanged; send null to clear (the
field is stored as an empty string).
41 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 41 optional :description, String, nil?: true |
#federation_rule_id ⇒ String
ID of the federation rule to update.
17 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 17 required :federation_rule_id, String |
#match ⇒ Anthropic::Models::Beta::Organization::Federation::BetaFederationRuleMatch?
Replaces the entire match object. All populated matcher fields must pass.
47 48 49 50 51 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 47 optional :match, -> { Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch }, nil?: true |
#name ⇒ String?
Replaces the slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
58 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 58 optional :name, String, nil?: true |
#oauth_scope ⇒ String?
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.
66 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 66 optional :oauth_scope, String, nil?: true |
#target ⇒ Anthropic::Models::Beta::Organization::Federation::BetaServiceAccountTarget?
Replaces the entire target object. Currently always a service_account target.
72 73 74 75 76 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 72 optional :target, -> { Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget }, nil?: true |
#token_lifetime_seconds ⇒ Integer?
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.
84 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 84 optional :token_lifetime_seconds, Integer, nil?: true |
#workspace_id ⇒ String?
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.
92 |
# File 'lib/anthropic/models/beta/organization/federation/rule_update_params.rb', line 92 optional :workspace_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ { federation_rule_id: String, applies_to_all_workspaces: bool?, attributes: ::Hash[Symbol, String]?, description: String?, match: Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch?, name: String?, oauth_scope: String?, target: Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget?, token_lifetime_seconds: Integer?, workspace_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'sig/anthropic/models/beta/organization/federation/rule_update_params.rbs', line 67
def to_hash: -> {
federation_rule_id: String,
applies_to_all_workspaces: bool?,
attributes: ::Hash[Symbol, String]?,
description: String?,
match: Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch?,
name: String?,
oauth_scope: String?,
target: Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget?,
token_lifetime_seconds: Integer?,
workspace_id: String?,
betas: ::Array[Anthropic::Models::anthropic_beta],
request_options: Anthropic::RequestOptions
}
|