Class: OpenAI::Models::Admin::Organization::UsageAudioTranscriptionsResponse::Data::Result::OrganizationUsageCodeInterpreterSessionsResult

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb,
sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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 ⇒ Object

Parameters:

  • num_sessions —

    The number of code interpreter sessions.

  • project_id —

    When group_by=project_id, this field provides the project ID of the grouped usage result.



775
# File 'sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs', line 775

def initialize: (

Instance Attribute Details

#num_sessions ⇒ Integer

The number of code interpreter sessions.

Returns:

  • (Integer)


826
# File 'lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb', line 826

required :num_sessions, Integer

#object ⇒ Symbol, :"organization.usage.code_interpreter_sessions.result"

Parameters:

  • value (:"organization.usage.code_interpreter_sessions.result")

Returns:

  • (Symbol, :"organization.usage.code_interpreter_sessions.result")


831
# File 'lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb', line 831

required :object, const: :"organization.usage.code_interpreter_sessions.result"

#project_id ⇒ String?

When group_by=project_id, this field provides the project ID of the grouped usage result.

Returns:

  • (String, nil)


838
# File 'lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb', line 838

optional :project_id, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


781
# File 'sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs', line 781

def to_hash: -> {