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

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

Returns a new instance of OrganizationUsageImagesResult.

Parameters:

  • images —

    The number of images processed.

  • num_model_requests —

    The count of requests made to the model.

  • api_key_id —

    When group_by=api_key_id, this field provides the API key ID of the grouped usage result.

  • model —

    When group_by=model, this field provides the model name of the grouped usage result.

  • project_id —

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

  • size —

    When group_by=size, this field provides the image size of the grouped usage result.

  • source —

    When group_by=source, this field provides the source of the grouped usage result, possible values are image.generation, image.edit, image.variation.

  • user_id —

    When group_by=user_id, this field provides the user ID of the grouped usage result.

  • images: (Integer)
  • num_model_requests: (Integer)
  • api_key_id: (String, nil)
  • model: (String, nil)
  • project_id: (String, nil)
  • size: (String, nil)
  • source: (String, nil)
  • user_id: (String, nil)
  • object: (:"organization.usage.images.result")


599
600
601
602
603
604
605
606
607
608
609
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 599

def initialize: (
  images: Integer,
  num_model_requests: Integer,
  ?api_key_id: String?,
  ?model: String?,
  ?project_id: String?,
  ?size: String?,
  ?source: String?,
  ?user_id: String?,
  ?object: :"organization.usage.images.result"
) -> void

Instance Attribute Details

#api_key_id ⇒ String?

When group_by=api_key_id, this field provides the API key ID of the grouped usage result.

Returns:

  • (String, nil)


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

optional :api_key_id, String, nil?: true

#images ⇒ Integer

The number of images processed.

Returns:

  • (Integer)


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

required :images, Integer

#model ⇒ String?

When group_by=model, this field provides the model name of the grouped usage result.

Returns:

  • (String, nil)


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

optional :model, String, nil?: true

#num_model_requests ⇒ Integer

The count of requests made to the model.

Returns:

  • (Integer)


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

required :num_model_requests, Integer

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

Parameters:

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

Returns:

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


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

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

#project_id ⇒ String?

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

Returns:

  • (String, nil)


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

optional :project_id, String, nil?: true

#size ⇒ String?

When group_by=size, this field provides the image size of the grouped usage result.

Returns:

  • (String, nil)


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

optional :size, String, nil?: true

#source ⇒ String?

When group_by=source, this field provides the source of the grouped usage result, possible values are image.generation, image.edit, image.variation.

Returns:

  • (String, nil)


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

optional :source, String, nil?: true

#user_id ⇒ String?

When group_by=user_id, this field provides the user ID of the grouped usage result.

Returns:

  • (String, nil)


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

optional :user_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { images: Integer, num_model_requests: Integer, ?object: :"organization.usage.images.result", ?api_key_id: String?, ?model: String?, ?project_id: String?, ?size: String?, ?source: String?, ?user_id: String? }

Returns:

  • ({ images: Integer, num_model_requests: Integer, ?object: :"organization.usage.images.result", ?api_key_id: String?, ?model: String?, ?project_id: String?, ?size: String?, ?source: String?, ?user_id: String? })


611
612
613
614
615
616
617
618
619
620
621
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 611

def to_hash: -> {
  images: Integer,
  num_model_requests: Integer,
  ?object: :"organization.usage.images.result",
  ?api_key_id: String?,
  ?model: String?,
  ?project_id: String?,
  ?size: String?,
  ?source: String?,
  ?user_id: String?
}