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

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

Overview

See Also:

  • Anthropic::Resources::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, request_options: {}) ⇒ WorkspaceListParams

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

Parameters:

  • after_id (String) (defaults to: nil) —

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

  • before_id (String) (defaults to: nil) —

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

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

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

  • include_archived (Boolean) (defaults to: nil) —

    Whether to include Workspaces that have been archived in the response

  • include_default (Boolean) (defaults to: nil) —

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

  • limit (Integer) (defaults to: nil) —

    Number of items to return per page.

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • after_id: (String) (defaults to: nil)
  • before_id: (String) (defaults to: nil)
  • ids: (::Array[String]) (defaults to: nil)
  • include_archived: (Boolean) (defaults to: nil)
  • include_default: (Boolean) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


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

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:

  • (String)

Returns:

  • (String, nil)


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

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:

  • (String)

Returns:

  • (String, nil)


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

optional :before_id, String

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

  • (::Array[String])

Returns:

  • (Array<String>, nil)


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

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

#include_archived ⇒ Boolean?

Whether to include Workspaces that have been archived in the response

Parameters:

Returns:



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

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

#include_default ⇒ Boolean?

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

Parameters:

Returns:



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

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:

  • (Integer)

Returns:

  • (Integer, nil)


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

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, request_options: Anthropic::RequestOptions }

Returns:

  • ({ after_id: String, before_id: String, ids: ::Array[String], include_archived: bool, include_default: bool, limit: Integer, request_options: Anthropic::RequestOptions })


53
54
55
56
57
58
59
60
61
# File 'sig/anthropic/models/organization/workspace_list_params.rbs', line 53

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