ftc_api_v3_client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/config.json +1 -1
- data/ftc_api_v3_client-0.1.0.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +0 -4
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +16 -240
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +9 -135
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +7 -105
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +13 -195
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +19 -285
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +16 -240
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +13 -195
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +4 -60
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +5 -60
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +6 -90
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +7 -105
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +8 -120
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +6 -90
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +11 -165
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/version.rb +1 -1
- data/update.sh +1 -1
- metadata +2 -1
|
@@ -126,6 +126,18 @@ 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
141
|
])
|
|
130
142
|
end
|
|
131
143
|
|
|
@@ -255,46 +267,6 @@ module FtcApiV3Client
|
|
|
255
267
|
invalid_properties.push('invalid value for "robot2_auto", robot2_auto cannot be nil.')
|
|
256
268
|
end
|
|
257
269
|
|
|
258
|
-
if @auto_sample_net.nil?
|
|
259
|
-
invalid_properties.push('invalid value for "auto_sample_net", auto_sample_net cannot be nil.')
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
if @auto_sample_low.nil?
|
|
263
|
-
invalid_properties.push('invalid value for "auto_sample_low", auto_sample_low cannot be nil.')
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
if @auto_sample_high.nil?
|
|
267
|
-
invalid_properties.push('invalid value for "auto_sample_high", auto_sample_high cannot be nil.')
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
if @auto_specimen_low.nil?
|
|
271
|
-
invalid_properties.push('invalid value for "auto_specimen_low", auto_specimen_low cannot be nil.')
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
if @auto_specimen_high.nil?
|
|
275
|
-
invalid_properties.push('invalid value for "auto_specimen_high", auto_specimen_high cannot be nil.')
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
if @teleop_sample_net.nil?
|
|
279
|
-
invalid_properties.push('invalid value for "teleop_sample_net", teleop_sample_net cannot be nil.')
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
if @teleop_sample_low.nil?
|
|
283
|
-
invalid_properties.push('invalid value for "teleop_sample_low", teleop_sample_low cannot be nil.')
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
if @teleop_sample_high.nil?
|
|
287
|
-
invalid_properties.push('invalid value for "teleop_sample_high", teleop_sample_high cannot be nil.')
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
if @teleop_specimen_low.nil?
|
|
291
|
-
invalid_properties.push('invalid value for "teleop_specimen_low", teleop_specimen_low cannot be nil.')
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
if @teleop_specimen_high.nil?
|
|
295
|
-
invalid_properties.push('invalid value for "teleop_specimen_high", teleop_specimen_high cannot be nil.')
|
|
296
|
-
end
|
|
297
|
-
|
|
298
270
|
if @robot1_teleop.nil?
|
|
299
271
|
invalid_properties.push('invalid value for "robot1_teleop", robot1_teleop cannot be nil.')
|
|
300
272
|
end
|
|
@@ -303,14 +275,6 @@ module FtcApiV3Client
|
|
|
303
275
|
invalid_properties.push('invalid value for "robot2_teleop", robot2_teleop cannot be nil.')
|
|
304
276
|
end
|
|
305
277
|
|
|
306
|
-
if @minor_fouls.nil?
|
|
307
|
-
invalid_properties.push('invalid value for "minor_fouls", minor_fouls cannot be nil.')
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
if @major_fouls.nil?
|
|
311
|
-
invalid_properties.push('invalid value for "major_fouls", major_fouls cannot be nil.')
|
|
312
|
-
end
|
|
313
|
-
|
|
314
278
|
invalid_properties
|
|
315
279
|
end
|
|
316
280
|
|
|
@@ -320,20 +284,8 @@ module FtcApiV3Client
|
|
|
320
284
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
321
285
|
return false if @robot1_auto.nil?
|
|
322
286
|
return false if @robot2_auto.nil?
|
|
323
|
-
return false if @auto_sample_net.nil?
|
|
324
|
-
return false if @auto_sample_low.nil?
|
|
325
|
-
return false if @auto_sample_high.nil?
|
|
326
|
-
return false if @auto_specimen_low.nil?
|
|
327
|
-
return false if @auto_specimen_high.nil?
|
|
328
|
-
return false if @teleop_sample_net.nil?
|
|
329
|
-
return false if @teleop_sample_low.nil?
|
|
330
|
-
return false if @teleop_sample_high.nil?
|
|
331
|
-
return false if @teleop_specimen_low.nil?
|
|
332
|
-
return false if @teleop_specimen_high.nil?
|
|
333
287
|
return false if @robot1_teleop.nil?
|
|
334
288
|
return false if @robot2_teleop.nil?
|
|
335
|
-
return false if @minor_fouls.nil?
|
|
336
|
-
return false if @major_fouls.nil?
|
|
337
289
|
true
|
|
338
290
|
end
|
|
339
291
|
|
|
@@ -357,106 +309,6 @@ module FtcApiV3Client
|
|
|
357
309
|
@robot2_auto = robot2_auto
|
|
358
310
|
end
|
|
359
311
|
|
|
360
|
-
# Custom attribute writer method with validation
|
|
361
|
-
# @param [Object] auto_sample_net Value to be assigned
|
|
362
|
-
def auto_sample_net=(auto_sample_net)
|
|
363
|
-
if auto_sample_net.nil?
|
|
364
|
-
fail ArgumentError, 'auto_sample_net cannot be nil'
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
@auto_sample_net = auto_sample_net
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
# Custom attribute writer method with validation
|
|
371
|
-
# @param [Object] auto_sample_low Value to be assigned
|
|
372
|
-
def auto_sample_low=(auto_sample_low)
|
|
373
|
-
if auto_sample_low.nil?
|
|
374
|
-
fail ArgumentError, 'auto_sample_low cannot be nil'
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
@auto_sample_low = auto_sample_low
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
# Custom attribute writer method with validation
|
|
381
|
-
# @param [Object] auto_sample_high Value to be assigned
|
|
382
|
-
def auto_sample_high=(auto_sample_high)
|
|
383
|
-
if auto_sample_high.nil?
|
|
384
|
-
fail ArgumentError, 'auto_sample_high cannot be nil'
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
@auto_sample_high = auto_sample_high
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# Custom attribute writer method with validation
|
|
391
|
-
# @param [Object] auto_specimen_low Value to be assigned
|
|
392
|
-
def auto_specimen_low=(auto_specimen_low)
|
|
393
|
-
if auto_specimen_low.nil?
|
|
394
|
-
fail ArgumentError, 'auto_specimen_low cannot be nil'
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
@auto_specimen_low = auto_specimen_low
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
# Custom attribute writer method with validation
|
|
401
|
-
# @param [Object] auto_specimen_high Value to be assigned
|
|
402
|
-
def auto_specimen_high=(auto_specimen_high)
|
|
403
|
-
if auto_specimen_high.nil?
|
|
404
|
-
fail ArgumentError, 'auto_specimen_high cannot be nil'
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
@auto_specimen_high = auto_specimen_high
|
|
408
|
-
end
|
|
409
|
-
|
|
410
|
-
# Custom attribute writer method with validation
|
|
411
|
-
# @param [Object] teleop_sample_net Value to be assigned
|
|
412
|
-
def teleop_sample_net=(teleop_sample_net)
|
|
413
|
-
if teleop_sample_net.nil?
|
|
414
|
-
fail ArgumentError, 'teleop_sample_net cannot be nil'
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
@teleop_sample_net = teleop_sample_net
|
|
418
|
-
end
|
|
419
|
-
|
|
420
|
-
# Custom attribute writer method with validation
|
|
421
|
-
# @param [Object] teleop_sample_low Value to be assigned
|
|
422
|
-
def teleop_sample_low=(teleop_sample_low)
|
|
423
|
-
if teleop_sample_low.nil?
|
|
424
|
-
fail ArgumentError, 'teleop_sample_low cannot be nil'
|
|
425
|
-
end
|
|
426
|
-
|
|
427
|
-
@teleop_sample_low = teleop_sample_low
|
|
428
|
-
end
|
|
429
|
-
|
|
430
|
-
# Custom attribute writer method with validation
|
|
431
|
-
# @param [Object] teleop_sample_high Value to be assigned
|
|
432
|
-
def teleop_sample_high=(teleop_sample_high)
|
|
433
|
-
if teleop_sample_high.nil?
|
|
434
|
-
fail ArgumentError, 'teleop_sample_high cannot be nil'
|
|
435
|
-
end
|
|
436
|
-
|
|
437
|
-
@teleop_sample_high = teleop_sample_high
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
# Custom attribute writer method with validation
|
|
441
|
-
# @param [Object] teleop_specimen_low Value to be assigned
|
|
442
|
-
def teleop_specimen_low=(teleop_specimen_low)
|
|
443
|
-
if teleop_specimen_low.nil?
|
|
444
|
-
fail ArgumentError, 'teleop_specimen_low cannot be nil'
|
|
445
|
-
end
|
|
446
|
-
|
|
447
|
-
@teleop_specimen_low = teleop_specimen_low
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
# Custom attribute writer method with validation
|
|
451
|
-
# @param [Object] teleop_specimen_high Value to be assigned
|
|
452
|
-
def teleop_specimen_high=(teleop_specimen_high)
|
|
453
|
-
if teleop_specimen_high.nil?
|
|
454
|
-
fail ArgumentError, 'teleop_specimen_high cannot be nil'
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
@teleop_specimen_high = teleop_specimen_high
|
|
458
|
-
end
|
|
459
|
-
|
|
460
312
|
# Custom attribute writer method with validation
|
|
461
313
|
# @param [Object] robot1_teleop Value to be assigned
|
|
462
314
|
def robot1_teleop=(robot1_teleop)
|
|
@@ -477,26 +329,6 @@ module FtcApiV3Client
|
|
|
477
329
|
@robot2_teleop = robot2_teleop
|
|
478
330
|
end
|
|
479
331
|
|
|
480
|
-
# Custom attribute writer method with validation
|
|
481
|
-
# @param [Object] minor_fouls Value to be assigned
|
|
482
|
-
def minor_fouls=(minor_fouls)
|
|
483
|
-
if minor_fouls.nil?
|
|
484
|
-
fail ArgumentError, 'minor_fouls cannot be nil'
|
|
485
|
-
end
|
|
486
|
-
|
|
487
|
-
@minor_fouls = minor_fouls
|
|
488
|
-
end
|
|
489
|
-
|
|
490
|
-
# Custom attribute writer method with validation
|
|
491
|
-
# @param [Object] major_fouls Value to be assigned
|
|
492
|
-
def major_fouls=(major_fouls)
|
|
493
|
-
if major_fouls.nil?
|
|
494
|
-
fail ArgumentError, 'major_fouls cannot be nil'
|
|
495
|
-
end
|
|
496
|
-
|
|
497
|
-
@major_fouls = major_fouls
|
|
498
|
-
end
|
|
499
|
-
|
|
500
332
|
# Checks equality by comparing each attribute.
|
|
501
333
|
# @param [Object] Object to be compared
|
|
502
334
|
def ==(o)
|
|
@@ -93,6 +93,19 @@ 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'
|
|
96
109
|
])
|
|
97
110
|
end
|
|
98
111
|
|
|
@@ -196,58 +209,6 @@ module FtcApiV3Client
|
|
|
196
209
|
def list_invalid_properties
|
|
197
210
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
198
211
|
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
|
-
|
|
251
212
|
invalid_properties
|
|
252
213
|
end
|
|
253
214
|
|
|
@@ -255,152 +216,9 @@ module FtcApiV3Client
|
|
|
255
216
|
# @return true if the model is valid
|
|
256
217
|
def valid?
|
|
257
218
|
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?
|
|
271
219
|
true
|
|
272
220
|
end
|
|
273
221
|
|
|
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
|
-
|
|
404
222
|
# Checks equality by comparing each attribute.
|
|
405
223
|
# @param [Object] Object to be compared
|
|
406
224
|
def ==(o)
|
|
@@ -68,6 +68,10 @@ 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',
|
|
71
75
|
])
|
|
72
76
|
end
|
|
73
77
|
|
|
@@ -137,22 +141,6 @@ module FtcApiV3Client
|
|
|
137
141
|
def list_invalid_properties
|
|
138
142
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
139
143
|
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
|
-
|
|
156
144
|
if @show_pit_numbers.nil?
|
|
157
145
|
invalid_properties.push('invalid value for "show_pit_numbers", show_pit_numbers cannot be nil.')
|
|
158
146
|
end
|
|
@@ -172,56 +160,12 @@ module FtcApiV3Client
|
|
|
172
160
|
# @return true if the model is valid
|
|
173
161
|
def valid?
|
|
174
162
|
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?
|
|
179
163
|
return false if @show_pit_numbers.nil?
|
|
180
164
|
return false if @show_pit_addresses.nil?
|
|
181
165
|
return false if @elements.nil?
|
|
182
166
|
true
|
|
183
167
|
end
|
|
184
168
|
|
|
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
|
-
|
|
225
169
|
# Custom attribute writer method with validation
|
|
226
170
|
# @param [Object] show_pit_numbers Value to be assigned
|
|
227
171
|
def show_pit_numbers=(show_pit_numbers)
|
|
@@ -110,6 +110,11 @@ module FtcApiV3Client
|
|
|
110
110
|
# List of attributes with nullable: true
|
|
111
111
|
def self.openapi_nullable
|
|
112
112
|
Set.new([
|
|
113
|
+
:'x',
|
|
114
|
+
:'y',
|
|
115
|
+
:'width',
|
|
116
|
+
:'height',
|
|
117
|
+
:'index',
|
|
113
118
|
])
|
|
114
119
|
end
|
|
115
120
|
|
|
@@ -191,22 +196,6 @@ module FtcApiV3Client
|
|
|
191
196
|
def list_invalid_properties
|
|
192
197
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
193
198
|
invalid_properties = Array.new
|
|
194
|
-
if @x.nil?
|
|
195
|
-
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
if @y.nil?
|
|
199
|
-
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if @width.nil?
|
|
203
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
if @height.nil?
|
|
207
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
|
208
|
-
end
|
|
209
|
-
|
|
210
199
|
invalid_properties
|
|
211
200
|
end
|
|
212
201
|
|
|
@@ -214,53 +203,9 @@ module FtcApiV3Client
|
|
|
214
203
|
# @return true if the model is valid
|
|
215
204
|
def valid?
|
|
216
205
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
217
|
-
return false if @x.nil?
|
|
218
|
-
return false if @y.nil?
|
|
219
|
-
return false if @width.nil?
|
|
220
|
-
return false if @height.nil?
|
|
221
206
|
true
|
|
222
207
|
end
|
|
223
208
|
|
|
224
|
-
# Custom attribute writer method with validation
|
|
225
|
-
# @param [Object] x Value to be assigned
|
|
226
|
-
def x=(x)
|
|
227
|
-
if x.nil?
|
|
228
|
-
fail ArgumentError, 'x cannot be nil'
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
@x = x
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
# Custom attribute writer method with validation
|
|
235
|
-
# @param [Object] y Value to be assigned
|
|
236
|
-
def y=(y)
|
|
237
|
-
if y.nil?
|
|
238
|
-
fail ArgumentError, 'y cannot be nil'
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
@y = y
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# Custom attribute writer method with validation
|
|
245
|
-
# @param [Object] width Value to be assigned
|
|
246
|
-
def width=(width)
|
|
247
|
-
if width.nil?
|
|
248
|
-
fail ArgumentError, 'width cannot be nil'
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
@width = width
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
# Custom attribute writer method with validation
|
|
255
|
-
# @param [Object] height Value to be assigned
|
|
256
|
-
def height=(height)
|
|
257
|
-
if height.nil?
|
|
258
|
-
fail ArgumentError, 'height cannot be nil'
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
@height = height
|
|
262
|
-
end
|
|
263
|
-
|
|
264
209
|
# Checks equality by comparing each attribute.
|
|
265
210
|
# @param [Object] Object to be compared
|
|
266
211
|
def ==(o)
|
|
@@ -58,6 +58,7 @@ module FtcApiV3Client
|
|
|
58
58
|
# List of attributes with nullable: true
|
|
59
59
|
def self.openapi_nullable
|
|
60
60
|
Set.new([
|
|
61
|
+
:'seed',
|
|
61
62
|
])
|
|
62
63
|
end
|
|
63
64
|
|
|
@@ -105,10 +106,6 @@ module FtcApiV3Client
|
|
|
105
106
|
def list_invalid_properties
|
|
106
107
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
107
108
|
invalid_properties = Array.new
|
|
108
|
-
if @seed.nil?
|
|
109
|
-
invalid_properties.push('invalid value for "seed", seed cannot be nil.')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
109
|
if @teams.nil?
|
|
113
110
|
invalid_properties.push('invalid value for "teams", teams cannot be nil.')
|
|
114
111
|
end
|
|
@@ -120,21 +117,10 @@ module FtcApiV3Client
|
|
|
120
117
|
# @return true if the model is valid
|
|
121
118
|
def valid?
|
|
122
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
123
|
-
return false if @seed.nil?
|
|
124
120
|
return false if @teams.nil?
|
|
125
121
|
true
|
|
126
122
|
end
|
|
127
123
|
|
|
128
|
-
# Custom attribute writer method with validation
|
|
129
|
-
# @param [Object] seed Value to be assigned
|
|
130
|
-
def seed=(seed)
|
|
131
|
-
if seed.nil?
|
|
132
|
-
fail ArgumentError, 'seed cannot be nil'
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
@seed = seed
|
|
136
|
-
end
|
|
137
|
-
|
|
138
124
|
# Custom attribute writer method with validation
|
|
139
125
|
# @param [Object] teams Value to be assigned
|
|
140
126
|
def teams=(teams)
|