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