Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesIncludeParams

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.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(workspace_ids: nil, type: :include) ⇒ BetaTelemetryDestinationWorkspacesIncludeParams

Cover only the workspaces on the list.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesIncludeParams for more details.

Parameters:

  • workspace_ids (Array<String>) (defaults to: nil) —

    The IDs of the workspaces on the destination's list (wrkspc_...). At most 100

  • type (Symbol, :include) (defaults to: :include)
  • workspace_ids: (::Array[String]) (defaults to: nil)
  • type: (:include) (defaults to: :include)


# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rb', line 35

Instance Attribute Details

#type ⇒ Symbol, :include

Parameters:

  • value (:include)

Returns:

  • (Symbol, :include)


11
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rb', line 11

required :type, const: :include

#workspace_ids ⇒ Array<String>?

The IDs of the workspaces on the destination's list (wrkspc_...). At most 100 per request.

On create, these workspaces become the destination's list. If you leave workspace_ids out, the list starts empty. If the API refuses one of the IDs, it doesn't create the destination.

On update, workspace_ids replaces the whole list. A workspace that stays on the list keeps its entry and its created_at. An empty array empties the list. If you leave workspace_ids out and the type stays the same, the list doesn't change. If you leave it out and the type changes, the new list starts empty. After a change to include without workspace_ids, the destination doesn't cover any workspace until one is added. After a change to exclude without workspace_ids, it covers every workspace.

An ID sent more than once is added once. An archived workspace can't be added to a list. An update can keep an archived workspace that is already on the list.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


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

optional :workspace_ids, Anthropic::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash ⇒ { type: :include, workspace_ids: ::Array[String] }

Returns:

  • ({ type: :include, workspace_ids: ::Array[String] })


20
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rbs', line 20

def to_hash: -> { type: :include, workspace_ids: ::Array[String] }