Class: Anthropic::Models::Beta::Organization::SpendLimitListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::SpendLimitListParams
- 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
Defined Under Namespace
Modules: ScopeType
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
spend-limit-reads-2026-09-26in this header. -
#limit ⇒ Integer?
Maximum number of limits per page.
-
#page ⇒ String?
Opaque cursor from a previous response's
next_pagefield. -
#scope_type ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimitListParams::ScopeType>?
Return only limits with these scope types.
-
#workspace_id ⇒ String?
Return only the limits whose
scope.workspace_idis this workspace (wrkspc_...).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize ⇒ SpendLimitListParams
constructor
A new instance of SpendLimitListParams.
- #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 }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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.
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.
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.
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.
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.
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.
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 }
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
}
|