Class: Anthropic::Models::Beta::Organization::SpendLimitSetParams

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_set_params.rb,
sig/anthropic/models/beta/organization/spend_limit_set_params.rbs

Overview

See Also:

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

Defined Under Namespace

Modules: Scope

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

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(amount:, scope:, period: nil, request_options: {}) ⇒ void

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

Parameters:



# File 'lib/anthropic/models/beta/organization/spend_limit_set_params.rb', line 36

Instance Attribute Details

#amount ⇒ String?

Limit amount as a non-negative integer decimal string in the minor unit of the organization's billing currency (cents for USD): "50000" is $500.00. null sets an explicit no-limit override for this scope and period only — each period resolves independently, so caps for other periods still apply.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


19
# File 'lib/anthropic/models/beta/organization/spend_limit_set_params.rb', line 19

required :amount, String, nil?: true

#period ⇒ Symbol, ...



34
# File 'lib/anthropic/models/beta/organization/spend_limit_set_params.rb', line 34

optional :period, enum: -> { Anthropic::Beta::Organization::BetaSpendLimitPeriod }

#scope ⇒ Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, ...

What the limit applies to. Claude Enterprise organizations set user limits. Claude Console organizations set organization and workspace limits. Any other combination returns 400. Setting organization and workspace limits through the API is in an early access preview. To request access, contact your Anthropic account team.



29
# File 'lib/anthropic/models/beta/organization/spend_limit_set_params.rb', line 29

required :scope, union: -> { Anthropic::Beta::Organization::SpendLimitSetParams::Scope }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


34
# File 'sig/anthropic/models/beta/organization/spend_limit_set_params.rbs', line 34

def to_hash: -> {