Class: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Enforcement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Enforcement
- Defined in:
- lib/openai/models/admin/organization/projects/project_spend_limit.rb,
sig/openai/models/admin/organization/projects/project_spend_limit.rbs
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#status ⇒ OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Enforcement::status
Whether the hard spend limit is currently enforcing.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(status:) ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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(status:) ⇒ Object
|
|
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 97
|
Instance Attribute Details
#status ⇒ OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Enforcement::status
Whether the hard spend limit is currently enforcing.
92 93 94 95 |
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 92 required( :status, union: -> { OpenAI::Admin::Organization::Projects::ProjectSpendLimit::Enforcement::Status } ) |
Instance Method Details
#to_hash ⇒ {
86 |
# File 'sig/openai/models/admin/organization/projects/project_spend_limit.rbs', line 86
def to_hash: -> {
|