Class: OpenAI::Models::Admin::Organization::UsageCodeInterpreterSessionsResponse::Data::Result::OrganizationUsageVectorStoresResult

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb,
sig/openai/models/admin/organization/usage_code_interpreter_sessions_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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ OrganizationUsageVectorStoresResult

Returns a new instance of OrganizationUsageVectorStoresResult.

Parameters:

  • usage_bytes —

    The vector stores usage in bytes.

  • project_id —

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

  • usage_bytes: (Integer)
  • project_id: (String, nil)
  • object: (:"organization.usage.vector_stores.result")


792
793
794
795
796
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 792

def initialize: (
  usage_bytes: Integer,
  ?project_id: String?,
  ?object: :"organization.usage.vector_stores.result"
) -> void

Instance Attribute Details

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

Parameters:

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

Returns:

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


854
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 854

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

#project_id ⇒ String?

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

Returns:

  • (String, nil)


867
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 867

optional :project_id, String, nil?: true

#usage_bytes ⇒ Integer

The vector stores usage in bytes.

Returns:

  • (Integer)


860
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 860

required :usage_bytes, Integer

Instance Method Details

#to_hash ⇒ { ?object: :"organization.usage.vector_stores.result", usage_bytes: Integer, ?project_id: String? }

Returns:

  • ({ ?object: :"organization.usage.vector_stores.result", usage_bytes: Integer, ?project_id: String? })


798
799
800
801
802
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 798

def to_hash: -> {
  ?object: :"organization.usage.vector_stores.result",
  usage_bytes: Integer,
  ?project_id: String?
}