Class: Turbopuffer::Models::NamespaceMetadata

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

Overview

Defined Under Namespace

Modules: Encryption, Index

Instance Attribute Summary collapse

Class Method 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(key_name:) ⇒ Object



# File 'lib/turbopuffer/models/namespace_metadata.rb', line 49


Instance Attribute Details

#approx_logical_bytesInteger

The approximate number of logical bytes in the namespace.



11
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 11

required :approx_logical_bytes, Integer

#approx_row_countInteger

The approximate number of rows in the namespace.



17
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 17

required :approx_row_count, Integer

#created_atTime

The timestamp when the namespace was created.



23
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 23

required :created_at, Time

#encryptionTurbopuffer::Models::NamespaceMetadata::Encryption::Sse, Turbopuffer::Models::NamespaceMetadata::Encryption::Cmek

Indicates that the namespace is encrypted with a customer-managed encryption key (CMEK).



30
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 30

required :encryption, union: -> { Turbopuffer::::Encryption }

#indexTurbopuffer::Models::NamespaceMetadata::Index::IndexUpToDate, Turbopuffer::Models::NamespaceMetadata::Index::IndexUpdating



35
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 35

required :index, union: -> { Turbopuffer::::Index }

#schemaHash{Symbol=>Turbopuffer::Models::AttributeSchemaConfig}

The schema of the namespace.



41
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 41

required :schema, -> { Turbopuffer::Internal::Type::HashOf[Turbopuffer::AttributeSchemaConfig] }

#updated_atTime

The timestamp when the namespace was last modified by a write operation.



47
# File 'lib/turbopuffer/models/namespace_metadata.rb', line 47

required :updated_at, Time

Class Method Details

.variantsArray(Turbopuffer::Models::NamespaceMetadata::Encryption::Sse, Turbopuffer::Models::NamespaceMetadata::Encryption::Cmek)



# File 'lib/turbopuffer/models/namespace_metadata.rb', line 117