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
|
@@ -146,16 +146,8 @@ module FtcApiV3Client
|
|
|
146
146
|
# List of attributes with nullable: true
|
|
147
147
|
def self.openapi_nullable
|
|
148
148
|
Set.new([
|
|
149
|
-
:'
|
|
150
|
-
:'
|
|
151
|
-
:'auto_tower_high',
|
|
152
|
-
:'dc_tower_low',
|
|
153
|
-
:'dc_tower_mid',
|
|
154
|
-
:'dc_tower_high',
|
|
155
|
-
:'wobble1_rings',
|
|
156
|
-
:'wobble2_rings',
|
|
157
|
-
:'minor_penalties',
|
|
158
|
-
:'major_penalties'
|
|
149
|
+
:'wobble1_end',
|
|
150
|
+
:'wobble2_end',
|
|
159
151
|
])
|
|
160
152
|
end
|
|
161
153
|
|
|
@@ -319,6 +311,18 @@ module FtcApiV3Client
|
|
|
319
311
|
invalid_properties.push('invalid value for "wobble2_delivered", wobble2_delivered cannot be nil.')
|
|
320
312
|
end
|
|
321
313
|
|
|
314
|
+
if @auto_tower_low.nil?
|
|
315
|
+
invalid_properties.push('invalid value for "auto_tower_low", auto_tower_low cannot be nil.')
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if @auto_tower_mid.nil?
|
|
319
|
+
invalid_properties.push('invalid value for "auto_tower_mid", auto_tower_mid cannot be nil.')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if @auto_tower_high.nil?
|
|
323
|
+
invalid_properties.push('invalid value for "auto_tower_high", auto_tower_high cannot be nil.')
|
|
324
|
+
end
|
|
325
|
+
|
|
322
326
|
if @auto_power_shot_left.nil?
|
|
323
327
|
invalid_properties.push('invalid value for "auto_power_shot_left", auto_power_shot_left cannot be nil.')
|
|
324
328
|
end
|
|
@@ -331,12 +335,24 @@ module FtcApiV3Client
|
|
|
331
335
|
invalid_properties.push('invalid value for "auto_power_shot_right", auto_power_shot_right cannot be nil.')
|
|
332
336
|
end
|
|
333
337
|
|
|
334
|
-
if @
|
|
335
|
-
invalid_properties.push('invalid value for "
|
|
338
|
+
if @dc_tower_low.nil?
|
|
339
|
+
invalid_properties.push('invalid value for "dc_tower_low", dc_tower_low cannot be nil.')
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
if @dc_tower_mid.nil?
|
|
343
|
+
invalid_properties.push('invalid value for "dc_tower_mid", dc_tower_mid cannot be nil.')
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
if @dc_tower_high.nil?
|
|
347
|
+
invalid_properties.push('invalid value for "dc_tower_high", dc_tower_high cannot be nil.')
|
|
336
348
|
end
|
|
337
349
|
|
|
338
|
-
if @
|
|
339
|
-
invalid_properties.push('invalid value for "
|
|
350
|
+
if @wobble1_rings.nil?
|
|
351
|
+
invalid_properties.push('invalid value for "wobble1_rings", wobble1_rings cannot be nil.')
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
if @wobble2_rings.nil?
|
|
355
|
+
invalid_properties.push('invalid value for "wobble2_rings", wobble2_rings cannot be nil.')
|
|
340
356
|
end
|
|
341
357
|
|
|
342
358
|
if @end_power_shot_left.nil?
|
|
@@ -351,6 +367,14 @@ module FtcApiV3Client
|
|
|
351
367
|
invalid_properties.push('invalid value for "end_power_shot_right", end_power_shot_right cannot be nil.')
|
|
352
368
|
end
|
|
353
369
|
|
|
370
|
+
if @minor_penalties.nil?
|
|
371
|
+
invalid_properties.push('invalid value for "minor_penalties", minor_penalties cannot be nil.')
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if @major_penalties.nil?
|
|
375
|
+
invalid_properties.push('invalid value for "major_penalties", major_penalties cannot be nil.')
|
|
376
|
+
end
|
|
377
|
+
|
|
354
378
|
invalid_properties
|
|
355
379
|
end
|
|
356
380
|
|
|
@@ -361,14 +385,22 @@ module FtcApiV3Client
|
|
|
361
385
|
return false if @robot_navigated.nil?
|
|
362
386
|
return false if @wobble1_delivered.nil?
|
|
363
387
|
return false if @wobble2_delivered.nil?
|
|
388
|
+
return false if @auto_tower_low.nil?
|
|
389
|
+
return false if @auto_tower_mid.nil?
|
|
390
|
+
return false if @auto_tower_high.nil?
|
|
364
391
|
return false if @auto_power_shot_left.nil?
|
|
365
392
|
return false if @auto_power_shot_center.nil?
|
|
366
393
|
return false if @auto_power_shot_right.nil?
|
|
367
|
-
return false if @
|
|
368
|
-
return false if @
|
|
394
|
+
return false if @dc_tower_low.nil?
|
|
395
|
+
return false if @dc_tower_mid.nil?
|
|
396
|
+
return false if @dc_tower_high.nil?
|
|
397
|
+
return false if @wobble1_rings.nil?
|
|
398
|
+
return false if @wobble2_rings.nil?
|
|
369
399
|
return false if @end_power_shot_left.nil?
|
|
370
400
|
return false if @end_power_shot_center.nil?
|
|
371
401
|
return false if @end_power_shot_right.nil?
|
|
402
|
+
return false if @minor_penalties.nil?
|
|
403
|
+
return false if @major_penalties.nil?
|
|
372
404
|
true
|
|
373
405
|
end
|
|
374
406
|
|
|
@@ -402,6 +434,36 @@ module FtcApiV3Client
|
|
|
402
434
|
@wobble2_delivered = wobble2_delivered
|
|
403
435
|
end
|
|
404
436
|
|
|
437
|
+
# Custom attribute writer method with validation
|
|
438
|
+
# @param [Object] auto_tower_low Value to be assigned
|
|
439
|
+
def auto_tower_low=(auto_tower_low)
|
|
440
|
+
if auto_tower_low.nil?
|
|
441
|
+
fail ArgumentError, 'auto_tower_low cannot be nil'
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
@auto_tower_low = auto_tower_low
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Custom attribute writer method with validation
|
|
448
|
+
# @param [Object] auto_tower_mid Value to be assigned
|
|
449
|
+
def auto_tower_mid=(auto_tower_mid)
|
|
450
|
+
if auto_tower_mid.nil?
|
|
451
|
+
fail ArgumentError, 'auto_tower_mid cannot be nil'
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
@auto_tower_mid = auto_tower_mid
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# Custom attribute writer method with validation
|
|
458
|
+
# @param [Object] auto_tower_high Value to be assigned
|
|
459
|
+
def auto_tower_high=(auto_tower_high)
|
|
460
|
+
if auto_tower_high.nil?
|
|
461
|
+
fail ArgumentError, 'auto_tower_high cannot be nil'
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
@auto_tower_high = auto_tower_high
|
|
465
|
+
end
|
|
466
|
+
|
|
405
467
|
# Custom attribute writer method with validation
|
|
406
468
|
# @param [Object] auto_power_shot_left Value to be assigned
|
|
407
469
|
def auto_power_shot_left=(auto_power_shot_left)
|
|
@@ -433,23 +495,53 @@ module FtcApiV3Client
|
|
|
433
495
|
end
|
|
434
496
|
|
|
435
497
|
# Custom attribute writer method with validation
|
|
436
|
-
# @param [Object]
|
|
437
|
-
def
|
|
438
|
-
if
|
|
439
|
-
fail ArgumentError, '
|
|
498
|
+
# @param [Object] dc_tower_low Value to be assigned
|
|
499
|
+
def dc_tower_low=(dc_tower_low)
|
|
500
|
+
if dc_tower_low.nil?
|
|
501
|
+
fail ArgumentError, 'dc_tower_low cannot be nil'
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
@dc_tower_low = dc_tower_low
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Custom attribute writer method with validation
|
|
508
|
+
# @param [Object] dc_tower_mid Value to be assigned
|
|
509
|
+
def dc_tower_mid=(dc_tower_mid)
|
|
510
|
+
if dc_tower_mid.nil?
|
|
511
|
+
fail ArgumentError, 'dc_tower_mid cannot be nil'
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
@dc_tower_mid = dc_tower_mid
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Custom attribute writer method with validation
|
|
518
|
+
# @param [Object] dc_tower_high Value to be assigned
|
|
519
|
+
def dc_tower_high=(dc_tower_high)
|
|
520
|
+
if dc_tower_high.nil?
|
|
521
|
+
fail ArgumentError, 'dc_tower_high cannot be nil'
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
@dc_tower_high = dc_tower_high
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
# Custom attribute writer method with validation
|
|
528
|
+
# @param [Object] wobble1_rings Value to be assigned
|
|
529
|
+
def wobble1_rings=(wobble1_rings)
|
|
530
|
+
if wobble1_rings.nil?
|
|
531
|
+
fail ArgumentError, 'wobble1_rings cannot be nil'
|
|
440
532
|
end
|
|
441
533
|
|
|
442
|
-
@
|
|
534
|
+
@wobble1_rings = wobble1_rings
|
|
443
535
|
end
|
|
444
536
|
|
|
445
537
|
# Custom attribute writer method with validation
|
|
446
|
-
# @param [Object]
|
|
447
|
-
def
|
|
448
|
-
if
|
|
449
|
-
fail ArgumentError, '
|
|
538
|
+
# @param [Object] wobble2_rings Value to be assigned
|
|
539
|
+
def wobble2_rings=(wobble2_rings)
|
|
540
|
+
if wobble2_rings.nil?
|
|
541
|
+
fail ArgumentError, 'wobble2_rings cannot be nil'
|
|
450
542
|
end
|
|
451
543
|
|
|
452
|
-
@
|
|
544
|
+
@wobble2_rings = wobble2_rings
|
|
453
545
|
end
|
|
454
546
|
|
|
455
547
|
# Custom attribute writer method with validation
|
|
@@ -482,6 +574,26 @@ module FtcApiV3Client
|
|
|
482
574
|
@end_power_shot_right = end_power_shot_right
|
|
483
575
|
end
|
|
484
576
|
|
|
577
|
+
# Custom attribute writer method with validation
|
|
578
|
+
# @param [Object] minor_penalties Value to be assigned
|
|
579
|
+
def minor_penalties=(minor_penalties)
|
|
580
|
+
if minor_penalties.nil?
|
|
581
|
+
fail ArgumentError, 'minor_penalties cannot be nil'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
@minor_penalties = minor_penalties
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Custom attribute writer method with validation
|
|
588
|
+
# @param [Object] major_penalties Value to be assigned
|
|
589
|
+
def major_penalties=(major_penalties)
|
|
590
|
+
if major_penalties.nil?
|
|
591
|
+
fail ArgumentError, 'major_penalties cannot be nil'
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
@major_penalties = major_penalties
|
|
595
|
+
end
|
|
596
|
+
|
|
485
597
|
# Checks equality by comparing each attribute.
|
|
486
598
|
# @param [Object] Object to be compared
|
|
487
599
|
def ==(o)
|
|
@@ -97,20 +97,6 @@ module FtcApiV3Client
|
|
|
97
97
|
# List of attributes with nullable: true
|
|
98
98
|
def self.openapi_nullable
|
|
99
99
|
Set.new([
|
|
100
|
-
:'auto_navigation_points',
|
|
101
|
-
:'auto_wobble_points',
|
|
102
|
-
:'auto_tower_points',
|
|
103
|
-
:'auto_power_shot_points',
|
|
104
|
-
:'dc_tower_points',
|
|
105
|
-
:'end_wobble_points',
|
|
106
|
-
:'end_wobble_ring_points',
|
|
107
|
-
:'end_power_shot_points',
|
|
108
|
-
:'auto_points',
|
|
109
|
-
:'dc_points',
|
|
110
|
-
:'endgame_points',
|
|
111
|
-
:'penalty_points_committed',
|
|
112
|
-
:'pre_penalty_total',
|
|
113
|
-
:'adjust_points'
|
|
114
100
|
])
|
|
115
101
|
end
|
|
116
102
|
|
|
@@ -220,6 +206,62 @@ module FtcApiV3Client
|
|
|
220
206
|
def list_invalid_properties
|
|
221
207
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
222
208
|
invalid_properties = Array.new
|
|
209
|
+
if @auto_navigation_points.nil?
|
|
210
|
+
invalid_properties.push('invalid value for "auto_navigation_points", auto_navigation_points cannot be nil.')
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if @auto_wobble_points.nil?
|
|
214
|
+
invalid_properties.push('invalid value for "auto_wobble_points", auto_wobble_points cannot be nil.')
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if @auto_tower_points.nil?
|
|
218
|
+
invalid_properties.push('invalid value for "auto_tower_points", auto_tower_points cannot be nil.')
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if @auto_power_shot_points.nil?
|
|
222
|
+
invalid_properties.push('invalid value for "auto_power_shot_points", auto_power_shot_points cannot be nil.')
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if @dc_tower_points.nil?
|
|
226
|
+
invalid_properties.push('invalid value for "dc_tower_points", dc_tower_points cannot be nil.')
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if @end_wobble_points.nil?
|
|
230
|
+
invalid_properties.push('invalid value for "end_wobble_points", end_wobble_points cannot be nil.')
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if @end_wobble_ring_points.nil?
|
|
234
|
+
invalid_properties.push('invalid value for "end_wobble_ring_points", end_wobble_ring_points cannot be nil.')
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if @end_power_shot_points.nil?
|
|
238
|
+
invalid_properties.push('invalid value for "end_power_shot_points", end_power_shot_points cannot be nil.')
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if @auto_points.nil?
|
|
242
|
+
invalid_properties.push('invalid value for "auto_points", auto_points cannot be nil.')
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if @dc_points.nil?
|
|
246
|
+
invalid_properties.push('invalid value for "dc_points", dc_points cannot be nil.')
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if @endgame_points.nil?
|
|
250
|
+
invalid_properties.push('invalid value for "endgame_points", endgame_points cannot be nil.')
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if @penalty_points_committed.nil?
|
|
254
|
+
invalid_properties.push('invalid value for "penalty_points_committed", penalty_points_committed cannot be nil.')
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if @pre_penalty_total.nil?
|
|
258
|
+
invalid_properties.push('invalid value for "pre_penalty_total", pre_penalty_total cannot be nil.')
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if @adjust_points.nil?
|
|
262
|
+
invalid_properties.push('invalid value for "adjust_points", adjust_points cannot be nil.')
|
|
263
|
+
end
|
|
264
|
+
|
|
223
265
|
invalid_properties
|
|
224
266
|
end
|
|
225
267
|
|
|
@@ -227,9 +269,163 @@ module FtcApiV3Client
|
|
|
227
269
|
# @return true if the model is valid
|
|
228
270
|
def valid?
|
|
229
271
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
272
|
+
return false if @auto_navigation_points.nil?
|
|
273
|
+
return false if @auto_wobble_points.nil?
|
|
274
|
+
return false if @auto_tower_points.nil?
|
|
275
|
+
return false if @auto_power_shot_points.nil?
|
|
276
|
+
return false if @dc_tower_points.nil?
|
|
277
|
+
return false if @end_wobble_points.nil?
|
|
278
|
+
return false if @end_wobble_ring_points.nil?
|
|
279
|
+
return false if @end_power_shot_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?
|
|
285
|
+
return false if @adjust_points.nil?
|
|
230
286
|
true
|
|
231
287
|
end
|
|
232
288
|
|
|
289
|
+
# Custom attribute writer method with validation
|
|
290
|
+
# @param [Object] auto_navigation_points Value to be assigned
|
|
291
|
+
def auto_navigation_points=(auto_navigation_points)
|
|
292
|
+
if auto_navigation_points.nil?
|
|
293
|
+
fail ArgumentError, 'auto_navigation_points cannot be nil'
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
@auto_navigation_points = auto_navigation_points
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# Custom attribute writer method with validation
|
|
300
|
+
# @param [Object] auto_wobble_points Value to be assigned
|
|
301
|
+
def auto_wobble_points=(auto_wobble_points)
|
|
302
|
+
if auto_wobble_points.nil?
|
|
303
|
+
fail ArgumentError, 'auto_wobble_points cannot be nil'
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
@auto_wobble_points = auto_wobble_points
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Custom attribute writer method with validation
|
|
310
|
+
# @param [Object] auto_tower_points Value to be assigned
|
|
311
|
+
def auto_tower_points=(auto_tower_points)
|
|
312
|
+
if auto_tower_points.nil?
|
|
313
|
+
fail ArgumentError, 'auto_tower_points cannot be nil'
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
@auto_tower_points = auto_tower_points
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Custom attribute writer method with validation
|
|
320
|
+
# @param [Object] auto_power_shot_points Value to be assigned
|
|
321
|
+
def auto_power_shot_points=(auto_power_shot_points)
|
|
322
|
+
if auto_power_shot_points.nil?
|
|
323
|
+
fail ArgumentError, 'auto_power_shot_points cannot be nil'
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
@auto_power_shot_points = auto_power_shot_points
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Custom attribute writer method with validation
|
|
330
|
+
# @param [Object] dc_tower_points Value to be assigned
|
|
331
|
+
def dc_tower_points=(dc_tower_points)
|
|
332
|
+
if dc_tower_points.nil?
|
|
333
|
+
fail ArgumentError, 'dc_tower_points cannot be nil'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
@dc_tower_points = dc_tower_points
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] end_wobble_points Value to be assigned
|
|
341
|
+
def end_wobble_points=(end_wobble_points)
|
|
342
|
+
if end_wobble_points.nil?
|
|
343
|
+
fail ArgumentError, 'end_wobble_points cannot be nil'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@end_wobble_points = end_wobble_points
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] end_wobble_ring_points Value to be assigned
|
|
351
|
+
def end_wobble_ring_points=(end_wobble_ring_points)
|
|
352
|
+
if end_wobble_ring_points.nil?
|
|
353
|
+
fail ArgumentError, 'end_wobble_ring_points cannot be nil'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@end_wobble_ring_points = end_wobble_ring_points
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Custom attribute writer method with validation
|
|
360
|
+
# @param [Object] end_power_shot_points Value to be assigned
|
|
361
|
+
def end_power_shot_points=(end_power_shot_points)
|
|
362
|
+
if end_power_shot_points.nil?
|
|
363
|
+
fail ArgumentError, 'end_power_shot_points cannot be nil'
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
@end_power_shot_points = end_power_shot_points
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# Custom attribute writer method with validation
|
|
370
|
+
# @param [Object] auto_points Value to be assigned
|
|
371
|
+
def auto_points=(auto_points)
|
|
372
|
+
if auto_points.nil?
|
|
373
|
+
fail ArgumentError, 'auto_points cannot be nil'
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
@auto_points = auto_points
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Custom attribute writer method with validation
|
|
380
|
+
# @param [Object] dc_points Value to be assigned
|
|
381
|
+
def dc_points=(dc_points)
|
|
382
|
+
if dc_points.nil?
|
|
383
|
+
fail ArgumentError, 'dc_points cannot be nil'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
@dc_points = dc_points
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Custom attribute writer method with validation
|
|
390
|
+
# @param [Object] endgame_points Value to be assigned
|
|
391
|
+
def endgame_points=(endgame_points)
|
|
392
|
+
if endgame_points.nil?
|
|
393
|
+
fail ArgumentError, 'endgame_points cannot be nil'
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
@endgame_points = endgame_points
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Custom attribute writer method with validation
|
|
400
|
+
# @param [Object] penalty_points_committed Value to be assigned
|
|
401
|
+
def penalty_points_committed=(penalty_points_committed)
|
|
402
|
+
if penalty_points_committed.nil?
|
|
403
|
+
fail ArgumentError, 'penalty_points_committed cannot be nil'
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
@penalty_points_committed = penalty_points_committed
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Custom attribute writer method with validation
|
|
410
|
+
# @param [Object] pre_penalty_total Value to be assigned
|
|
411
|
+
def pre_penalty_total=(pre_penalty_total)
|
|
412
|
+
if pre_penalty_total.nil?
|
|
413
|
+
fail ArgumentError, 'pre_penalty_total cannot be nil'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
@pre_penalty_total = pre_penalty_total
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Custom attribute writer method with validation
|
|
420
|
+
# @param [Object] adjust_points Value to be assigned
|
|
421
|
+
def adjust_points=(adjust_points)
|
|
422
|
+
if adjust_points.nil?
|
|
423
|
+
fail ArgumentError, 'adjust_points cannot be nil'
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
@adjust_points = adjust_points
|
|
427
|
+
end
|
|
428
|
+
|
|
233
429
|
# Checks equality by comparing each attribute.
|
|
234
430
|
# @param [Object] Object to be compared
|
|
235
431
|
def ==(o)
|
|
@@ -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 --openapi-normalizer SET_PRIMITIVE_TYPES_TO_NULLABLE="
|
|
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
|
|
@@ -195,6 +195,7 @@ files:
|
|
|
195
195
|
- docs/SeasonsApi.md
|
|
196
196
|
- docs/TeamsApi.md
|
|
197
197
|
- ftc_api_v3_client-0.1.0.gem
|
|
198
|
+
- ftc_api_v3_client-0.1.1.gem
|
|
198
199
|
- ftc_api_v3_client.gemspec
|
|
199
200
|
- git_push.sh
|
|
200
201
|
- lib/ftc_api_v3_client.rb
|