Class: SafetyKit::Models::DataUpdateSettingsParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/safety_kit/models/data_update_settings_params.rb,
sig/safety_kit/models/data_update_settings_params.rbs

Overview

See Also:

  • SafetyKit::Resources::Data#update_settings

Defined Under Namespace

Classes: Schema

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::SafetyKit

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

#initializeObject



32
# File 'sig/safety_kit/models/data_update_settings_params.rbs', line 32

def initialize: (

Instance Attribute Details

#namespaceString

The namespace to ingest data into

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/safety_kit/models/data_update_settings_params.rb', line 14

required :namespace, String

#previous_versionInteger?

The version returned by GET (or a prior update). When provided, the update is rejected with 409 if the stored configuration has changed since that read, so a stale sync cannot overwrite a newer update. Strongly recommended for automated schema syncs.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


23
# File 'lib/safety_kit/models/data_update_settings_params.rb', line 23

optional :previous_version, Integer

#schemaHash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}?

New schema to store for this namespace. Omit to leave the existing schema unchanged.



30
# File 'lib/safety_kit/models/data_update_settings_params.rb', line 30

optional :schema, -> { SafetyKit::Internal::Type::HashOf[SafetyKit::DataUpdateSettingsParams::Schema] }

#settingsHash{Symbol=>Object, nil}?

Namespace settings to store, replacing existing settings. Omit to leave existing settings unchanged. Configure these values with guidance from SafetyKit.

Parameters:

  • (::Hash[Symbol, top?])

Returns:

  • (Hash{Symbol=>Object, nil}, nil)


37
# File 'lib/safety_kit/models/data_update_settings_params.rb', line 37

optional :settings, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true]

Instance Method Details

#to_hash{

Returns:

  • ({)


40
# File 'sig/safety_kit/models/data_update_settings_params.rbs', line 40

def to_hash: -> {