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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +283 -0
- data/Rakefile +10 -0
- data/config.json +8 -0
- data/docs/ApiV3AdvancementFrom.md +22 -0
- data/docs/ApiV3AdvancementFromSlot.md +24 -0
- data/docs/ApiV3AdvancementStatus.md +15 -0
- data/docs/ApiV3AllianceColor.md +15 -0
- data/docs/ApiV3AllianceDescription.md +82 -0
- data/docs/ApiV3AllianceMatch.md +44 -0
- data/docs/ApiV3AllianceMatchDetails.md +46 -0
- data/docs/ApiV3AllianceMatchParticipants.md +79 -0
- data/docs/ApiV3AllianceMatchResults.md +22 -0
- data/docs/ApiV3AllianceMatchResultsDetails.md +20 -0
- data/docs/ApiV3AlliancePlayoffMatchParticipants.md +22 -0
- data/docs/ApiV3AllianceSelection.md +20 -0
- data/docs/ApiV3AllianceSelections.md +18 -0
- data/docs/ApiV3AllianceSimpleMatchParticipants.md +22 -0
- data/docs/ApiV3Award.md +30 -0
- data/docs/ApiV3AwardRecipient.md +24 -0
- data/docs/ApiV3AwardType.md +15 -0
- data/docs/ApiV3Awards.md +18 -0
- data/docs/ApiV3BasePlayoffSeriesDescription.md +79 -0
- data/docs/ApiV3BasicAllianceDescription.md +20 -0
- data/docs/ApiV3CenterStageRemoteScoreDetail.md +22 -0
- data/docs/ApiV3CenterStageScoreDetail.md +22 -0
- data/docs/ApiV3CompetingType.md +15 -0
- data/docs/ApiV3Coordinates.md +20 -0
- data/docs/ApiV3CsAchievementsDetail.md +56 -0
- data/docs/ApiV3CsEndLocation.md +15 -0
- data/docs/ApiV3CsPointsDetail.md +48 -0
- data/docs/ApiV3CsRemoteAchievementsDetail.md +44 -0
- data/docs/ApiV3CsRemotePointsDetail.md +46 -0
- data/docs/ApiV3DecodeAchievementsDetail.md +42 -0
- data/docs/ApiV3DecodeArtifactType.md +15 -0
- data/docs/ApiV3DecodePointsDetail.md +46 -0
- data/docs/ApiV3DecodeScoreDetail.md +22 -0
- data/docs/ApiV3DecodeTeleopBaseLocation.md +15 -0
- data/docs/ApiV3Division.md +20 -0
- data/docs/ApiV3DoubleEliminationSeriesDescription.md +36 -0
- data/docs/ApiV3DoubleElimsBracketHalf.md +15 -0
- data/docs/ApiV3Event.md +62 -0
- data/docs/ApiV3EventFormat.md +15 -0
- data/docs/ApiV3EventLiveStream.md +22 -0
- data/docs/ApiV3EventParticipant.md +22 -0
- data/docs/ApiV3EventParticipants.md +18 -0
- data/docs/ApiV3EventType.md +15 -0
- data/docs/ApiV3Events.md +18 -0
- data/docs/ApiV3FFAchievementsDetail.md +64 -0
- data/docs/ApiV3FFAutoLocation.md +15 -0
- data/docs/ApiV3FFEndLocation.md +15 -0
- data/docs/ApiV3FFPointsDetail.md +54 -0
- data/docs/ApiV3FFRemoteAchievementsDetail.md +52 -0
- data/docs/ApiV3FFRemotePointsDetail.md +48 -0
- data/docs/ApiV3FreightFrenzyRemoteScoreDetail.md +22 -0
- data/docs/ApiV3FreightFrenzyScoreDetail.md +22 -0
- data/docs/ApiV3IntoTheDeepScoreDetail.md +22 -0
- data/docs/ApiV3ItdAchievementsDetail.md +48 -0
- data/docs/ApiV3ItdAutoLocation.md +15 -0
- data/docs/ApiV3ItdPointsDetail.md +42 -0
- data/docs/ApiV3ItdTeleopLocation.md +15 -0
- data/docs/ApiV3JunctionElement.md +15 -0
- data/docs/ApiV3League.md +26 -0
- data/docs/ApiV3LeagueDetails.md +28 -0
- data/docs/ApiV3LeagueMembershipDetails.md +20 -0
- data/docs/ApiV3Leagues.md +18 -0
- data/docs/ApiV3Match.md +79 -0
- data/docs/ApiV3MatchAlliance.md +18 -0
- data/docs/ApiV3MatchDetails.md +79 -0
- data/docs/ApiV3MatchTeam.md +24 -0
- data/docs/ApiV3Matches.md +18 -0
- data/docs/ApiV3PitMap.md +30 -0
- data/docs/ApiV3PitMapCellType.md +15 -0
- data/docs/ApiV3PitMapElement.md +40 -0
- data/docs/ApiV3PitMapLabelOrientation.md +15 -0
- data/docs/ApiV3PlayoffAlliance.md +24 -0
- data/docs/ApiV3PlayoffAlliances.md +18 -0
- data/docs/ApiV3PlayoffMatchAlliance.md +20 -0
- data/docs/ApiV3PlayoffRanking.md +32 -0
- data/docs/ApiV3PlayoffRankings.md +18 -0
- data/docs/ApiV3PlayoffSeriesDescription.md +32 -0
- data/docs/ApiV3PlayoffStructure.md +22 -0
- data/docs/ApiV3PlayoffType.md +15 -0
- data/docs/ApiV3PowerPlayAchievementsDetail.md +52 -0
- data/docs/ApiV3PowerPlayAutoLocation.md +15 -0
- data/docs/ApiV3PowerPlayPointsDetail.md +46 -0
- data/docs/ApiV3PowerPlayRemoteAchievementsDetail.md +48 -0
- data/docs/ApiV3PowerPlayRemotePointsDetail.md +44 -0
- data/docs/ApiV3PowerPlayRemoteScoreDetail.md +22 -0
- data/docs/ApiV3PowerPlayScoreDetail.md +22 -0
- data/docs/ApiV3Ranking.md +32 -0
- data/docs/ApiV3Rankings.md +18 -0
- data/docs/ApiV3Region.md +20 -0
- data/docs/ApiV3Regions.md +18 -0
- data/docs/ApiV3RemoteJunctionElement.md +15 -0
- data/docs/ApiV3RemoteScoreDetail.md +85 -0
- data/docs/ApiV3RoundRobinAllianceDescription.md +20 -0
- data/docs/ApiV3ScoreDetail.md +94 -0
- data/docs/ApiV3Season.md +24 -0
- data/docs/ApiV3Seasons.md +20 -0
- data/docs/ApiV3SelectionOperation.md +15 -0
- data/docs/ApiV3SeriesAllianceDescription.md +22 -0
- data/docs/ApiV3SeriesAllianceState.md +15 -0
- data/docs/ApiV3SimpleEvent.md +48 -0
- data/docs/ApiV3SimpleTeam.md +22 -0
- data/docs/ApiV3SingleAwardRecipient.md +30 -0
- data/docs/ApiV3SingleTeamMatch.md +44 -0
- data/docs/ApiV3SingleTeamMatchDetails.md +46 -0
- data/docs/ApiV3SingleTeamMatchParticipants.md +18 -0
- data/docs/ApiV3SingleTeamMatchResults.md +18 -0
- data/docs/ApiV3SingleTeamMatchResultsDetails.md +18 -0
- data/docs/ApiV3SkystoneAchievementsDetail.md +54 -0
- data/docs/ApiV3SkystonePointsDetail.md +46 -0
- data/docs/ApiV3SkystoneScoreDetail.md +22 -0
- data/docs/ApiV3Stone.md +15 -0
- data/docs/ApiV3Team.md +38 -0
- data/docs/ApiV3TeamAvatar.md +20 -0
- data/docs/ApiV3TeamAvatars.md +18 -0
- data/docs/ApiV3TeamDetails.md +24 -0
- data/docs/ApiV3TeamEventParticipation.md +20 -0
- data/docs/ApiV3TeamEventParticipationDetails.md +26 -0
- data/docs/ApiV3TeamHistory.md +36 -0
- data/docs/ApiV3TeamSeasonHistory.md +20 -0
- data/docs/ApiV3Teams.md +18 -0
- data/docs/ApiV3TournamentLevel.md +15 -0
- data/docs/ApiV3UgAchievementsDetail.md +60 -0
- data/docs/ApiV3UgPointsDetail.md +44 -0
- data/docs/ApiV3UgRemoteAchievementsDetail.md +58 -0
- data/docs/ApiV3UgRemotePointsDetail.md +44 -0
- data/docs/ApiV3UgWobbleLocation.md +15 -0
- data/docs/ApiV3UltimateGoalRemoteScoreDetail.md +22 -0
- data/docs/ApiV3UltimateGoalScoreDetail.md +22 -0
- data/docs/EventsApi.md +977 -0
- data/docs/LeaguesApi.md +385 -0
- data/docs/RegionsApi.md +301 -0
- data/docs/SeasonsApi.md +148 -0
- data/docs/TeamsApi.md +371 -0
- data/ftc_api_v3_client.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +934 -0
- data/lib/ftc_api_v3_client/api/leagues_api.rb +391 -0
- data/lib/ftc_api_v3_client/api/regions_api.rb +292 -0
- data/lib/ftc_api_v3_client/api/seasons_api.rb +142 -0
- data/lib/ftc_api_v3_client/api/teams_api.rb +349 -0
- data/lib/ftc_api_v3_client/api_client.rb +397 -0
- data/lib/ftc_api_v3_client/api_error.rb +58 -0
- data/lib/ftc_api_v3_client/api_model_base.rb +88 -0
- data/lib/ftc_api_v3_client/configuration.rb +308 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +202 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +234 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_status.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_color.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_description.rb +57 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_participants.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selections.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +311 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +177 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_type.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_awards.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_base_playoff_series_description.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_competing_type.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_coordinates.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +680 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +555 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +524 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +528 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_artifact_type.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_teleop_base_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +405 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elims_bracket_half.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +559 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_format.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +182 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participants.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_type.rb +50 -0
- data/lib/ftc_api_v3_client/models/api_v3_events.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +787 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_auto_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +633 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +629 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +554 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +477 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_teleop_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_junction_element.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +245 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_membership_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_leagues.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_alliance.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_details.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_team.rb +209 -0
- data/lib/ftc_api_v3_client/models/api_v3_matches.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +322 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_cell_type.rb +45 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +336 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_label_orientation.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliances.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +347 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +241 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_type.rb +42 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +538 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_regions.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_junction_element.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_score_detail.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_score_detail.rb +65 -0
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +242 -0
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_selection_operation.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +239 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_state.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +458 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +293 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_participants.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results_details.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +634 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_stone.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +324 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatars.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_details.rb +247 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation_details.rb +238 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +334 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_season_history.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_teams.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_tournament_level.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +732 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +706 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_wobble_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/version.rb +15 -0
- data/lib/ftc_api_v3_client.rb +173 -0
- data/spec/api/events_api_spec.rb +207 -0
- data/spec/api/leagues_api_spec.rb +104 -0
- data/spec/api/regions_api_spec.rb +86 -0
- data/spec/api/seasons_api_spec.rb +58 -0
- data/spec/api/teams_api_spec.rb +97 -0
- data/spec/models/api_v3_advancement_from_slot_spec.rb +54 -0
- data/spec/models/api_v3_advancement_from_spec.rb +48 -0
- data/spec/models/api_v3_advancement_status_spec.rb +30 -0
- data/spec/models/api_v3_alliance_color_spec.rb +30 -0
- data/spec/models/api_v3_alliance_description_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_details_spec.rb +120 -0
- data/spec/models/api_v3_alliance_match_participants_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_results_details_spec.rb +42 -0
- data/spec/models/api_v3_alliance_match_results_spec.rb +48 -0
- data/spec/models/api_v3_alliance_match_spec.rb +114 -0
- data/spec/models/api_v3_alliance_playoff_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_alliance_selection_spec.rb +42 -0
- data/spec/models/api_v3_alliance_selections_spec.rb +36 -0
- data/spec/models/api_v3_alliance_simple_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_award_recipient_spec.rb +54 -0
- data/spec/models/api_v3_award_spec.rb +72 -0
- data/spec/models/api_v3_award_type_spec.rb +30 -0
- data/spec/models/api_v3_awards_spec.rb +36 -0
- data/spec/models/api_v3_base_playoff_series_description_spec.rb +44 -0
- data/spec/models/api_v3_basic_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_center_stage_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_center_stage_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_competing_type_spec.rb +30 -0
- data/spec/models/api_v3_coordinates_spec.rb +42 -0
- data/spec/models/api_v3_cs_achievements_detail_spec.rb +150 -0
- data/spec/models/api_v3_cs_end_location_spec.rb +30 -0
- data/spec/models/api_v3_cs_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_cs_remote_achievements_detail_spec.rb +114 -0
- data/spec/models/api_v3_cs_remote_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_achievements_detail_spec.rb +108 -0
- data/spec/models/api_v3_decode_artifact_type_spec.rb +30 -0
- data/spec/models/api_v3_decode_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_decode_teleop_base_location_spec.rb +30 -0
- data/spec/models/api_v3_division_spec.rb +42 -0
- data/spec/models/api_v3_double_elimination_series_description_spec.rb +90 -0
- data/spec/models/api_v3_double_elims_bracket_half_spec.rb +30 -0
- data/spec/models/api_v3_event_format_spec.rb +30 -0
- data/spec/models/api_v3_event_live_stream_spec.rb +48 -0
- data/spec/models/api_v3_event_participant_spec.rb +48 -0
- data/spec/models/api_v3_event_participants_spec.rb +36 -0
- data/spec/models/api_v3_event_spec.rb +168 -0
- data/spec/models/api_v3_event_type_spec.rb +30 -0
- data/spec/models/api_v3_events_spec.rb +36 -0
- data/spec/models/api_v3_ff_achievements_detail_spec.rb +174 -0
- data/spec/models/api_v3_ff_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_end_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_points_detail_spec.rb +144 -0
- data/spec/models/api_v3_ff_remote_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_ff_remote_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_freight_frenzy_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_freight_frenzy_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_into_the_deep_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_itd_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_itd_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_itd_points_detail_spec.rb +108 -0
- data/spec/models/api_v3_itd_teleop_location_spec.rb +30 -0
- data/spec/models/api_v3_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_league_details_spec.rb +66 -0
- data/spec/models/api_v3_league_membership_details_spec.rb +42 -0
- data/spec/models/api_v3_league_spec.rb +60 -0
- data/spec/models/api_v3_leagues_spec.rb +36 -0
- data/spec/models/api_v3_match_alliance_spec.rb +36 -0
- data/spec/models/api_v3_match_details_spec.rb +44 -0
- data/spec/models/api_v3_match_spec.rb +44 -0
- data/spec/models/api_v3_match_team_spec.rb +54 -0
- data/spec/models/api_v3_matches_spec.rb +36 -0
- data/spec/models/api_v3_pit_map_cell_type_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_element_spec.rb +102 -0
- data/spec/models/api_v3_pit_map_label_orientation_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_spec.rb +72 -0
- data/spec/models/api_v3_playoff_alliance_spec.rb +54 -0
- data/spec/models/api_v3_playoff_alliances_spec.rb +36 -0
- data/spec/models/api_v3_playoff_match_alliance_spec.rb +42 -0
- data/spec/models/api_v3_playoff_ranking_spec.rb +78 -0
- data/spec/models/api_v3_playoff_rankings_spec.rb +36 -0
- data/spec/models/api_v3_playoff_series_description_spec.rb +78 -0
- data/spec/models/api_v3_playoff_structure_spec.rb +48 -0
- data/spec/models/api_v3_playoff_type_spec.rb +30 -0
- data/spec/models/api_v3_power_play_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_power_play_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_power_play_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_power_play_remote_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_power_play_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_power_play_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_power_play_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ranking_spec.rb +78 -0
- data/spec/models/api_v3_rankings_spec.rb +36 -0
- data/spec/models/api_v3_region_spec.rb +42 -0
- data/spec/models/api_v3_regions_spec.rb +36 -0
- data/spec/models/api_v3_remote_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_remote_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_round_robin_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_season_spec.rb +54 -0
- data/spec/models/api_v3_seasons_spec.rb +42 -0
- data/spec/models/api_v3_selection_operation_spec.rb +30 -0
- data/spec/models/api_v3_series_alliance_description_spec.rb +48 -0
- data/spec/models/api_v3_series_alliance_state_spec.rb +30 -0
- data/spec/models/api_v3_simple_event_spec.rb +126 -0
- data/spec/models/api_v3_simple_team_spec.rb +48 -0
- data/spec/models/api_v3_single_award_recipient_spec.rb +72 -0
- data/spec/models/api_v3_single_team_match_details_spec.rb +120 -0
- data/spec/models/api_v3_single_team_match_participants_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_details_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_spec.rb +114 -0
- data/spec/models/api_v3_skystone_achievements_detail_spec.rb +144 -0
- data/spec/models/api_v3_skystone_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_skystone_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_stone_spec.rb +30 -0
- data/spec/models/api_v3_team_avatar_spec.rb +42 -0
- data/spec/models/api_v3_team_avatars_spec.rb +36 -0
- data/spec/models/api_v3_team_details_spec.rb +54 -0
- data/spec/models/api_v3_team_event_participation_details_spec.rb +60 -0
- data/spec/models/api_v3_team_event_participation_spec.rb +42 -0
- data/spec/models/api_v3_team_history_spec.rb +90 -0
- data/spec/models/api_v3_team_season_history_spec.rb +42 -0
- data/spec/models/api_v3_team_spec.rb +96 -0
- data/spec/models/api_v3_teams_spec.rb +36 -0
- data/spec/models/api_v3_tournament_level_spec.rb +30 -0
- data/spec/models/api_v3_ug_achievements_detail_spec.rb +162 -0
- data/spec/models/api_v3_ug_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_remote_achievements_detail_spec.rb +156 -0
- data/spec/models/api_v3_ug_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_wobble_location_spec.rb +30 -0
- data/spec/models/api_v3_ultimate_goal_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ultimate_goal_score_detail_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- data/update.sh +1 -0
- metadata +630 -0
|
@@ -0,0 +1,391 @@
|
|
|
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 LeaguesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Gets a single league from a region
|
|
23
|
+
# Gets a leagues for a region in a season, including any children
|
|
24
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
25
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
26
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [ApiV3LeagueDetails]
|
|
29
|
+
def get_league(cmp_year, region_code, league_code, opts = {})
|
|
30
|
+
data, _status_code, _headers = get_league_with_http_info(cmp_year, region_code, league_code, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Gets a single league from a region
|
|
35
|
+
# Gets a leagues for a region in a season, including any children
|
|
36
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
37
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
38
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(ApiV3LeagueDetails, Integer, Hash)>] ApiV3LeagueDetails data, response status code and response headers
|
|
41
|
+
def get_league_with_http_info(cmp_year, region_code, league_code, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: LeaguesApi.get_league ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'cmp_year' is set
|
|
46
|
+
if @api_client.config.client_side_validation && cmp_year.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'cmp_year' when calling LeaguesApi.get_league"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'region_code' is set
|
|
50
|
+
if @api_client.config.client_side_validation && region_code.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'region_code' when calling LeaguesApi.get_league"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'league_code' is set
|
|
54
|
+
if @api_client.config.client_side_validation && league_code.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'league_code' when calling LeaguesApi.get_league"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'regionCode' + '}', CGI.escape(region_code.to_s)).sub('{' + 'leagueCode' + '}', CGI.escape(league_code.to_s))
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = opts[:query_params] || {}
|
|
62
|
+
|
|
63
|
+
# header parameters
|
|
64
|
+
header_params = opts[:header_params] || {}
|
|
65
|
+
# HTTP header 'Accept' (if needed)
|
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
67
|
+
|
|
68
|
+
# form parameters
|
|
69
|
+
form_params = opts[:form_params] || {}
|
|
70
|
+
|
|
71
|
+
# http body (model)
|
|
72
|
+
post_body = opts[:debug_body]
|
|
73
|
+
|
|
74
|
+
# return_type
|
|
75
|
+
return_type = opts[:debug_return_type] || 'ApiV3LeagueDetails'
|
|
76
|
+
|
|
77
|
+
# auth_names
|
|
78
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
79
|
+
|
|
80
|
+
new_options = opts.merge(
|
|
81
|
+
:operation => :"LeaguesApi.get_league",
|
|
82
|
+
:header_params => header_params,
|
|
83
|
+
:query_params => query_params,
|
|
84
|
+
:form_params => form_params,
|
|
85
|
+
:body => post_body,
|
|
86
|
+
:auth_names => auth_names,
|
|
87
|
+
:return_type => return_type
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug "API called: LeaguesApi#get_league\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
|
+
end
|
|
94
|
+
return data, status_code, headers
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Get rankings for a league
|
|
98
|
+
# 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.
|
|
99
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
100
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
101
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @return [ApiV3Rankings]
|
|
104
|
+
def get_league_rankings(cmp_year, region_code, league_code, opts = {})
|
|
105
|
+
data, _status_code, _headers = get_league_rankings_with_http_info(cmp_year, region_code, league_code, opts)
|
|
106
|
+
data
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Get rankings for a league
|
|
110
|
+
# 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.
|
|
111
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
112
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
113
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @return [Array<(ApiV3Rankings, Integer, Hash)>] ApiV3Rankings data, response status code and response headers
|
|
116
|
+
def get_league_rankings_with_http_info(cmp_year, region_code, league_code, opts = {})
|
|
117
|
+
if @api_client.config.debugging
|
|
118
|
+
@api_client.config.logger.debug 'Calling API: LeaguesApi.get_league_rankings ...'
|
|
119
|
+
end
|
|
120
|
+
# verify the required parameter 'cmp_year' is set
|
|
121
|
+
if @api_client.config.client_side_validation && cmp_year.nil?
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'cmp_year' when calling LeaguesApi.get_league_rankings"
|
|
123
|
+
end
|
|
124
|
+
# verify the required parameter 'region_code' is set
|
|
125
|
+
if @api_client.config.client_side_validation && region_code.nil?
|
|
126
|
+
fail ArgumentError, "Missing the required parameter 'region_code' when calling LeaguesApi.get_league_rankings"
|
|
127
|
+
end
|
|
128
|
+
# verify the required parameter 'league_code' is set
|
|
129
|
+
if @api_client.config.client_side_validation && league_code.nil?
|
|
130
|
+
fail ArgumentError, "Missing the required parameter 'league_code' when calling LeaguesApi.get_league_rankings"
|
|
131
|
+
end
|
|
132
|
+
# resource path
|
|
133
|
+
local_var_path = '/api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/rankings'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'regionCode' + '}', CGI.escape(region_code.to_s)).sub('{' + 'leagueCode' + '}', CGI.escape(league_code.to_s))
|
|
134
|
+
|
|
135
|
+
# query parameters
|
|
136
|
+
query_params = opts[:query_params] || {}
|
|
137
|
+
|
|
138
|
+
# header parameters
|
|
139
|
+
header_params = opts[:header_params] || {}
|
|
140
|
+
# HTTP header 'Accept' (if needed)
|
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
142
|
+
|
|
143
|
+
# form parameters
|
|
144
|
+
form_params = opts[:form_params] || {}
|
|
145
|
+
|
|
146
|
+
# http body (model)
|
|
147
|
+
post_body = opts[:debug_body]
|
|
148
|
+
|
|
149
|
+
# return_type
|
|
150
|
+
return_type = opts[:debug_return_type] || 'ApiV3Rankings'
|
|
151
|
+
|
|
152
|
+
# auth_names
|
|
153
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
154
|
+
|
|
155
|
+
new_options = opts.merge(
|
|
156
|
+
:operation => :"LeaguesApi.get_league_rankings",
|
|
157
|
+
:header_params => header_params,
|
|
158
|
+
:query_params => query_params,
|
|
159
|
+
:form_params => form_params,
|
|
160
|
+
:body => post_body,
|
|
161
|
+
:auth_names => auth_names,
|
|
162
|
+
:return_type => return_type
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug "API called: LeaguesApi#get_league_rankings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
168
|
+
end
|
|
169
|
+
return data, status_code, headers
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# List events for a league
|
|
173
|
+
# Lists all events in a league, including events in child leagues.
|
|
174
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
175
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
176
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [ApiV3Events]
|
|
179
|
+
def list_league_events(cmp_year, region_code, league_code, opts = {})
|
|
180
|
+
data, _status_code, _headers = list_league_events_with_http_info(cmp_year, region_code, league_code, opts)
|
|
181
|
+
data
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# List events for a league
|
|
185
|
+
# Lists all events in a league, including events in child leagues.
|
|
186
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
187
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
188
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [Array<(ApiV3Events, Integer, Hash)>] ApiV3Events data, response status code and response headers
|
|
191
|
+
def list_league_events_with_http_info(cmp_year, region_code, league_code, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: LeaguesApi.list_league_events ...'
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'cmp_year' is set
|
|
196
|
+
if @api_client.config.client_side_validation && cmp_year.nil?
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'cmp_year' when calling LeaguesApi.list_league_events"
|
|
198
|
+
end
|
|
199
|
+
# verify the required parameter 'region_code' is set
|
|
200
|
+
if @api_client.config.client_side_validation && region_code.nil?
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'region_code' when calling LeaguesApi.list_league_events"
|
|
202
|
+
end
|
|
203
|
+
# verify the required parameter 'league_code' is set
|
|
204
|
+
if @api_client.config.client_side_validation && league_code.nil?
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'league_code' when calling LeaguesApi.list_league_events"
|
|
206
|
+
end
|
|
207
|
+
# resource path
|
|
208
|
+
local_var_path = '/api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/events'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'regionCode' + '}', CGI.escape(region_code.to_s)).sub('{' + 'leagueCode' + '}', CGI.escape(league_code.to_s))
|
|
209
|
+
|
|
210
|
+
# query parameters
|
|
211
|
+
query_params = opts[:query_params] || {}
|
|
212
|
+
|
|
213
|
+
# header parameters
|
|
214
|
+
header_params = opts[:header_params] || {}
|
|
215
|
+
# HTTP header 'Accept' (if needed)
|
|
216
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
217
|
+
|
|
218
|
+
# form parameters
|
|
219
|
+
form_params = opts[:form_params] || {}
|
|
220
|
+
|
|
221
|
+
# http body (model)
|
|
222
|
+
post_body = opts[:debug_body]
|
|
223
|
+
|
|
224
|
+
# return_type
|
|
225
|
+
return_type = opts[:debug_return_type] || 'ApiV3Events'
|
|
226
|
+
|
|
227
|
+
# auth_names
|
|
228
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
229
|
+
|
|
230
|
+
new_options = opts.merge(
|
|
231
|
+
:operation => :"LeaguesApi.list_league_events",
|
|
232
|
+
:header_params => header_params,
|
|
233
|
+
:query_params => query_params,
|
|
234
|
+
:form_params => form_params,
|
|
235
|
+
:body => post_body,
|
|
236
|
+
:auth_names => auth_names,
|
|
237
|
+
:return_type => return_type
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
241
|
+
if @api_client.config.debugging
|
|
242
|
+
@api_client.config.logger.debug "API called: LeaguesApi#list_league_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
243
|
+
end
|
|
244
|
+
return data, status_code, headers
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# List teams for a league
|
|
248
|
+
# Lists all teams assigned to the given league.
|
|
249
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
250
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
251
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
252
|
+
# @param [Hash] opts the optional parameters
|
|
253
|
+
# @return [ApiV3Teams]
|
|
254
|
+
def list_league_teams(cmp_year, region_code, league_code, opts = {})
|
|
255
|
+
data, _status_code, _headers = list_league_teams_with_http_info(cmp_year, region_code, league_code, opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# List teams for a league
|
|
260
|
+
# Lists all teams assigned to the given league.
|
|
261
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
262
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
263
|
+
# @param league_code [String] The code (abbreviation) for the league
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [Array<(ApiV3Teams, Integer, Hash)>] ApiV3Teams data, response status code and response headers
|
|
266
|
+
def list_league_teams_with_http_info(cmp_year, region_code, league_code, opts = {})
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug 'Calling API: LeaguesApi.list_league_teams ...'
|
|
269
|
+
end
|
|
270
|
+
# verify the required parameter 'cmp_year' is set
|
|
271
|
+
if @api_client.config.client_side_validation && cmp_year.nil?
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'cmp_year' when calling LeaguesApi.list_league_teams"
|
|
273
|
+
end
|
|
274
|
+
# verify the required parameter 'region_code' is set
|
|
275
|
+
if @api_client.config.client_side_validation && region_code.nil?
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'region_code' when calling LeaguesApi.list_league_teams"
|
|
277
|
+
end
|
|
278
|
+
# verify the required parameter 'league_code' is set
|
|
279
|
+
if @api_client.config.client_side_validation && league_code.nil?
|
|
280
|
+
fail ArgumentError, "Missing the required parameter 'league_code' when calling LeaguesApi.list_league_teams"
|
|
281
|
+
end
|
|
282
|
+
# resource path
|
|
283
|
+
local_var_path = '/api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/teams'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'regionCode' + '}', CGI.escape(region_code.to_s)).sub('{' + 'leagueCode' + '}', CGI.escape(league_code.to_s))
|
|
284
|
+
|
|
285
|
+
# query parameters
|
|
286
|
+
query_params = opts[:query_params] || {}
|
|
287
|
+
|
|
288
|
+
# header parameters
|
|
289
|
+
header_params = opts[:header_params] || {}
|
|
290
|
+
# HTTP header 'Accept' (if needed)
|
|
291
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
292
|
+
|
|
293
|
+
# form parameters
|
|
294
|
+
form_params = opts[:form_params] || {}
|
|
295
|
+
|
|
296
|
+
# http body (model)
|
|
297
|
+
post_body = opts[:debug_body]
|
|
298
|
+
|
|
299
|
+
# return_type
|
|
300
|
+
return_type = opts[:debug_return_type] || 'ApiV3Teams'
|
|
301
|
+
|
|
302
|
+
# auth_names
|
|
303
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
304
|
+
|
|
305
|
+
new_options = opts.merge(
|
|
306
|
+
:operation => :"LeaguesApi.list_league_teams",
|
|
307
|
+
:header_params => header_params,
|
|
308
|
+
:query_params => query_params,
|
|
309
|
+
:form_params => form_params,
|
|
310
|
+
:body => post_body,
|
|
311
|
+
:auth_names => auth_names,
|
|
312
|
+
:return_type => return_type
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
316
|
+
if @api_client.config.debugging
|
|
317
|
+
@api_client.config.logger.debug "API called: LeaguesApi#list_league_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
318
|
+
end
|
|
319
|
+
return data, status_code, headers
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Lists leagues for a region
|
|
323
|
+
# 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.
|
|
324
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
325
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
326
|
+
# @param [Hash] opts the optional parameters
|
|
327
|
+
# @return [ApiV3Leagues]
|
|
328
|
+
def list_leagues(cmp_year, region_code, opts = {})
|
|
329
|
+
data, _status_code, _headers = list_leagues_with_http_info(cmp_year, region_code, opts)
|
|
330
|
+
data
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Lists leagues for a region
|
|
334
|
+
# 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.
|
|
335
|
+
# @param cmp_year [String] The year of the FIRST Championship for the requested season
|
|
336
|
+
# @param region_code [String] The code (abbreviation) for the region
|
|
337
|
+
# @param [Hash] opts the optional parameters
|
|
338
|
+
# @return [Array<(ApiV3Leagues, Integer, Hash)>] ApiV3Leagues data, response status code and response headers
|
|
339
|
+
def list_leagues_with_http_info(cmp_year, region_code, opts = {})
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug 'Calling API: LeaguesApi.list_leagues ...'
|
|
342
|
+
end
|
|
343
|
+
# verify the required parameter 'cmp_year' is set
|
|
344
|
+
if @api_client.config.client_side_validation && cmp_year.nil?
|
|
345
|
+
fail ArgumentError, "Missing the required parameter 'cmp_year' when calling LeaguesApi.list_leagues"
|
|
346
|
+
end
|
|
347
|
+
# verify the required parameter 'region_code' is set
|
|
348
|
+
if @api_client.config.client_side_validation && region_code.nil?
|
|
349
|
+
fail ArgumentError, "Missing the required parameter 'region_code' when calling LeaguesApi.list_leagues"
|
|
350
|
+
end
|
|
351
|
+
# resource path
|
|
352
|
+
local_var_path = '/api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues'.sub('{' + 'cmpYear' + '}', CGI.escape(cmp_year.to_s)).sub('{' + 'regionCode' + '}', CGI.escape(region_code.to_s))
|
|
353
|
+
|
|
354
|
+
# query parameters
|
|
355
|
+
query_params = opts[:query_params] || {}
|
|
356
|
+
|
|
357
|
+
# header parameters
|
|
358
|
+
header_params = opts[:header_params] || {}
|
|
359
|
+
# HTTP header 'Accept' (if needed)
|
|
360
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
361
|
+
|
|
362
|
+
# form parameters
|
|
363
|
+
form_params = opts[:form_params] || {}
|
|
364
|
+
|
|
365
|
+
# http body (model)
|
|
366
|
+
post_body = opts[:debug_body]
|
|
367
|
+
|
|
368
|
+
# return_type
|
|
369
|
+
return_type = opts[:debug_return_type] || 'ApiV3Leagues'
|
|
370
|
+
|
|
371
|
+
# auth_names
|
|
372
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
373
|
+
|
|
374
|
+
new_options = opts.merge(
|
|
375
|
+
:operation => :"LeaguesApi.list_leagues",
|
|
376
|
+
:header_params => header_params,
|
|
377
|
+
:query_params => query_params,
|
|
378
|
+
:form_params => form_params,
|
|
379
|
+
:body => post_body,
|
|
380
|
+
:auth_names => auth_names,
|
|
381
|
+
:return_type => return_type
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
385
|
+
if @api_client.config.debugging
|
|
386
|
+
@api_client.config.logger.debug "API called: LeaguesApi#list_leagues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
387
|
+
end
|
|
388
|
+
return data, status_code, headers
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
end
|