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



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

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

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

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



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

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)


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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {