Module: OursprivacyIngest::Models::BatchCreateResponse::Result
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/oursprivacy_ingest/models/batch_create_response.rb
Defined Under Namespace
Classes: UnionMember0, UnionMember1
Class Method Summary collapse
- .values ⇒ Array<Boolean>
- .variants ⇒ Array(OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1)
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.values ⇒ Array<Boolean>
|
|
# File 'lib/oursprivacy_ingest/models/batch_create_response.rb', line 63
|
.variants ⇒ Array(OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1)
|
|
# File 'lib/oursprivacy_ingest/models/batch_create_response.rb', line 118
|
Instance Method Details
#initialize(accepted:, failed:, results:, success:) ⇒ Object
34 35 36 37 38 39 40 41 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 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/oursprivacy_ingest/models/batch_create_response.rb', line 34 module Result extend OursprivacyIngest::Internal::Type::Union variant -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0 } variant -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1 } class UnionMember0 < OursprivacyIngest::Internal::Type::BaseModel # @!attribute index # # @return [Integer] required :index, Integer # @!attribute success # # @return [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success] required :success, enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success } # @!method initialize(index:, success:) # @param index [Integer] # @param success [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success] # @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0#success module Success extend OursprivacyIngest::Internal::Type::Enum TRUE = true # @!method self.values # @return [Array<Boolean>] end end class UnionMember1 < OursprivacyIngest::Internal::Type::BaseModel # @!attribute code # # @return [Symbol, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code] required :code, enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code } # @!attribute index # # @return [Integer] required :index, Integer # @!attribute message # # @return [String] required :message, String # @!attribute success # # @return [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success] required :success, enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success } # @!method initialize(code:, index:, message:, success:) # @param code [Symbol, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code] # @param index [Integer] # @param message [String] # @param success [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success] # @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1#code module Code extend OursprivacyIngest::Internal::Type::Enum INVALID_EVENT = :invalid_event QUEUE_FAILED = :queue_failed # @!method self.values # @return [Array<Symbol>] end # @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1#success module Success extend OursprivacyIngest::Internal::Type::Enum FALSE = false # @!method self.values # @return [Array<Boolean>] end end # @!method self.variants # @return [Array(OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1)] end |