Class: SafetyKit::Models::DataGetStatusResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::DataGetStatusResponse::Data
- Defined in:
- lib/safety_kit/models/data_get_status_response.rb
Defined Under Namespace
Classes: Output
Instance Attribute Summary collapse
-
#id ⇒ String
Object identifier from the ingested data.
- #metadata ⇒ Hash{Symbol=>Object, nil}?
- #output ⇒ SafetyKit::Models::DataGetStatusResponse::Data::Output?
- #url ⇒ String
Instance Method Summary collapse
-
#initialize(id:, output:, url:, metadata: nil) ⇒ Object
constructor
Per-object processing output for the request.
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(id:, output:, url:, metadata: nil) ⇒ Object
Per-object processing output for the request
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/safety_kit/models/data_get_status_response.rb', line 42 class Data < SafetyKit::Internal::Type::BaseModel # @!attribute id # Object identifier from the ingested data # # @return [String] required :id, String # @!attribute output # # @return [SafetyKit::Models::DataGetStatusResponse::Data::Output, nil] required :output, -> { SafetyKit::Models::DataGetStatusResponse::Data::Output }, nil?: true # @!attribute url # # @return [String] required :url, String # @!attribute metadata # # @return [Hash{Symbol=>Object, nil}, nil] optional :metadata, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true] # @!method initialize(id:, output:, url:, metadata: nil) # Per-object processing output for the request # # @param id [String] Object identifier from the ingested data # # @param output [SafetyKit::Models::DataGetStatusResponse::Data::Output, nil] # # @param url [String] # # @param metadata [Hash{Symbol=>Object, nil}] # @see SafetyKit::Models::DataGetStatusResponse::Data#output class Output < SafetyKit::Internal::Type::BaseModel # @!attribute actions # # @return [Array<Object, nil>] required :actions, SafetyKit::Internal::Type::ArrayOf[SafetyKit::Internal::Type::Unknown, nil?: true] # @!attribute fields # # @return [Hash{Symbol=>Object, nil}] required :fields, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true] # @!attribute labels # # @return [Array<SafetyKit::Models::DataGetStatusResponse::Data::Output::Label>] required :labels, -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Models::DataGetStatusResponse::Data::Output::Label] } # @!method initialize(actions:, fields:, labels:) # @param actions [Array<Object, nil>] # @param fields [Hash{Symbol=>Object, nil}] # @param labels [Array<SafetyKit::Models::DataGetStatusResponse::Data::Output::Label>] class Label < SafetyKit::Internal::Type::BaseModel # @!attribute label # # @return [String] required :label, String # @!method initialize(label:) # @param label [String] end end end |
Instance Attribute Details
#id ⇒ String
Object identifier from the ingested data
47 |
# File 'lib/safety_kit/models/data_get_status_response.rb', line 47 required :id, String |
#metadata ⇒ Hash{Symbol=>Object, nil}?
62 |
# File 'lib/safety_kit/models/data_get_status_response.rb', line 62 optional :metadata, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true] |
#output ⇒ SafetyKit::Models::DataGetStatusResponse::Data::Output?
52 |
# File 'lib/safety_kit/models/data_get_status_response.rb', line 52 required :output, -> { SafetyKit::Models::DataGetStatusResponse::Data::Output }, nil?: true |
#url ⇒ String
57 |
# File 'lib/safety_kit/models/data_get_status_response.rb', line 57 required :url, String |