Class: Turbopuffer::Models::WriteBilling

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/turbopuffer/models/write_billing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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(billable_logical_bytes_written: , query: nil) ⇒ Object

The billing information for a write request.

Parameters:

  • billable_logical_bytes_written (Integer) (defaults to: )

    The number of billable logical bytes written to the namespace.

  • query (Turbopuffer::Models::QueryBilling) (defaults to: nil)

    The billing information for a query.



# File 'lib/turbopuffer/models/write_billing.rb', line 18


Instance Attribute Details

#billable_logical_bytes_writtenInteger

The number of billable logical bytes written to the namespace.

Returns:

  • (Integer)


10
# File 'lib/turbopuffer/models/write_billing.rb', line 10

required :billable_logical_bytes_written, Integer

#queryTurbopuffer::Models::QueryBilling?

The billing information for a query.



16
# File 'lib/turbopuffer/models/write_billing.rb', line 16

optional :query, -> { Turbopuffer::QueryBilling }