Class: Anthropic::Models::Beta::Organization::SpendLimitSetParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::SpendLimitSetParams
- 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
Defined Under Namespace
Modules: Scope
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Anthropic
Instance Attribute Summary collapse
-
#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.
- #period ⇒ Symbol, ...
-
#scope ⇒ Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, ...
What the limit applies to.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(amount:, scope:, period: nil, request_options: {}) ⇒ void
constructor
Some parameter documentations has been truncated, see SpendLimitSetParams for more details.
- #to_hash ⇒ {
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(amount:, scope:, period: nil, request_options: {}) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::SpendLimitSetParams for more details.
|
|
# 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.
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 ⇒ {
34 |
# File 'sig/anthropic/models/beta/organization/spend_limit_set_params.rbs', line 34
def to_hash: -> {
|