deimos-ruby 1.23.3 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/docs/CONFIGURATION.md +2 -1
- data/lib/deimos/config/configuration.rb +7 -1
- data/lib/deimos/utils/schema_class.rb +18 -3
- data/lib/deimos/version.rb +1 -1
- data/lib/generators/deimos/schema_class_generator.rb +9 -2
- data/regenerate_test_schema_classes.rb +13 -2
- data/spec/active_record_batch_consumer_spec.rb +1 -1
- data/spec/active_record_consumer_spec.rb +1 -1
- data/spec/active_record_producer_spec.rb +1 -1
- data/spec/batch_consumer_spec.rb +1 -1
- data/spec/consumer_spec.rb +2 -2
- data/spec/generators/schema_class_generator_spec.rb +18 -1
- data/spec/schemas/com/my-namespace/my-suborg/MyLongNamespaceSchema.avsc +18 -0
- data/spec/schemas/my_namespace/generated.rb +1 -1
- data/spec/schemas/my_namespace/my_long_namespace_schema.rb +48 -0
- data/spec/schemas/my_namespace/my_nested_schema.rb +1 -1
- data/spec/schemas/my_namespace/my_schema.rb +1 -1
- data/spec/schemas/my_namespace/my_schema_with_circular_reference.rb +1 -1
- data/spec/schemas/my_namespace/my_schema_with_complex_type.rb +2 -2
- data/spec/schemas/my_namespace/my_updated_schema.rb +2 -1
- data/spec/schemas/{request → my_namespace/request}/create_topic.rb +2 -2
- data/spec/schemas/{request → my_namespace/request}/index.rb +2 -2
- data/spec/schemas/{request → my_namespace/request}/update_request.rb +2 -2
- data/spec/schemas/{response → my_namespace/response}/create_topic.rb +2 -2
- data/spec/schemas/{response → my_namespace/response}/index.rb +2 -2
- data/spec/schemas/{response → my_namespace/response}/update_response.rb +2 -2
- data/spec/snapshots/consumers-no-nest.snap +44 -0
- data/spec/snapshots/consumers.snap +44 -0
- data/spec/snapshots/consumers_and_producers-no-nest.snap +44 -0
- data/spec/snapshots/consumers_and_producers.snap +44 -0
- data/spec/snapshots/consumers_circular-no-nest.snap +44 -0
- data/spec/snapshots/consumers_circular.snap +44 -0
- data/spec/snapshots/consumers_complex_types-no-nest.snap +44 -0
- data/spec/snapshots/consumers_complex_types.snap +44 -0
- data/spec/snapshots/consumers_nested-no-nest.snap +44 -0
- data/spec/snapshots/consumers_nested.snap +44 -0
- data/spec/snapshots/namespace_folders.snap +254 -210
- data/spec/snapshots/namespace_map.snap +1450 -0
- data/spec/snapshots/producers_with_key-no-nest.snap +44 -0
- data/spec/snapshots/producers_with_key.snap +44 -0
- metadata +20 -14
@@ -1,8 +1,8 @@
|
|
1
|
-
spec/app/lib/schema_classes/my_namespace/generated.rb:
|
1
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/generated.rb:
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
# This file is autogenerated by Deimos, Do NOT modify
|
5
|
-
module Schemas; module MyNamespace
|
5
|
+
module Schemas; module Com; module MyNamespace
|
6
6
|
### Primary Schema Class ###
|
7
7
|
# Autogenerated Schema for Record at com.my-namespace.Generated
|
8
8
|
class Generated < Deimos::SchemaClass::Record
|
@@ -153,14 +153,14 @@ module Schemas; module MyNamespace
|
|
153
153
|
}
|
154
154
|
end
|
155
155
|
end
|
156
|
-
end; end
|
156
|
+
end; end; end
|
157
157
|
|
158
158
|
|
159
|
-
spec/app/lib/schema_classes/my_namespace/my_nested_schema.rb:
|
159
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_nested_schema.rb:
|
160
160
|
# frozen_string_literal: true
|
161
161
|
|
162
162
|
# This file is autogenerated by Deimos, Do NOT modify
|
163
|
-
module Schemas; module MyNamespace
|
163
|
+
module Schemas; module Com; module MyNamespace
|
164
164
|
### Primary Schema Class ###
|
165
165
|
# Autogenerated Schema for Record at com.my-namespace.MyNestedSchema
|
166
166
|
class MyNestedSchema < Deimos::SchemaClass::Record
|
@@ -280,14 +280,14 @@ module Schemas; module MyNamespace
|
|
280
280
|
}
|
281
281
|
end
|
282
282
|
end
|
283
|
-
end; end
|
283
|
+
end; end; end
|
284
284
|
|
285
285
|
|
286
|
-
spec/app/lib/schema_classes/my_namespace/my_schema.rb:
|
286
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema.rb:
|
287
287
|
# frozen_string_literal: true
|
288
288
|
|
289
289
|
# This file is autogenerated by Deimos, Do NOT modify
|
290
|
-
module Schemas; module MyNamespace
|
290
|
+
module Schemas; module Com; module MyNamespace
|
291
291
|
### Primary Schema Class ###
|
292
292
|
# Autogenerated Schema for Record at com.my-namespace.MySchema
|
293
293
|
class MySchema < Deimos::SchemaClass::Record
|
@@ -344,14 +344,14 @@ module Schemas; module MyNamespace
|
|
344
344
|
}
|
345
345
|
end
|
346
346
|
end
|
347
|
-
end; end
|
347
|
+
end; end; end
|
348
348
|
|
349
349
|
|
350
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_compound_key.rb:
|
350
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_compound_key.rb:
|
351
351
|
# frozen_string_literal: true
|
352
352
|
|
353
353
|
# This file is autogenerated by Deimos, Do NOT modify
|
354
|
-
module Schemas; module MyNamespace
|
354
|
+
module Schemas; module Com; module MyNamespace
|
355
355
|
### Primary Schema Class ###
|
356
356
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaCompound_key
|
357
357
|
class MySchemaCompoundKey < Deimos::SchemaClass::Record
|
@@ -388,14 +388,14 @@ module Schemas; module MyNamespace
|
|
388
388
|
}
|
389
389
|
end
|
390
390
|
end
|
391
|
-
end; end
|
391
|
+
end; end; end
|
392
392
|
|
393
393
|
|
394
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_id_key.rb:
|
394
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_id_key.rb:
|
395
395
|
# frozen_string_literal: true
|
396
396
|
|
397
397
|
# This file is autogenerated by Deimos, Do NOT modify
|
398
|
-
module Schemas; module MyNamespace
|
398
|
+
module Schemas; module Com; module MyNamespace
|
399
399
|
### Primary Schema Class ###
|
400
400
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaId_key
|
401
401
|
class MySchemaIdKey < Deimos::SchemaClass::Record
|
@@ -427,14 +427,14 @@ module Schemas; module MyNamespace
|
|
427
427
|
}
|
428
428
|
end
|
429
429
|
end
|
430
|
-
end; end
|
430
|
+
end; end; end
|
431
431
|
|
432
432
|
|
433
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_key.rb:
|
433
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_key.rb:
|
434
434
|
# frozen_string_literal: true
|
435
435
|
|
436
436
|
# This file is autogenerated by Deimos, Do NOT modify
|
437
|
-
module Schemas; module MyNamespace
|
437
|
+
module Schemas; module Com; module MyNamespace
|
438
438
|
### Primary Schema Class ###
|
439
439
|
# Autogenerated Schema for Record at com.my-namespace.MySchema_key
|
440
440
|
class MySchemaKey < Deimos::SchemaClass::Record
|
@@ -466,14 +466,14 @@ module Schemas; module MyNamespace
|
|
466
466
|
}
|
467
467
|
end
|
468
468
|
end
|
469
|
-
end; end
|
469
|
+
end; end; end
|
470
470
|
|
471
471
|
|
472
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_boolean.rb:
|
472
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_boolean.rb:
|
473
473
|
# frozen_string_literal: true
|
474
474
|
|
475
475
|
# This file is autogenerated by Deimos, Do NOT modify
|
476
|
-
module Schemas; module MyNamespace
|
476
|
+
module Schemas; module Com; module MyNamespace
|
477
477
|
### Primary Schema Class ###
|
478
478
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithBooleans
|
479
479
|
class MySchemaWithBoolean < Deimos::SchemaClass::Record
|
@@ -510,14 +510,14 @@ module Schemas; module MyNamespace
|
|
510
510
|
}
|
511
511
|
end
|
512
512
|
end
|
513
|
-
end; end
|
513
|
+
end; end; end
|
514
514
|
|
515
515
|
|
516
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_circular_reference.rb:
|
516
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_circular_reference.rb:
|
517
517
|
# frozen_string_literal: true
|
518
518
|
|
519
519
|
# This file is autogenerated by Deimos, Do NOT modify
|
520
|
-
module Schemas; module MyNamespace
|
520
|
+
module Schemas; module Com; module MyNamespace
|
521
521
|
### Primary Schema Class ###
|
522
522
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithCircularReference
|
523
523
|
class MySchemaWithCircularReference < Deimos::SchemaClass::Record
|
@@ -590,14 +590,14 @@ module Schemas; module MyNamespace
|
|
590
590
|
}
|
591
591
|
end
|
592
592
|
end
|
593
|
-
end; end
|
593
|
+
end; end; end
|
594
594
|
|
595
595
|
|
596
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_complex_type.rb:
|
596
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_complex_type.rb:
|
597
597
|
# frozen_string_literal: true
|
598
598
|
|
599
599
|
# This file is autogenerated by Deimos, Do NOT modify
|
600
|
-
module Schemas; module MyNamespace
|
600
|
+
module Schemas; module Com; module MyNamespace
|
601
601
|
### Primary Schema Class ###
|
602
602
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithComplexTypes
|
603
603
|
class MySchemaWithComplexType < Deimos::SchemaClass::Record
|
@@ -799,14 +799,14 @@ module Schemas; module MyNamespace
|
|
799
799
|
}
|
800
800
|
end
|
801
801
|
end
|
802
|
-
end; end
|
802
|
+
end; end; end
|
803
803
|
|
804
804
|
|
805
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_date_time.rb:
|
805
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_date_time.rb:
|
806
806
|
# frozen_string_literal: true
|
807
807
|
|
808
808
|
# This file is autogenerated by Deimos, Do NOT modify
|
809
|
-
module Schemas; module MyNamespace
|
809
|
+
module Schemas; module Com; module MyNamespace
|
810
810
|
### Primary Schema Class ###
|
811
811
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithDateTimes
|
812
812
|
class MySchemaWithDateTime < Deimos::SchemaClass::Record
|
@@ -858,14 +858,14 @@ module Schemas; module MyNamespace
|
|
858
858
|
}
|
859
859
|
end
|
860
860
|
end
|
861
|
-
end; end
|
861
|
+
end; end; end
|
862
862
|
|
863
863
|
|
864
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_id.rb:
|
864
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_id.rb:
|
865
865
|
# frozen_string_literal: true
|
866
866
|
|
867
867
|
# This file is autogenerated by Deimos, Do NOT modify
|
868
|
-
module Schemas; module MyNamespace
|
868
|
+
module Schemas; module Com; module MyNamespace
|
869
869
|
### Primary Schema Class ###
|
870
870
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithId
|
871
871
|
class MySchemaWithId < Deimos::SchemaClass::Record
|
@@ -912,14 +912,14 @@ module Schemas; module MyNamespace
|
|
912
912
|
}
|
913
913
|
end
|
914
914
|
end
|
915
|
-
end; end
|
915
|
+
end; end; end
|
916
916
|
|
917
917
|
|
918
|
-
spec/app/lib/schema_classes/my_namespace/my_schema_with_unique_id.rb:
|
918
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_schema_with_unique_id.rb:
|
919
919
|
# frozen_string_literal: true
|
920
920
|
|
921
921
|
# This file is autogenerated by Deimos, Do NOT modify
|
922
|
-
module Schemas; module MyNamespace
|
922
|
+
module Schemas; module Com; module MyNamespace
|
923
923
|
### Primary Schema Class ###
|
924
924
|
# Autogenerated Schema for Record at com.my-namespace.MySchemaWithUniqueId
|
925
925
|
class MySchemaWithUniqueId < Deimos::SchemaClass::Record
|
@@ -971,223 +971,187 @@ module Schemas; module MyNamespace
|
|
971
971
|
}
|
972
972
|
end
|
973
973
|
end
|
974
|
-
end; end
|
974
|
+
end; end; end
|
975
975
|
|
976
976
|
|
977
|
-
spec/app/lib/schema_classes/my_namespace/
|
977
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/my_suborg/my_long_namespace_schema.rb:
|
978
978
|
# frozen_string_literal: true
|
979
979
|
|
980
980
|
# This file is autogenerated by Deimos, Do NOT modify
|
981
|
-
module Schemas; module MyNamespace
|
981
|
+
module Schemas; module Com; module MyNamespace; module MySuborg
|
982
982
|
### Primary Schema Class ###
|
983
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
984
|
-
class
|
983
|
+
# Autogenerated Schema for Record at com.my-namespace.my-suborg.MyLongNamespaceSchema
|
984
|
+
class MyLongNamespaceSchema < Deimos::SchemaClass::Record
|
985
985
|
|
986
986
|
### Attribute Accessors ###
|
987
|
-
# @return [Integer]
|
988
|
-
attr_accessor :id
|
989
|
-
# @return [Integer]
|
990
|
-
attr_accessor :wibble_id
|
991
987
|
# @return [String]
|
992
|
-
attr_accessor :
|
993
|
-
# @return [String]
|
994
|
-
attr_accessor :floop
|
995
|
-
# @return [Integer]
|
996
|
-
attr_accessor :birthday_int
|
997
|
-
# @return [Integer]
|
998
|
-
attr_accessor :birthday_long
|
999
|
-
# @return [nil, Integer]
|
1000
|
-
attr_accessor :birthday_optional
|
1001
|
-
# @return [Integer]
|
1002
|
-
attr_accessor :updated_at
|
988
|
+
attr_accessor :test_id
|
1003
989
|
# @return [Integer]
|
1004
|
-
attr_accessor :
|
990
|
+
attr_accessor :some_int
|
1005
991
|
|
1006
992
|
# @override
|
1007
|
-
def initialize(
|
1008
|
-
|
1009
|
-
name: nil,
|
1010
|
-
floop: nil,
|
1011
|
-
birthday_int: nil,
|
1012
|
-
birthday_long: nil,
|
1013
|
-
birthday_optional: nil,
|
1014
|
-
updated_at: nil,
|
1015
|
-
created_at: nil)
|
993
|
+
def initialize(test_id: nil,
|
994
|
+
some_int: nil)
|
1016
995
|
super
|
1017
|
-
self.
|
1018
|
-
self.
|
1019
|
-
self.name = name
|
1020
|
-
self.floop = floop
|
1021
|
-
self.birthday_int = birthday_int
|
1022
|
-
self.birthday_long = birthday_long
|
1023
|
-
self.birthday_optional = birthday_optional
|
1024
|
-
self.updated_at = updated_at
|
1025
|
-
self.created_at = created_at
|
996
|
+
self.test_id = test_id
|
997
|
+
self.some_int = some_int
|
1026
998
|
end
|
1027
999
|
|
1028
1000
|
# @override
|
1029
1001
|
def schema
|
1030
|
-
'
|
1002
|
+
'MyLongNamespaceSchema'
|
1031
1003
|
end
|
1032
1004
|
|
1033
1005
|
# @override
|
1034
1006
|
def namespace
|
1035
|
-
'com.my-namespace'
|
1007
|
+
'com.my-namespace.my-suborg'
|
1036
1008
|
end
|
1037
1009
|
|
1038
1010
|
# @override
|
1039
1011
|
def as_json(_opts={})
|
1040
1012
|
{
|
1041
|
-
'
|
1042
|
-
'
|
1043
|
-
'name' => @name,
|
1044
|
-
'floop' => @floop,
|
1045
|
-
'birthday_int' => @birthday_int,
|
1046
|
-
'birthday_long' => @birthday_long,
|
1047
|
-
'birthday_optional' => @birthday_optional,
|
1048
|
-
'updated_at' => @updated_at,
|
1049
|
-
'created_at' => @created_at
|
1013
|
+
'test_id' => @test_id,
|
1014
|
+
'some_int' => @some_int
|
1050
1015
|
}
|
1051
1016
|
end
|
1052
1017
|
end
|
1053
|
-
end; end
|
1018
|
+
end; end; end; end
|
1054
1019
|
|
1055
1020
|
|
1056
|
-
spec/app/lib/schema_classes/my_namespace/
|
1021
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/request/create_topic.rb:
|
1057
1022
|
# frozen_string_literal: true
|
1058
1023
|
|
1059
1024
|
# This file is autogenerated by Deimos, Do NOT modify
|
1060
|
-
module Schemas; module MyNamespace
|
1025
|
+
module Schemas; module Com; module MyNamespace; module Request
|
1061
1026
|
### Primary Schema Class ###
|
1062
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1063
|
-
class
|
1027
|
+
# Autogenerated Schema for Record at com.my-namespace.request.CreateTopic
|
1028
|
+
class CreateTopic < Deimos::SchemaClass::Record
|
1064
1029
|
|
1065
1030
|
### Attribute Accessors ###
|
1066
|
-
# @return [Integer]
|
1067
|
-
attr_accessor :id
|
1068
|
-
# @return [Integer]
|
1069
|
-
attr_accessor :widget_id
|
1070
1031
|
# @return [String]
|
1071
|
-
attr_accessor :
|
1072
|
-
# @return [Integer]
|
1073
|
-
attr_accessor :updated_at
|
1074
|
-
# @return [Integer]
|
1075
|
-
attr_accessor :created_at
|
1032
|
+
attr_accessor :request_id
|
1076
1033
|
|
1077
1034
|
# @override
|
1078
|
-
def initialize(
|
1079
|
-
widget_id: nil,
|
1080
|
-
name: nil,
|
1081
|
-
updated_at: nil,
|
1082
|
-
created_at: nil)
|
1035
|
+
def initialize(request_id: nil)
|
1083
1036
|
super
|
1084
|
-
self.
|
1085
|
-
self.widget_id = widget_id
|
1086
|
-
self.name = name
|
1087
|
-
self.updated_at = updated_at
|
1088
|
-
self.created_at = created_at
|
1037
|
+
self.request_id = request_id
|
1089
1038
|
end
|
1090
1039
|
|
1091
1040
|
# @override
|
1092
1041
|
def schema
|
1093
|
-
'
|
1042
|
+
'CreateTopic'
|
1094
1043
|
end
|
1095
1044
|
|
1096
1045
|
# @override
|
1097
1046
|
def namespace
|
1098
|
-
'com.my-namespace'
|
1047
|
+
'com.my-namespace.request'
|
1099
1048
|
end
|
1100
1049
|
|
1101
1050
|
# @override
|
1102
1051
|
def as_json(_opts={})
|
1103
1052
|
{
|
1104
|
-
'
|
1105
|
-
'widget_id' => @widget_id,
|
1106
|
-
'name' => @name,
|
1107
|
-
'updated_at' => @updated_at,
|
1108
|
-
'created_at' => @created_at
|
1053
|
+
'request_id' => @request_id
|
1109
1054
|
}
|
1110
1055
|
end
|
1111
1056
|
end
|
1112
|
-
end; end
|
1057
|
+
end; end; end; end
|
1113
1058
|
|
1114
1059
|
|
1115
|
-
spec/app/lib/schema_classes/my_namespace/
|
1060
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/request/index.rb:
|
1116
1061
|
# frozen_string_literal: true
|
1117
1062
|
|
1118
1063
|
# This file is autogenerated by Deimos, Do NOT modify
|
1119
|
-
module Schemas; module MyNamespace
|
1064
|
+
module Schemas; module Com; module MyNamespace; module Request
|
1120
1065
|
### Primary Schema Class ###
|
1121
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1122
|
-
class
|
1066
|
+
# Autogenerated Schema for Record at com.my-namespace.request.Index
|
1067
|
+
class Index < Deimos::SchemaClass::Record
|
1123
1068
|
|
1124
1069
|
### Attribute Accessors ###
|
1125
|
-
# @return [Integer]
|
1126
|
-
attr_accessor :id
|
1127
|
-
# @return [Integer]
|
1128
|
-
attr_accessor :widget_id
|
1129
1070
|
# @return [String]
|
1130
|
-
attr_accessor :
|
1131
|
-
# @return [Integer]
|
1132
|
-
attr_accessor :updated_at
|
1133
|
-
# @return [Integer]
|
1134
|
-
attr_accessor :created_at
|
1071
|
+
attr_accessor :request_id
|
1135
1072
|
|
1136
1073
|
# @override
|
1137
|
-
def initialize(
|
1138
|
-
widget_id: nil,
|
1139
|
-
model_id: nil,
|
1140
|
-
updated_at: nil,
|
1141
|
-
created_at: nil)
|
1074
|
+
def initialize(request_id: nil)
|
1142
1075
|
super
|
1143
|
-
self.
|
1144
|
-
self.widget_id = widget_id
|
1145
|
-
self.model_id = model_id
|
1146
|
-
self.updated_at = updated_at
|
1147
|
-
self.created_at = created_at
|
1076
|
+
self.request_id = request_id
|
1148
1077
|
end
|
1149
1078
|
|
1150
1079
|
# @override
|
1151
1080
|
def schema
|
1152
|
-
'
|
1081
|
+
'Index'
|
1153
1082
|
end
|
1154
1083
|
|
1155
1084
|
# @override
|
1156
1085
|
def namespace
|
1157
|
-
'com.my-namespace'
|
1086
|
+
'com.my-namespace.request'
|
1158
1087
|
end
|
1159
1088
|
|
1160
1089
|
# @override
|
1161
1090
|
def as_json(_opts={})
|
1162
1091
|
{
|
1163
|
-
'
|
1164
|
-
'widget_id' => @widget_id,
|
1165
|
-
'model_id' => @model_id,
|
1166
|
-
'updated_at' => @updated_at,
|
1167
|
-
'created_at' => @created_at
|
1092
|
+
'request_id' => @request_id
|
1168
1093
|
}
|
1169
1094
|
end
|
1170
1095
|
end
|
1171
|
-
end; end
|
1096
|
+
end; end; end; end
|
1172
1097
|
|
1173
1098
|
|
1174
|
-
spec/app/lib/schema_classes/request/
|
1099
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/request/update_request.rb:
|
1175
1100
|
# frozen_string_literal: true
|
1176
1101
|
|
1177
1102
|
# This file is autogenerated by Deimos, Do NOT modify
|
1178
|
-
module Schemas; module Request
|
1103
|
+
module Schemas; module Com; module MyNamespace; module Request
|
1179
1104
|
### Primary Schema Class ###
|
1180
|
-
# Autogenerated Schema for Record at com.my-namespace.request.
|
1105
|
+
# Autogenerated Schema for Record at com.my-namespace.request.UpdateRequest
|
1106
|
+
class UpdateRequest < Deimos::SchemaClass::Record
|
1107
|
+
|
1108
|
+
### Attribute Accessors ###
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :update_request_id
|
1111
|
+
|
1112
|
+
# @override
|
1113
|
+
def initialize(update_request_id: nil)
|
1114
|
+
super
|
1115
|
+
self.update_request_id = update_request_id
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
# @override
|
1119
|
+
def schema
|
1120
|
+
'UpdateRequest'
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
# @override
|
1124
|
+
def namespace
|
1125
|
+
'com.my-namespace.request'
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# @override
|
1129
|
+
def as_json(_opts={})
|
1130
|
+
{
|
1131
|
+
'update_request_id' => @update_request_id
|
1132
|
+
}
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
end; end; end; end
|
1136
|
+
|
1137
|
+
|
1138
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/response/create_topic.rb:
|
1139
|
+
# frozen_string_literal: true
|
1140
|
+
|
1141
|
+
# This file is autogenerated by Deimos, Do NOT modify
|
1142
|
+
module Schemas; module Com; module MyNamespace; module Response
|
1143
|
+
### Primary Schema Class ###
|
1144
|
+
# Autogenerated Schema for Record at com.my-namespace.response.CreateTopic
|
1181
1145
|
class CreateTopic < Deimos::SchemaClass::Record
|
1182
1146
|
|
1183
1147
|
### Attribute Accessors ###
|
1184
1148
|
# @return [String]
|
1185
|
-
attr_accessor :
|
1149
|
+
attr_accessor :response_id
|
1186
1150
|
|
1187
1151
|
# @override
|
1188
|
-
def initialize(
|
1152
|
+
def initialize(response_id: nil)
|
1189
1153
|
super
|
1190
|
-
self.
|
1154
|
+
self.response_id = response_id
|
1191
1155
|
end
|
1192
1156
|
|
1193
1157
|
# @override
|
@@ -1197,36 +1161,36 @@ module Schemas; module Request
|
|
1197
1161
|
|
1198
1162
|
# @override
|
1199
1163
|
def namespace
|
1200
|
-
'com.my-namespace.
|
1164
|
+
'com.my-namespace.response'
|
1201
1165
|
end
|
1202
1166
|
|
1203
1167
|
# @override
|
1204
1168
|
def as_json(_opts={})
|
1205
1169
|
{
|
1206
|
-
'
|
1170
|
+
'response_id' => @response_id
|
1207
1171
|
}
|
1208
1172
|
end
|
1209
1173
|
end
|
1210
|
-
end; end
|
1174
|
+
end; end; end; end
|
1211
1175
|
|
1212
1176
|
|
1213
|
-
spec/app/lib/schema_classes/
|
1177
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/response/index.rb:
|
1214
1178
|
# frozen_string_literal: true
|
1215
1179
|
|
1216
1180
|
# This file is autogenerated by Deimos, Do NOT modify
|
1217
|
-
module Schemas; module
|
1181
|
+
module Schemas; module Com; module MyNamespace; module Response
|
1218
1182
|
### Primary Schema Class ###
|
1219
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1183
|
+
# Autogenerated Schema for Record at com.my-namespace.response.Index
|
1220
1184
|
class Index < Deimos::SchemaClass::Record
|
1221
1185
|
|
1222
1186
|
### Attribute Accessors ###
|
1223
1187
|
# @return [String]
|
1224
|
-
attr_accessor :
|
1188
|
+
attr_accessor :response_id
|
1225
1189
|
|
1226
1190
|
# @override
|
1227
|
-
def initialize(
|
1191
|
+
def initialize(response_id: nil)
|
1228
1192
|
super
|
1229
|
-
self.
|
1193
|
+
self.response_id = response_id
|
1230
1194
|
end
|
1231
1195
|
|
1232
1196
|
# @override
|
@@ -1236,171 +1200,251 @@ module Schemas; module Request
|
|
1236
1200
|
|
1237
1201
|
# @override
|
1238
1202
|
def namespace
|
1239
|
-
'com.my-namespace.
|
1203
|
+
'com.my-namespace.response'
|
1240
1204
|
end
|
1241
1205
|
|
1242
1206
|
# @override
|
1243
1207
|
def as_json(_opts={})
|
1244
1208
|
{
|
1245
|
-
'
|
1209
|
+
'response_id' => @response_id
|
1246
1210
|
}
|
1247
1211
|
end
|
1248
1212
|
end
|
1249
|
-
end; end
|
1213
|
+
end; end; end; end
|
1250
1214
|
|
1251
1215
|
|
1252
|
-
spec/app/lib/schema_classes/
|
1216
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/response/update_response.rb:
|
1253
1217
|
# frozen_string_literal: true
|
1254
1218
|
|
1255
1219
|
# This file is autogenerated by Deimos, Do NOT modify
|
1256
|
-
module Schemas; module
|
1220
|
+
module Schemas; module Com; module MyNamespace; module Response
|
1257
1221
|
### Primary Schema Class ###
|
1258
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1259
|
-
class
|
1222
|
+
# Autogenerated Schema for Record at com.my-namespace.response.UpdateResponse
|
1223
|
+
class UpdateResponse < Deimos::SchemaClass::Record
|
1260
1224
|
|
1261
1225
|
### Attribute Accessors ###
|
1262
1226
|
# @return [String]
|
1263
|
-
attr_accessor :
|
1227
|
+
attr_accessor :update_response_id
|
1264
1228
|
|
1265
1229
|
# @override
|
1266
|
-
def initialize(
|
1230
|
+
def initialize(update_response_id: nil)
|
1267
1231
|
super
|
1268
|
-
self.
|
1232
|
+
self.update_response_id = update_response_id
|
1269
1233
|
end
|
1270
1234
|
|
1271
1235
|
# @override
|
1272
1236
|
def schema
|
1273
|
-
'
|
1237
|
+
'UpdateResponse'
|
1274
1238
|
end
|
1275
1239
|
|
1276
1240
|
# @override
|
1277
1241
|
def namespace
|
1278
|
-
'com.my-namespace.
|
1242
|
+
'com.my-namespace.response'
|
1279
1243
|
end
|
1280
1244
|
|
1281
1245
|
# @override
|
1282
1246
|
def as_json(_opts={})
|
1283
1247
|
{
|
1284
|
-
'
|
1248
|
+
'update_response_id' => @update_response_id
|
1285
1249
|
}
|
1286
1250
|
end
|
1287
1251
|
end
|
1288
|
-
end; end
|
1252
|
+
end; end; end; end
|
1289
1253
|
|
1290
1254
|
|
1291
|
-
spec/app/lib/schema_classes/
|
1255
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/wibble.rb:
|
1292
1256
|
# frozen_string_literal: true
|
1293
1257
|
|
1294
1258
|
# This file is autogenerated by Deimos, Do NOT modify
|
1295
|
-
module Schemas; module
|
1259
|
+
module Schemas; module Com; module MyNamespace
|
1296
1260
|
### Primary Schema Class ###
|
1297
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1298
|
-
class
|
1261
|
+
# Autogenerated Schema for Record at com.my-namespace.Wibble
|
1262
|
+
class Wibble < Deimos::SchemaClass::Record
|
1299
1263
|
|
1300
1264
|
### Attribute Accessors ###
|
1265
|
+
# @return [Integer]
|
1266
|
+
attr_accessor :id
|
1267
|
+
# @return [Integer]
|
1268
|
+
attr_accessor :wibble_id
|
1301
1269
|
# @return [String]
|
1302
|
-
attr_accessor :
|
1270
|
+
attr_accessor :name
|
1271
|
+
# @return [String]
|
1272
|
+
attr_accessor :floop
|
1273
|
+
# @return [Integer]
|
1274
|
+
attr_accessor :birthday_int
|
1275
|
+
# @return [Integer]
|
1276
|
+
attr_accessor :birthday_long
|
1277
|
+
# @return [nil, Integer]
|
1278
|
+
attr_accessor :birthday_optional
|
1279
|
+
# @return [Integer]
|
1280
|
+
attr_accessor :updated_at
|
1281
|
+
# @return [Integer]
|
1282
|
+
attr_accessor :created_at
|
1303
1283
|
|
1304
1284
|
# @override
|
1305
|
-
def initialize(
|
1285
|
+
def initialize(id: nil,
|
1286
|
+
wibble_id: nil,
|
1287
|
+
name: nil,
|
1288
|
+
floop: nil,
|
1289
|
+
birthday_int: nil,
|
1290
|
+
birthday_long: nil,
|
1291
|
+
birthday_optional: nil,
|
1292
|
+
updated_at: nil,
|
1293
|
+
created_at: nil)
|
1306
1294
|
super
|
1307
|
-
self.
|
1295
|
+
self.id = id
|
1296
|
+
self.wibble_id = wibble_id
|
1297
|
+
self.name = name
|
1298
|
+
self.floop = floop
|
1299
|
+
self.birthday_int = birthday_int
|
1300
|
+
self.birthday_long = birthday_long
|
1301
|
+
self.birthday_optional = birthday_optional
|
1302
|
+
self.updated_at = updated_at
|
1303
|
+
self.created_at = created_at
|
1308
1304
|
end
|
1309
1305
|
|
1310
1306
|
# @override
|
1311
1307
|
def schema
|
1312
|
-
'
|
1308
|
+
'Wibble'
|
1313
1309
|
end
|
1314
1310
|
|
1315
1311
|
# @override
|
1316
1312
|
def namespace
|
1317
|
-
'com.my-namespace
|
1313
|
+
'com.my-namespace'
|
1318
1314
|
end
|
1319
1315
|
|
1320
1316
|
# @override
|
1321
1317
|
def as_json(_opts={})
|
1322
1318
|
{
|
1323
|
-
'
|
1319
|
+
'id' => @id,
|
1320
|
+
'wibble_id' => @wibble_id,
|
1321
|
+
'name' => @name,
|
1322
|
+
'floop' => @floop,
|
1323
|
+
'birthday_int' => @birthday_int,
|
1324
|
+
'birthday_long' => @birthday_long,
|
1325
|
+
'birthday_optional' => @birthday_optional,
|
1326
|
+
'updated_at' => @updated_at,
|
1327
|
+
'created_at' => @created_at
|
1324
1328
|
}
|
1325
1329
|
end
|
1326
1330
|
end
|
1327
|
-
end; end
|
1331
|
+
end; end; end
|
1328
1332
|
|
1329
1333
|
|
1330
|
-
spec/app/lib/schema_classes/
|
1334
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/widget.rb:
|
1331
1335
|
# frozen_string_literal: true
|
1332
1336
|
|
1333
1337
|
# This file is autogenerated by Deimos, Do NOT modify
|
1334
|
-
module Schemas; module
|
1338
|
+
module Schemas; module Com; module MyNamespace
|
1335
1339
|
### Primary Schema Class ###
|
1336
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1337
|
-
class
|
1340
|
+
# Autogenerated Schema for Record at com.my-namespace.Widget
|
1341
|
+
class Widget < Deimos::SchemaClass::Record
|
1338
1342
|
|
1339
1343
|
### Attribute Accessors ###
|
1344
|
+
# @return [Integer]
|
1345
|
+
attr_accessor :id
|
1346
|
+
# @return [Integer]
|
1347
|
+
attr_accessor :widget_id
|
1340
1348
|
# @return [String]
|
1341
|
-
attr_accessor :
|
1349
|
+
attr_accessor :name
|
1350
|
+
# @return [Integer]
|
1351
|
+
attr_accessor :updated_at
|
1352
|
+
# @return [Integer]
|
1353
|
+
attr_accessor :created_at
|
1342
1354
|
|
1343
1355
|
# @override
|
1344
|
-
def initialize(
|
1356
|
+
def initialize(id: nil,
|
1357
|
+
widget_id: nil,
|
1358
|
+
name: nil,
|
1359
|
+
updated_at: nil,
|
1360
|
+
created_at: nil)
|
1345
1361
|
super
|
1346
|
-
self.
|
1362
|
+
self.id = id
|
1363
|
+
self.widget_id = widget_id
|
1364
|
+
self.name = name
|
1365
|
+
self.updated_at = updated_at
|
1366
|
+
self.created_at = created_at
|
1347
1367
|
end
|
1348
1368
|
|
1349
1369
|
# @override
|
1350
1370
|
def schema
|
1351
|
-
'
|
1371
|
+
'Widget'
|
1352
1372
|
end
|
1353
1373
|
|
1354
1374
|
# @override
|
1355
1375
|
def namespace
|
1356
|
-
'com.my-namespace
|
1376
|
+
'com.my-namespace'
|
1357
1377
|
end
|
1358
1378
|
|
1359
1379
|
# @override
|
1360
1380
|
def as_json(_opts={})
|
1361
1381
|
{
|
1362
|
-
'
|
1382
|
+
'id' => @id,
|
1383
|
+
'widget_id' => @widget_id,
|
1384
|
+
'name' => @name,
|
1385
|
+
'updated_at' => @updated_at,
|
1386
|
+
'created_at' => @created_at
|
1363
1387
|
}
|
1364
1388
|
end
|
1365
1389
|
end
|
1366
|
-
end; end
|
1390
|
+
end; end; end
|
1367
1391
|
|
1368
1392
|
|
1369
|
-
spec/app/lib/schema_classes/
|
1393
|
+
spec/app/lib/schema_classes/schemas/com/my_namespace/widget_the_second.rb:
|
1370
1394
|
# frozen_string_literal: true
|
1371
1395
|
|
1372
1396
|
# This file is autogenerated by Deimos, Do NOT modify
|
1373
|
-
module Schemas; module
|
1397
|
+
module Schemas; module Com; module MyNamespace
|
1374
1398
|
### Primary Schema Class ###
|
1375
|
-
# Autogenerated Schema for Record at com.my-namespace.
|
1376
|
-
class
|
1399
|
+
# Autogenerated Schema for Record at com.my-namespace.WidgetTheSecond
|
1400
|
+
class WidgetTheSecond < Deimos::SchemaClass::Record
|
1377
1401
|
|
1378
1402
|
### Attribute Accessors ###
|
1403
|
+
# @return [Integer]
|
1404
|
+
attr_accessor :id
|
1405
|
+
# @return [Integer]
|
1406
|
+
attr_accessor :widget_id
|
1379
1407
|
# @return [String]
|
1380
|
-
attr_accessor :
|
1408
|
+
attr_accessor :model_id
|
1409
|
+
# @return [Integer]
|
1410
|
+
attr_accessor :updated_at
|
1411
|
+
# @return [Integer]
|
1412
|
+
attr_accessor :created_at
|
1381
1413
|
|
1382
1414
|
# @override
|
1383
|
-
def initialize(
|
1415
|
+
def initialize(id: nil,
|
1416
|
+
widget_id: nil,
|
1417
|
+
model_id: nil,
|
1418
|
+
updated_at: nil,
|
1419
|
+
created_at: nil)
|
1384
1420
|
super
|
1385
|
-
self.
|
1421
|
+
self.id = id
|
1422
|
+
self.widget_id = widget_id
|
1423
|
+
self.model_id = model_id
|
1424
|
+
self.updated_at = updated_at
|
1425
|
+
self.created_at = created_at
|
1386
1426
|
end
|
1387
1427
|
|
1388
1428
|
# @override
|
1389
1429
|
def schema
|
1390
|
-
'
|
1430
|
+
'WidgetTheSecond'
|
1391
1431
|
end
|
1392
1432
|
|
1393
1433
|
# @override
|
1394
1434
|
def namespace
|
1395
|
-
'com.my-namespace
|
1435
|
+
'com.my-namespace'
|
1396
1436
|
end
|
1397
1437
|
|
1398
1438
|
# @override
|
1399
1439
|
def as_json(_opts={})
|
1400
1440
|
{
|
1401
|
-
'
|
1441
|
+
'id' => @id,
|
1442
|
+
'widget_id' => @widget_id,
|
1443
|
+
'model_id' => @model_id,
|
1444
|
+
'updated_at' => @updated_at,
|
1445
|
+
'created_at' => @created_at
|
1402
1446
|
}
|
1403
1447
|
end
|
1404
1448
|
end
|
1405
|
-
end; end
|
1449
|
+
end; end; end
|
1406
1450
|
|