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