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
@@ -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)
@@ -48,6 +48,8 @@ module FtcApiV3Client
48
48
  # List of attributes with nullable: true
49
49
  def self.openapi_nullable
50
50
  Set.new([
51
+ :'event_code',
52
+ :'name'
51
53
  ])
52
54
  end
53
55
 
@@ -85,14 +87,6 @@ module FtcApiV3Client
85
87
  def list_invalid_properties
86
88
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
89
  invalid_properties = Array.new
88
- if @event_code.nil?
89
- invalid_properties.push('invalid value for "event_code", event_code cannot be nil.')
90
- end
91
-
92
- if @name.nil?
93
- invalid_properties.push('invalid value for "name", name cannot be nil.')
94
- end
95
-
96
90
  invalid_properties
97
91
  end
98
92
 
@@ -100,31 +94,9 @@ module FtcApiV3Client
100
94
  # @return true if the model is valid
101
95
  def valid?
102
96
  warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @event_code.nil?
104
- return false if @name.nil?
105
97
  true
106
98
  end
107
99
 
108
- # Custom attribute writer method with validation
109
- # @param [Object] event_code Value to be assigned
110
- def event_code=(event_code)
111
- if event_code.nil?
112
- fail ArgumentError, 'event_code cannot be nil'
113
- end
114
-
115
- @event_code = event_code
116
- end
117
-
118
- # Custom attribute writer method with validation
119
- # @param [Object] name Value to be assigned
120
- def name=(name)
121
- if name.nil?
122
- fail ArgumentError, 'name cannot be nil'
123
- end
124
-
125
- @name = name
126
- end
127
-
128
100
  # Checks equality by comparing each attribute.
129
101
  # @param [Object] Object to be compared
130
102
  def ==(o)
@@ -104,9 +104,9 @@ module FtcApiV3Client
104
104
  # List of attributes with nullable: true
105
105
  def self.openapi_nullable
106
106
  Set.new([
107
- :'series_id',
108
- :'matches_to_win',
109
- :'round',
107
+ :'name',
108
+ :'short_name',
109
+ :'bracket_half',
110
110
  ])
111
111
  end
112
112
 
@@ -190,12 +190,16 @@ module FtcApiV3Client
190
190
  def list_invalid_properties
191
191
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
192
192
  invalid_properties = Array.new
193
- if @name.nil?
194
- invalid_properties.push('invalid value for "name", name cannot be nil.')
193
+ if @series_id.nil?
194
+ invalid_properties.push('invalid value for "series_id", series_id cannot be nil.')
195
195
  end
196
196
 
197
- if @short_name.nil?
198
- invalid_properties.push('invalid value for "short_name", short_name cannot be nil.')
197
+ if @matches_to_win.nil?
198
+ invalid_properties.push('invalid value for "matches_to_win", matches_to_win cannot be nil.')
199
+ end
200
+
201
+ if @round.nil?
202
+ invalid_properties.push('invalid value for "round", round cannot be nil.')
199
203
  end
200
204
 
201
205
  if @red.nil?
@@ -221,8 +225,9 @@ module FtcApiV3Client
221
225
  # @return true if the model is valid
222
226
  def valid?
223
227
  warn '[DEPRECATED] the `valid?` method is obsolete'
224
- return false if @name.nil?
225
- return false if @short_name.nil?
228
+ return false if @series_id.nil?
229
+ return false if @matches_to_win.nil?
230
+ return false if @round.nil?
226
231
  return false if @red.nil?
227
232
  return false if @blue.nil?
228
233
  return false if @finals.nil?
@@ -231,23 +236,33 @@ module FtcApiV3Client
231
236
  end
232
237
 
233
238
  # Custom attribute writer method with validation
234
- # @param [Object] name Value to be assigned
235
- def name=(name)
236
- if name.nil?
237
- fail ArgumentError, 'name cannot be nil'
239
+ # @param [Object] series_id Value to be assigned
240
+ def series_id=(series_id)
241
+ if series_id.nil?
242
+ fail ArgumentError, 'series_id cannot be nil'
243
+ end
244
+
245
+ @series_id = series_id
246
+ end
247
+
248
+ # Custom attribute writer method with validation
249
+ # @param [Object] matches_to_win Value to be assigned
250
+ def matches_to_win=(matches_to_win)
251
+ if matches_to_win.nil?
252
+ fail ArgumentError, 'matches_to_win cannot be nil'
238
253
  end
239
254
 
240
- @name = name
255
+ @matches_to_win = matches_to_win
241
256
  end
242
257
 
243
258
  # Custom attribute writer method with validation
244
- # @param [Object] short_name Value to be assigned
245
- def short_name=(short_name)
246
- if short_name.nil?
247
- fail ArgumentError, 'short_name cannot be nil'
259
+ # @param [Object] round Value to be assigned
260
+ def round=(round)
261
+ if round.nil?
262
+ fail ArgumentError, 'round cannot be nil'
248
263
  end
249
264
 
250
- @short_name = short_name
265
+ @round = round
251
266
  end
252
267
 
253
268
  # Custom attribute writer method with validation
@@ -155,8 +155,23 @@ module FtcApiV3Client
155
155
  # List of attributes with nullable: true
156
156
  def self.openapi_nullable
157
157
  Set.new([
158
- :'field_count',
159
- :'capacity',
158
+ :'code',
159
+ :'name',
160
+ :'type',
161
+ :'format',
162
+ :'start_date',
163
+ :'end_date',
164
+ :'region_code',
165
+ :'league_code',
166
+ :'parent_event_code',
167
+ :'venue',
168
+ :'street_address',
169
+ :'street_address2',
170
+ :'city',
171
+ :'state',
172
+ :'country',
173
+ :'website',
174
+ :'timezone'
160
175
  ])
161
176
  end
162
177
 
@@ -300,44 +315,16 @@ module FtcApiV3Client
300
315
  def list_invalid_properties
301
316
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
302
317
  invalid_properties = Array.new
303
- if @code.nil?
304
- invalid_properties.push('invalid value for "code", code cannot be nil.')
305
- end
306
-
307
- if @name.nil?
308
- invalid_properties.push('invalid value for "name", name cannot be nil.')
309
- end
310
-
311
- if @type.nil?
312
- invalid_properties.push('invalid value for "type", type cannot be nil.')
313
- end
314
-
315
- if @format.nil?
316
- invalid_properties.push('invalid value for "format", format cannot be nil.')
317
- end
318
-
319
- if @start_date.nil?
320
- invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
321
- end
322
-
323
- if @end_date.nil?
324
- invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
325
- end
326
-
327
- if @region_code.nil?
328
- invalid_properties.push('invalid value for "region_code", region_code cannot be nil.')
329
- end
330
-
331
318
  if @divisions.nil?
332
319
  invalid_properties.push('invalid value for "divisions", divisions cannot be nil.')
333
320
  end
334
321
 
335
- if @published.nil?
336
- invalid_properties.push('invalid value for "published", published cannot be nil.')
322
+ if @field_count.nil?
323
+ invalid_properties.push('invalid value for "field_count", field_count cannot be nil.')
337
324
  end
338
325
 
339
- if @timezone.nil?
340
- invalid_properties.push('invalid value for "timezone", timezone cannot be nil.')
326
+ if @published.nil?
327
+ invalid_properties.push('invalid value for "published", published cannot be nil.')
341
328
  end
342
329
 
343
330
  invalid_properties
@@ -347,89 +334,12 @@ module FtcApiV3Client
347
334
  # @return true if the model is valid
348
335
  def valid?
349
336
  warn '[DEPRECATED] the `valid?` method is obsolete'
350
- return false if @code.nil?
351
- return false if @name.nil?
352
- return false if @type.nil?
353
- return false if @format.nil?
354
- return false if @start_date.nil?
355
- return false if @end_date.nil?
356
- return false if @region_code.nil?
357
337
  return false if @divisions.nil?
338
+ return false if @field_count.nil?
358
339
  return false if @published.nil?
359
- return false if @timezone.nil?
360
340
  true
361
341
  end
362
342
 
363
- # Custom attribute writer method with validation
364
- # @param [Object] code Value to be assigned
365
- def code=(code)
366
- if code.nil?
367
- fail ArgumentError, 'code cannot be nil'
368
- end
369
-
370
- @code = code
371
- end
372
-
373
- # Custom attribute writer method with validation
374
- # @param [Object] name Value to be assigned
375
- def name=(name)
376
- if name.nil?
377
- fail ArgumentError, 'name cannot be nil'
378
- end
379
-
380
- @name = name
381
- end
382
-
383
- # Custom attribute writer method with validation
384
- # @param [Object] type Value to be assigned
385
- def type=(type)
386
- if type.nil?
387
- fail ArgumentError, 'type cannot be nil'
388
- end
389
-
390
- @type = type
391
- end
392
-
393
- # Custom attribute writer method with validation
394
- # @param [Object] format Value to be assigned
395
- def format=(format)
396
- if format.nil?
397
- fail ArgumentError, 'format cannot be nil'
398
- end
399
-
400
- @format = format
401
- end
402
-
403
- # Custom attribute writer method with validation
404
- # @param [Object] start_date Value to be assigned
405
- def start_date=(start_date)
406
- if start_date.nil?
407
- fail ArgumentError, 'start_date cannot be nil'
408
- end
409
-
410
- @start_date = start_date
411
- end
412
-
413
- # Custom attribute writer method with validation
414
- # @param [Object] end_date Value to be assigned
415
- def end_date=(end_date)
416
- if end_date.nil?
417
- fail ArgumentError, 'end_date cannot be nil'
418
- end
419
-
420
- @end_date = end_date
421
- end
422
-
423
- # Custom attribute writer method with validation
424
- # @param [Object] region_code Value to be assigned
425
- def region_code=(region_code)
426
- if region_code.nil?
427
- fail ArgumentError, 'region_code cannot be nil'
428
- end
429
-
430
- @region_code = region_code
431
- end
432
-
433
343
  # Custom attribute writer method with validation
434
344
  # @param [Object] divisions Value to be assigned
435
345
  def divisions=(divisions)
@@ -441,23 +351,23 @@ module FtcApiV3Client
441
351
  end
442
352
 
443
353
  # Custom attribute writer method with validation
444
- # @param [Object] published Value to be assigned
445
- def published=(published)
446
- if published.nil?
447
- fail ArgumentError, 'published cannot be nil'
354
+ # @param [Object] field_count Value to be assigned
355
+ def field_count=(field_count)
356
+ if field_count.nil?
357
+ fail ArgumentError, 'field_count cannot be nil'
448
358
  end
449
359
 
450
- @published = published
360
+ @field_count = field_count
451
361
  end
452
362
 
453
363
  # Custom attribute writer method with validation
454
- # @param [Object] timezone Value to be assigned
455
- def timezone=(timezone)
456
- if timezone.nil?
457
- fail ArgumentError, 'timezone cannot be nil'
364
+ # @param [Object] published Value to be assigned
365
+ def published=(published)
366
+ if published.nil?
367
+ fail ArgumentError, 'published cannot be nil'
458
368
  end
459
369
 
460
- @timezone = timezone
370
+ @published = published
461
371
  end
462
372
 
463
373
  # Checks equality by comparing each attribute.
@@ -52,6 +52,9 @@ module FtcApiV3Client
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'url',
56
+ :'date',
57
+ :'label'
55
58
  ])
56
59
  end
57
60
 
@@ -91,10 +94,6 @@ module FtcApiV3Client
91
94
  def list_invalid_properties
92
95
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
96
  invalid_properties = Array.new
94
- if @url.nil?
95
- invalid_properties.push('invalid value for "url", url cannot be nil.')
96
- end
97
-
98
97
  invalid_properties
99
98
  end
100
99
 
@@ -102,20 +101,9 @@ module FtcApiV3Client
102
101
  # @return true if the model is valid
103
102
  def valid?
104
103
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
- return false if @url.nil?
106
104
  true
107
105
  end
108
106
 
109
- # Custom attribute writer method with validation
110
- # @param [Object] url Value to be assigned
111
- def url=(url)
112
- if url.nil?
113
- fail ArgumentError, 'url cannot be nil'
114
- end
115
-
116
- @url = url
117
- end
118
-
119
107
  # Checks equality by comparing each attribute.
120
108
  # @param [Object] Object to be compared
121
109
  def ==(o)
@@ -74,6 +74,8 @@ module FtcApiV3Client
74
74
  # List of attributes with nullable: true
75
75
  def self.openapi_nullable
76
76
  Set.new([
77
+ :'competing_type',
78
+ :'division_event_code'
77
79
  ])
78
80
  end
79
81
 
@@ -119,10 +121,6 @@ module FtcApiV3Client
119
121
  invalid_properties.push('invalid value for "team", team cannot be nil.')
120
122
  end
121
123
 
122
- if @competing_type.nil?
123
- invalid_properties.push('invalid value for "competing_type", competing_type cannot be nil.')
124
- end
125
-
126
124
  invalid_properties
127
125
  end
128
126
 
@@ -131,7 +129,6 @@ module FtcApiV3Client
131
129
  def valid?
132
130
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
131
  return false if @team.nil?
134
- return false if @competing_type.nil?
135
132
  true
136
133
  end
137
134
 
@@ -145,16 +142,6 @@ module FtcApiV3Client
145
142
  @team = team
146
143
  end
147
144
 
148
- # Custom attribute writer method with validation
149
- # @param [Object] competing_type Value to be assigned
150
- def competing_type=(competing_type)
151
- if competing_type.nil?
152
- fail ArgumentError, 'competing_type cannot be nil'
153
- end
154
-
155
- @competing_type = competing_type
156
- end
157
-
158
145
  # Checks equality by comparing each attribute.
159
146
  # @param [Object] Object to be compared
160
147
  def ==(o)