ftc_api_v3_client 0.1.1 → 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.1.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +3 -103
- 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 +16 -1
- 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 +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +31 -2
- 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 -1
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +9 -9
- 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 +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +240 -16
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +129 -17
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +93 -23
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +180 -12
- 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 +34 -19
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +32 -122
- 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 +185 -59
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +285 -19
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +175 -35
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +240 -16
- 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 +156 -44
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +195 -13
- 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.rb +60 -4
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +66 -5
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +17 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +90 -6
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +33 -19
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +107 -7
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +121 -8
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +210 -14
- 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_ranking.rb +90 -6
- 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 +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +11 -39
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +10 -24
- 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 -31
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +165 -11
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +225 -15
- 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 +17 -54
- 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 +15 -54
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +210 -14
- 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 +2 -1
|
@@ -101,21 +101,6 @@ module FtcApiV3Client
|
|
|
101
101
|
# List of attributes with nullable: true
|
|
102
102
|
def self.openapi_nullable
|
|
103
103
|
Set.new([
|
|
104
|
-
:'auto_navigation_points',
|
|
105
|
-
:'signal_bonus_points',
|
|
106
|
-
:'auto_junction_cone_points',
|
|
107
|
-
:'auto_terminal_cone_points',
|
|
108
|
-
:'dc_junction_cone_points',
|
|
109
|
-
:'dc_terminal_cone_points',
|
|
110
|
-
:'ownership_points',
|
|
111
|
-
:'circuit_points',
|
|
112
|
-
:'eg_navigation_points',
|
|
113
|
-
:'auto_points',
|
|
114
|
-
:'dc_points',
|
|
115
|
-
:'endgame_points',
|
|
116
|
-
:'penalty_points_committed',
|
|
117
|
-
:'pre_penalty_total',
|
|
118
|
-
:'adjust_points'
|
|
119
104
|
])
|
|
120
105
|
end
|
|
121
106
|
|
|
@@ -231,6 +216,66 @@ module FtcApiV3Client
|
|
|
231
216
|
def list_invalid_properties
|
|
232
217
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
233
218
|
invalid_properties = Array.new
|
|
219
|
+
if @auto_navigation_points.nil?
|
|
220
|
+
invalid_properties.push('invalid value for "auto_navigation_points", auto_navigation_points cannot be nil.')
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if @signal_bonus_points.nil?
|
|
224
|
+
invalid_properties.push('invalid value for "signal_bonus_points", signal_bonus_points cannot be nil.')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if @auto_junction_cone_points.nil?
|
|
228
|
+
invalid_properties.push('invalid value for "auto_junction_cone_points", auto_junction_cone_points cannot be nil.')
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if @auto_terminal_cone_points.nil?
|
|
232
|
+
invalid_properties.push('invalid value for "auto_terminal_cone_points", auto_terminal_cone_points cannot be nil.')
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if @dc_junction_cone_points.nil?
|
|
236
|
+
invalid_properties.push('invalid value for "dc_junction_cone_points", dc_junction_cone_points cannot be nil.')
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if @dc_terminal_cone_points.nil?
|
|
240
|
+
invalid_properties.push('invalid value for "dc_terminal_cone_points", dc_terminal_cone_points cannot be nil.')
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if @ownership_points.nil?
|
|
244
|
+
invalid_properties.push('invalid value for "ownership_points", ownership_points cannot be nil.')
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if @circuit_points.nil?
|
|
248
|
+
invalid_properties.push('invalid value for "circuit_points", circuit_points cannot be nil.')
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if @eg_navigation_points.nil?
|
|
252
|
+
invalid_properties.push('invalid value for "eg_navigation_points", eg_navigation_points cannot be nil.')
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if @auto_points.nil?
|
|
256
|
+
invalid_properties.push('invalid value for "auto_points", auto_points cannot be nil.')
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if @dc_points.nil?
|
|
260
|
+
invalid_properties.push('invalid value for "dc_points", dc_points cannot be nil.')
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if @endgame_points.nil?
|
|
264
|
+
invalid_properties.push('invalid value for "endgame_points", endgame_points cannot be nil.')
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if @penalty_points_committed.nil?
|
|
268
|
+
invalid_properties.push('invalid value for "penalty_points_committed", penalty_points_committed cannot be nil.')
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if @pre_penalty_total.nil?
|
|
272
|
+
invalid_properties.push('invalid value for "pre_penalty_total", pre_penalty_total cannot be nil.')
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if @adjust_points.nil?
|
|
276
|
+
invalid_properties.push('invalid value for "adjust_points", adjust_points cannot be nil.')
|
|
277
|
+
end
|
|
278
|
+
|
|
234
279
|
invalid_properties
|
|
235
280
|
end
|
|
236
281
|
|
|
@@ -238,9 +283,174 @@ module FtcApiV3Client
|
|
|
238
283
|
# @return true if the model is valid
|
|
239
284
|
def valid?
|
|
240
285
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
286
|
+
return false if @auto_navigation_points.nil?
|
|
287
|
+
return false if @signal_bonus_points.nil?
|
|
288
|
+
return false if @auto_junction_cone_points.nil?
|
|
289
|
+
return false if @auto_terminal_cone_points.nil?
|
|
290
|
+
return false if @dc_junction_cone_points.nil?
|
|
291
|
+
return false if @dc_terminal_cone_points.nil?
|
|
292
|
+
return false if @ownership_points.nil?
|
|
293
|
+
return false if @circuit_points.nil?
|
|
294
|
+
return false if @eg_navigation_points.nil?
|
|
295
|
+
return false if @auto_points.nil?
|
|
296
|
+
return false if @dc_points.nil?
|
|
297
|
+
return false if @endgame_points.nil?
|
|
298
|
+
return false if @penalty_points_committed.nil?
|
|
299
|
+
return false if @pre_penalty_total.nil?
|
|
300
|
+
return false if @adjust_points.nil?
|
|
241
301
|
true
|
|
242
302
|
end
|
|
243
303
|
|
|
304
|
+
# Custom attribute writer method with validation
|
|
305
|
+
# @param [Object] auto_navigation_points Value to be assigned
|
|
306
|
+
def auto_navigation_points=(auto_navigation_points)
|
|
307
|
+
if auto_navigation_points.nil?
|
|
308
|
+
fail ArgumentError, 'auto_navigation_points cannot be nil'
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
@auto_navigation_points = auto_navigation_points
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Custom attribute writer method with validation
|
|
315
|
+
# @param [Object] signal_bonus_points Value to be assigned
|
|
316
|
+
def signal_bonus_points=(signal_bonus_points)
|
|
317
|
+
if signal_bonus_points.nil?
|
|
318
|
+
fail ArgumentError, 'signal_bonus_points cannot be nil'
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
@signal_bonus_points = signal_bonus_points
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Custom attribute writer method with validation
|
|
325
|
+
# @param [Object] auto_junction_cone_points Value to be assigned
|
|
326
|
+
def auto_junction_cone_points=(auto_junction_cone_points)
|
|
327
|
+
if auto_junction_cone_points.nil?
|
|
328
|
+
fail ArgumentError, 'auto_junction_cone_points cannot be nil'
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
@auto_junction_cone_points = auto_junction_cone_points
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] auto_terminal_cone_points Value to be assigned
|
|
336
|
+
def auto_terminal_cone_points=(auto_terminal_cone_points)
|
|
337
|
+
if auto_terminal_cone_points.nil?
|
|
338
|
+
fail ArgumentError, 'auto_terminal_cone_points cannot be nil'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@auto_terminal_cone_points = auto_terminal_cone_points
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Custom attribute writer method with validation
|
|
345
|
+
# @param [Object] dc_junction_cone_points Value to be assigned
|
|
346
|
+
def dc_junction_cone_points=(dc_junction_cone_points)
|
|
347
|
+
if dc_junction_cone_points.nil?
|
|
348
|
+
fail ArgumentError, 'dc_junction_cone_points cannot be nil'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@dc_junction_cone_points = dc_junction_cone_points
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Custom attribute writer method with validation
|
|
355
|
+
# @param [Object] dc_terminal_cone_points Value to be assigned
|
|
356
|
+
def dc_terminal_cone_points=(dc_terminal_cone_points)
|
|
357
|
+
if dc_terminal_cone_points.nil?
|
|
358
|
+
fail ArgumentError, 'dc_terminal_cone_points cannot be nil'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
@dc_terminal_cone_points = dc_terminal_cone_points
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] ownership_points Value to be assigned
|
|
366
|
+
def ownership_points=(ownership_points)
|
|
367
|
+
if ownership_points.nil?
|
|
368
|
+
fail ArgumentError, 'ownership_points cannot be nil'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@ownership_points = ownership_points
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Custom attribute writer method with validation
|
|
375
|
+
# @param [Object] circuit_points Value to be assigned
|
|
376
|
+
def circuit_points=(circuit_points)
|
|
377
|
+
if circuit_points.nil?
|
|
378
|
+
fail ArgumentError, 'circuit_points cannot be nil'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
@circuit_points = circuit_points
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Custom attribute writer method with validation
|
|
385
|
+
# @param [Object] eg_navigation_points Value to be assigned
|
|
386
|
+
def eg_navigation_points=(eg_navigation_points)
|
|
387
|
+
if eg_navigation_points.nil?
|
|
388
|
+
fail ArgumentError, 'eg_navigation_points cannot be nil'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
@eg_navigation_points = eg_navigation_points
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# Custom attribute writer method with validation
|
|
395
|
+
# @param [Object] auto_points Value to be assigned
|
|
396
|
+
def auto_points=(auto_points)
|
|
397
|
+
if auto_points.nil?
|
|
398
|
+
fail ArgumentError, 'auto_points cannot be nil'
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
@auto_points = auto_points
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Custom attribute writer method with validation
|
|
405
|
+
# @param [Object] dc_points Value to be assigned
|
|
406
|
+
def dc_points=(dc_points)
|
|
407
|
+
if dc_points.nil?
|
|
408
|
+
fail ArgumentError, 'dc_points cannot be nil'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
@dc_points = dc_points
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Custom attribute writer method with validation
|
|
415
|
+
# @param [Object] endgame_points Value to be assigned
|
|
416
|
+
def endgame_points=(endgame_points)
|
|
417
|
+
if endgame_points.nil?
|
|
418
|
+
fail ArgumentError, 'endgame_points cannot be nil'
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
@endgame_points = endgame_points
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Custom attribute writer method with validation
|
|
425
|
+
# @param [Object] penalty_points_committed Value to be assigned
|
|
426
|
+
def penalty_points_committed=(penalty_points_committed)
|
|
427
|
+
if penalty_points_committed.nil?
|
|
428
|
+
fail ArgumentError, 'penalty_points_committed cannot be nil'
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
@penalty_points_committed = penalty_points_committed
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Custom attribute writer method with validation
|
|
435
|
+
# @param [Object] pre_penalty_total Value to be assigned
|
|
436
|
+
def pre_penalty_total=(pre_penalty_total)
|
|
437
|
+
if pre_penalty_total.nil?
|
|
438
|
+
fail ArgumentError, 'pre_penalty_total cannot be nil'
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
@pre_penalty_total = pre_penalty_total
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Custom attribute writer method with validation
|
|
445
|
+
# @param [Object] adjust_points Value to be assigned
|
|
446
|
+
def adjust_points=(adjust_points)
|
|
447
|
+
if adjust_points.nil?
|
|
448
|
+
fail ArgumentError, 'adjust_points cannot be nil'
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
@adjust_points = adjust_points
|
|
452
|
+
end
|
|
453
|
+
|
|
244
454
|
# Checks equality by comparing each attribute.
|
|
245
455
|
# @param [Object] Object to be compared
|
|
246
456
|
def ==(o)
|
|
@@ -131,14 +131,7 @@ module FtcApiV3Client
|
|
|
131
131
|
# List of attributes with nullable: true
|
|
132
132
|
def self.openapi_nullable
|
|
133
133
|
Set.new([
|
|
134
|
-
:'
|
|
135
|
-
:'auto_terminal_far',
|
|
136
|
-
:'dc_terminal_near',
|
|
137
|
-
:'dc_terminal_far',
|
|
138
|
-
:'minor_penalties',
|
|
139
|
-
:'major_penalties',
|
|
140
|
-
:'beacons',
|
|
141
|
-
:'owned_junctions',
|
|
134
|
+
:'robot_auto',
|
|
142
135
|
])
|
|
143
136
|
end
|
|
144
137
|
|
|
@@ -262,10 +255,42 @@ module FtcApiV3Client
|
|
|
262
255
|
def list_invalid_properties
|
|
263
256
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
264
257
|
invalid_properties = Array.new
|
|
258
|
+
if @auto_terminal_near.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "auto_terminal_near", auto_terminal_near cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @auto_terminal_far.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "auto_terminal_far", auto_terminal_far cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @dc_terminal_near.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "dc_terminal_near", dc_terminal_near cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @dc_terminal_far.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "dc_terminal_far", dc_terminal_far cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
265
274
|
if @eg_navigated.nil?
|
|
266
275
|
invalid_properties.push('invalid value for "eg_navigated", eg_navigated cannot be nil.')
|
|
267
276
|
end
|
|
268
277
|
|
|
278
|
+
if @minor_penalties.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "minor_penalties", minor_penalties cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @major_penalties.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "major_penalties", major_penalties cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @beacons.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "beacons", beacons cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @owned_junctions.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "owned_junctions", owned_junctions cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
269
294
|
if @circuit.nil?
|
|
270
295
|
invalid_properties.push('invalid value for "circuit", circuit cannot be nil.')
|
|
271
296
|
end
|
|
@@ -289,7 +314,15 @@ module FtcApiV3Client
|
|
|
289
314
|
# @return true if the model is valid
|
|
290
315
|
def valid?
|
|
291
316
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
317
|
+
return false if @auto_terminal_near.nil?
|
|
318
|
+
return false if @auto_terminal_far.nil?
|
|
319
|
+
return false if @dc_terminal_near.nil?
|
|
320
|
+
return false if @dc_terminal_far.nil?
|
|
292
321
|
return false if @eg_navigated.nil?
|
|
322
|
+
return false if @minor_penalties.nil?
|
|
323
|
+
return false if @major_penalties.nil?
|
|
324
|
+
return false if @beacons.nil?
|
|
325
|
+
return false if @owned_junctions.nil?
|
|
293
326
|
return false if @circuit.nil?
|
|
294
327
|
return false if @init_signal_sleeve.nil?
|
|
295
328
|
return false if @auto_junctions.nil?
|
|
@@ -297,6 +330,46 @@ module FtcApiV3Client
|
|
|
297
330
|
true
|
|
298
331
|
end
|
|
299
332
|
|
|
333
|
+
# Custom attribute writer method with validation
|
|
334
|
+
# @param [Object] auto_terminal_near Value to be assigned
|
|
335
|
+
def auto_terminal_near=(auto_terminal_near)
|
|
336
|
+
if auto_terminal_near.nil?
|
|
337
|
+
fail ArgumentError, 'auto_terminal_near cannot be nil'
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
@auto_terminal_near = auto_terminal_near
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Custom attribute writer method with validation
|
|
344
|
+
# @param [Object] auto_terminal_far Value to be assigned
|
|
345
|
+
def auto_terminal_far=(auto_terminal_far)
|
|
346
|
+
if auto_terminal_far.nil?
|
|
347
|
+
fail ArgumentError, 'auto_terminal_far cannot be nil'
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
@auto_terminal_far = auto_terminal_far
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Custom attribute writer method with validation
|
|
354
|
+
# @param [Object] dc_terminal_near Value to be assigned
|
|
355
|
+
def dc_terminal_near=(dc_terminal_near)
|
|
356
|
+
if dc_terminal_near.nil?
|
|
357
|
+
fail ArgumentError, 'dc_terminal_near cannot be nil'
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
@dc_terminal_near = dc_terminal_near
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Custom attribute writer method with validation
|
|
364
|
+
# @param [Object] dc_terminal_far Value to be assigned
|
|
365
|
+
def dc_terminal_far=(dc_terminal_far)
|
|
366
|
+
if dc_terminal_far.nil?
|
|
367
|
+
fail ArgumentError, 'dc_terminal_far cannot be nil'
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
@dc_terminal_far = dc_terminal_far
|
|
371
|
+
end
|
|
372
|
+
|
|
300
373
|
# Custom attribute writer method with validation
|
|
301
374
|
# @param [Object] eg_navigated Value to be assigned
|
|
302
375
|
def eg_navigated=(eg_navigated)
|
|
@@ -307,6 +380,46 @@ module FtcApiV3Client
|
|
|
307
380
|
@eg_navigated = eg_navigated
|
|
308
381
|
end
|
|
309
382
|
|
|
383
|
+
# Custom attribute writer method with validation
|
|
384
|
+
# @param [Object] minor_penalties Value to be assigned
|
|
385
|
+
def minor_penalties=(minor_penalties)
|
|
386
|
+
if minor_penalties.nil?
|
|
387
|
+
fail ArgumentError, 'minor_penalties cannot be nil'
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
@minor_penalties = minor_penalties
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Custom attribute writer method with validation
|
|
394
|
+
# @param [Object] major_penalties Value to be assigned
|
|
395
|
+
def major_penalties=(major_penalties)
|
|
396
|
+
if major_penalties.nil?
|
|
397
|
+
fail ArgumentError, 'major_penalties cannot be nil'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
@major_penalties = major_penalties
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method with validation
|
|
404
|
+
# @param [Object] beacons Value to be assigned
|
|
405
|
+
def beacons=(beacons)
|
|
406
|
+
if beacons.nil?
|
|
407
|
+
fail ArgumentError, 'beacons cannot be nil'
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
@beacons = beacons
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Custom attribute writer method with validation
|
|
414
|
+
# @param [Object] owned_junctions Value to be assigned
|
|
415
|
+
def owned_junctions=(owned_junctions)
|
|
416
|
+
if owned_junctions.nil?
|
|
417
|
+
fail ArgumentError, 'owned_junctions cannot be nil'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
@owned_junctions = owned_junctions
|
|
421
|
+
end
|
|
422
|
+
|
|
310
423
|
# Custom attribute writer method with validation
|
|
311
424
|
# @param [Object] circuit Value to be assigned
|
|
312
425
|
def circuit=(circuit)
|
|
@@ -96,20 +96,6 @@ module FtcApiV3Client
|
|
|
96
96
|
# List of attributes with nullable: true
|
|
97
97
|
def self.openapi_nullable
|
|
98
98
|
Set.new([
|
|
99
|
-
:'auto_navigation_points',
|
|
100
|
-
:'signal_bonus_points',
|
|
101
|
-
:'auto_junction_cone_points',
|
|
102
|
-
:'auto_terminal_cone_points',
|
|
103
|
-
:'dc_junction_cone_points',
|
|
104
|
-
:'dc_terminal_cone_points',
|
|
105
|
-
:'ownership_points',
|
|
106
|
-
:'circuit_points',
|
|
107
|
-
:'eg_navigation_points',
|
|
108
|
-
:'auto_points',
|
|
109
|
-
:'dc_points',
|
|
110
|
-
:'endgame_points',
|
|
111
|
-
:'penalty_points_committed',
|
|
112
|
-
:'pre_penalty_total'
|
|
113
99
|
])
|
|
114
100
|
end
|
|
115
101
|
|
|
@@ -219,6 +205,62 @@ module FtcApiV3Client
|
|
|
219
205
|
def list_invalid_properties
|
|
220
206
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
221
207
|
invalid_properties = Array.new
|
|
208
|
+
if @auto_navigation_points.nil?
|
|
209
|
+
invalid_properties.push('invalid value for "auto_navigation_points", auto_navigation_points cannot be nil.')
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if @signal_bonus_points.nil?
|
|
213
|
+
invalid_properties.push('invalid value for "signal_bonus_points", signal_bonus_points cannot be nil.')
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if @auto_junction_cone_points.nil?
|
|
217
|
+
invalid_properties.push('invalid value for "auto_junction_cone_points", auto_junction_cone_points cannot be nil.')
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if @auto_terminal_cone_points.nil?
|
|
221
|
+
invalid_properties.push('invalid value for "auto_terminal_cone_points", auto_terminal_cone_points cannot be nil.')
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if @dc_junction_cone_points.nil?
|
|
225
|
+
invalid_properties.push('invalid value for "dc_junction_cone_points", dc_junction_cone_points cannot be nil.')
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if @dc_terminal_cone_points.nil?
|
|
229
|
+
invalid_properties.push('invalid value for "dc_terminal_cone_points", dc_terminal_cone_points cannot be nil.')
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if @ownership_points.nil?
|
|
233
|
+
invalid_properties.push('invalid value for "ownership_points", ownership_points cannot be nil.')
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if @circuit_points.nil?
|
|
237
|
+
invalid_properties.push('invalid value for "circuit_points", circuit_points cannot be nil.')
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if @eg_navigation_points.nil?
|
|
241
|
+
invalid_properties.push('invalid value for "eg_navigation_points", eg_navigation_points cannot be nil.')
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if @auto_points.nil?
|
|
245
|
+
invalid_properties.push('invalid value for "auto_points", auto_points cannot be nil.')
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if @dc_points.nil?
|
|
249
|
+
invalid_properties.push('invalid value for "dc_points", dc_points cannot be nil.')
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if @endgame_points.nil?
|
|
253
|
+
invalid_properties.push('invalid value for "endgame_points", endgame_points cannot be nil.')
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if @penalty_points_committed.nil?
|
|
257
|
+
invalid_properties.push('invalid value for "penalty_points_committed", penalty_points_committed cannot be nil.')
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if @pre_penalty_total.nil?
|
|
261
|
+
invalid_properties.push('invalid value for "pre_penalty_total", pre_penalty_total cannot be nil.')
|
|
262
|
+
end
|
|
263
|
+
|
|
222
264
|
invalid_properties
|
|
223
265
|
end
|
|
224
266
|
|
|
@@ -226,9 +268,163 @@ module FtcApiV3Client
|
|
|
226
268
|
# @return true if the model is valid
|
|
227
269
|
def valid?
|
|
228
270
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
271
|
+
return false if @auto_navigation_points.nil?
|
|
272
|
+
return false if @signal_bonus_points.nil?
|
|
273
|
+
return false if @auto_junction_cone_points.nil?
|
|
274
|
+
return false if @auto_terminal_cone_points.nil?
|
|
275
|
+
return false if @dc_junction_cone_points.nil?
|
|
276
|
+
return false if @dc_terminal_cone_points.nil?
|
|
277
|
+
return false if @ownership_points.nil?
|
|
278
|
+
return false if @circuit_points.nil?
|
|
279
|
+
return false if @eg_navigation_points.nil?
|
|
280
|
+
return false if @auto_points.nil?
|
|
281
|
+
return false if @dc_points.nil?
|
|
282
|
+
return false if @endgame_points.nil?
|
|
283
|
+
return false if @penalty_points_committed.nil?
|
|
284
|
+
return false if @pre_penalty_total.nil?
|
|
229
285
|
true
|
|
230
286
|
end
|
|
231
287
|
|
|
288
|
+
# Custom attribute writer method with validation
|
|
289
|
+
# @param [Object] auto_navigation_points Value to be assigned
|
|
290
|
+
def auto_navigation_points=(auto_navigation_points)
|
|
291
|
+
if auto_navigation_points.nil?
|
|
292
|
+
fail ArgumentError, 'auto_navigation_points cannot be nil'
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
@auto_navigation_points = auto_navigation_points
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] signal_bonus_points Value to be assigned
|
|
300
|
+
def signal_bonus_points=(signal_bonus_points)
|
|
301
|
+
if signal_bonus_points.nil?
|
|
302
|
+
fail ArgumentError, 'signal_bonus_points cannot be nil'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
@signal_bonus_points = signal_bonus_points
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Custom attribute writer method with validation
|
|
309
|
+
# @param [Object] auto_junction_cone_points Value to be assigned
|
|
310
|
+
def auto_junction_cone_points=(auto_junction_cone_points)
|
|
311
|
+
if auto_junction_cone_points.nil?
|
|
312
|
+
fail ArgumentError, 'auto_junction_cone_points cannot be nil'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
@auto_junction_cone_points = auto_junction_cone_points
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Custom attribute writer method with validation
|
|
319
|
+
# @param [Object] auto_terminal_cone_points Value to be assigned
|
|
320
|
+
def auto_terminal_cone_points=(auto_terminal_cone_points)
|
|
321
|
+
if auto_terminal_cone_points.nil?
|
|
322
|
+
fail ArgumentError, 'auto_terminal_cone_points cannot be nil'
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
@auto_terminal_cone_points = auto_terminal_cone_points
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Custom attribute writer method with validation
|
|
329
|
+
# @param [Object] dc_junction_cone_points Value to be assigned
|
|
330
|
+
def dc_junction_cone_points=(dc_junction_cone_points)
|
|
331
|
+
if dc_junction_cone_points.nil?
|
|
332
|
+
fail ArgumentError, 'dc_junction_cone_points cannot be nil'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
@dc_junction_cone_points = dc_junction_cone_points
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Custom attribute writer method with validation
|
|
339
|
+
# @param [Object] dc_terminal_cone_points Value to be assigned
|
|
340
|
+
def dc_terminal_cone_points=(dc_terminal_cone_points)
|
|
341
|
+
if dc_terminal_cone_points.nil?
|
|
342
|
+
fail ArgumentError, 'dc_terminal_cone_points cannot be nil'
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
@dc_terminal_cone_points = dc_terminal_cone_points
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Custom attribute writer method with validation
|
|
349
|
+
# @param [Object] ownership_points Value to be assigned
|
|
350
|
+
def ownership_points=(ownership_points)
|
|
351
|
+
if ownership_points.nil?
|
|
352
|
+
fail ArgumentError, 'ownership_points cannot be nil'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
@ownership_points = ownership_points
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Custom attribute writer method with validation
|
|
359
|
+
# @param [Object] circuit_points Value to be assigned
|
|
360
|
+
def circuit_points=(circuit_points)
|
|
361
|
+
if circuit_points.nil?
|
|
362
|
+
fail ArgumentError, 'circuit_points cannot be nil'
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
@circuit_points = circuit_points
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Custom attribute writer method with validation
|
|
369
|
+
# @param [Object] eg_navigation_points Value to be assigned
|
|
370
|
+
def eg_navigation_points=(eg_navigation_points)
|
|
371
|
+
if eg_navigation_points.nil?
|
|
372
|
+
fail ArgumentError, 'eg_navigation_points cannot be nil'
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
@eg_navigation_points = eg_navigation_points
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Custom attribute writer method with validation
|
|
379
|
+
# @param [Object] auto_points Value to be assigned
|
|
380
|
+
def auto_points=(auto_points)
|
|
381
|
+
if auto_points.nil?
|
|
382
|
+
fail ArgumentError, 'auto_points cannot be nil'
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
@auto_points = auto_points
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Custom attribute writer method with validation
|
|
389
|
+
# @param [Object] dc_points Value to be assigned
|
|
390
|
+
def dc_points=(dc_points)
|
|
391
|
+
if dc_points.nil?
|
|
392
|
+
fail ArgumentError, 'dc_points cannot be nil'
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
@dc_points = dc_points
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Custom attribute writer method with validation
|
|
399
|
+
# @param [Object] endgame_points Value to be assigned
|
|
400
|
+
def endgame_points=(endgame_points)
|
|
401
|
+
if endgame_points.nil?
|
|
402
|
+
fail ArgumentError, 'endgame_points cannot be nil'
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
@endgame_points = endgame_points
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Custom attribute writer method with validation
|
|
409
|
+
# @param [Object] penalty_points_committed Value to be assigned
|
|
410
|
+
def penalty_points_committed=(penalty_points_committed)
|
|
411
|
+
if penalty_points_committed.nil?
|
|
412
|
+
fail ArgumentError, 'penalty_points_committed cannot be nil'
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
@penalty_points_committed = penalty_points_committed
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Custom attribute writer method with validation
|
|
419
|
+
# @param [Object] pre_penalty_total Value to be assigned
|
|
420
|
+
def pre_penalty_total=(pre_penalty_total)
|
|
421
|
+
if pre_penalty_total.nil?
|
|
422
|
+
fail ArgumentError, 'pre_penalty_total cannot be nil'
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
@pre_penalty_total = pre_penalty_total
|
|
426
|
+
end
|
|
427
|
+
|
|
232
428
|
# Checks equality by comparing each attribute.
|
|
233
429
|
# @param [Object] Object to be compared
|
|
234
430
|
def ==(o)
|