Module: Anthropic::Models::Beta::Organization::SpendLimits::BetaSpendLimitIncreaseRequestResolvedBy
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rb,
sig/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rbs
Overview
Who approved or denied the increase request.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaSpendLimitUserActor, Anthropic::Models::Beta::Organization::BetaSpendLimitScopedAPIKeyActor
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserActor, Anthropic::Models::Beta::Organization::BetaSpendLimitScopedAPIKeyActor)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, deleted:, email_address:, name:, user_id:) ⇒ Anthropic::Beta::Organization::BetaSpendLimitUserActor .new(type:, scoped_api_key_id:) ⇒ Anthropic::Beta::Organization::BetaSpendLimitScopedAPIKeyActor .new(type:, deleted:, email_address:, name:, user_id:, scoped_api_key_id:) ⇒ Anthropic::Models::Beta::Organization::SpendLimits::beta_spend_limit_increase_request_resolved_by
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::SpendLimits::BetaSpendLimitIncreaseRequestResolvedBy for more details.
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rb', line 58 def self.new(type:, **args) case type.to_sym when :user_actor Anthropic::Beta::Organization::BetaSpendLimitUserActor.new(**args) when :scoped_api_key_actor Anthropic::Beta::Organization::BetaSpendLimitScopedAPIKeyActor.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rb', line 28
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserActor, Anthropic::Models::Beta::Organization::BetaSpendLimitScopedAPIKeyActor)
|
|
# File 'lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rb', line 32
|