Class: Anthropic::Models::Organization::Federation::FederationRuleWorkspace

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/federation/federation_rule_workspace.rb,
sig/anthropic/models/organization/federation/federation_rule_workspace.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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



30
# File 'sig/anthropic/models/organization/federation/federation_rule_workspace.rbs', line 30

def initialize: (

Instance Attribute Details

#created_at ⇒ Time

When this workspace was enabled for the rule.

Parameters:

  • value (Time)

Returns:

  • (Time)


12
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 12

required :created_at, Time

#created_by_actor_id ⇒ String?

Tagged ID (user_... or svac_...) of the actor that enabled this workspace for the rule, if known.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


19
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 19

required :created_by_actor_id, String, nil?: true

#federation_rule_id ⇒ String

Tagged ID of the federation rule.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 25

required :federation_rule_id, String

#type ⇒ Symbol, :federation_rule_workspace

Parameters:

  • value (:federation_rule_workspace)

Returns:

  • (Symbol, :federation_rule_workspace)


30
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 30

required :type, const: :federation_rule_workspace

#workspace_id ⇒ String

Tagged ID of the workspace this rule is enabled for.

Parameters:

  • value (String)

Returns:

  • (String)


36
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 36

required :workspace_id, String

#workspace_name ⇒ String?

Workspace display name. Populated when listing; null in the enable response.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


42
# File 'lib/anthropic/models/organization/federation/federation_rule_workspace.rb', line 42

required :workspace_name, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


39
# File 'sig/anthropic/models/organization/federation/federation_rule_workspace.rbs', line 39

def to_hash: -> {