Class: Anthropic::Models::Beta::Organization::WorkspaceListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/workspace_list_params.rb,
sig/anthropic/models/beta/organization/workspace_list_params.rbs

Overview

See Also:

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

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(after_id: nil, before_id: nil, ids: nil, include_archived: nil, include_default: nil, limit: nil, betas: nil, request_options: {}) ⇒ WorkspaceListParams

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

Parameters:

  • (defaults to: nil)

    ID of the object to use as a cursor for pagination. When provided, returns the p

  • (defaults to: nil)

    ID of the object to use as a cursor for pagination. When provided, returns the p

  • (defaults to: nil)

    Only the Workspaces with these IDs, at most 100. include_archived and

  • (defaults to: nil)

    Whether to include Workspaces that have been archived in the response

  • (defaults to: nil)

    Whether to include the organization's default Workspace in the response

  • (defaults to: nil)

    Number of items to return per page.

  • (defaults to: nil)

    Optional. Send efs-2026-10-01 in this header to use this endpoint's beta featu

  • (defaults to: {})
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: {})


# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 61


Instance Attribute Details

#after_id ⇒ String?

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.

Parameters:

Returns:



17
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 17

optional :after_id, String

#before_id ⇒ String?

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.

Parameters:

Returns:



24
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 24

optional :before_id, String

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

Optional. Send efs-2026-10-01 in this header to use this endpoint's beta features: additional parameters, accepted values and response fields.

Parameters:

Returns:



59
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 59

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#ids ⇒ Array<String>?

Only the Workspaces with these IDs, at most 100. include_archived and include_default still apply, and IDs of Workspaces the caller can't list are left out.

Parameters:

Returns:



32
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 32

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

#include_archived ⇒ Boolean?

Whether to include Workspaces that have been archived in the response

Parameters:

Returns:



38
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 38

optional :include_archived, Anthropic::Internal::Type::Boolean

#include_default ⇒ Boolean?

Whether to include the organization's default Workspace in the response

Parameters:

Returns:



44
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 44

optional :include_default, Anthropic::Internal::Type::Boolean

#limit ⇒ Integer?

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

Parameters:

Returns:



52
# File 'lib/anthropic/models/beta/organization/workspace_list_params.rb', line 52

optional :limit, Integer

Instance Method Details

#to_hash ⇒ { after_id: String, before_id: String, ids: ::Array[String], include_archived: bool, include_default: bool, limit: Integer, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:



62
63
64
65
66
67
68
69
70
71
# File 'sig/anthropic/models/beta/organization/workspace_list_params.rbs', line 62

def to_hash: -> {
  after_id: String,
  before_id: String,
  ids: ::Array[String],
  include_archived: bool,
  include_default: bool,
  limit: Integer,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}