Class: Anthropic::Models::Beta::Organization::Federation::RuleUpdateParams

Inherits:
Internal::Type::BaseModel show all
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

See Also:

  • Anthropic::Resources::Beta::Organization::Federation::Rules#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:

  • federation_rule_id (String) —

    ID of the federation rule to update.

  • applies_to_all_workspaces (Boolean, nil) (defaults to: nil) —

    When true, enables this rule for every workspace in the org (including workspace

  • attributes (Hash{Symbol=>String}, nil) (defaults to: nil) —

    Replaces the CEL expressions {name: expr} extracting named values from claims.

  • description (String, nil) (defaults to: nil) —

    Replaces the description. Omit to leave unchanged; send null to clear (the fie

  • match (Anthropic::Models::Beta::Organization::Federation::BetaFederationRuleMatch, nil) (defaults to: nil) —

    Replaces the entire match object. All populated matcher fields must pass.

  • name (String, nil) (defaults to: nil) —

    Replaces the slug identifier (lowercase, digits, hyphens). Unique within the org

  • oauth_scope (String, nil) (defaults to: nil) —

    Replaces the space-separated OAuth scopes granted on minted tokens. OAuth caller

  • target (Anthropic::Models::Beta::Organization::Federation::BetaServiceAccountTarget, nil) (defaults to: nil) —

    Replaces the entire target object. Currently always a service_account target.

  • token_lifetime_seconds (Integer, nil) (defaults to: nil) —

    Replaces the lifetime in seconds for access tokens minted via this rule (60-8640

  • workspace_id (String, nil) (defaults to: nil) —

    Replaces the existing single workspace enablement (the previous one is removed).

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    Optional header to specify the beta version(s) you want to use.

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • federation_rule_id: (String)
  • applies_to_all_workspaces: (Boolean, nil) (defaults to: nil)
  • attributes: (::Hash[Symbol, String], nil) (defaults to: nil)
  • description: (String, nil) (defaults to: nil)
  • match: (Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch, nil) (defaults to: nil)
  • name: (String, nil) (defaults to: nil)
  • oauth_scope: (String, nil) (defaults to: nil)
  • target: (Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget, nil) (defaults to: nil)
  • token_lifetime_seconds: (Integer, nil) (defaults to: nil)
  • workspace_id: (String, nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


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

Parameters:

Returns:



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.

Parameters:

  • value (::Hash[Symbol, String], nil)

Returns:

  • (Hash{Symbol=>String}, nil)


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.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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.

Parameters:

  • value (String)

Returns:

  • (String)


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.

Parameters:

  • value (Anthropic::Beta::Organization::Federation::BetaFederationRuleMatch, nil)

Returns:



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.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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.

Parameters:

  • value (Anthropic::Beta::Organization::Federation::BetaServiceAccountTarget, nil)

Returns:



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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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 }

Returns:

  • ({ 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
}