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