Class: Anthropic::Models::Beta::Organization::SpendLimitListParams

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

Overview

See Also:

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

Defined Under Namespace

Modules: ScopeType

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 ⇒ SpendLimitListParams

Returns a new instance of SpendLimitListParams.

Parameters:

  • limit: (Integer)
  • page: (String, nil)
  • scope_type: (::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type], nil)
  • workspace_id: (String, nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta])
  • request_options: (Anthropic::request_opts)


35
36
37
38
39
40
41
42
# File 'sig/anthropic/models/beta/organization/spend_limit_list_params.rbs', line 35

def initialize: (
  ?limit: Integer,
  ?page: String?,
  ?scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
  ?workspace_id: String?,
  ?betas: ::Array[Anthropic::Models::anthropic_beta],
  ?request_options: Anthropic::request_opts
) -> void

Instance Attribute Details

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

This endpoint is in beta: requests must send spend-limit-reads-2026-09-26 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



48
# File 'lib/anthropic/models/beta/organization/spend_limit_list_params.rb', line 48

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

#limit ⇒ Integer?

Maximum number of limits per page. Defaults to 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :limit, Integer

#page ⇒ String?

Opaque cursor from a previous response's next_page field.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


22
# File 'lib/anthropic/models/beta/organization/spend_limit_list_params.rb', line 22

optional :page, String, nil?: true

#scope_type ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimitListParams::ScopeType>?

Return only limits with these scope types. Omit for all. A scope type that doesn't apply to the organization gets a 400 error.

Parameters:

  • value (::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type], nil)

Returns:



29
30
31
32
33
# File 'lib/anthropic/models/beta/organization/spend_limit_list_params.rb', line 29

optional :scope_type,
-> {
  Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::SpendLimitListParams::ScopeType]
},
nil?: true

#workspace_id ⇒ String?

Return only the limits whose scope.workspace_id is this workspace (wrkspc_...). Claude Console organizations only; other organizations get a 400 error.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/anthropic/models/beta/organization/spend_limit_list_params.rb', line 41

optional :workspace_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { limit: Integer, page: String?, scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?, workspace_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ limit: Integer, page: String?, scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?, workspace_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


44
45
46
47
48
49
50
51
# File 'sig/anthropic/models/beta/organization/spend_limit_list_params.rbs', line 44

def to_hash: -> {
  limit: Integer,
  page: String?,
  scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
  workspace_id: String?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}