Class: Turbopuffer::Models::Encryption::CustomerManaged

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

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

#initializeCustomerManaged

Returns a new instance of CustomerManaged.

Parameters:

  • key_name: (String)
  • mode: (:"customer-managed")


17
# File 'sig/turbopuffer/models/encryption.rbs', line 17

def initialize: (key_name: String, ?mode: :"customer-managed") -> void

Instance Attribute Details

#key_nameString

The identifier of the CMEK key to use for encryption. For GCP, the fully-qualified resource name of the key. For AWS, the ARN of the key.

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/turbopuffer/models/encryption.rb', line 21

required :key_name, String

#modeSymbol, :"customer-managed"

Parameters:

  • value (:"customer-managed")

Returns:

  • (Symbol, :"customer-managed")


26
# File 'lib/turbopuffer/models/encryption.rb', line 26

required :mode, const: :"customer-managed"

Instance Method Details

#to_hash{ key_name: String, mode: :"customer-managed" }

Returns:

  • ({ key_name: String, mode: :"customer-managed" })


19
# File 'sig/turbopuffer/models/encryption.rbs', line 19

def to_hash: -> { key_name: String, mode: :"customer-managed" }