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
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.
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
- #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, betas: nil, request_options: {}) ⇒ SpendLimitSetParams
constructor
Some parameter documentations has been truncated, see SpendLimitSetParams for more details.
- #to_hash ⇒ { amount: String?, scope: Anthropic::Models::Beta::Organization::SpendLimitSetParams::scope, period: Anthropic::Models::Beta::Organization::beta_spend_limit_period, 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(amount:, scope:, period: nil, betas: nil, request_options: {}) ⇒ SpendLimitSetParams
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 42
|
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 |
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
40 |
# File 'lib/anthropic/models/beta/organization/spend_limit_set_params.rb', line 40 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#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 ⇒ { amount: String?, scope: Anthropic::Models::Beta::Organization::SpendLimitSetParams::scope, period: Anthropic::Models::Beta::Organization::beta_spend_limit_period, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
42 43 44 45 46 47 48 |
# File 'sig/anthropic/models/beta/organization/spend_limit_set_params.rbs', line 42
def to_hash: -> {
amount: String?,
scope: Anthropic::Models::Beta::Organization::SpendLimitSetParams::scope,
period: Anthropic::Models::Beta::Organization::beta_spend_limit_period,
betas: ::Array[Anthropic::Models::anthropic_beta],
request_options: Anthropic::RequestOptions
}
|