ftc_api_v3_client 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/config.json +1 -1
- data/ftc_api_v3_client-0.1.0.gem +0 -0
- data/ftc_api_v3_client-0.1.1.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +0 -104
- data/lib/ftc_api_v3_client/api/leagues_api.rb +0 -56
- data/lib/ftc_api_v3_client/api/regions_api.rb +0 -28
- data/lib/ftc_api_v3_client/api/seasons_api.rb +0 -4
- data/lib/ftc_api_v3_client/api/teams_api.rb +0 -28
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +2 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +3 -30
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +17 -120
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +3 -15
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +4 -60
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +4 -60
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +6 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +2 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +2 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +15 -120
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +9 -60
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +7 -60
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/version.rb +1 -1
- data/update.sh +1 -1
- metadata +3 -1
|
@@ -82,6 +82,13 @@ module FtcApiV3Client
|
|
|
82
82
|
# List of attributes with nullable: true
|
|
83
83
|
def self.openapi_nullable
|
|
84
84
|
Set.new([
|
|
85
|
+
:'number',
|
|
86
|
+
:'name',
|
|
87
|
+
:'affiliations',
|
|
88
|
+
:'city',
|
|
89
|
+
:'state_prov',
|
|
90
|
+
:'country',
|
|
91
|
+
:'display_number',
|
|
85
92
|
])
|
|
86
93
|
end
|
|
87
94
|
|
|
@@ -161,18 +168,6 @@ module FtcApiV3Client
|
|
|
161
168
|
def list_invalid_properties
|
|
162
169
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
163
170
|
invalid_properties = Array.new
|
|
164
|
-
if @number.nil?
|
|
165
|
-
invalid_properties.push('invalid value for "number", number cannot be nil.')
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
if @name.nil?
|
|
169
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if @affiliations.nil?
|
|
173
|
-
invalid_properties.push('invalid value for "affiliations", affiliations cannot be nil.')
|
|
174
|
-
end
|
|
175
|
-
|
|
176
171
|
if @rookie_cmp_year.nil?
|
|
177
172
|
invalid_properties.push('invalid value for "rookie_cmp_year", rookie_cmp_year cannot be nil.')
|
|
178
173
|
end
|
|
@@ -181,10 +176,6 @@ module FtcApiV3Client
|
|
|
181
176
|
invalid_properties.push('invalid value for "seasons", seasons cannot be nil.')
|
|
182
177
|
end
|
|
183
178
|
|
|
184
|
-
if @display_number.nil?
|
|
185
|
-
invalid_properties.push('invalid value for "display_number", display_number cannot be nil.')
|
|
186
|
-
end
|
|
187
|
-
|
|
188
179
|
invalid_properties
|
|
189
180
|
end
|
|
190
181
|
|
|
@@ -192,45 +183,11 @@ module FtcApiV3Client
|
|
|
192
183
|
# @return true if the model is valid
|
|
193
184
|
def valid?
|
|
194
185
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
195
|
-
return false if @number.nil?
|
|
196
|
-
return false if @name.nil?
|
|
197
|
-
return false if @affiliations.nil?
|
|
198
186
|
return false if @rookie_cmp_year.nil?
|
|
199
187
|
return false if @seasons.nil?
|
|
200
|
-
return false if @display_number.nil?
|
|
201
188
|
true
|
|
202
189
|
end
|
|
203
190
|
|
|
204
|
-
# Custom attribute writer method with validation
|
|
205
|
-
# @param [Object] number Value to be assigned
|
|
206
|
-
def number=(number)
|
|
207
|
-
if number.nil?
|
|
208
|
-
fail ArgumentError, 'number cannot be nil'
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
@number = number
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# Custom attribute writer method with validation
|
|
215
|
-
# @param [Object] name Value to be assigned
|
|
216
|
-
def name=(name)
|
|
217
|
-
if name.nil?
|
|
218
|
-
fail ArgumentError, 'name cannot be nil'
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
@name = name
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# Custom attribute writer method with validation
|
|
225
|
-
# @param [Object] affiliations Value to be assigned
|
|
226
|
-
def affiliations=(affiliations)
|
|
227
|
-
if affiliations.nil?
|
|
228
|
-
fail ArgumentError, 'affiliations cannot be nil'
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
@affiliations = affiliations
|
|
232
|
-
end
|
|
233
|
-
|
|
234
191
|
# Custom attribute writer method with validation
|
|
235
192
|
# @param [Object] rookie_cmp_year Value to be assigned
|
|
236
193
|
def rookie_cmp_year=(rookie_cmp_year)
|
|
@@ -251,16 +208,6 @@ module FtcApiV3Client
|
|
|
251
208
|
@seasons = seasons
|
|
252
209
|
end
|
|
253
210
|
|
|
254
|
-
# Custom attribute writer method with validation
|
|
255
|
-
# @param [Object] display_number Value to be assigned
|
|
256
|
-
def display_number=(display_number)
|
|
257
|
-
if display_number.nil?
|
|
258
|
-
fail ArgumentError, 'display_number cannot be nil'
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
@display_number = display_number
|
|
262
|
-
end
|
|
263
|
-
|
|
264
211
|
# Checks equality by comparing each attribute.
|
|
265
212
|
# @param [Object] Object to be compared
|
|
266
213
|
def ==(o)
|
|
@@ -150,6 +150,8 @@ module FtcApiV3Client
|
|
|
150
150
|
# List of attributes with nullable: true
|
|
151
151
|
def self.openapi_nullable
|
|
152
152
|
Set.new([
|
|
153
|
+
:'wobble1_end',
|
|
154
|
+
:'wobble2_end',
|
|
153
155
|
])
|
|
154
156
|
end
|
|
155
157
|
|
|
@@ -359,14 +361,6 @@ module FtcApiV3Client
|
|
|
359
361
|
invalid_properties.push('invalid value for "dc_tower_high", dc_tower_high cannot be nil.')
|
|
360
362
|
end
|
|
361
363
|
|
|
362
|
-
if @wobble1_end.nil?
|
|
363
|
-
invalid_properties.push('invalid value for "wobble1_end", wobble1_end cannot be nil.')
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
if @wobble2_end.nil?
|
|
367
|
-
invalid_properties.push('invalid value for "wobble2_end", wobble2_end cannot be nil.')
|
|
368
|
-
end
|
|
369
|
-
|
|
370
364
|
if @wobble1_rings.nil?
|
|
371
365
|
invalid_properties.push('invalid value for "wobble1_rings", wobble1_rings cannot be nil.')
|
|
372
366
|
end
|
|
@@ -415,8 +409,6 @@ module FtcApiV3Client
|
|
|
415
409
|
return false if @dc_tower_low.nil?
|
|
416
410
|
return false if @dc_tower_mid.nil?
|
|
417
411
|
return false if @dc_tower_high.nil?
|
|
418
|
-
return false if @wobble1_end.nil?
|
|
419
|
-
return false if @wobble2_end.nil?
|
|
420
412
|
return false if @wobble1_rings.nil?
|
|
421
413
|
return false if @wobble2_rings.nil?
|
|
422
414
|
return false if @end_power_shot_left.nil?
|
|
@@ -557,26 +549,6 @@ module FtcApiV3Client
|
|
|
557
549
|
@dc_tower_high = dc_tower_high
|
|
558
550
|
end
|
|
559
551
|
|
|
560
|
-
# Custom attribute writer method with validation
|
|
561
|
-
# @param [Object] wobble1_end Value to be assigned
|
|
562
|
-
def wobble1_end=(wobble1_end)
|
|
563
|
-
if wobble1_end.nil?
|
|
564
|
-
fail ArgumentError, 'wobble1_end cannot be nil'
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
@wobble1_end = wobble1_end
|
|
568
|
-
end
|
|
569
|
-
|
|
570
|
-
# Custom attribute writer method with validation
|
|
571
|
-
# @param [Object] wobble2_end Value to be assigned
|
|
572
|
-
def wobble2_end=(wobble2_end)
|
|
573
|
-
if wobble2_end.nil?
|
|
574
|
-
fail ArgumentError, 'wobble2_end cannot be nil'
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
@wobble2_end = wobble2_end
|
|
578
|
-
end
|
|
579
|
-
|
|
580
552
|
# Custom attribute writer method with validation
|
|
581
553
|
# @param [Object] wobble1_rings Value to be assigned
|
|
582
554
|
def wobble1_rings=(wobble1_rings)
|
|
@@ -146,6 +146,8 @@ module FtcApiV3Client
|
|
|
146
146
|
# List of attributes with nullable: true
|
|
147
147
|
def self.openapi_nullable
|
|
148
148
|
Set.new([
|
|
149
|
+
:'wobble1_end',
|
|
150
|
+
:'wobble2_end',
|
|
149
151
|
])
|
|
150
152
|
end
|
|
151
153
|
|
|
@@ -345,14 +347,6 @@ module FtcApiV3Client
|
|
|
345
347
|
invalid_properties.push('invalid value for "dc_tower_high", dc_tower_high cannot be nil.')
|
|
346
348
|
end
|
|
347
349
|
|
|
348
|
-
if @wobble1_end.nil?
|
|
349
|
-
invalid_properties.push('invalid value for "wobble1_end", wobble1_end cannot be nil.')
|
|
350
|
-
end
|
|
351
|
-
|
|
352
|
-
if @wobble2_end.nil?
|
|
353
|
-
invalid_properties.push('invalid value for "wobble2_end", wobble2_end cannot be nil.')
|
|
354
|
-
end
|
|
355
|
-
|
|
356
350
|
if @wobble1_rings.nil?
|
|
357
351
|
invalid_properties.push('invalid value for "wobble1_rings", wobble1_rings cannot be nil.')
|
|
358
352
|
end
|
|
@@ -400,8 +394,6 @@ module FtcApiV3Client
|
|
|
400
394
|
return false if @dc_tower_low.nil?
|
|
401
395
|
return false if @dc_tower_mid.nil?
|
|
402
396
|
return false if @dc_tower_high.nil?
|
|
403
|
-
return false if @wobble1_end.nil?
|
|
404
|
-
return false if @wobble2_end.nil?
|
|
405
397
|
return false if @wobble1_rings.nil?
|
|
406
398
|
return false if @wobble2_rings.nil?
|
|
407
399
|
return false if @end_power_shot_left.nil?
|
|
@@ -532,26 +524,6 @@ module FtcApiV3Client
|
|
|
532
524
|
@dc_tower_high = dc_tower_high
|
|
533
525
|
end
|
|
534
526
|
|
|
535
|
-
# Custom attribute writer method with validation
|
|
536
|
-
# @param [Object] wobble1_end Value to be assigned
|
|
537
|
-
def wobble1_end=(wobble1_end)
|
|
538
|
-
if wobble1_end.nil?
|
|
539
|
-
fail ArgumentError, 'wobble1_end cannot be nil'
|
|
540
|
-
end
|
|
541
|
-
|
|
542
|
-
@wobble1_end = wobble1_end
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
# Custom attribute writer method with validation
|
|
546
|
-
# @param [Object] wobble2_end Value to be assigned
|
|
547
|
-
def wobble2_end=(wobble2_end)
|
|
548
|
-
if wobble2_end.nil?
|
|
549
|
-
fail ArgumentError, 'wobble2_end cannot be nil'
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
@wobble2_end = wobble2_end
|
|
553
|
-
end
|
|
554
|
-
|
|
555
527
|
# Custom attribute writer method with validation
|
|
556
528
|
# @param [Object] wobble1_rings Value to be assigned
|
|
557
529
|
def wobble1_rings=(wobble1_rings)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @achievements.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "achievements", achievements cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @achievements.nil?
|
|
120
116
|
return false if @points.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] achievements Value to be assigned
|
|
136
122
|
def achievements=(achievements)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @achievements.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "achievements", achievements cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @achievements.nil?
|
|
120
116
|
return false if @points.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] achievements Value to be assigned
|
|
136
122
|
def achievements=(achievements)
|
data/update.sh
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
openapi-generator generate -i https://ftc-scoring.firstinspires.org/api-docs/openapi.json -g ruby -c config.json
|
|
1
|
+
openapi-generator generate -i https://ftc-scoring.firstinspires.org/api-docs/openapi.json -g ruby -c config.json --openapi-normalizer SET_PRIMITIVE_TYPES_TO_NULLABLE="string"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ftc_api_v3_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -194,6 +194,8 @@ files:
|
|
|
194
194
|
- docs/RegionsApi.md
|
|
195
195
|
- docs/SeasonsApi.md
|
|
196
196
|
- docs/TeamsApi.md
|
|
197
|
+
- ftc_api_v3_client-0.1.0.gem
|
|
198
|
+
- ftc_api_v3_client-0.1.1.gem
|
|
197
199
|
- ftc_api_v3_client.gemspec
|
|
198
200
|
- git_push.sh
|
|
199
201
|
- lib/ftc_api_v3_client.rb
|