Class: Turbopuffer::Models::NamespaceMetadataPatch

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/turbopuffer/models/namespace_metadata_patch.rb,
sig/turbopuffer/models/namespace_metadata_patch.rbs

Direct Known Subclasses

NamespaceUpdateMetadataParams

Defined Under Namespace

Modules: Pinning

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(pinning: nil) ⇒ Object

Some parameter documentations has been truncated, see Turbopuffer::Models::NamespaceMetadataPatch for more details.

Request to update namespace metadata configuration.

Parameters:



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

Instance Attribute Details

#pinningBoolean, ...

Configuration for namespace pinning.

  • Missing field: no change to pinning configuration
  • null or false: explicitly remove pinning
  • true: enable pinning with default configuration
  • Object: set pinning configuration

Parameters:

  • value (Turbopuffer::Models::NamespaceMetadataPatch::pinning, nil)

Returns:



15
# File 'lib/turbopuffer/models/namespace_metadata_patch.rb', line 15

optional :pinning, union: -> { Turbopuffer::NamespaceMetadataPatch::Pinning }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


13
# File 'sig/turbopuffer/models/namespace_metadata_patch.rbs', line 13

def to_hash: -> {