ftc_api_v3_client 0.1.0

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 (415) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +283 -0
  4. data/Rakefile +10 -0
  5. data/config.json +8 -0
  6. data/docs/ApiV3AdvancementFrom.md +22 -0
  7. data/docs/ApiV3AdvancementFromSlot.md +24 -0
  8. data/docs/ApiV3AdvancementStatus.md +15 -0
  9. data/docs/ApiV3AllianceColor.md +15 -0
  10. data/docs/ApiV3AllianceDescription.md +82 -0
  11. data/docs/ApiV3AllianceMatch.md +44 -0
  12. data/docs/ApiV3AllianceMatchDetails.md +46 -0
  13. data/docs/ApiV3AllianceMatchParticipants.md +79 -0
  14. data/docs/ApiV3AllianceMatchResults.md +22 -0
  15. data/docs/ApiV3AllianceMatchResultsDetails.md +20 -0
  16. data/docs/ApiV3AlliancePlayoffMatchParticipants.md +22 -0
  17. data/docs/ApiV3AllianceSelection.md +20 -0
  18. data/docs/ApiV3AllianceSelections.md +18 -0
  19. data/docs/ApiV3AllianceSimpleMatchParticipants.md +22 -0
  20. data/docs/ApiV3Award.md +30 -0
  21. data/docs/ApiV3AwardRecipient.md +24 -0
  22. data/docs/ApiV3AwardType.md +15 -0
  23. data/docs/ApiV3Awards.md +18 -0
  24. data/docs/ApiV3BasePlayoffSeriesDescription.md +79 -0
  25. data/docs/ApiV3BasicAllianceDescription.md +20 -0
  26. data/docs/ApiV3CenterStageRemoteScoreDetail.md +22 -0
  27. data/docs/ApiV3CenterStageScoreDetail.md +22 -0
  28. data/docs/ApiV3CompetingType.md +15 -0
  29. data/docs/ApiV3Coordinates.md +20 -0
  30. data/docs/ApiV3CsAchievementsDetail.md +56 -0
  31. data/docs/ApiV3CsEndLocation.md +15 -0
  32. data/docs/ApiV3CsPointsDetail.md +48 -0
  33. data/docs/ApiV3CsRemoteAchievementsDetail.md +44 -0
  34. data/docs/ApiV3CsRemotePointsDetail.md +46 -0
  35. data/docs/ApiV3DecodeAchievementsDetail.md +42 -0
  36. data/docs/ApiV3DecodeArtifactType.md +15 -0
  37. data/docs/ApiV3DecodePointsDetail.md +46 -0
  38. data/docs/ApiV3DecodeScoreDetail.md +22 -0
  39. data/docs/ApiV3DecodeTeleopBaseLocation.md +15 -0
  40. data/docs/ApiV3Division.md +20 -0
  41. data/docs/ApiV3DoubleEliminationSeriesDescription.md +36 -0
  42. data/docs/ApiV3DoubleElimsBracketHalf.md +15 -0
  43. data/docs/ApiV3Event.md +62 -0
  44. data/docs/ApiV3EventFormat.md +15 -0
  45. data/docs/ApiV3EventLiveStream.md +22 -0
  46. data/docs/ApiV3EventParticipant.md +22 -0
  47. data/docs/ApiV3EventParticipants.md +18 -0
  48. data/docs/ApiV3EventType.md +15 -0
  49. data/docs/ApiV3Events.md +18 -0
  50. data/docs/ApiV3FFAchievementsDetail.md +64 -0
  51. data/docs/ApiV3FFAutoLocation.md +15 -0
  52. data/docs/ApiV3FFEndLocation.md +15 -0
  53. data/docs/ApiV3FFPointsDetail.md +54 -0
  54. data/docs/ApiV3FFRemoteAchievementsDetail.md +52 -0
  55. data/docs/ApiV3FFRemotePointsDetail.md +48 -0
  56. data/docs/ApiV3FreightFrenzyRemoteScoreDetail.md +22 -0
  57. data/docs/ApiV3FreightFrenzyScoreDetail.md +22 -0
  58. data/docs/ApiV3IntoTheDeepScoreDetail.md +22 -0
  59. data/docs/ApiV3ItdAchievementsDetail.md +48 -0
  60. data/docs/ApiV3ItdAutoLocation.md +15 -0
  61. data/docs/ApiV3ItdPointsDetail.md +42 -0
  62. data/docs/ApiV3ItdTeleopLocation.md +15 -0
  63. data/docs/ApiV3JunctionElement.md +15 -0
  64. data/docs/ApiV3League.md +26 -0
  65. data/docs/ApiV3LeagueDetails.md +28 -0
  66. data/docs/ApiV3LeagueMembershipDetails.md +20 -0
  67. data/docs/ApiV3Leagues.md +18 -0
  68. data/docs/ApiV3Match.md +79 -0
  69. data/docs/ApiV3MatchAlliance.md +18 -0
  70. data/docs/ApiV3MatchDetails.md +79 -0
  71. data/docs/ApiV3MatchTeam.md +24 -0
  72. data/docs/ApiV3Matches.md +18 -0
  73. data/docs/ApiV3PitMap.md +30 -0
  74. data/docs/ApiV3PitMapCellType.md +15 -0
  75. data/docs/ApiV3PitMapElement.md +40 -0
  76. data/docs/ApiV3PitMapLabelOrientation.md +15 -0
  77. data/docs/ApiV3PlayoffAlliance.md +24 -0
  78. data/docs/ApiV3PlayoffAlliances.md +18 -0
  79. data/docs/ApiV3PlayoffMatchAlliance.md +20 -0
  80. data/docs/ApiV3PlayoffRanking.md +32 -0
  81. data/docs/ApiV3PlayoffRankings.md +18 -0
  82. data/docs/ApiV3PlayoffSeriesDescription.md +32 -0
  83. data/docs/ApiV3PlayoffStructure.md +22 -0
  84. data/docs/ApiV3PlayoffType.md +15 -0
  85. data/docs/ApiV3PowerPlayAchievementsDetail.md +52 -0
  86. data/docs/ApiV3PowerPlayAutoLocation.md +15 -0
  87. data/docs/ApiV3PowerPlayPointsDetail.md +46 -0
  88. data/docs/ApiV3PowerPlayRemoteAchievementsDetail.md +48 -0
  89. data/docs/ApiV3PowerPlayRemotePointsDetail.md +44 -0
  90. data/docs/ApiV3PowerPlayRemoteScoreDetail.md +22 -0
  91. data/docs/ApiV3PowerPlayScoreDetail.md +22 -0
  92. data/docs/ApiV3Ranking.md +32 -0
  93. data/docs/ApiV3Rankings.md +18 -0
  94. data/docs/ApiV3Region.md +20 -0
  95. data/docs/ApiV3Regions.md +18 -0
  96. data/docs/ApiV3RemoteJunctionElement.md +15 -0
  97. data/docs/ApiV3RemoteScoreDetail.md +85 -0
  98. data/docs/ApiV3RoundRobinAllianceDescription.md +20 -0
  99. data/docs/ApiV3ScoreDetail.md +94 -0
  100. data/docs/ApiV3Season.md +24 -0
  101. data/docs/ApiV3Seasons.md +20 -0
  102. data/docs/ApiV3SelectionOperation.md +15 -0
  103. data/docs/ApiV3SeriesAllianceDescription.md +22 -0
  104. data/docs/ApiV3SeriesAllianceState.md +15 -0
  105. data/docs/ApiV3SimpleEvent.md +48 -0
  106. data/docs/ApiV3SimpleTeam.md +22 -0
  107. data/docs/ApiV3SingleAwardRecipient.md +30 -0
  108. data/docs/ApiV3SingleTeamMatch.md +44 -0
  109. data/docs/ApiV3SingleTeamMatchDetails.md +46 -0
  110. data/docs/ApiV3SingleTeamMatchParticipants.md +18 -0
  111. data/docs/ApiV3SingleTeamMatchResults.md +18 -0
  112. data/docs/ApiV3SingleTeamMatchResultsDetails.md +18 -0
  113. data/docs/ApiV3SkystoneAchievementsDetail.md +54 -0
  114. data/docs/ApiV3SkystonePointsDetail.md +46 -0
  115. data/docs/ApiV3SkystoneScoreDetail.md +22 -0
  116. data/docs/ApiV3Stone.md +15 -0
  117. data/docs/ApiV3Team.md +38 -0
  118. data/docs/ApiV3TeamAvatar.md +20 -0
  119. data/docs/ApiV3TeamAvatars.md +18 -0
  120. data/docs/ApiV3TeamDetails.md +24 -0
  121. data/docs/ApiV3TeamEventParticipation.md +20 -0
  122. data/docs/ApiV3TeamEventParticipationDetails.md +26 -0
  123. data/docs/ApiV3TeamHistory.md +36 -0
  124. data/docs/ApiV3TeamSeasonHistory.md +20 -0
  125. data/docs/ApiV3Teams.md +18 -0
  126. data/docs/ApiV3TournamentLevel.md +15 -0
  127. data/docs/ApiV3UgAchievementsDetail.md +60 -0
  128. data/docs/ApiV3UgPointsDetail.md +44 -0
  129. data/docs/ApiV3UgRemoteAchievementsDetail.md +58 -0
  130. data/docs/ApiV3UgRemotePointsDetail.md +44 -0
  131. data/docs/ApiV3UgWobbleLocation.md +15 -0
  132. data/docs/ApiV3UltimateGoalRemoteScoreDetail.md +22 -0
  133. data/docs/ApiV3UltimateGoalScoreDetail.md +22 -0
  134. data/docs/EventsApi.md +977 -0
  135. data/docs/LeaguesApi.md +385 -0
  136. data/docs/RegionsApi.md +301 -0
  137. data/docs/SeasonsApi.md +148 -0
  138. data/docs/TeamsApi.md +371 -0
  139. data/ftc_api_v3_client.gemspec +39 -0
  140. data/git_push.sh +57 -0
  141. data/lib/ftc_api_v3_client/api/events_api.rb +934 -0
  142. data/lib/ftc_api_v3_client/api/leagues_api.rb +391 -0
  143. data/lib/ftc_api_v3_client/api/regions_api.rb +292 -0
  144. data/lib/ftc_api_v3_client/api/seasons_api.rb +142 -0
  145. data/lib/ftc_api_v3_client/api/teams_api.rb +349 -0
  146. data/lib/ftc_api_v3_client/api_client.rb +397 -0
  147. data/lib/ftc_api_v3_client/api_error.rb +58 -0
  148. data/lib/ftc_api_v3_client/api_model_base.rb +88 -0
  149. data/lib/ftc_api_v3_client/configuration.rb +308 -0
  150. data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +202 -0
  151. data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +234 -0
  152. data/lib/ftc_api_v3_client/models/api_v3_advancement_status.rb +44 -0
  153. data/lib/ftc_api_v3_client/models/api_v3_alliance_color.rb +40 -0
  154. data/lib/ftc_api_v3_client/models/api_v3_alliance_description.rb +57 -0
  155. data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +427 -0
  156. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +436 -0
  157. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_participants.rb +55 -0
  158. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +221 -0
  159. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results_details.rb +190 -0
  160. data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +217 -0
  161. data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +212 -0
  162. data/lib/ftc_api_v3_client/models/api_v3_alliance_selections.rb +166 -0
  163. data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +217 -0
  164. data/lib/ftc_api_v3_client/models/api_v3_award.rb +311 -0
  165. data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +177 -0
  166. data/lib/ftc_api_v3_client/models/api_v3_award_type.rb +59 -0
  167. data/lib/ftc_api_v3_client/models/api_v3_awards.rb +166 -0
  168. data/lib/ftc_api_v3_client/models/api_v3_base_playoff_series_description.rb +55 -0
  169. data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +191 -0
  170. data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +217 -0
  171. data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +217 -0
  172. data/lib/ftc_api_v3_client/models/api_v3_competing_type.rb +40 -0
  173. data/lib/ftc_api_v3_client/models/api_v3_coordinates.rb +191 -0
  174. data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +680 -0
  175. data/lib/ftc_api_v3_client/models/api_v3_cs_end_location.rb +41 -0
  176. data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +555 -0
  177. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +524 -0
  178. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +528 -0
  179. data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +502 -0
  180. data/lib/ftc_api_v3_client/models/api_v3_decode_artifact_type.rb +41 -0
  181. data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +529 -0
  182. data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +217 -0
  183. data/lib/ftc_api_v3_client/models/api_v3_decode_teleop_base_location.rb +41 -0
  184. data/lib/ftc_api_v3_client/models/api_v3_division.rb +190 -0
  185. data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +405 -0
  186. data/lib/ftc_api_v3_client/models/api_v3_double_elims_bracket_half.rb +40 -0
  187. data/lib/ftc_api_v3_client/models/api_v3_event.rb +559 -0
  188. data/lib/ftc_api_v3_client/models/api_v3_event_format.rb +41 -0
  189. data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +182 -0
  190. data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +221 -0
  191. data/lib/ftc_api_v3_client/models/api_v3_event_participants.rb +166 -0
  192. data/lib/ftc_api_v3_client/models/api_v3_event_type.rb +50 -0
  193. data/lib/ftc_api_v3_client/models/api_v3_events.rb +166 -0
  194. data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +787 -0
  195. data/lib/ftc_api_v3_client/models/api_v3_ff_auto_location.rb +43 -0
  196. data/lib/ftc_api_v3_client/models/api_v3_ff_end_location.rb +41 -0
  197. data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +633 -0
  198. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +629 -0
  199. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +554 -0
  200. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +217 -0
  201. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +217 -0
  202. data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +217 -0
  203. data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +576 -0
  204. data/lib/ftc_api_v3_client/models/api_v3_itd_auto_location.rb +41 -0
  205. data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +477 -0
  206. data/lib/ftc_api_v3_client/models/api_v3_itd_teleop_location.rb +43 -0
  207. data/lib/ftc_api_v3_client/models/api_v3_junction_element.rb +44 -0
  208. data/lib/ftc_api_v3_client/models/api_v3_league.rb +217 -0
  209. data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +245 -0
  210. data/lib/ftc_api_v3_client/models/api_v3_league_membership_details.rb +190 -0
  211. data/lib/ftc_api_v3_client/models/api_v3_leagues.rb +166 -0
  212. data/lib/ftc_api_v3_client/models/api_v3_match.rb +55 -0
  213. data/lib/ftc_api_v3_client/models/api_v3_match_alliance.rb +166 -0
  214. data/lib/ftc_api_v3_client/models/api_v3_match_details.rb +55 -0
  215. data/lib/ftc_api_v3_client/models/api_v3_match_team.rb +209 -0
  216. data/lib/ftc_api_v3_client/models/api_v3_matches.rb +166 -0
  217. data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +322 -0
  218. data/lib/ftc_api_v3_client/models/api_v3_pit_map_cell_type.rb +45 -0
  219. data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +336 -0
  220. data/lib/ftc_api_v3_client/models/api_v3_pit_map_label_orientation.rb +40 -0
  221. data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +212 -0
  222. data/lib/ftc_api_v3_client/models/api_v3_playoff_alliances.rb +166 -0
  223. data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +192 -0
  224. data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +348 -0
  225. data/lib/ftc_api_v3_client/models/api_v3_playoff_rankings.rb +166 -0
  226. data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +347 -0
  227. data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +241 -0
  228. data/lib/ftc_api_v3_client/models/api_v3_playoff_type.rb +42 -0
  229. data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +576 -0
  230. data/lib/ftc_api_v3_client/models/api_v3_power_play_auto_location.rb +41 -0
  231. data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +529 -0
  232. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +538 -0
  233. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +502 -0
  234. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +217 -0
  235. data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +217 -0
  236. data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +348 -0
  237. data/lib/ftc_api_v3_client/models/api_v3_rankings.rb +166 -0
  238. data/lib/ftc_api_v3_client/models/api_v3_region.rb +190 -0
  239. data/lib/ftc_api_v3_client/models/api_v3_regions.rb +166 -0
  240. data/lib/ftc_api_v3_client/models/api_v3_remote_junction_element.rb +40 -0
  241. data/lib/ftc_api_v3_client/models/api_v3_remote_score_detail.rb +59 -0
  242. data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +191 -0
  243. data/lib/ftc_api_v3_client/models/api_v3_score_detail.rb +65 -0
  244. data/lib/ftc_api_v3_client/models/api_v3_season.rb +242 -0
  245. data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +192 -0
  246. data/lib/ftc_api_v3_client/models/api_v3_selection_operation.rb +43 -0
  247. data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +239 -0
  248. data/lib/ftc_api_v3_client/models/api_v3_series_alliance_state.rb +40 -0
  249. data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +458 -0
  250. data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +217 -0
  251. data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +293 -0
  252. data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +427 -0
  253. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +436 -0
  254. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_participants.rb +164 -0
  255. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +164 -0
  256. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results_details.rb +164 -0
  257. data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +634 -0
  258. data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +529 -0
  259. data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +217 -0
  260. data/lib/ftc_api_v3_client/models/api_v3_stone.rb +41 -0
  261. data/lib/ftc_api_v3_client/models/api_v3_team.rb +324 -0
  262. data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +190 -0
  263. data/lib/ftc_api_v3_client/models/api_v3_team_avatars.rb +166 -0
  264. data/lib/ftc_api_v3_client/models/api_v3_team_details.rb +247 -0
  265. data/lib/ftc_api_v3_client/models/api_v3_team_event_participation.rb +192 -0
  266. data/lib/ftc_api_v3_client/models/api_v3_team_event_participation_details.rb +238 -0
  267. data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +334 -0
  268. data/lib/ftc_api_v3_client/models/api_v3_team_season_history.rb +192 -0
  269. data/lib/ftc_api_v3_client/models/api_v3_teams.rb +166 -0
  270. data/lib/ftc_api_v3_client/models/api_v3_tournament_level.rb +43 -0
  271. data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +732 -0
  272. data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +503 -0
  273. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +706 -0
  274. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +503 -0
  275. data/lib/ftc_api_v3_client/models/api_v3_ug_wobble_location.rb +41 -0
  276. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +217 -0
  277. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +217 -0
  278. data/lib/ftc_api_v3_client/version.rb +15 -0
  279. data/lib/ftc_api_v3_client.rb +173 -0
  280. data/spec/api/events_api_spec.rb +207 -0
  281. data/spec/api/leagues_api_spec.rb +104 -0
  282. data/spec/api/regions_api_spec.rb +86 -0
  283. data/spec/api/seasons_api_spec.rb +58 -0
  284. data/spec/api/teams_api_spec.rb +97 -0
  285. data/spec/models/api_v3_advancement_from_slot_spec.rb +54 -0
  286. data/spec/models/api_v3_advancement_from_spec.rb +48 -0
  287. data/spec/models/api_v3_advancement_status_spec.rb +30 -0
  288. data/spec/models/api_v3_alliance_color_spec.rb +30 -0
  289. data/spec/models/api_v3_alliance_description_spec.rb +44 -0
  290. data/spec/models/api_v3_alliance_match_details_spec.rb +120 -0
  291. data/spec/models/api_v3_alliance_match_participants_spec.rb +44 -0
  292. data/spec/models/api_v3_alliance_match_results_details_spec.rb +42 -0
  293. data/spec/models/api_v3_alliance_match_results_spec.rb +48 -0
  294. data/spec/models/api_v3_alliance_match_spec.rb +114 -0
  295. data/spec/models/api_v3_alliance_playoff_match_participants_spec.rb +48 -0
  296. data/spec/models/api_v3_alliance_selection_spec.rb +42 -0
  297. data/spec/models/api_v3_alliance_selections_spec.rb +36 -0
  298. data/spec/models/api_v3_alliance_simple_match_participants_spec.rb +48 -0
  299. data/spec/models/api_v3_award_recipient_spec.rb +54 -0
  300. data/spec/models/api_v3_award_spec.rb +72 -0
  301. data/spec/models/api_v3_award_type_spec.rb +30 -0
  302. data/spec/models/api_v3_awards_spec.rb +36 -0
  303. data/spec/models/api_v3_base_playoff_series_description_spec.rb +44 -0
  304. data/spec/models/api_v3_basic_alliance_description_spec.rb +42 -0
  305. data/spec/models/api_v3_center_stage_remote_score_detail_spec.rb +48 -0
  306. data/spec/models/api_v3_center_stage_score_detail_spec.rb +48 -0
  307. data/spec/models/api_v3_competing_type_spec.rb +30 -0
  308. data/spec/models/api_v3_coordinates_spec.rb +42 -0
  309. data/spec/models/api_v3_cs_achievements_detail_spec.rb +150 -0
  310. data/spec/models/api_v3_cs_end_location_spec.rb +30 -0
  311. data/spec/models/api_v3_cs_points_detail_spec.rb +126 -0
  312. data/spec/models/api_v3_cs_remote_achievements_detail_spec.rb +114 -0
  313. data/spec/models/api_v3_cs_remote_points_detail_spec.rb +120 -0
  314. data/spec/models/api_v3_decode_achievements_detail_spec.rb +108 -0
  315. data/spec/models/api_v3_decode_artifact_type_spec.rb +30 -0
  316. data/spec/models/api_v3_decode_points_detail_spec.rb +120 -0
  317. data/spec/models/api_v3_decode_score_detail_spec.rb +48 -0
  318. data/spec/models/api_v3_decode_teleop_base_location_spec.rb +30 -0
  319. data/spec/models/api_v3_division_spec.rb +42 -0
  320. data/spec/models/api_v3_double_elimination_series_description_spec.rb +90 -0
  321. data/spec/models/api_v3_double_elims_bracket_half_spec.rb +30 -0
  322. data/spec/models/api_v3_event_format_spec.rb +30 -0
  323. data/spec/models/api_v3_event_live_stream_spec.rb +48 -0
  324. data/spec/models/api_v3_event_participant_spec.rb +48 -0
  325. data/spec/models/api_v3_event_participants_spec.rb +36 -0
  326. data/spec/models/api_v3_event_spec.rb +168 -0
  327. data/spec/models/api_v3_event_type_spec.rb +30 -0
  328. data/spec/models/api_v3_events_spec.rb +36 -0
  329. data/spec/models/api_v3_ff_achievements_detail_spec.rb +174 -0
  330. data/spec/models/api_v3_ff_auto_location_spec.rb +30 -0
  331. data/spec/models/api_v3_ff_end_location_spec.rb +30 -0
  332. data/spec/models/api_v3_ff_points_detail_spec.rb +144 -0
  333. data/spec/models/api_v3_ff_remote_achievements_detail_spec.rb +138 -0
  334. data/spec/models/api_v3_ff_remote_points_detail_spec.rb +126 -0
  335. data/spec/models/api_v3_freight_frenzy_remote_score_detail_spec.rb +48 -0
  336. data/spec/models/api_v3_freight_frenzy_score_detail_spec.rb +48 -0
  337. data/spec/models/api_v3_into_the_deep_score_detail_spec.rb +48 -0
  338. data/spec/models/api_v3_itd_achievements_detail_spec.rb +126 -0
  339. data/spec/models/api_v3_itd_auto_location_spec.rb +30 -0
  340. data/spec/models/api_v3_itd_points_detail_spec.rb +108 -0
  341. data/spec/models/api_v3_itd_teleop_location_spec.rb +30 -0
  342. data/spec/models/api_v3_junction_element_spec.rb +30 -0
  343. data/spec/models/api_v3_league_details_spec.rb +66 -0
  344. data/spec/models/api_v3_league_membership_details_spec.rb +42 -0
  345. data/spec/models/api_v3_league_spec.rb +60 -0
  346. data/spec/models/api_v3_leagues_spec.rb +36 -0
  347. data/spec/models/api_v3_match_alliance_spec.rb +36 -0
  348. data/spec/models/api_v3_match_details_spec.rb +44 -0
  349. data/spec/models/api_v3_match_spec.rb +44 -0
  350. data/spec/models/api_v3_match_team_spec.rb +54 -0
  351. data/spec/models/api_v3_matches_spec.rb +36 -0
  352. data/spec/models/api_v3_pit_map_cell_type_spec.rb +30 -0
  353. data/spec/models/api_v3_pit_map_element_spec.rb +102 -0
  354. data/spec/models/api_v3_pit_map_label_orientation_spec.rb +30 -0
  355. data/spec/models/api_v3_pit_map_spec.rb +72 -0
  356. data/spec/models/api_v3_playoff_alliance_spec.rb +54 -0
  357. data/spec/models/api_v3_playoff_alliances_spec.rb +36 -0
  358. data/spec/models/api_v3_playoff_match_alliance_spec.rb +42 -0
  359. data/spec/models/api_v3_playoff_ranking_spec.rb +78 -0
  360. data/spec/models/api_v3_playoff_rankings_spec.rb +36 -0
  361. data/spec/models/api_v3_playoff_series_description_spec.rb +78 -0
  362. data/spec/models/api_v3_playoff_structure_spec.rb +48 -0
  363. data/spec/models/api_v3_playoff_type_spec.rb +30 -0
  364. data/spec/models/api_v3_power_play_achievements_detail_spec.rb +138 -0
  365. data/spec/models/api_v3_power_play_auto_location_spec.rb +30 -0
  366. data/spec/models/api_v3_power_play_points_detail_spec.rb +120 -0
  367. data/spec/models/api_v3_power_play_remote_achievements_detail_spec.rb +126 -0
  368. data/spec/models/api_v3_power_play_remote_points_detail_spec.rb +114 -0
  369. data/spec/models/api_v3_power_play_remote_score_detail_spec.rb +48 -0
  370. data/spec/models/api_v3_power_play_score_detail_spec.rb +48 -0
  371. data/spec/models/api_v3_ranking_spec.rb +78 -0
  372. data/spec/models/api_v3_rankings_spec.rb +36 -0
  373. data/spec/models/api_v3_region_spec.rb +42 -0
  374. data/spec/models/api_v3_regions_spec.rb +36 -0
  375. data/spec/models/api_v3_remote_junction_element_spec.rb +30 -0
  376. data/spec/models/api_v3_remote_score_detail_spec.rb +44 -0
  377. data/spec/models/api_v3_round_robin_alliance_description_spec.rb +42 -0
  378. data/spec/models/api_v3_score_detail_spec.rb +44 -0
  379. data/spec/models/api_v3_season_spec.rb +54 -0
  380. data/spec/models/api_v3_seasons_spec.rb +42 -0
  381. data/spec/models/api_v3_selection_operation_spec.rb +30 -0
  382. data/spec/models/api_v3_series_alliance_description_spec.rb +48 -0
  383. data/spec/models/api_v3_series_alliance_state_spec.rb +30 -0
  384. data/spec/models/api_v3_simple_event_spec.rb +126 -0
  385. data/spec/models/api_v3_simple_team_spec.rb +48 -0
  386. data/spec/models/api_v3_single_award_recipient_spec.rb +72 -0
  387. data/spec/models/api_v3_single_team_match_details_spec.rb +120 -0
  388. data/spec/models/api_v3_single_team_match_participants_spec.rb +36 -0
  389. data/spec/models/api_v3_single_team_match_results_details_spec.rb +36 -0
  390. data/spec/models/api_v3_single_team_match_results_spec.rb +36 -0
  391. data/spec/models/api_v3_single_team_match_spec.rb +114 -0
  392. data/spec/models/api_v3_skystone_achievements_detail_spec.rb +144 -0
  393. data/spec/models/api_v3_skystone_points_detail_spec.rb +120 -0
  394. data/spec/models/api_v3_skystone_score_detail_spec.rb +48 -0
  395. data/spec/models/api_v3_stone_spec.rb +30 -0
  396. data/spec/models/api_v3_team_avatar_spec.rb +42 -0
  397. data/spec/models/api_v3_team_avatars_spec.rb +36 -0
  398. data/spec/models/api_v3_team_details_spec.rb +54 -0
  399. data/spec/models/api_v3_team_event_participation_details_spec.rb +60 -0
  400. data/spec/models/api_v3_team_event_participation_spec.rb +42 -0
  401. data/spec/models/api_v3_team_history_spec.rb +90 -0
  402. data/spec/models/api_v3_team_season_history_spec.rb +42 -0
  403. data/spec/models/api_v3_team_spec.rb +96 -0
  404. data/spec/models/api_v3_teams_spec.rb +36 -0
  405. data/spec/models/api_v3_tournament_level_spec.rb +30 -0
  406. data/spec/models/api_v3_ug_achievements_detail_spec.rb +162 -0
  407. data/spec/models/api_v3_ug_points_detail_spec.rb +114 -0
  408. data/spec/models/api_v3_ug_remote_achievements_detail_spec.rb +156 -0
  409. data/spec/models/api_v3_ug_remote_points_detail_spec.rb +114 -0
  410. data/spec/models/api_v3_ug_wobble_location_spec.rb +30 -0
  411. data/spec/models/api_v3_ultimate_goal_remote_score_detail_spec.rb +48 -0
  412. data/spec/models/api_v3_ultimate_goal_score_detail_spec.rb +48 -0
  413. data/spec/spec_helper.rb +111 -0
  414. data/update.sh +1 -0
  415. metadata +630 -0
@@ -0,0 +1,934 @@
1
+ =begin
2
+ #FTC Scoring Data API
3
+
4
+ #THIS API IS CURRENTLY IN EARLY DEVELOPMENT AND MAY CHANGE WITHOUT WARNING. THIS PAGE WILL BE UPDATED ONCE THE API IS OFFICIALLY RELEASED. This API provides event and scoring data for FIRST Tech Challenge. Applications that present result data directly are encouraged to directly call this API rather than maintaining their own copies of the data. All endpoints are cached by our CDN and may return data up to one hour old for data that changes infrequently. During an event, data that changes frequently (e.g. match results and rankings) should not be more than 30 seconds old. NOTE: For developers who have integrated with the v2 API in the past, this is a policy shift, as previously developers were encouraged to maintain their own copy of relevant data. In the interest of providing the community with the most up-to-date data and reducing the burden for applications that are not performing their own analytics on event data, we are now encouraging directly integrating our API into websites and apps. Also note that all endpoints that accept a year argument now expect the year in which the FIRST Championship for that season is held. This is a change from the previous API and FTC-events website, which used the kickoff year. To report any issues, please report an issue here: https://github.com/FIRST-Tech-Challenge/scorekeeper/issues/new?template=api-bug-report.md To request additional data, please submit a feature request here: https://github.com/FIRST-Tech-Challenge/scorekeeper/issues/new?template=api-feature-request.md
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FtcApiV3Client
16
+ class EventsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get event from season
23
+ # Get detailed information about a single event
24
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
25
+ # @param event_code [String] The code (abbreviation) for the event
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [ApiV3Event]
28
+ def get_event(cmp_year, event_code, opts = {})
29
+ data, _status_code, _headers = get_event_with_http_info(cmp_year, event_code, opts)
30
+ data
31
+ end
32
+
33
+ # Get event from season
34
+ # Get detailed information about a single event
35
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
36
+ # @param event_code [String] The code (abbreviation) for the event
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(ApiV3Event, Integer, Hash)>] ApiV3Event data, response status code and response headers
39
+ def get_event_with_http_info(cmp_year, event_code, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event ...'
42
+ end
43
+ # verify the required parameter 'cmp_year' is set
44
+ if @api_client.config.client_side_validation && cmp_year.nil?
45
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event"
46
+ end
47
+ # verify the required parameter 'event_code' is set
48
+ if @api_client.config.client_side_validation && event_code.nil?
49
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event"
50
+ end
51
+ # resource path
52
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:debug_body]
67
+
68
+ # return_type
69
+ return_type = opts[:debug_return_type] || 'ApiV3Event'
70
+
71
+ # auth_names
72
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
73
+
74
+ new_options = opts.merge(
75
+ :operation => :"EventsApi.get_event",
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => return_type
82
+ )
83
+
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: EventsApi#get_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Get event advancement (from)
92
+ # Gets advancement list for teams advancing from this event to the next level of competition
93
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
94
+ # @param event_code [String] The code (abbreviation) for the event
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [ApiV3AdvancementFrom]
97
+ def get_event_advancement_from(cmp_year, event_code, opts = {})
98
+ data, _status_code, _headers = get_event_advancement_from_with_http_info(cmp_year, event_code, opts)
99
+ data
100
+ end
101
+
102
+ # Get event advancement (from)
103
+ # Gets advancement list for teams advancing from this event to the next level of competition
104
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
105
+ # @param event_code [String] The code (abbreviation) for the event
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Array<(ApiV3AdvancementFrom, Integer, Hash)>] ApiV3AdvancementFrom data, response status code and response headers
108
+ def get_event_advancement_from_with_http_info(cmp_year, event_code, opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_advancement_from ...'
111
+ end
112
+ # verify the required parameter 'cmp_year' is set
113
+ if @api_client.config.client_side_validation && cmp_year.nil?
114
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_advancement_from"
115
+ end
116
+ # verify the required parameter 'event_code' is set
117
+ if @api_client.config.client_side_validation && event_code.nil?
118
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_advancement_from"
119
+ end
120
+ # resource path
121
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/advancement/from'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
122
+
123
+ # query parameters
124
+ query_params = opts[:query_params] || {}
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:debug_body]
136
+
137
+ # return_type
138
+ return_type = opts[:debug_return_type] || 'ApiV3AdvancementFrom'
139
+
140
+ # auth_names
141
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
142
+
143
+ new_options = opts.merge(
144
+ :operation => :"EventsApi.get_event_advancement_from",
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => return_type
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: EventsApi#get_event_advancement_from\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Get event alliance selections
161
+ # Gets alliance selection operations for the given event, including accepts and declines. These are presented in the order in which they occurred. Refer to the season's competition manual to confirm the order of alliance selections that year. If you are looking for the final alliances and are not interested in analyzing the selection process itself, we recommend using the GetEventAlliances endpoint instead.
162
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
163
+ # @param event_code [String] The code (abbreviation) for the event
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [ApiV3AllianceSelections]
166
+ def get_event_alliance_selections(cmp_year, event_code, opts = {})
167
+ data, _status_code, _headers = get_event_alliance_selections_with_http_info(cmp_year, event_code, opts)
168
+ data
169
+ end
170
+
171
+ # Get event alliance selections
172
+ # Gets alliance selection operations for the given event, including accepts and declines. These are presented in the order in which they occurred. Refer to the season&#39;s competition manual to confirm the order of alliance selections that year. If you are looking for the final alliances and are not interested in analyzing the selection process itself, we recommend using the GetEventAlliances endpoint instead.
173
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
174
+ # @param event_code [String] The code (abbreviation) for the event
175
+ # @param [Hash] opts the optional parameters
176
+ # @return [Array<(ApiV3AllianceSelections, Integer, Hash)>] ApiV3AllianceSelections data, response status code and response headers
177
+ def get_event_alliance_selections_with_http_info(cmp_year, event_code, opts = {})
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_alliance_selections ...'
180
+ end
181
+ # verify the required parameter 'cmp_year' is set
182
+ if @api_client.config.client_side_validation && cmp_year.nil?
183
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_alliance_selections"
184
+ end
185
+ # verify the required parameter 'event_code' is set
186
+ if @api_client.config.client_side_validation && event_code.nil?
187
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_alliance_selections"
188
+ end
189
+ # resource path
190
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/alliances/selections'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:debug_body]
205
+
206
+ # return_type
207
+ return_type = opts[:debug_return_type] || 'ApiV3AllianceSelections'
208
+
209
+ # auth_names
210
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
211
+
212
+ new_options = opts.merge(
213
+ :operation => :"EventsApi.get_event_alliance_selections",
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => return_type
220
+ )
221
+
222
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: EventsApi#get_event_alliance_selections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+
229
+ # Get event alliances
230
+ # Gets playoff alliances for the given event
231
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
232
+ # @param event_code [String] The code (abbreviation) for the event
233
+ # @param [Hash] opts the optional parameters
234
+ # @return [ApiV3PlayoffAlliances]
235
+ def get_event_alliances(cmp_year, event_code, opts = {})
236
+ data, _status_code, _headers = get_event_alliances_with_http_info(cmp_year, event_code, opts)
237
+ data
238
+ end
239
+
240
+ # Get event alliances
241
+ # Gets playoff alliances for the given event
242
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
243
+ # @param event_code [String] The code (abbreviation) for the event
244
+ # @param [Hash] opts the optional parameters
245
+ # @return [Array<(ApiV3PlayoffAlliances, Integer, Hash)>] ApiV3PlayoffAlliances data, response status code and response headers
246
+ def get_event_alliances_with_http_info(cmp_year, event_code, opts = {})
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_alliances ...'
249
+ end
250
+ # verify the required parameter 'cmp_year' is set
251
+ if @api_client.config.client_side_validation && cmp_year.nil?
252
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_alliances"
253
+ end
254
+ # verify the required parameter 'event_code' is set
255
+ if @api_client.config.client_side_validation && event_code.nil?
256
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_alliances"
257
+ end
258
+ # resource path
259
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/alliances'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
260
+
261
+ # query parameters
262
+ query_params = opts[:query_params] || {}
263
+
264
+ # header parameters
265
+ header_params = opts[:header_params] || {}
266
+ # HTTP header 'Accept' (if needed)
267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
268
+
269
+ # form parameters
270
+ form_params = opts[:form_params] || {}
271
+
272
+ # http body (model)
273
+ post_body = opts[:debug_body]
274
+
275
+ # return_type
276
+ return_type = opts[:debug_return_type] || 'ApiV3PlayoffAlliances'
277
+
278
+ # auth_names
279
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
280
+
281
+ new_options = opts.merge(
282
+ :operation => :"EventsApi.get_event_alliances",
283
+ :header_params => header_params,
284
+ :query_params => query_params,
285
+ :form_params => form_params,
286
+ :body => post_body,
287
+ :auth_names => auth_names,
288
+ :return_type => return_type
289
+ )
290
+
291
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug "API called: EventsApi#get_event_alliances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
294
+ end
295
+ return data, status_code, headers
296
+ end
297
+
298
+ # Get event awards
299
+ # Gets award information and recipients for the given event.
300
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
301
+ # @param event_code [String] The code (abbreviation) for the event
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [ApiV3Awards]
304
+ def get_event_awards(cmp_year, event_code, opts = {})
305
+ data, _status_code, _headers = get_event_awards_with_http_info(cmp_year, event_code, opts)
306
+ data
307
+ end
308
+
309
+ # Get event awards
310
+ # Gets award information and recipients for the given event.
311
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
312
+ # @param event_code [String] The code (abbreviation) for the event
313
+ # @param [Hash] opts the optional parameters
314
+ # @return [Array<(ApiV3Awards, Integer, Hash)>] ApiV3Awards data, response status code and response headers
315
+ def get_event_awards_with_http_info(cmp_year, event_code, opts = {})
316
+ if @api_client.config.debugging
317
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_awards ...'
318
+ end
319
+ # verify the required parameter 'cmp_year' is set
320
+ if @api_client.config.client_side_validation && cmp_year.nil?
321
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_awards"
322
+ end
323
+ # verify the required parameter 'event_code' is set
324
+ if @api_client.config.client_side_validation && event_code.nil?
325
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_awards"
326
+ end
327
+ # resource path
328
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/awards'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
329
+
330
+ # query parameters
331
+ query_params = opts[:query_params] || {}
332
+
333
+ # header parameters
334
+ header_params = opts[:header_params] || {}
335
+ # HTTP header 'Accept' (if needed)
336
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
337
+
338
+ # form parameters
339
+ form_params = opts[:form_params] || {}
340
+
341
+ # http body (model)
342
+ post_body = opts[:debug_body]
343
+
344
+ # return_type
345
+ return_type = opts[:debug_return_type] || 'ApiV3Awards'
346
+
347
+ # auth_names
348
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
349
+
350
+ new_options = opts.merge(
351
+ :operation => :"EventsApi.get_event_awards",
352
+ :header_params => header_params,
353
+ :query_params => query_params,
354
+ :form_params => form_params,
355
+ :body => post_body,
356
+ :auth_names => auth_names,
357
+ :return_type => return_type
358
+ )
359
+
360
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
361
+ if @api_client.config.debugging
362
+ @api_client.config.logger.debug "API called: EventsApi#get_event_awards\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
363
+ end
364
+ return data, status_code, headers
365
+ end
366
+
367
+ # Get match details
368
+ # Gets details for a single match, including season-specific score details.
369
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
370
+ # @param event_code [String] The code (abbreviation) for the event
371
+ # @param tournament_level [ApiV3TournamentLevel] The tournament level of the match
372
+ # @param series [String] The series of the match (0 for non-playoff matches). For remote events, the team number for the match.
373
+ # @param number [Integer] The match number
374
+ # @param [Hash] opts the optional parameters
375
+ # @return [ApiV3MatchDetails]
376
+ def get_event_match(cmp_year, event_code, tournament_level, series, number, opts = {})
377
+ data, _status_code, _headers = get_event_match_with_http_info(cmp_year, event_code, tournament_level, series, number, opts)
378
+ data
379
+ end
380
+
381
+ # Get match details
382
+ # Gets details for a single match, including season-specific score details.
383
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
384
+ # @param event_code [String] The code (abbreviation) for the event
385
+ # @param tournament_level [ApiV3TournamentLevel] The tournament level of the match
386
+ # @param series [String] The series of the match (0 for non-playoff matches). For remote events, the team number for the match.
387
+ # @param number [Integer] The match number
388
+ # @param [Hash] opts the optional parameters
389
+ # @return [Array<(ApiV3MatchDetails, Integer, Hash)>] ApiV3MatchDetails data, response status code and response headers
390
+ def get_event_match_with_http_info(cmp_year, event_code, tournament_level, series, number, opts = {})
391
+ if @api_client.config.debugging
392
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_match ...'
393
+ end
394
+ # verify the required parameter 'cmp_year' is set
395
+ if @api_client.config.client_side_validation && cmp_year.nil?
396
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_match"
397
+ end
398
+ # verify the required parameter 'event_code' is set
399
+ if @api_client.config.client_side_validation && event_code.nil?
400
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_match"
401
+ end
402
+ # verify the required parameter 'tournament_level' is set
403
+ if @api_client.config.client_side_validation && tournament_level.nil?
404
+ fail ArgumentError, "Missing the required parameter 'tournament_level' when calling EventsApi.get_event_match"
405
+ end
406
+ # verify the required parameter 'series' is set
407
+ if @api_client.config.client_side_validation && series.nil?
408
+ fail ArgumentError, "Missing the required parameter 'series' when calling EventsApi.get_event_match"
409
+ end
410
+ # verify the required parameter 'number' is set
411
+ if @api_client.config.client_side_validation && number.nil?
412
+ fail ArgumentError, "Missing the required parameter 'number' when calling EventsApi.get_event_match"
413
+ end
414
+ # resource path
415
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/matches/{tournamentLevel}/{series}/{number}'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s)).sub('{' + 'tournamentLevel' + '}', CGI.escape(tournament_level.to_s)).sub('{' + 'series' + '}', CGI.escape(series.to_s)).sub('{' + 'number' + '}', CGI.escape(number.to_s))
416
+
417
+ # query parameters
418
+ query_params = opts[:query_params] || {}
419
+
420
+ # header parameters
421
+ header_params = opts[:header_params] || {}
422
+ # HTTP header 'Accept' (if needed)
423
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
424
+
425
+ # form parameters
426
+ form_params = opts[:form_params] || {}
427
+
428
+ # http body (model)
429
+ post_body = opts[:debug_body]
430
+
431
+ # return_type
432
+ return_type = opts[:debug_return_type] || 'ApiV3MatchDetails'
433
+
434
+ # auth_names
435
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
436
+
437
+ new_options = opts.merge(
438
+ :operation => :"EventsApi.get_event_match",
439
+ :header_params => header_params,
440
+ :query_params => query_params,
441
+ :form_params => form_params,
442
+ :body => post_body,
443
+ :auth_names => auth_names,
444
+ :return_type => return_type
445
+ )
446
+
447
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
448
+ if @api_client.config.debugging
449
+ @api_client.config.logger.debug "API called: EventsApi#get_event_match\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
450
+ end
451
+ return data, status_code, headers
452
+ end
453
+
454
+ # Get pit map
455
+ # Gets data representation of pit map
456
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
457
+ # @param event_code [String] The code (abbreviation) for the event
458
+ # @param [Hash] opts the optional parameters
459
+ # @return [ApiV3PitMap]
460
+ def get_event_pit_map(cmp_year, event_code, opts = {})
461
+ data, _status_code, _headers = get_event_pit_map_with_http_info(cmp_year, event_code, opts)
462
+ data
463
+ end
464
+
465
+ # Get pit map
466
+ # Gets data representation of pit map
467
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
468
+ # @param event_code [String] The code (abbreviation) for the event
469
+ # @param [Hash] opts the optional parameters
470
+ # @return [Array<(ApiV3PitMap, Integer, Hash)>] ApiV3PitMap data, response status code and response headers
471
+ def get_event_pit_map_with_http_info(cmp_year, event_code, opts = {})
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_pit_map ...'
474
+ end
475
+ # verify the required parameter 'cmp_year' is set
476
+ if @api_client.config.client_side_validation && cmp_year.nil?
477
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_pit_map"
478
+ end
479
+ # verify the required parameter 'event_code' is set
480
+ if @api_client.config.client_side_validation && event_code.nil?
481
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_pit_map"
482
+ end
483
+ # resource path
484
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/pitMap'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
485
+
486
+ # query parameters
487
+ query_params = opts[:query_params] || {}
488
+
489
+ # header parameters
490
+ header_params = opts[:header_params] || {}
491
+ # HTTP header 'Accept' (if needed)
492
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
493
+
494
+ # form parameters
495
+ form_params = opts[:form_params] || {}
496
+
497
+ # http body (model)
498
+ post_body = opts[:debug_body]
499
+
500
+ # return_type
501
+ return_type = opts[:debug_return_type] || 'ApiV3PitMap'
502
+
503
+ # auth_names
504
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
505
+
506
+ new_options = opts.merge(
507
+ :operation => :"EventsApi.get_event_pit_map",
508
+ :header_params => header_params,
509
+ :query_params => query_params,
510
+ :form_params => form_params,
511
+ :body => post_body,
512
+ :auth_names => auth_names,
513
+ :return_type => return_type
514
+ )
515
+
516
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
517
+ if @api_client.config.debugging
518
+ @api_client.config.logger.debug "API called: EventsApi#get_event_pit_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
519
+ end
520
+ return data, status_code, headers
521
+ end
522
+
523
+ # Get event playoff rankings
524
+ # Gets playoff rankings for a given event. Each sort order field is season-specific: see the season's competition manual for definitions. Only applicable to events using round-robin playoffs (e.g. FIRST Championship da Vinci)
525
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
526
+ # @param event_code [String] The code (abbreviation) for the event
527
+ # @param [Hash] opts the optional parameters
528
+ # @return [ApiV3PlayoffRankings]
529
+ def get_event_playoff_rankings(cmp_year, event_code, opts = {})
530
+ data, _status_code, _headers = get_event_playoff_rankings_with_http_info(cmp_year, event_code, opts)
531
+ data
532
+ end
533
+
534
+ # Get event playoff rankings
535
+ # Gets playoff rankings for a given event. Each sort order field is season-specific: see the season&#39;s competition manual for definitions. Only applicable to events using round-robin playoffs (e.g. FIRST Championship da Vinci)
536
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
537
+ # @param event_code [String] The code (abbreviation) for the event
538
+ # @param [Hash] opts the optional parameters
539
+ # @return [Array<(ApiV3PlayoffRankings, Integer, Hash)>] ApiV3PlayoffRankings data, response status code and response headers
540
+ def get_event_playoff_rankings_with_http_info(cmp_year, event_code, opts = {})
541
+ if @api_client.config.debugging
542
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_playoff_rankings ...'
543
+ end
544
+ # verify the required parameter 'cmp_year' is set
545
+ if @api_client.config.client_side_validation && cmp_year.nil?
546
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_playoff_rankings"
547
+ end
548
+ # verify the required parameter 'event_code' is set
549
+ if @api_client.config.client_side_validation && event_code.nil?
550
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_playoff_rankings"
551
+ end
552
+ # resource path
553
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/playoffRankings'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
554
+
555
+ # query parameters
556
+ query_params = opts[:query_params] || {}
557
+
558
+ # header parameters
559
+ header_params = opts[:header_params] || {}
560
+ # HTTP header 'Accept' (if needed)
561
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
562
+
563
+ # form parameters
564
+ form_params = opts[:form_params] || {}
565
+
566
+ # http body (model)
567
+ post_body = opts[:debug_body]
568
+
569
+ # return_type
570
+ return_type = opts[:debug_return_type] || 'ApiV3PlayoffRankings'
571
+
572
+ # auth_names
573
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
574
+
575
+ new_options = opts.merge(
576
+ :operation => :"EventsApi.get_event_playoff_rankings",
577
+ :header_params => header_params,
578
+ :query_params => query_params,
579
+ :form_params => form_params,
580
+ :body => post_body,
581
+ :auth_names => auth_names,
582
+ :return_type => return_type
583
+ )
584
+
585
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
586
+ if @api_client.config.debugging
587
+ @api_client.config.logger.debug "API called: EventsApi#get_event_playoff_rankings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
588
+ end
589
+ return data, status_code, headers
590
+ end
591
+
592
+ # Get playoff structure
593
+ # Gets programmatic description of the playoff structure (e.g. bracket) structure for event. Contains sufficient information to construct a bracket display.
594
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
595
+ # @param event_code [String] The code (abbreviation) for the event
596
+ # @param [Hash] opts the optional parameters
597
+ # @return [ApiV3PlayoffStructure]
598
+ def get_event_playoff_structure(cmp_year, event_code, opts = {})
599
+ data, _status_code, _headers = get_event_playoff_structure_with_http_info(cmp_year, event_code, opts)
600
+ data
601
+ end
602
+
603
+ # Get playoff structure
604
+ # Gets programmatic description of the playoff structure (e.g. bracket) structure for event. Contains sufficient information to construct a bracket display.
605
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
606
+ # @param event_code [String] The code (abbreviation) for the event
607
+ # @param [Hash] opts the optional parameters
608
+ # @return [Array<(ApiV3PlayoffStructure, Integer, Hash)>] ApiV3PlayoffStructure data, response status code and response headers
609
+ def get_event_playoff_structure_with_http_info(cmp_year, event_code, opts = {})
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_playoff_structure ...'
612
+ end
613
+ # verify the required parameter 'cmp_year' is set
614
+ if @api_client.config.client_side_validation && cmp_year.nil?
615
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_playoff_structure"
616
+ end
617
+ # verify the required parameter 'event_code' is set
618
+ if @api_client.config.client_side_validation && event_code.nil?
619
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_playoff_structure"
620
+ end
621
+ # resource path
622
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/playoffStructure'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
623
+
624
+ # query parameters
625
+ query_params = opts[:query_params] || {}
626
+
627
+ # header parameters
628
+ header_params = opts[:header_params] || {}
629
+ # HTTP header 'Accept' (if needed)
630
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
631
+
632
+ # form parameters
633
+ form_params = opts[:form_params] || {}
634
+
635
+ # http body (model)
636
+ post_body = opts[:debug_body]
637
+
638
+ # return_type
639
+ return_type = opts[:debug_return_type] || 'ApiV3PlayoffStructure'
640
+
641
+ # auth_names
642
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
643
+
644
+ new_options = opts.merge(
645
+ :operation => :"EventsApi.get_event_playoff_structure",
646
+ :header_params => header_params,
647
+ :query_params => query_params,
648
+ :form_params => form_params,
649
+ :body => post_body,
650
+ :auth_names => auth_names,
651
+ :return_type => return_type
652
+ )
653
+
654
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug "API called: EventsApi#get_event_playoff_structure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
657
+ end
658
+ return data, status_code, headers
659
+ end
660
+
661
+ # Get event rankings
662
+ # Gets rankings for a given event. Each sort order field is season-specific: see the season's competition manual for definitions. Do not use for league meets or multi-division parent events
663
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
664
+ # @param event_code [String] The code (abbreviation) for the event
665
+ # @param [Hash] opts the optional parameters
666
+ # @return [ApiV3Rankings]
667
+ def get_event_rankings(cmp_year, event_code, opts = {})
668
+ data, _status_code, _headers = get_event_rankings_with_http_info(cmp_year, event_code, opts)
669
+ data
670
+ end
671
+
672
+ # Get event rankings
673
+ # Gets rankings for a given event. Each sort order field is season-specific: see the season&#39;s competition manual for definitions. Do not use for league meets or multi-division parent events
674
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
675
+ # @param event_code [String] The code (abbreviation) for the event
676
+ # @param [Hash] opts the optional parameters
677
+ # @return [Array<(ApiV3Rankings, Integer, Hash)>] ApiV3Rankings data, response status code and response headers
678
+ def get_event_rankings_with_http_info(cmp_year, event_code, opts = {})
679
+ if @api_client.config.debugging
680
+ @api_client.config.logger.debug 'Calling API: EventsApi.get_event_rankings ...'
681
+ end
682
+ # verify the required parameter 'cmp_year' is set
683
+ if @api_client.config.client_side_validation && cmp_year.nil?
684
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.get_event_rankings"
685
+ end
686
+ # verify the required parameter 'event_code' is set
687
+ if @api_client.config.client_side_validation && event_code.nil?
688
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.get_event_rankings"
689
+ end
690
+ # resource path
691
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/rankings'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
692
+
693
+ # query parameters
694
+ query_params = opts[:query_params] || {}
695
+
696
+ # header parameters
697
+ header_params = opts[:header_params] || {}
698
+ # HTTP header 'Accept' (if needed)
699
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
700
+
701
+ # form parameters
702
+ form_params = opts[:form_params] || {}
703
+
704
+ # http body (model)
705
+ post_body = opts[:debug_body]
706
+
707
+ # return_type
708
+ return_type = opts[:debug_return_type] || 'ApiV3Rankings'
709
+
710
+ # auth_names
711
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
712
+
713
+ new_options = opts.merge(
714
+ :operation => :"EventsApi.get_event_rankings",
715
+ :header_params => header_params,
716
+ :query_params => query_params,
717
+ :form_params => form_params,
718
+ :body => post_body,
719
+ :auth_names => auth_names,
720
+ :return_type => return_type
721
+ )
722
+
723
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
724
+ if @api_client.config.debugging
725
+ @api_client.config.logger.debug "API called: EventsApi#get_event_rankings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
726
+ end
727
+ return data, status_code, headers
728
+ end
729
+
730
+ # List event matches
731
+ # Gets matches for a given event. Includes winner and score information if available. Score details must be fetched per match.
732
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
733
+ # @param event_code [String] The code (abbreviation) for the event
734
+ # @param [Hash] opts the optional parameters
735
+ # @option opts [ApiV3TournamentLevel] :phase Filter matches to a specific phase
736
+ # @return [ApiV3Matches]
737
+ def list_event_matches(cmp_year, event_code, opts = {})
738
+ data, _status_code, _headers = list_event_matches_with_http_info(cmp_year, event_code, opts)
739
+ data
740
+ end
741
+
742
+ # List event matches
743
+ # Gets matches for a given event. Includes winner and score information if available. Score details must be fetched per match.
744
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
745
+ # @param event_code [String] The code (abbreviation) for the event
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [ApiV3TournamentLevel] :phase Filter matches to a specific phase
748
+ # @return [Array<(ApiV3Matches, Integer, Hash)>] ApiV3Matches data, response status code and response headers
749
+ def list_event_matches_with_http_info(cmp_year, event_code, opts = {})
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug 'Calling API: EventsApi.list_event_matches ...'
752
+ end
753
+ # verify the required parameter 'cmp_year' is set
754
+ if @api_client.config.client_side_validation && cmp_year.nil?
755
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.list_event_matches"
756
+ end
757
+ # verify the required parameter 'event_code' is set
758
+ if @api_client.config.client_side_validation && event_code.nil?
759
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.list_event_matches"
760
+ end
761
+ # resource path
762
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/matches'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
763
+
764
+ # query parameters
765
+ query_params = opts[:query_params] || {}
766
+ query_params[:'phase'] = opts[:'phase'] if !opts[:'phase'].nil?
767
+
768
+ # header parameters
769
+ header_params = opts[:header_params] || {}
770
+ # HTTP header 'Accept' (if needed)
771
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
772
+
773
+ # form parameters
774
+ form_params = opts[:form_params] || {}
775
+
776
+ # http body (model)
777
+ post_body = opts[:debug_body]
778
+
779
+ # return_type
780
+ return_type = opts[:debug_return_type] || 'ApiV3Matches'
781
+
782
+ # auth_names
783
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
784
+
785
+ new_options = opts.merge(
786
+ :operation => :"EventsApi.list_event_matches",
787
+ :header_params => header_params,
788
+ :query_params => query_params,
789
+ :form_params => form_params,
790
+ :body => post_body,
791
+ :auth_names => auth_names,
792
+ :return_type => return_type
793
+ )
794
+
795
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
796
+ if @api_client.config.debugging
797
+ @api_client.config.logger.debug "API called: EventsApi#list_event_matches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
798
+ end
799
+ return data, status_code, headers
800
+ end
801
+
802
+ # List teams for an event
803
+ # Lists all teams competing at the event. This includes division assignments if published for this event (and this event is a multi-division parent event). In some cases, teams may be award recipients but not returned in this list. Their information can be fetched individually by number.
804
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
805
+ # @param event_code [String] The code (abbreviation) for the event
806
+ # @param [Hash] opts the optional parameters
807
+ # @return [ApiV3EventParticipants]
808
+ def list_event_teams(cmp_year, event_code, opts = {})
809
+ data, _status_code, _headers = list_event_teams_with_http_info(cmp_year, event_code, opts)
810
+ data
811
+ end
812
+
813
+ # List teams for an event
814
+ # Lists all teams competing at the event. This includes division assignments if published for this event (and this event is a multi-division parent event). In some cases, teams may be award recipients but not returned in this list. Their information can be fetched individually by number.
815
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
816
+ # @param event_code [String] The code (abbreviation) for the event
817
+ # @param [Hash] opts the optional parameters
818
+ # @return [Array<(ApiV3EventParticipants, Integer, Hash)>] ApiV3EventParticipants data, response status code and response headers
819
+ def list_event_teams_with_http_info(cmp_year, event_code, opts = {})
820
+ if @api_client.config.debugging
821
+ @api_client.config.logger.debug 'Calling API: EventsApi.list_event_teams ...'
822
+ end
823
+ # verify the required parameter 'cmp_year' is set
824
+ if @api_client.config.client_side_validation && cmp_year.nil?
825
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.list_event_teams"
826
+ end
827
+ # verify the required parameter 'event_code' is set
828
+ if @api_client.config.client_side_validation && event_code.nil?
829
+ fail ArgumentError, "Missing the required parameter 'event_code' when calling EventsApi.list_event_teams"
830
+ end
831
+ # resource path
832
+ local_var_path = '/api/v3/seasons/{cmpYear}/events/{eventCode}/teams'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'eventCode' + '}', CGI.escape(event_code.to_s))
833
+
834
+ # query parameters
835
+ query_params = opts[:query_params] || {}
836
+
837
+ # header parameters
838
+ header_params = opts[:header_params] || {}
839
+ # HTTP header 'Accept' (if needed)
840
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
841
+
842
+ # form parameters
843
+ form_params = opts[:form_params] || {}
844
+
845
+ # http body (model)
846
+ post_body = opts[:debug_body]
847
+
848
+ # return_type
849
+ return_type = opts[:debug_return_type] || 'ApiV3EventParticipants'
850
+
851
+ # auth_names
852
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
853
+
854
+ new_options = opts.merge(
855
+ :operation => :"EventsApi.list_event_teams",
856
+ :header_params => header_params,
857
+ :query_params => query_params,
858
+ :form_params => form_params,
859
+ :body => post_body,
860
+ :auth_names => auth_names,
861
+ :return_type => return_type
862
+ )
863
+
864
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
865
+ if @api_client.config.debugging
866
+ @api_client.config.logger.debug "API called: EventsApi#list_event_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
867
+ end
868
+ return data, status_code, headers
869
+ end
870
+
871
+ # List events for a season
872
+ # Lists all events for a season
873
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
874
+ # @param [Hash] opts the optional parameters
875
+ # @return [ApiV3Events]
876
+ def list_events(cmp_year, opts = {})
877
+ data, _status_code, _headers = list_events_with_http_info(cmp_year, opts)
878
+ data
879
+ end
880
+
881
+ # List events for a season
882
+ # Lists all events for a season
883
+ # @param cmp_year [String] The year of the FIRST Championship for the requested season
884
+ # @param [Hash] opts the optional parameters
885
+ # @return [Array<(ApiV3Events, Integer, Hash)>] ApiV3Events data, response status code and response headers
886
+ def list_events_with_http_info(cmp_year, opts = {})
887
+ if @api_client.config.debugging
888
+ @api_client.config.logger.debug 'Calling API: EventsApi.list_events ...'
889
+ end
890
+ # verify the required parameter 'cmp_year' is set
891
+ if @api_client.config.client_side_validation && cmp_year.nil?
892
+ fail ArgumentError, "Missing the required parameter 'cmp_year' when calling EventsApi.list_events"
893
+ end
894
+ # resource path
895
+ local_var_path = '/api/v3/seasons/{cmpYear}/events'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s))
896
+
897
+ # query parameters
898
+ query_params = opts[:query_params] || {}
899
+
900
+ # header parameters
901
+ header_params = opts[:header_params] || {}
902
+ # HTTP header 'Accept' (if needed)
903
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
904
+
905
+ # form parameters
906
+ form_params = opts[:form_params] || {}
907
+
908
+ # http body (model)
909
+ post_body = opts[:debug_body]
910
+
911
+ # return_type
912
+ return_type = opts[:debug_return_type] || 'ApiV3Events'
913
+
914
+ # auth_names
915
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
916
+
917
+ new_options = opts.merge(
918
+ :operation => :"EventsApi.list_events",
919
+ :header_params => header_params,
920
+ :query_params => query_params,
921
+ :form_params => form_params,
922
+ :body => post_body,
923
+ :auth_names => auth_names,
924
+ :return_type => return_type
925
+ )
926
+
927
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
928
+ if @api_client.config.debugging
929
+ @api_client.config.logger.debug "API called: EventsApi#list_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
930
+ end
931
+ return data, status_code, headers
932
+ end
933
+ end
934
+ end