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,576 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FtcApiV3Client
|
|
17
|
+
class ApiV3ItdAchievementsDetail < ApiModelBase
|
|
18
|
+
attr_accessor :robot1_auto
|
|
19
|
+
|
|
20
|
+
attr_accessor :robot2_auto
|
|
21
|
+
|
|
22
|
+
attr_accessor :auto_sample_net
|
|
23
|
+
|
|
24
|
+
attr_accessor :auto_sample_low
|
|
25
|
+
|
|
26
|
+
attr_accessor :auto_sample_high
|
|
27
|
+
|
|
28
|
+
attr_accessor :auto_specimen_low
|
|
29
|
+
|
|
30
|
+
attr_accessor :auto_specimen_high
|
|
31
|
+
|
|
32
|
+
attr_accessor :teleop_sample_net
|
|
33
|
+
|
|
34
|
+
attr_accessor :teleop_sample_low
|
|
35
|
+
|
|
36
|
+
attr_accessor :teleop_sample_high
|
|
37
|
+
|
|
38
|
+
attr_accessor :teleop_specimen_low
|
|
39
|
+
|
|
40
|
+
attr_accessor :teleop_specimen_high
|
|
41
|
+
|
|
42
|
+
attr_accessor :robot1_teleop
|
|
43
|
+
|
|
44
|
+
attr_accessor :robot2_teleop
|
|
45
|
+
|
|
46
|
+
attr_accessor :minor_fouls
|
|
47
|
+
|
|
48
|
+
attr_accessor :major_fouls
|
|
49
|
+
|
|
50
|
+
class EnumAttributeValidator
|
|
51
|
+
attr_reader :datatype
|
|
52
|
+
attr_reader :allowable_values
|
|
53
|
+
|
|
54
|
+
def initialize(datatype, allowable_values)
|
|
55
|
+
@allowable_values = allowable_values.map do |value|
|
|
56
|
+
case datatype.to_s
|
|
57
|
+
when /Integer/i
|
|
58
|
+
value.to_i
|
|
59
|
+
when /Float/i
|
|
60
|
+
value.to_f
|
|
61
|
+
else
|
|
62
|
+
value
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def valid?(value)
|
|
68
|
+
!value || allowable_values.include?(value)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
|
+
def self.attribute_map
|
|
74
|
+
{
|
|
75
|
+
:'robot1_auto' => :'robot1Auto',
|
|
76
|
+
:'robot2_auto' => :'robot2Auto',
|
|
77
|
+
:'auto_sample_net' => :'autoSampleNet',
|
|
78
|
+
:'auto_sample_low' => :'autoSampleLow',
|
|
79
|
+
:'auto_sample_high' => :'autoSampleHigh',
|
|
80
|
+
:'auto_specimen_low' => :'autoSpecimenLow',
|
|
81
|
+
:'auto_specimen_high' => :'autoSpecimenHigh',
|
|
82
|
+
:'teleop_sample_net' => :'teleopSampleNet',
|
|
83
|
+
:'teleop_sample_low' => :'teleopSampleLow',
|
|
84
|
+
:'teleop_sample_high' => :'teleopSampleHigh',
|
|
85
|
+
:'teleop_specimen_low' => :'teleopSpecimenLow',
|
|
86
|
+
:'teleop_specimen_high' => :'teleopSpecimenHigh',
|
|
87
|
+
:'robot1_teleop' => :'robot1Teleop',
|
|
88
|
+
:'robot2_teleop' => :'robot2Teleop',
|
|
89
|
+
:'minor_fouls' => :'minorFouls',
|
|
90
|
+
:'major_fouls' => :'majorFouls'
|
|
91
|
+
}
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Returns attribute mapping this model knows about
|
|
95
|
+
def self.acceptable_attribute_map
|
|
96
|
+
attribute_map
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Returns all the JSON keys this model knows about
|
|
100
|
+
def self.acceptable_attributes
|
|
101
|
+
acceptable_attribute_map.values
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Attribute type mapping.
|
|
105
|
+
def self.openapi_types
|
|
106
|
+
{
|
|
107
|
+
:'robot1_auto' => :'ApiV3ItdAutoLocation',
|
|
108
|
+
:'robot2_auto' => :'ApiV3ItdAutoLocation',
|
|
109
|
+
:'auto_sample_net' => :'Integer',
|
|
110
|
+
:'auto_sample_low' => :'Integer',
|
|
111
|
+
:'auto_sample_high' => :'Integer',
|
|
112
|
+
:'auto_specimen_low' => :'Integer',
|
|
113
|
+
:'auto_specimen_high' => :'Integer',
|
|
114
|
+
:'teleop_sample_net' => :'Integer',
|
|
115
|
+
:'teleop_sample_low' => :'Integer',
|
|
116
|
+
:'teleop_sample_high' => :'Integer',
|
|
117
|
+
:'teleop_specimen_low' => :'Integer',
|
|
118
|
+
:'teleop_specimen_high' => :'Integer',
|
|
119
|
+
:'robot1_teleop' => :'ApiV3ItdTeleopLocation',
|
|
120
|
+
:'robot2_teleop' => :'ApiV3ItdTeleopLocation',
|
|
121
|
+
:'minor_fouls' => :'Integer',
|
|
122
|
+
:'major_fouls' => :'Integer'
|
|
123
|
+
}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# List of attributes with nullable: true
|
|
127
|
+
def self.openapi_nullable
|
|
128
|
+
Set.new([
|
|
129
|
+
])
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Initializes the object
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
def initialize(attributes = {})
|
|
135
|
+
if (!attributes.is_a?(Hash))
|
|
136
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FtcApiV3Client::ApiV3ItdAchievementsDetail` initialize method"
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
140
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
142
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
143
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FtcApiV3Client::ApiV3ItdAchievementsDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
144
|
+
end
|
|
145
|
+
h[k.to_sym] = v
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'robot1_auto')
|
|
149
|
+
self.robot1_auto = attributes[:'robot1_auto']
|
|
150
|
+
else
|
|
151
|
+
self.robot1_auto = nil
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'robot2_auto')
|
|
155
|
+
self.robot2_auto = attributes[:'robot2_auto']
|
|
156
|
+
else
|
|
157
|
+
self.robot2_auto = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'auto_sample_net')
|
|
161
|
+
self.auto_sample_net = attributes[:'auto_sample_net']
|
|
162
|
+
else
|
|
163
|
+
self.auto_sample_net = nil
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'auto_sample_low')
|
|
167
|
+
self.auto_sample_low = attributes[:'auto_sample_low']
|
|
168
|
+
else
|
|
169
|
+
self.auto_sample_low = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'auto_sample_high')
|
|
173
|
+
self.auto_sample_high = attributes[:'auto_sample_high']
|
|
174
|
+
else
|
|
175
|
+
self.auto_sample_high = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'auto_specimen_low')
|
|
179
|
+
self.auto_specimen_low = attributes[:'auto_specimen_low']
|
|
180
|
+
else
|
|
181
|
+
self.auto_specimen_low = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'auto_specimen_high')
|
|
185
|
+
self.auto_specimen_high = attributes[:'auto_specimen_high']
|
|
186
|
+
else
|
|
187
|
+
self.auto_specimen_high = nil
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'teleop_sample_net')
|
|
191
|
+
self.teleop_sample_net = attributes[:'teleop_sample_net']
|
|
192
|
+
else
|
|
193
|
+
self.teleop_sample_net = nil
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'teleop_sample_low')
|
|
197
|
+
self.teleop_sample_low = attributes[:'teleop_sample_low']
|
|
198
|
+
else
|
|
199
|
+
self.teleop_sample_low = nil
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'teleop_sample_high')
|
|
203
|
+
self.teleop_sample_high = attributes[:'teleop_sample_high']
|
|
204
|
+
else
|
|
205
|
+
self.teleop_sample_high = nil
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'teleop_specimen_low')
|
|
209
|
+
self.teleop_specimen_low = attributes[:'teleop_specimen_low']
|
|
210
|
+
else
|
|
211
|
+
self.teleop_specimen_low = nil
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'teleop_specimen_high')
|
|
215
|
+
self.teleop_specimen_high = attributes[:'teleop_specimen_high']
|
|
216
|
+
else
|
|
217
|
+
self.teleop_specimen_high = nil
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'robot1_teleop')
|
|
221
|
+
self.robot1_teleop = attributes[:'robot1_teleop']
|
|
222
|
+
else
|
|
223
|
+
self.robot1_teleop = nil
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'robot2_teleop')
|
|
227
|
+
self.robot2_teleop = attributes[:'robot2_teleop']
|
|
228
|
+
else
|
|
229
|
+
self.robot2_teleop = nil
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'minor_fouls')
|
|
233
|
+
self.minor_fouls = attributes[:'minor_fouls']
|
|
234
|
+
else
|
|
235
|
+
self.minor_fouls = nil
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'major_fouls')
|
|
239
|
+
self.major_fouls = attributes[:'major_fouls']
|
|
240
|
+
else
|
|
241
|
+
self.major_fouls = nil
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
246
|
+
# @return Array for valid properties with the reasons
|
|
247
|
+
def list_invalid_properties
|
|
248
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
249
|
+
invalid_properties = Array.new
|
|
250
|
+
if @robot1_auto.nil?
|
|
251
|
+
invalid_properties.push('invalid value for "robot1_auto", robot1_auto cannot be nil.')
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if @robot2_auto.nil?
|
|
255
|
+
invalid_properties.push('invalid value for "robot2_auto", robot2_auto cannot be nil.')
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if @auto_sample_net.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "auto_sample_net", auto_sample_net cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @auto_sample_low.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "auto_sample_low", auto_sample_low cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @auto_sample_high.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "auto_sample_high", auto_sample_high cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @auto_specimen_low.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "auto_specimen_low", auto_specimen_low cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if @auto_specimen_high.nil?
|
|
275
|
+
invalid_properties.push('invalid value for "auto_specimen_high", auto_specimen_high cannot be nil.')
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if @teleop_sample_net.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "teleop_sample_net", teleop_sample_net cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @teleop_sample_low.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "teleop_sample_low", teleop_sample_low cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @teleop_sample_high.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "teleop_sample_high", teleop_sample_high cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @teleop_specimen_low.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "teleop_specimen_low", teleop_specimen_low cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @teleop_specimen_high.nil?
|
|
295
|
+
invalid_properties.push('invalid value for "teleop_specimen_high", teleop_specimen_high cannot be nil.')
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @robot1_teleop.nil?
|
|
299
|
+
invalid_properties.push('invalid value for "robot1_teleop", robot1_teleop cannot be nil.')
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if @robot2_teleop.nil?
|
|
303
|
+
invalid_properties.push('invalid value for "robot2_teleop", robot2_teleop cannot be nil.')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if @minor_fouls.nil?
|
|
307
|
+
invalid_properties.push('invalid value for "minor_fouls", minor_fouls cannot be nil.')
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if @major_fouls.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "major_fouls", major_fouls cannot be nil.')
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
invalid_properties
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Check to see if the all the properties in the model are valid
|
|
318
|
+
# @return true if the model is valid
|
|
319
|
+
def valid?
|
|
320
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
321
|
+
return false if @robot1_auto.nil?
|
|
322
|
+
return false if @robot2_auto.nil?
|
|
323
|
+
return false if @auto_sample_net.nil?
|
|
324
|
+
return false if @auto_sample_low.nil?
|
|
325
|
+
return false if @auto_sample_high.nil?
|
|
326
|
+
return false if @auto_specimen_low.nil?
|
|
327
|
+
return false if @auto_specimen_high.nil?
|
|
328
|
+
return false if @teleop_sample_net.nil?
|
|
329
|
+
return false if @teleop_sample_low.nil?
|
|
330
|
+
return false if @teleop_sample_high.nil?
|
|
331
|
+
return false if @teleop_specimen_low.nil?
|
|
332
|
+
return false if @teleop_specimen_high.nil?
|
|
333
|
+
return false if @robot1_teleop.nil?
|
|
334
|
+
return false if @robot2_teleop.nil?
|
|
335
|
+
return false if @minor_fouls.nil?
|
|
336
|
+
return false if @major_fouls.nil?
|
|
337
|
+
true
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Custom attribute writer method with validation
|
|
341
|
+
# @param [Object] robot1_auto Value to be assigned
|
|
342
|
+
def robot1_auto=(robot1_auto)
|
|
343
|
+
if robot1_auto.nil?
|
|
344
|
+
fail ArgumentError, 'robot1_auto cannot be nil'
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
@robot1_auto = robot1_auto
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Custom attribute writer method with validation
|
|
351
|
+
# @param [Object] robot2_auto Value to be assigned
|
|
352
|
+
def robot2_auto=(robot2_auto)
|
|
353
|
+
if robot2_auto.nil?
|
|
354
|
+
fail ArgumentError, 'robot2_auto cannot be nil'
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
@robot2_auto = robot2_auto
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Custom attribute writer method with validation
|
|
361
|
+
# @param [Object] auto_sample_net Value to be assigned
|
|
362
|
+
def auto_sample_net=(auto_sample_net)
|
|
363
|
+
if auto_sample_net.nil?
|
|
364
|
+
fail ArgumentError, 'auto_sample_net cannot be nil'
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
@auto_sample_net = auto_sample_net
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Custom attribute writer method with validation
|
|
371
|
+
# @param [Object] auto_sample_low Value to be assigned
|
|
372
|
+
def auto_sample_low=(auto_sample_low)
|
|
373
|
+
if auto_sample_low.nil?
|
|
374
|
+
fail ArgumentError, 'auto_sample_low cannot be nil'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
@auto_sample_low = auto_sample_low
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Custom attribute writer method with validation
|
|
381
|
+
# @param [Object] auto_sample_high Value to be assigned
|
|
382
|
+
def auto_sample_high=(auto_sample_high)
|
|
383
|
+
if auto_sample_high.nil?
|
|
384
|
+
fail ArgumentError, 'auto_sample_high cannot be nil'
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
@auto_sample_high = auto_sample_high
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Custom attribute writer method with validation
|
|
391
|
+
# @param [Object] auto_specimen_low Value to be assigned
|
|
392
|
+
def auto_specimen_low=(auto_specimen_low)
|
|
393
|
+
if auto_specimen_low.nil?
|
|
394
|
+
fail ArgumentError, 'auto_specimen_low cannot be nil'
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
@auto_specimen_low = auto_specimen_low
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Custom attribute writer method with validation
|
|
401
|
+
# @param [Object] auto_specimen_high Value to be assigned
|
|
402
|
+
def auto_specimen_high=(auto_specimen_high)
|
|
403
|
+
if auto_specimen_high.nil?
|
|
404
|
+
fail ArgumentError, 'auto_specimen_high cannot be nil'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
@auto_specimen_high = auto_specimen_high
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Custom attribute writer method with validation
|
|
411
|
+
# @param [Object] teleop_sample_net Value to be assigned
|
|
412
|
+
def teleop_sample_net=(teleop_sample_net)
|
|
413
|
+
if teleop_sample_net.nil?
|
|
414
|
+
fail ArgumentError, 'teleop_sample_net cannot be nil'
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
@teleop_sample_net = teleop_sample_net
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Custom attribute writer method with validation
|
|
421
|
+
# @param [Object] teleop_sample_low Value to be assigned
|
|
422
|
+
def teleop_sample_low=(teleop_sample_low)
|
|
423
|
+
if teleop_sample_low.nil?
|
|
424
|
+
fail ArgumentError, 'teleop_sample_low cannot be nil'
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
@teleop_sample_low = teleop_sample_low
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Custom attribute writer method with validation
|
|
431
|
+
# @param [Object] teleop_sample_high Value to be assigned
|
|
432
|
+
def teleop_sample_high=(teleop_sample_high)
|
|
433
|
+
if teleop_sample_high.nil?
|
|
434
|
+
fail ArgumentError, 'teleop_sample_high cannot be nil'
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
@teleop_sample_high = teleop_sample_high
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# Custom attribute writer method with validation
|
|
441
|
+
# @param [Object] teleop_specimen_low Value to be assigned
|
|
442
|
+
def teleop_specimen_low=(teleop_specimen_low)
|
|
443
|
+
if teleop_specimen_low.nil?
|
|
444
|
+
fail ArgumentError, 'teleop_specimen_low cannot be nil'
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
@teleop_specimen_low = teleop_specimen_low
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Custom attribute writer method with validation
|
|
451
|
+
# @param [Object] teleop_specimen_high Value to be assigned
|
|
452
|
+
def teleop_specimen_high=(teleop_specimen_high)
|
|
453
|
+
if teleop_specimen_high.nil?
|
|
454
|
+
fail ArgumentError, 'teleop_specimen_high cannot be nil'
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
@teleop_specimen_high = teleop_specimen_high
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Custom attribute writer method with validation
|
|
461
|
+
# @param [Object] robot1_teleop Value to be assigned
|
|
462
|
+
def robot1_teleop=(robot1_teleop)
|
|
463
|
+
if robot1_teleop.nil?
|
|
464
|
+
fail ArgumentError, 'robot1_teleop cannot be nil'
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
@robot1_teleop = robot1_teleop
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Custom attribute writer method with validation
|
|
471
|
+
# @param [Object] robot2_teleop Value to be assigned
|
|
472
|
+
def robot2_teleop=(robot2_teleop)
|
|
473
|
+
if robot2_teleop.nil?
|
|
474
|
+
fail ArgumentError, 'robot2_teleop cannot be nil'
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
@robot2_teleop = robot2_teleop
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# Custom attribute writer method with validation
|
|
481
|
+
# @param [Object] minor_fouls Value to be assigned
|
|
482
|
+
def minor_fouls=(minor_fouls)
|
|
483
|
+
if minor_fouls.nil?
|
|
484
|
+
fail ArgumentError, 'minor_fouls cannot be nil'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
@minor_fouls = minor_fouls
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Custom attribute writer method with validation
|
|
491
|
+
# @param [Object] major_fouls Value to be assigned
|
|
492
|
+
def major_fouls=(major_fouls)
|
|
493
|
+
if major_fouls.nil?
|
|
494
|
+
fail ArgumentError, 'major_fouls cannot be nil'
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
@major_fouls = major_fouls
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# Checks equality by comparing each attribute.
|
|
501
|
+
# @param [Object] Object to be compared
|
|
502
|
+
def ==(o)
|
|
503
|
+
return true if self.equal?(o)
|
|
504
|
+
self.class == o.class &&
|
|
505
|
+
robot1_auto == o.robot1_auto &&
|
|
506
|
+
robot2_auto == o.robot2_auto &&
|
|
507
|
+
auto_sample_net == o.auto_sample_net &&
|
|
508
|
+
auto_sample_low == o.auto_sample_low &&
|
|
509
|
+
auto_sample_high == o.auto_sample_high &&
|
|
510
|
+
auto_specimen_low == o.auto_specimen_low &&
|
|
511
|
+
auto_specimen_high == o.auto_specimen_high &&
|
|
512
|
+
teleop_sample_net == o.teleop_sample_net &&
|
|
513
|
+
teleop_sample_low == o.teleop_sample_low &&
|
|
514
|
+
teleop_sample_high == o.teleop_sample_high &&
|
|
515
|
+
teleop_specimen_low == o.teleop_specimen_low &&
|
|
516
|
+
teleop_specimen_high == o.teleop_specimen_high &&
|
|
517
|
+
robot1_teleop == o.robot1_teleop &&
|
|
518
|
+
robot2_teleop == o.robot2_teleop &&
|
|
519
|
+
minor_fouls == o.minor_fouls &&
|
|
520
|
+
major_fouls == o.major_fouls
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# @see the `==` method
|
|
524
|
+
# @param [Object] Object to be compared
|
|
525
|
+
def eql?(o)
|
|
526
|
+
self == o
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Calculates hash code according to all attributes.
|
|
530
|
+
# @return [Integer] Hash code
|
|
531
|
+
def hash
|
|
532
|
+
[robot1_auto, robot2_auto, auto_sample_net, auto_sample_low, auto_sample_high, auto_specimen_low, auto_specimen_high, teleop_sample_net, teleop_sample_low, teleop_sample_high, teleop_specimen_low, teleop_specimen_high, robot1_teleop, robot2_teleop, minor_fouls, major_fouls].hash
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Builds the object from hash
|
|
536
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
537
|
+
# @return [Object] Returns the model itself
|
|
538
|
+
def self.build_from_hash(attributes)
|
|
539
|
+
return nil unless attributes.is_a?(Hash)
|
|
540
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
541
|
+
transformed_hash = {}
|
|
542
|
+
openapi_types.each_pair do |key, type|
|
|
543
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
544
|
+
transformed_hash["#{key}"] = nil
|
|
545
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
546
|
+
# check to ensure the input is an array given that the attribute
|
|
547
|
+
# is documented as an array but the input is not
|
|
548
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
549
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
550
|
+
end
|
|
551
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
552
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
new(transformed_hash)
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# Returns the object in the form of hash
|
|
559
|
+
# @return [Hash] Returns the object in the form of hash
|
|
560
|
+
def to_hash
|
|
561
|
+
hash = {}
|
|
562
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
563
|
+
value = self.send(attr)
|
|
564
|
+
if value.nil?
|
|
565
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
566
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
hash[param] = _to_hash(value)
|
|
570
|
+
end
|
|
571
|
+
hash
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FtcApiV3Client
|
|
17
|
+
class ApiV3ItdAutoLocation
|
|
18
|
+
NONE = "NONE".freeze
|
|
19
|
+
OBSERVATION_ZONE = "OBSERVATION_ZONE".freeze
|
|
20
|
+
ASCENT = "ASCENT".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [NONE, OBSERVATION_ZONE, ASCENT].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if ApiV3ItdAutoLocation.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #ApiV3ItdAutoLocation"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|