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,385 @@
1
+ # FtcApiV3Client::LeaguesApi
2
+
3
+ All URIs are relative to *https://ftc-api.firstinspires.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_league**](LeaguesApi.md#get_league) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode} | Gets a single league from a region |
8
+ | [**get_league_rankings**](LeaguesApi.md#get_league_rankings) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/rankings | Get rankings for a league |
9
+ | [**list_league_events**](LeaguesApi.md#list_league_events) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/events | List events for a league |
10
+ | [**list_league_teams**](LeaguesApi.md#list_league_teams) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/teams | List teams for a league |
11
+ | [**list_leagues**](LeaguesApi.md#list_leagues) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues | Lists leagues for a region |
12
+
13
+
14
+ ## get_league
15
+
16
+ > <ApiV3LeagueDetails> get_league(cmp_year, region_code, league_code)
17
+
18
+ Gets a single league from a region
19
+
20
+ Gets a leagues for a region in a season, including any children
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'ftc_api_v3_client'
27
+ # setup authorization
28
+ FtcApiV3Client.configure do |config|
29
+ # Configure API key authorization: ApiKeyAuth
30
+ config.api_key['api_key'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['api_key'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = FtcApiV3Client::LeaguesApi.new
36
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
37
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
38
+ league_code = 'league_code_example' # String | The code (abbreviation) for the league
39
+
40
+ begin
41
+ # Gets a single league from a region
42
+ result = api_instance.get_league(cmp_year, region_code, league_code)
43
+ p result
44
+ rescue FtcApiV3Client::ApiError => e
45
+ puts "Error when calling LeaguesApi->get_league: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the get_league_with_http_info variant
50
+
51
+ This returns an Array which contains the response data, status code and headers.
52
+
53
+ > <Array(<ApiV3LeagueDetails>, Integer, Hash)> get_league_with_http_info(cmp_year, region_code, league_code)
54
+
55
+ ```ruby
56
+ begin
57
+ # Gets a single league from a region
58
+ data, status_code, headers = api_instance.get_league_with_http_info(cmp_year, region_code, league_code)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => <ApiV3LeagueDetails>
62
+ rescue FtcApiV3Client::ApiError => e
63
+ puts "Error when calling LeaguesApi->get_league_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
72
+ | **region_code** | **String** | The code (abbreviation) for the region | |
73
+ | **league_code** | **String** | The code (abbreviation) for the league | |
74
+
75
+ ### Return type
76
+
77
+ [**ApiV3LeagueDetails**](ApiV3LeagueDetails.md)
78
+
79
+ ### Authorization
80
+
81
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: Not defined
86
+ - **Accept**: application/json
87
+
88
+
89
+ ## get_league_rankings
90
+
91
+ > <ApiV3Rankings> get_league_rankings(cmp_year, region_code, league_code)
92
+
93
+ Get rankings for a league
94
+
95
+ Gets league rankings for a given league. This only includes matches played in League Meets. For rankings including the League Tournament, use the tournament event's rankings endpoint instead. Each sort order field is season-specific: see the season's competition manual for definitions. The last non-zero sort order is the scoring system randomly generated tiebreaker value.
96
+
97
+ ### Examples
98
+
99
+ ```ruby
100
+ require 'time'
101
+ require 'ftc_api_v3_client'
102
+ # setup authorization
103
+ FtcApiV3Client.configure do |config|
104
+ # Configure API key authorization: ApiKeyAuth
105
+ config.api_key['api_key'] = 'YOUR API KEY'
106
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
107
+ # config.api_key_prefix['api_key'] = 'Bearer'
108
+ end
109
+
110
+ api_instance = FtcApiV3Client::LeaguesApi.new
111
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
112
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
113
+ league_code = 'league_code_example' # String | The code (abbreviation) for the league
114
+
115
+ begin
116
+ # Get rankings for a league
117
+ result = api_instance.get_league_rankings(cmp_year, region_code, league_code)
118
+ p result
119
+ rescue FtcApiV3Client::ApiError => e
120
+ puts "Error when calling LeaguesApi->get_league_rankings: #{e}"
121
+ end
122
+ ```
123
+
124
+ #### Using the get_league_rankings_with_http_info variant
125
+
126
+ This returns an Array which contains the response data, status code and headers.
127
+
128
+ > <Array(<ApiV3Rankings>, Integer, Hash)> get_league_rankings_with_http_info(cmp_year, region_code, league_code)
129
+
130
+ ```ruby
131
+ begin
132
+ # Get rankings for a league
133
+ data, status_code, headers = api_instance.get_league_rankings_with_http_info(cmp_year, region_code, league_code)
134
+ p status_code # => 2xx
135
+ p headers # => { ... }
136
+ p data # => <ApiV3Rankings>
137
+ rescue FtcApiV3Client::ApiError => e
138
+ puts "Error when calling LeaguesApi->get_league_rankings_with_http_info: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ | Name | Type | Description | Notes |
145
+ | ---- | ---- | ----------- | ----- |
146
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
147
+ | **region_code** | **String** | The code (abbreviation) for the region | |
148
+ | **league_code** | **String** | The code (abbreviation) for the league | |
149
+
150
+ ### Return type
151
+
152
+ [**ApiV3Rankings**](ApiV3Rankings.md)
153
+
154
+ ### Authorization
155
+
156
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ## list_league_events
165
+
166
+ > <ApiV3Events> list_league_events(cmp_year, region_code, league_code)
167
+
168
+ List events for a league
169
+
170
+ Lists all events in a league, including events in child leagues.
171
+
172
+ ### Examples
173
+
174
+ ```ruby
175
+ require 'time'
176
+ require 'ftc_api_v3_client'
177
+ # setup authorization
178
+ FtcApiV3Client.configure do |config|
179
+ # Configure API key authorization: ApiKeyAuth
180
+ config.api_key['api_key'] = 'YOUR API KEY'
181
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
182
+ # config.api_key_prefix['api_key'] = 'Bearer'
183
+ end
184
+
185
+ api_instance = FtcApiV3Client::LeaguesApi.new
186
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
187
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
188
+ league_code = 'league_code_example' # String | The code (abbreviation) for the league
189
+
190
+ begin
191
+ # List events for a league
192
+ result = api_instance.list_league_events(cmp_year, region_code, league_code)
193
+ p result
194
+ rescue FtcApiV3Client::ApiError => e
195
+ puts "Error when calling LeaguesApi->list_league_events: #{e}"
196
+ end
197
+ ```
198
+
199
+ #### Using the list_league_events_with_http_info variant
200
+
201
+ This returns an Array which contains the response data, status code and headers.
202
+
203
+ > <Array(<ApiV3Events>, Integer, Hash)> list_league_events_with_http_info(cmp_year, region_code, league_code)
204
+
205
+ ```ruby
206
+ begin
207
+ # List events for a league
208
+ data, status_code, headers = api_instance.list_league_events_with_http_info(cmp_year, region_code, league_code)
209
+ p status_code # => 2xx
210
+ p headers # => { ... }
211
+ p data # => <ApiV3Events>
212
+ rescue FtcApiV3Client::ApiError => e
213
+ puts "Error when calling LeaguesApi->list_league_events_with_http_info: #{e}"
214
+ end
215
+ ```
216
+
217
+ ### Parameters
218
+
219
+ | Name | Type | Description | Notes |
220
+ | ---- | ---- | ----------- | ----- |
221
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
222
+ | **region_code** | **String** | The code (abbreviation) for the region | |
223
+ | **league_code** | **String** | The code (abbreviation) for the league | |
224
+
225
+ ### Return type
226
+
227
+ [**ApiV3Events**](ApiV3Events.md)
228
+
229
+ ### Authorization
230
+
231
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: Not defined
236
+ - **Accept**: application/json
237
+
238
+
239
+ ## list_league_teams
240
+
241
+ > <ApiV3Teams> list_league_teams(cmp_year, region_code, league_code)
242
+
243
+ List teams for a league
244
+
245
+ Lists all teams assigned to the given league.
246
+
247
+ ### Examples
248
+
249
+ ```ruby
250
+ require 'time'
251
+ require 'ftc_api_v3_client'
252
+ # setup authorization
253
+ FtcApiV3Client.configure do |config|
254
+ # Configure API key authorization: ApiKeyAuth
255
+ config.api_key['api_key'] = 'YOUR API KEY'
256
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
257
+ # config.api_key_prefix['api_key'] = 'Bearer'
258
+ end
259
+
260
+ api_instance = FtcApiV3Client::LeaguesApi.new
261
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
262
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
263
+ league_code = 'league_code_example' # String | The code (abbreviation) for the league
264
+
265
+ begin
266
+ # List teams for a league
267
+ result = api_instance.list_league_teams(cmp_year, region_code, league_code)
268
+ p result
269
+ rescue FtcApiV3Client::ApiError => e
270
+ puts "Error when calling LeaguesApi->list_league_teams: #{e}"
271
+ end
272
+ ```
273
+
274
+ #### Using the list_league_teams_with_http_info variant
275
+
276
+ This returns an Array which contains the response data, status code and headers.
277
+
278
+ > <Array(<ApiV3Teams>, Integer, Hash)> list_league_teams_with_http_info(cmp_year, region_code, league_code)
279
+
280
+ ```ruby
281
+ begin
282
+ # List teams for a league
283
+ data, status_code, headers = api_instance.list_league_teams_with_http_info(cmp_year, region_code, league_code)
284
+ p status_code # => 2xx
285
+ p headers # => { ... }
286
+ p data # => <ApiV3Teams>
287
+ rescue FtcApiV3Client::ApiError => e
288
+ puts "Error when calling LeaguesApi->list_league_teams_with_http_info: #{e}"
289
+ end
290
+ ```
291
+
292
+ ### Parameters
293
+
294
+ | Name | Type | Description | Notes |
295
+ | ---- | ---- | ----------- | ----- |
296
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
297
+ | **region_code** | **String** | The code (abbreviation) for the region | |
298
+ | **league_code** | **String** | The code (abbreviation) for the league | |
299
+
300
+ ### Return type
301
+
302
+ [**ApiV3Teams**](ApiV3Teams.md)
303
+
304
+ ### Authorization
305
+
306
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
307
+
308
+ ### HTTP request headers
309
+
310
+ - **Content-Type**: Not defined
311
+ - **Accept**: application/json
312
+
313
+
314
+ ## list_leagues
315
+
316
+ > <ApiV3Leagues> list_leagues(cmp_year, region_code)
317
+
318
+ Lists leagues for a region
319
+
320
+ Lists all leagues for a region in a season. Parent/child relationships can be determined from the `parentCode` field of each league. League parents are guaranteed to be in the same region as their children.
321
+
322
+ ### Examples
323
+
324
+ ```ruby
325
+ require 'time'
326
+ require 'ftc_api_v3_client'
327
+ # setup authorization
328
+ FtcApiV3Client.configure do |config|
329
+ # Configure API key authorization: ApiKeyAuth
330
+ config.api_key['api_key'] = 'YOUR API KEY'
331
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
332
+ # config.api_key_prefix['api_key'] = 'Bearer'
333
+ end
334
+
335
+ api_instance = FtcApiV3Client::LeaguesApi.new
336
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
337
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
338
+
339
+ begin
340
+ # Lists leagues for a region
341
+ result = api_instance.list_leagues(cmp_year, region_code)
342
+ p result
343
+ rescue FtcApiV3Client::ApiError => e
344
+ puts "Error when calling LeaguesApi->list_leagues: #{e}"
345
+ end
346
+ ```
347
+
348
+ #### Using the list_leagues_with_http_info variant
349
+
350
+ This returns an Array which contains the response data, status code and headers.
351
+
352
+ > <Array(<ApiV3Leagues>, Integer, Hash)> list_leagues_with_http_info(cmp_year, region_code)
353
+
354
+ ```ruby
355
+ begin
356
+ # Lists leagues for a region
357
+ data, status_code, headers = api_instance.list_leagues_with_http_info(cmp_year, region_code)
358
+ p status_code # => 2xx
359
+ p headers # => { ... }
360
+ p data # => <ApiV3Leagues>
361
+ rescue FtcApiV3Client::ApiError => e
362
+ puts "Error when calling LeaguesApi->list_leagues_with_http_info: #{e}"
363
+ end
364
+ ```
365
+
366
+ ### Parameters
367
+
368
+ | Name | Type | Description | Notes |
369
+ | ---- | ---- | ----------- | ----- |
370
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
371
+ | **region_code** | **String** | The code (abbreviation) for the region | |
372
+
373
+ ### Return type
374
+
375
+ [**ApiV3Leagues**](ApiV3Leagues.md)
376
+
377
+ ### Authorization
378
+
379
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
380
+
381
+ ### HTTP request headers
382
+
383
+ - **Content-Type**: Not defined
384
+ - **Accept**: application/json
385
+
@@ -0,0 +1,301 @@
1
+ # FtcApiV3Client::RegionsApi
2
+
3
+ All URIs are relative to *https://ftc-api.firstinspires.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_region**](RegionsApi.md#get_region) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode} | Get region from a season |
8
+ | [**list_region_events**](RegionsApi.md#list_region_events) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/events | List events for a regions |
9
+ | [**list_region_teams**](RegionsApi.md#list_region_teams) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/teams | List teams for a region |
10
+ | [**list_regions**](RegionsApi.md#list_regions) | **GET** /api/v3/seasons/{cmpYear}/regions | List regions for a season |
11
+
12
+
13
+ ## get_region
14
+
15
+ > <ApiV3Region> get_region(cmp_year, region_code)
16
+
17
+ Get region from a season
18
+
19
+ Gets details for a single region for a season.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'ftc_api_v3_client'
26
+ # setup authorization
27
+ FtcApiV3Client.configure do |config|
28
+ # Configure API key authorization: ApiKeyAuth
29
+ config.api_key['api_key'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ # config.api_key_prefix['api_key'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = FtcApiV3Client::RegionsApi.new
35
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
36
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
37
+
38
+ begin
39
+ # Get region from a season
40
+ result = api_instance.get_region(cmp_year, region_code)
41
+ p result
42
+ rescue FtcApiV3Client::ApiError => e
43
+ puts "Error when calling RegionsApi->get_region: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the get_region_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(<ApiV3Region>, Integer, Hash)> get_region_with_http_info(cmp_year, region_code)
52
+
53
+ ```ruby
54
+ begin
55
+ # Get region from a season
56
+ data, status_code, headers = api_instance.get_region_with_http_info(cmp_year, region_code)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => <ApiV3Region>
60
+ rescue FtcApiV3Client::ApiError => e
61
+ puts "Error when calling RegionsApi->get_region_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
70
+ | **region_code** | **String** | The code (abbreviation) for the region | |
71
+
72
+ ### Return type
73
+
74
+ [**ApiV3Region**](ApiV3Region.md)
75
+
76
+ ### Authorization
77
+
78
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: Not defined
83
+ - **Accept**: application/json
84
+
85
+
86
+ ## list_region_events
87
+
88
+ > <ApiV3Events> list_region_events(cmp_year, region_code)
89
+
90
+ List events for a regions
91
+
92
+ Lists all events in a region
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'ftc_api_v3_client'
99
+ # setup authorization
100
+ FtcApiV3Client.configure do |config|
101
+ # Configure API key authorization: ApiKeyAuth
102
+ config.api_key['api_key'] = 'YOUR API KEY'
103
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
104
+ # config.api_key_prefix['api_key'] = 'Bearer'
105
+ end
106
+
107
+ api_instance = FtcApiV3Client::RegionsApi.new
108
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
109
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
110
+
111
+ begin
112
+ # List events for a regions
113
+ result = api_instance.list_region_events(cmp_year, region_code)
114
+ p result
115
+ rescue FtcApiV3Client::ApiError => e
116
+ puts "Error when calling RegionsApi->list_region_events: #{e}"
117
+ end
118
+ ```
119
+
120
+ #### Using the list_region_events_with_http_info variant
121
+
122
+ This returns an Array which contains the response data, status code and headers.
123
+
124
+ > <Array(<ApiV3Events>, Integer, Hash)> list_region_events_with_http_info(cmp_year, region_code)
125
+
126
+ ```ruby
127
+ begin
128
+ # List events for a regions
129
+ data, status_code, headers = api_instance.list_region_events_with_http_info(cmp_year, region_code)
130
+ p status_code # => 2xx
131
+ p headers # => { ... }
132
+ p data # => <ApiV3Events>
133
+ rescue FtcApiV3Client::ApiError => e
134
+ puts "Error when calling RegionsApi->list_region_events_with_http_info: #{e}"
135
+ end
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ | Name | Type | Description | Notes |
141
+ | ---- | ---- | ----------- | ----- |
142
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
143
+ | **region_code** | **String** | The code (abbreviation) for the region | |
144
+
145
+ ### Return type
146
+
147
+ [**ApiV3Events**](ApiV3Events.md)
148
+
149
+ ### Authorization
150
+
151
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: application/json
157
+
158
+
159
+ ## list_region_teams
160
+
161
+ > <ApiV3Teams> list_region_teams(cmp_year, region_code)
162
+
163
+ List teams for a region
164
+
165
+ Lists all registered teams assigned to the given region.
166
+
167
+ ### Examples
168
+
169
+ ```ruby
170
+ require 'time'
171
+ require 'ftc_api_v3_client'
172
+ # setup authorization
173
+ FtcApiV3Client.configure do |config|
174
+ # Configure API key authorization: ApiKeyAuth
175
+ config.api_key['api_key'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ # config.api_key_prefix['api_key'] = 'Bearer'
178
+ end
179
+
180
+ api_instance = FtcApiV3Client::RegionsApi.new
181
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
182
+ region_code = 'region_code_example' # String | The code (abbreviation) for the region
183
+
184
+ begin
185
+ # List teams for a region
186
+ result = api_instance.list_region_teams(cmp_year, region_code)
187
+ p result
188
+ rescue FtcApiV3Client::ApiError => e
189
+ puts "Error when calling RegionsApi->list_region_teams: #{e}"
190
+ end
191
+ ```
192
+
193
+ #### Using the list_region_teams_with_http_info variant
194
+
195
+ This returns an Array which contains the response data, status code and headers.
196
+
197
+ > <Array(<ApiV3Teams>, Integer, Hash)> list_region_teams_with_http_info(cmp_year, region_code)
198
+
199
+ ```ruby
200
+ begin
201
+ # List teams for a region
202
+ data, status_code, headers = api_instance.list_region_teams_with_http_info(cmp_year, region_code)
203
+ p status_code # => 2xx
204
+ p headers # => { ... }
205
+ p data # => <ApiV3Teams>
206
+ rescue FtcApiV3Client::ApiError => e
207
+ puts "Error when calling RegionsApi->list_region_teams_with_http_info: #{e}"
208
+ end
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ | Name | Type | Description | Notes |
214
+ | ---- | ---- | ----------- | ----- |
215
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
216
+ | **region_code** | **String** | The code (abbreviation) for the region | |
217
+
218
+ ### Return type
219
+
220
+ [**ApiV3Teams**](ApiV3Teams.md)
221
+
222
+ ### Authorization
223
+
224
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ## list_regions
233
+
234
+ > <ApiV3Regions> list_regions(cmp_year)
235
+
236
+ List regions for a season
237
+
238
+ Lists all active regions for a season.
239
+
240
+ ### Examples
241
+
242
+ ```ruby
243
+ require 'time'
244
+ require 'ftc_api_v3_client'
245
+ # setup authorization
246
+ FtcApiV3Client.configure do |config|
247
+ # Configure API key authorization: ApiKeyAuth
248
+ config.api_key['api_key'] = 'YOUR API KEY'
249
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
250
+ # config.api_key_prefix['api_key'] = 'Bearer'
251
+ end
252
+
253
+ api_instance = FtcApiV3Client::RegionsApi.new
254
+ cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
255
+
256
+ begin
257
+ # List regions for a season
258
+ result = api_instance.list_regions(cmp_year)
259
+ p result
260
+ rescue FtcApiV3Client::ApiError => e
261
+ puts "Error when calling RegionsApi->list_regions: #{e}"
262
+ end
263
+ ```
264
+
265
+ #### Using the list_regions_with_http_info variant
266
+
267
+ This returns an Array which contains the response data, status code and headers.
268
+
269
+ > <Array(<ApiV3Regions>, Integer, Hash)> list_regions_with_http_info(cmp_year)
270
+
271
+ ```ruby
272
+ begin
273
+ # List regions for a season
274
+ data, status_code, headers = api_instance.list_regions_with_http_info(cmp_year)
275
+ p status_code # => 2xx
276
+ p headers # => { ... }
277
+ p data # => <ApiV3Regions>
278
+ rescue FtcApiV3Client::ApiError => e
279
+ puts "Error when calling RegionsApi->list_regions_with_http_info: #{e}"
280
+ end
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+ | Name | Type | Description | Notes |
286
+ | ---- | ---- | ----------- | ----- |
287
+ | **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
288
+
289
+ ### Return type
290
+
291
+ [**ApiV3Regions**](ApiV3Regions.md)
292
+
293
+ ### Authorization
294
+
295
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: application/json
301
+