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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/config.json +1 -1
  4. data/ftc_api_v3_client-0.1.1.gem +0 -0
  5. data/lib/ftc_api_v3_client/api/events_api.rb +3 -103
  6. data/lib/ftc_api_v3_client/api/leagues_api.rb +0 -56
  7. data/lib/ftc_api_v3_client/api/regions_api.rb +0 -28
  8. data/lib/ftc_api_v3_client/api/seasons_api.rb +0 -4
  9. data/lib/ftc_api_v3_client/api/teams_api.rb +0 -28
  10. data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +16 -1
  11. data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +2 -15
  12. data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +32 -43
  13. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +32 -43
  14. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +31 -2
  15. data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +1 -15
  16. data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +1 -15
  17. data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +1 -15
  18. data/lib/ftc_api_v3_client/models/api_v3_award.rb +4 -30
  19. data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +2 -1
  20. data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +9 -9
  21. data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +1 -15
  22. data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +1 -15
  23. data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +138 -26
  24. data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +240 -16
  25. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +129 -17
  26. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +225 -15
  27. data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +93 -23
  28. data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +180 -12
  29. data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +1 -15
  30. data/lib/ftc_api_v3_client/models/api_v3_division.rb +2 -30
  31. data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +34 -19
  32. data/lib/ftc_api_v3_client/models/api_v3_event.rb +32 -122
  33. data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +3 -15
  34. data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +2 -15
  35. data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +185 -59
  36. data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +285 -19
  37. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +175 -35
  38. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +240 -16
  39. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +1 -15
  40. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +1 -15
  41. data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +1 -15
  42. data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +156 -44
  43. data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +195 -13
  44. data/lib/ftc_api_v3_client/models/api_v3_league.rb +4 -30
  45. data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +4 -30
  46. data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +60 -4
  47. data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +66 -5
  48. data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +17 -1
  49. data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +15 -1
  50. data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +90 -6
  51. data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +33 -19
  52. data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +9 -9
  53. data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +107 -7
  54. data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +225 -15
  55. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +121 -8
  56. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +210 -14
  57. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +1 -15
  58. data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +1 -15
  59. data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +90 -6
  60. data/lib/ftc_api_v3_client/models/api_v3_region.rb +2 -30
  61. data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +9 -9
  62. data/lib/ftc_api_v3_client/models/api_v3_season.rb +11 -39
  63. data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +15 -1
  64. data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +10 -24
  65. data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +15 -120
  66. data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +3 -45
  67. data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +4 -31
  68. data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +32 -43
  69. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +32 -43
  70. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +15 -1
  71. data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +165 -11
  72. data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +225 -15
  73. data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +1 -15
  74. data/lib/ftc_api_v3_client/models/api_v3_team.rb +17 -54
  75. data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +1 -15
  76. data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +15 -54
  77. data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +138 -26
  78. data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +210 -14
  79. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +138 -26
  80. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +210 -14
  81. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +1 -15
  82. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +1 -15
  83. data/lib/ftc_api_v3_client/version.rb +1 -1
  84. data/update.sh +1 -1
  85. metadata +2 -1
@@ -126,18 +126,10 @@ module FtcApiV3Client
126
126
  # List of attributes with nullable: true
127
127
  def self.openapi_nullable
128
128
  Set.new([
129
- :'auto_sample_net',
130
- :'auto_sample_low',
131
- :'auto_sample_high',
132
- :'auto_specimen_low',
133
- :'auto_specimen_high',
134
- :'teleop_sample_net',
135
- :'teleop_sample_low',
136
- :'teleop_sample_high',
137
- :'teleop_specimen_low',
138
- :'teleop_specimen_high',
139
- :'minor_fouls',
140
- :'major_fouls'
129
+ :'robot1_auto',
130
+ :'robot2_auto',
131
+ :'robot1_teleop',
132
+ :'robot2_teleop',
141
133
  ])
142
134
  end
143
135
 
@@ -259,20 +251,52 @@ module FtcApiV3Client
259
251
  def list_invalid_properties
260
252
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
261
253
  invalid_properties = Array.new
262
- if @robot1_auto.nil?
263
- invalid_properties.push('invalid value for "robot1_auto", robot1_auto cannot be nil.')
254
+ if @auto_sample_net.nil?
255
+ invalid_properties.push('invalid value for "auto_sample_net", auto_sample_net cannot be nil.')
264
256
  end
265
257
 
266
- if @robot2_auto.nil?
267
- invalid_properties.push('invalid value for "robot2_auto", robot2_auto cannot be nil.')
258
+ if @auto_sample_low.nil?
259
+ invalid_properties.push('invalid value for "auto_sample_low", auto_sample_low cannot be nil.')
268
260
  end
269
261
 
270
- if @robot1_teleop.nil?
271
- invalid_properties.push('invalid value for "robot1_teleop", robot1_teleop cannot be nil.')
262
+ if @auto_sample_high.nil?
263
+ invalid_properties.push('invalid value for "auto_sample_high", auto_sample_high cannot be nil.')
272
264
  end
273
265
 
274
- if @robot2_teleop.nil?
275
- invalid_properties.push('invalid value for "robot2_teleop", robot2_teleop cannot be nil.')
266
+ if @auto_specimen_low.nil?
267
+ invalid_properties.push('invalid value for "auto_specimen_low", auto_specimen_low cannot be nil.')
268
+ end
269
+
270
+ if @auto_specimen_high.nil?
271
+ invalid_properties.push('invalid value for "auto_specimen_high", auto_specimen_high cannot be nil.')
272
+ end
273
+
274
+ if @teleop_sample_net.nil?
275
+ invalid_properties.push('invalid value for "teleop_sample_net", teleop_sample_net cannot be nil.')
276
+ end
277
+
278
+ if @teleop_sample_low.nil?
279
+ invalid_properties.push('invalid value for "teleop_sample_low", teleop_sample_low cannot be nil.')
280
+ end
281
+
282
+ if @teleop_sample_high.nil?
283
+ invalid_properties.push('invalid value for "teleop_sample_high", teleop_sample_high cannot be nil.')
284
+ end
285
+
286
+ if @teleop_specimen_low.nil?
287
+ invalid_properties.push('invalid value for "teleop_specimen_low", teleop_specimen_low cannot be nil.')
288
+ end
289
+
290
+ if @teleop_specimen_high.nil?
291
+ invalid_properties.push('invalid value for "teleop_specimen_high", teleop_specimen_high cannot be nil.')
292
+ end
293
+
294
+ if @minor_fouls.nil?
295
+ invalid_properties.push('invalid value for "minor_fouls", minor_fouls cannot be nil.')
296
+ end
297
+
298
+ if @major_fouls.nil?
299
+ invalid_properties.push('invalid value for "major_fouls", major_fouls cannot be nil.')
276
300
  end
277
301
 
278
302
  invalid_properties
@@ -282,51 +306,139 @@ module FtcApiV3Client
282
306
  # @return true if the model is valid
283
307
  def valid?
284
308
  warn '[DEPRECATED] the `valid?` method is obsolete'
285
- return false if @robot1_auto.nil?
286
- return false if @robot2_auto.nil?
287
- return false if @robot1_teleop.nil?
288
- return false if @robot2_teleop.nil?
309
+ return false if @auto_sample_net.nil?
310
+ return false if @auto_sample_low.nil?
311
+ return false if @auto_sample_high.nil?
312
+ return false if @auto_specimen_low.nil?
313
+ return false if @auto_specimen_high.nil?
314
+ return false if @teleop_sample_net.nil?
315
+ return false if @teleop_sample_low.nil?
316
+ return false if @teleop_sample_high.nil?
317
+ return false if @teleop_specimen_low.nil?
318
+ return false if @teleop_specimen_high.nil?
319
+ return false if @minor_fouls.nil?
320
+ return false if @major_fouls.nil?
289
321
  true
290
322
  end
291
323
 
292
324
  # Custom attribute writer method with validation
293
- # @param [Object] robot1_auto Value to be assigned
294
- def robot1_auto=(robot1_auto)
295
- if robot1_auto.nil?
296
- fail ArgumentError, 'robot1_auto cannot be nil'
325
+ # @param [Object] auto_sample_net Value to be assigned
326
+ def auto_sample_net=(auto_sample_net)
327
+ if auto_sample_net.nil?
328
+ fail ArgumentError, 'auto_sample_net cannot be nil'
329
+ end
330
+
331
+ @auto_sample_net = auto_sample_net
332
+ end
333
+
334
+ # Custom attribute writer method with validation
335
+ # @param [Object] auto_sample_low Value to be assigned
336
+ def auto_sample_low=(auto_sample_low)
337
+ if auto_sample_low.nil?
338
+ fail ArgumentError, 'auto_sample_low cannot be nil'
339
+ end
340
+
341
+ @auto_sample_low = auto_sample_low
342
+ end
343
+
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] auto_sample_high Value to be assigned
346
+ def auto_sample_high=(auto_sample_high)
347
+ if auto_sample_high.nil?
348
+ fail ArgumentError, 'auto_sample_high cannot be nil'
349
+ end
350
+
351
+ @auto_sample_high = auto_sample_high
352
+ end
353
+
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] auto_specimen_low Value to be assigned
356
+ def auto_specimen_low=(auto_specimen_low)
357
+ if auto_specimen_low.nil?
358
+ fail ArgumentError, 'auto_specimen_low cannot be nil'
359
+ end
360
+
361
+ @auto_specimen_low = auto_specimen_low
362
+ end
363
+
364
+ # Custom attribute writer method with validation
365
+ # @param [Object] auto_specimen_high Value to be assigned
366
+ def auto_specimen_high=(auto_specimen_high)
367
+ if auto_specimen_high.nil?
368
+ fail ArgumentError, 'auto_specimen_high cannot be nil'
369
+ end
370
+
371
+ @auto_specimen_high = auto_specimen_high
372
+ end
373
+
374
+ # Custom attribute writer method with validation
375
+ # @param [Object] teleop_sample_net Value to be assigned
376
+ def teleop_sample_net=(teleop_sample_net)
377
+ if teleop_sample_net.nil?
378
+ fail ArgumentError, 'teleop_sample_net cannot be nil'
379
+ end
380
+
381
+ @teleop_sample_net = teleop_sample_net
382
+ end
383
+
384
+ # Custom attribute writer method with validation
385
+ # @param [Object] teleop_sample_low Value to be assigned
386
+ def teleop_sample_low=(teleop_sample_low)
387
+ if teleop_sample_low.nil?
388
+ fail ArgumentError, 'teleop_sample_low cannot be nil'
389
+ end
390
+
391
+ @teleop_sample_low = teleop_sample_low
392
+ end
393
+
394
+ # Custom attribute writer method with validation
395
+ # @param [Object] teleop_sample_high Value to be assigned
396
+ def teleop_sample_high=(teleop_sample_high)
397
+ if teleop_sample_high.nil?
398
+ fail ArgumentError, 'teleop_sample_high cannot be nil'
399
+ end
400
+
401
+ @teleop_sample_high = teleop_sample_high
402
+ end
403
+
404
+ # Custom attribute writer method with validation
405
+ # @param [Object] teleop_specimen_low Value to be assigned
406
+ def teleop_specimen_low=(teleop_specimen_low)
407
+ if teleop_specimen_low.nil?
408
+ fail ArgumentError, 'teleop_specimen_low cannot be nil'
297
409
  end
298
410
 
299
- @robot1_auto = robot1_auto
411
+ @teleop_specimen_low = teleop_specimen_low
300
412
  end
301
413
 
302
414
  # Custom attribute writer method with validation
303
- # @param [Object] robot2_auto Value to be assigned
304
- def robot2_auto=(robot2_auto)
305
- if robot2_auto.nil?
306
- fail ArgumentError, 'robot2_auto cannot be nil'
415
+ # @param [Object] teleop_specimen_high Value to be assigned
416
+ def teleop_specimen_high=(teleop_specimen_high)
417
+ if teleop_specimen_high.nil?
418
+ fail ArgumentError, 'teleop_specimen_high cannot be nil'
307
419
  end
308
420
 
309
- @robot2_auto = robot2_auto
421
+ @teleop_specimen_high = teleop_specimen_high
310
422
  end
311
423
 
312
424
  # Custom attribute writer method with validation
313
- # @param [Object] robot1_teleop Value to be assigned
314
- def robot1_teleop=(robot1_teleop)
315
- if robot1_teleop.nil?
316
- fail ArgumentError, 'robot1_teleop cannot be nil'
425
+ # @param [Object] minor_fouls Value to be assigned
426
+ def minor_fouls=(minor_fouls)
427
+ if minor_fouls.nil?
428
+ fail ArgumentError, 'minor_fouls cannot be nil'
317
429
  end
318
430
 
319
- @robot1_teleop = robot1_teleop
431
+ @minor_fouls = minor_fouls
320
432
  end
321
433
 
322
434
  # Custom attribute writer method with validation
323
- # @param [Object] robot2_teleop Value to be assigned
324
- def robot2_teleop=(robot2_teleop)
325
- if robot2_teleop.nil?
326
- fail ArgumentError, 'robot2_teleop cannot be nil'
435
+ # @param [Object] major_fouls Value to be assigned
436
+ def major_fouls=(major_fouls)
437
+ if major_fouls.nil?
438
+ fail ArgumentError, 'major_fouls cannot be nil'
327
439
  end
328
440
 
329
- @robot2_teleop = robot2_teleop
441
+ @major_fouls = major_fouls
330
442
  end
331
443
 
332
444
  # Checks equality by comparing each attribute.
@@ -93,19 +93,6 @@ module FtcApiV3Client
93
93
  # List of attributes with nullable: true
94
94
  def self.openapi_nullable
95
95
  Set.new([
96
- :'auto_sample_points',
97
- :'auto_specimen_points',
98
- :'auto_park_points',
99
- :'auto_ascent_points',
100
- :'teleop_sample_points',
101
- :'teleop_specimen_points',
102
- :'teleop_park_points',
103
- :'teleop_ascent_points',
104
- :'auto_points',
105
- :'teleop_points',
106
- :'foul_points_committed',
107
- :'pre_foul_total',
108
- :'adjust_points'
109
96
  ])
110
97
  end
111
98
 
@@ -209,6 +196,58 @@ module FtcApiV3Client
209
196
  def list_invalid_properties
210
197
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
211
198
  invalid_properties = Array.new
199
+ if @auto_sample_points.nil?
200
+ invalid_properties.push('invalid value for "auto_sample_points", auto_sample_points cannot be nil.')
201
+ end
202
+
203
+ if @auto_specimen_points.nil?
204
+ invalid_properties.push('invalid value for "auto_specimen_points", auto_specimen_points cannot be nil.')
205
+ end
206
+
207
+ if @auto_park_points.nil?
208
+ invalid_properties.push('invalid value for "auto_park_points", auto_park_points cannot be nil.')
209
+ end
210
+
211
+ if @auto_ascent_points.nil?
212
+ invalid_properties.push('invalid value for "auto_ascent_points", auto_ascent_points cannot be nil.')
213
+ end
214
+
215
+ if @teleop_sample_points.nil?
216
+ invalid_properties.push('invalid value for "teleop_sample_points", teleop_sample_points cannot be nil.')
217
+ end
218
+
219
+ if @teleop_specimen_points.nil?
220
+ invalid_properties.push('invalid value for "teleop_specimen_points", teleop_specimen_points cannot be nil.')
221
+ end
222
+
223
+ if @teleop_park_points.nil?
224
+ invalid_properties.push('invalid value for "teleop_park_points", teleop_park_points cannot be nil.')
225
+ end
226
+
227
+ if @teleop_ascent_points.nil?
228
+ invalid_properties.push('invalid value for "teleop_ascent_points", teleop_ascent_points cannot be nil.')
229
+ end
230
+
231
+ if @auto_points.nil?
232
+ invalid_properties.push('invalid value for "auto_points", auto_points cannot be nil.')
233
+ end
234
+
235
+ if @teleop_points.nil?
236
+ invalid_properties.push('invalid value for "teleop_points", teleop_points cannot be nil.')
237
+ end
238
+
239
+ if @foul_points_committed.nil?
240
+ invalid_properties.push('invalid value for "foul_points_committed", foul_points_committed cannot be nil.')
241
+ end
242
+
243
+ if @pre_foul_total.nil?
244
+ invalid_properties.push('invalid value for "pre_foul_total", pre_foul_total cannot be nil.')
245
+ end
246
+
247
+ if @adjust_points.nil?
248
+ invalid_properties.push('invalid value for "adjust_points", adjust_points cannot be nil.')
249
+ end
250
+
212
251
  invalid_properties
213
252
  end
214
253
 
@@ -216,9 +255,152 @@ module FtcApiV3Client
216
255
  # @return true if the model is valid
217
256
  def valid?
218
257
  warn '[DEPRECATED] the `valid?` method is obsolete'
258
+ return false if @auto_sample_points.nil?
259
+ return false if @auto_specimen_points.nil?
260
+ return false if @auto_park_points.nil?
261
+ return false if @auto_ascent_points.nil?
262
+ return false if @teleop_sample_points.nil?
263
+ return false if @teleop_specimen_points.nil?
264
+ return false if @teleop_park_points.nil?
265
+ return false if @teleop_ascent_points.nil?
266
+ return false if @auto_points.nil?
267
+ return false if @teleop_points.nil?
268
+ return false if @foul_points_committed.nil?
269
+ return false if @pre_foul_total.nil?
270
+ return false if @adjust_points.nil?
219
271
  true
220
272
  end
221
273
 
274
+ # Custom attribute writer method with validation
275
+ # @param [Object] auto_sample_points Value to be assigned
276
+ def auto_sample_points=(auto_sample_points)
277
+ if auto_sample_points.nil?
278
+ fail ArgumentError, 'auto_sample_points cannot be nil'
279
+ end
280
+
281
+ @auto_sample_points = auto_sample_points
282
+ end
283
+
284
+ # Custom attribute writer method with validation
285
+ # @param [Object] auto_specimen_points Value to be assigned
286
+ def auto_specimen_points=(auto_specimen_points)
287
+ if auto_specimen_points.nil?
288
+ fail ArgumentError, 'auto_specimen_points cannot be nil'
289
+ end
290
+
291
+ @auto_specimen_points = auto_specimen_points
292
+ end
293
+
294
+ # Custom attribute writer method with validation
295
+ # @param [Object] auto_park_points Value to be assigned
296
+ def auto_park_points=(auto_park_points)
297
+ if auto_park_points.nil?
298
+ fail ArgumentError, 'auto_park_points cannot be nil'
299
+ end
300
+
301
+ @auto_park_points = auto_park_points
302
+ end
303
+
304
+ # Custom attribute writer method with validation
305
+ # @param [Object] auto_ascent_points Value to be assigned
306
+ def auto_ascent_points=(auto_ascent_points)
307
+ if auto_ascent_points.nil?
308
+ fail ArgumentError, 'auto_ascent_points cannot be nil'
309
+ end
310
+
311
+ @auto_ascent_points = auto_ascent_points
312
+ end
313
+
314
+ # Custom attribute writer method with validation
315
+ # @param [Object] teleop_sample_points Value to be assigned
316
+ def teleop_sample_points=(teleop_sample_points)
317
+ if teleop_sample_points.nil?
318
+ fail ArgumentError, 'teleop_sample_points cannot be nil'
319
+ end
320
+
321
+ @teleop_sample_points = teleop_sample_points
322
+ end
323
+
324
+ # Custom attribute writer method with validation
325
+ # @param [Object] teleop_specimen_points Value to be assigned
326
+ def teleop_specimen_points=(teleop_specimen_points)
327
+ if teleop_specimen_points.nil?
328
+ fail ArgumentError, 'teleop_specimen_points cannot be nil'
329
+ end
330
+
331
+ @teleop_specimen_points = teleop_specimen_points
332
+ end
333
+
334
+ # Custom attribute writer method with validation
335
+ # @param [Object] teleop_park_points Value to be assigned
336
+ def teleop_park_points=(teleop_park_points)
337
+ if teleop_park_points.nil?
338
+ fail ArgumentError, 'teleop_park_points cannot be nil'
339
+ end
340
+
341
+ @teleop_park_points = teleop_park_points
342
+ end
343
+
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] teleop_ascent_points Value to be assigned
346
+ def teleop_ascent_points=(teleop_ascent_points)
347
+ if teleop_ascent_points.nil?
348
+ fail ArgumentError, 'teleop_ascent_points cannot be nil'
349
+ end
350
+
351
+ @teleop_ascent_points = teleop_ascent_points
352
+ end
353
+
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] auto_points Value to be assigned
356
+ def auto_points=(auto_points)
357
+ if auto_points.nil?
358
+ fail ArgumentError, 'auto_points cannot be nil'
359
+ end
360
+
361
+ @auto_points = auto_points
362
+ end
363
+
364
+ # Custom attribute writer method with validation
365
+ # @param [Object] teleop_points Value to be assigned
366
+ def teleop_points=(teleop_points)
367
+ if teleop_points.nil?
368
+ fail ArgumentError, 'teleop_points cannot be nil'
369
+ end
370
+
371
+ @teleop_points = teleop_points
372
+ end
373
+
374
+ # Custom attribute writer method with validation
375
+ # @param [Object] foul_points_committed Value to be assigned
376
+ def foul_points_committed=(foul_points_committed)
377
+ if foul_points_committed.nil?
378
+ fail ArgumentError, 'foul_points_committed cannot be nil'
379
+ end
380
+
381
+ @foul_points_committed = foul_points_committed
382
+ end
383
+
384
+ # Custom attribute writer method with validation
385
+ # @param [Object] pre_foul_total Value to be assigned
386
+ def pre_foul_total=(pre_foul_total)
387
+ if pre_foul_total.nil?
388
+ fail ArgumentError, 'pre_foul_total cannot be nil'
389
+ end
390
+
391
+ @pre_foul_total = pre_foul_total
392
+ end
393
+
394
+ # Custom attribute writer method with validation
395
+ # @param [Object] adjust_points Value to be assigned
396
+ def adjust_points=(adjust_points)
397
+ if adjust_points.nil?
398
+ fail ArgumentError, 'adjust_points cannot be nil'
399
+ end
400
+
401
+ @adjust_points = adjust_points
402
+ end
403
+
222
404
  # Checks equality by comparing each attribute.
223
405
  # @param [Object] Object to be compared
224
406
  def ==(o)
@@ -60,6 +60,10 @@ module FtcApiV3Client
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'code',
64
+ :'name',
65
+ :'location',
66
+ :'parent_code'
63
67
  ])
64
68
  end
65
69
 
@@ -109,14 +113,6 @@ module FtcApiV3Client
109
113
  def list_invalid_properties
110
114
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
115
  invalid_properties = Array.new
112
- if @code.nil?
113
- invalid_properties.push('invalid value for "code", code cannot be nil.')
114
- end
115
-
116
- if @name.nil?
117
- invalid_properties.push('invalid value for "name", name cannot be nil.')
118
- end
119
-
120
116
  invalid_properties
121
117
  end
122
118
 
@@ -124,31 +120,9 @@ module FtcApiV3Client
124
120
  # @return true if the model is valid
125
121
  def valid?
126
122
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
- return false if @code.nil?
128
- return false if @name.nil?
129
123
  true
130
124
  end
131
125
 
132
- # Custom attribute writer method with validation
133
- # @param [Object] code Value to be assigned
134
- def code=(code)
135
- if code.nil?
136
- fail ArgumentError, 'code cannot be nil'
137
- end
138
-
139
- @code = code
140
- end
141
-
142
- # Custom attribute writer method with validation
143
- # @param [Object] name Value to be assigned
144
- def name=(name)
145
- if name.nil?
146
- fail ArgumentError, 'name cannot be nil'
147
- end
148
-
149
- @name = name
150
- end
151
-
152
126
  # Checks equality by comparing each attribute.
153
127
  # @param [Object] Object to be compared
154
128
  def ==(o)
@@ -64,6 +64,10 @@ module FtcApiV3Client
64
64
  # List of attributes with nullable: true
65
65
  def self.openapi_nullable
66
66
  Set.new([
67
+ :'code',
68
+ :'name',
69
+ :'location',
70
+ :'parent_code',
67
71
  ])
68
72
  end
69
73
 
@@ -121,14 +125,6 @@ module FtcApiV3Client
121
125
  def list_invalid_properties
122
126
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
127
  invalid_properties = Array.new
124
- if @code.nil?
125
- invalid_properties.push('invalid value for "code", code cannot be nil.')
126
- end
127
-
128
- if @name.nil?
129
- invalid_properties.push('invalid value for "name", name cannot be nil.')
130
- end
131
-
132
128
  if @children.nil?
133
129
  invalid_properties.push('invalid value for "children", children cannot be nil.')
134
130
  end
@@ -140,32 +136,10 @@ module FtcApiV3Client
140
136
  # @return true if the model is valid
141
137
  def valid?
142
138
  warn '[DEPRECATED] the `valid?` method is obsolete'
143
- return false if @code.nil?
144
- return false if @name.nil?
145
139
  return false if @children.nil?
146
140
  true
147
141
  end
148
142
 
149
- # Custom attribute writer method with validation
150
- # @param [Object] code Value to be assigned
151
- def code=(code)
152
- if code.nil?
153
- fail ArgumentError, 'code cannot be nil'
154
- end
155
-
156
- @code = code
157
- end
158
-
159
- # Custom attribute writer method with validation
160
- # @param [Object] name Value to be assigned
161
- def name=(name)
162
- if name.nil?
163
- fail ArgumentError, 'name cannot be nil'
164
- end
165
-
166
- @name = name
167
- end
168
-
169
143
  # Custom attribute writer method with validation
170
144
  # @param [Object] children Value to be assigned
171
145
  def children=(children)
@@ -68,10 +68,6 @@ module FtcApiV3Client
68
68
  # List of attributes with nullable: true
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
- :'min_x',
72
- :'min_y',
73
- :'width',
74
- :'height',
75
71
  ])
76
72
  end
77
73
 
@@ -141,6 +137,22 @@ module FtcApiV3Client
141
137
  def list_invalid_properties
142
138
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
143
139
  invalid_properties = Array.new
140
+ if @min_x.nil?
141
+ invalid_properties.push('invalid value for "min_x", min_x cannot be nil.')
142
+ end
143
+
144
+ if @min_y.nil?
145
+ invalid_properties.push('invalid value for "min_y", min_y cannot be nil.')
146
+ end
147
+
148
+ if @width.nil?
149
+ invalid_properties.push('invalid value for "width", width cannot be nil.')
150
+ end
151
+
152
+ if @height.nil?
153
+ invalid_properties.push('invalid value for "height", height cannot be nil.')
154
+ end
155
+
144
156
  if @show_pit_numbers.nil?
145
157
  invalid_properties.push('invalid value for "show_pit_numbers", show_pit_numbers cannot be nil.')
146
158
  end
@@ -160,12 +172,56 @@ module FtcApiV3Client
160
172
  # @return true if the model is valid
161
173
  def valid?
162
174
  warn '[DEPRECATED] the `valid?` method is obsolete'
175
+ return false if @min_x.nil?
176
+ return false if @min_y.nil?
177
+ return false if @width.nil?
178
+ return false if @height.nil?
163
179
  return false if @show_pit_numbers.nil?
164
180
  return false if @show_pit_addresses.nil?
165
181
  return false if @elements.nil?
166
182
  true
167
183
  end
168
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] min_x Value to be assigned
187
+ def min_x=(min_x)
188
+ if min_x.nil?
189
+ fail ArgumentError, 'min_x cannot be nil'
190
+ end
191
+
192
+ @min_x = min_x
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] min_y Value to be assigned
197
+ def min_y=(min_y)
198
+ if min_y.nil?
199
+ fail ArgumentError, 'min_y cannot be nil'
200
+ end
201
+
202
+ @min_y = min_y
203
+ end
204
+
205
+ # Custom attribute writer method with validation
206
+ # @param [Object] width Value to be assigned
207
+ def width=(width)
208
+ if width.nil?
209
+ fail ArgumentError, 'width cannot be nil'
210
+ end
211
+
212
+ @width = width
213
+ end
214
+
215
+ # Custom attribute writer method with validation
216
+ # @param [Object] height Value to be assigned
217
+ def height=(height)
218
+ if height.nil?
219
+ fail ArgumentError, 'height cannot be nil'
220
+ end
221
+
222
+ @height = height
223
+ end
224
+
169
225
  # Custom attribute writer method with validation
170
226
  # @param [Object] show_pit_numbers Value to be assigned
171
227
  def show_pit_numbers=(show_pit_numbers)