Module: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Interval

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/admin/organization/projects/project_spend_limit.rb,
sig/openai/models/admin/organization/projects/project_spend_limit.rbs

Overview

The time interval for evaluating spend against the threshold. Currently, only month is supported.

See Also:

  • OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit#interval

collapse

MONTH =

Returns:

  • (:month)
:month

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.variants ⇒ Array(String, Symbol)

Returns:

  • (Array(String, Symbol))


170
171
172
173
174
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 170

define_sorbet_constant!(:Variants) do
  T.type_alias {
    T.any(String, OpenAI::Admin::Organization::Projects::ProjectSpendLimit::Interval::TaggedSymbol)
  }
end