Class: Anthropic::Models::Beta::Organization::TelemetryDestinations::BetaTelemetryDestinationWorkspace

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb,
sig/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::TelemetryDestinations::Workspaces#list

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(created_at:, telemetry_destination_id:, workspace_id:, type: :telemetry_destination_workspace) ⇒ BetaTelemetryDestinationWorkspace

A workspace on a telemetry destination's workspace list.

Under include, the destination covers the workspace. Under exclude, the destination covers every workspace except this one. The entry doesn't have an id. Its telemetry_destination_id and workspace_id together identify it.

Parameters:

  • created_at (Time) —

    Time the workspace was added to the list.

  • telemetry_destination_id (String) —

    ID of the telemetry destination (tdst_...).

  • workspace_id (String) —

    ID of the workspace (wrkspc_...).

  • type (Symbol, :telemetry_destination_workspace) (defaults to: :telemetry_destination_workspace)
  • created_at: (Time)
  • telemetry_destination_id: (String)
  • workspace_id: (String)
  • type: (:telemetry_destination_workspace) (defaults to: :telemetry_destination_workspace)


# File 'lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb', line 33

Instance Attribute Details

#created_at ⇒ Time

Time the workspace was added to the list.

Parameters:

  • value (Time)

Returns:

  • (Time)


14
# File 'lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb', line 14

required :created_at, Time

#telemetry_destination_id ⇒ String

ID of the telemetry destination (tdst_...).

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb', line 20

required :telemetry_destination_id, String

#type ⇒ Symbol, :telemetry_destination_workspace

Parameters:

  • value (:telemetry_destination_workspace)

Returns:

  • (Symbol, :telemetry_destination_workspace)


25
# File 'lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb', line 25

required :type, const: :telemetry_destination_workspace

#workspace_id ⇒ String

ID of the workspace (wrkspc_...).

Parameters:

  • value (String)

Returns:

  • (String)


31
# File 'lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb', line 31

required :workspace_id, String

Instance Method Details

#to_hash ⇒ { created_at: Time, telemetry_destination_id: String, type: :telemetry_destination_workspace, workspace_id: String }

Returns:

  • ({ created_at: Time, telemetry_destination_id: String, type: :telemetry_destination_workspace, workspace_id: String })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rbs', line 30

def to_hash: -> {
  created_at: Time,
  telemetry_destination_id: String,
  type: :telemetry_destination_workspace,
  workspace_id: String
}