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.
Files changed (415) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +283 -0
  4. data/Rakefile +10 -0
  5. data/config.json +8 -0
  6. data/docs/ApiV3AdvancementFrom.md +22 -0
  7. data/docs/ApiV3AdvancementFromSlot.md +24 -0
  8. data/docs/ApiV3AdvancementStatus.md +15 -0
  9. data/docs/ApiV3AllianceColor.md +15 -0
  10. data/docs/ApiV3AllianceDescription.md +82 -0
  11. data/docs/ApiV3AllianceMatch.md +44 -0
  12. data/docs/ApiV3AllianceMatchDetails.md +46 -0
  13. data/docs/ApiV3AllianceMatchParticipants.md +79 -0
  14. data/docs/ApiV3AllianceMatchResults.md +22 -0
  15. data/docs/ApiV3AllianceMatchResultsDetails.md +20 -0
  16. data/docs/ApiV3AlliancePlayoffMatchParticipants.md +22 -0
  17. data/docs/ApiV3AllianceSelection.md +20 -0
  18. data/docs/ApiV3AllianceSelections.md +18 -0
  19. data/docs/ApiV3AllianceSimpleMatchParticipants.md +22 -0
  20. data/docs/ApiV3Award.md +30 -0
  21. data/docs/ApiV3AwardRecipient.md +24 -0
  22. data/docs/ApiV3AwardType.md +15 -0
  23. data/docs/ApiV3Awards.md +18 -0
  24. data/docs/ApiV3BasePlayoffSeriesDescription.md +79 -0
  25. data/docs/ApiV3BasicAllianceDescription.md +20 -0
  26. data/docs/ApiV3CenterStageRemoteScoreDetail.md +22 -0
  27. data/docs/ApiV3CenterStageScoreDetail.md +22 -0
  28. data/docs/ApiV3CompetingType.md +15 -0
  29. data/docs/ApiV3Coordinates.md +20 -0
  30. data/docs/ApiV3CsAchievementsDetail.md +56 -0
  31. data/docs/ApiV3CsEndLocation.md +15 -0
  32. data/docs/ApiV3CsPointsDetail.md +48 -0
  33. data/docs/ApiV3CsRemoteAchievementsDetail.md +44 -0
  34. data/docs/ApiV3CsRemotePointsDetail.md +46 -0
  35. data/docs/ApiV3DecodeAchievementsDetail.md +42 -0
  36. data/docs/ApiV3DecodeArtifactType.md +15 -0
  37. data/docs/ApiV3DecodePointsDetail.md +46 -0
  38. data/docs/ApiV3DecodeScoreDetail.md +22 -0
  39. data/docs/ApiV3DecodeTeleopBaseLocation.md +15 -0
  40. data/docs/ApiV3Division.md +20 -0
  41. data/docs/ApiV3DoubleEliminationSeriesDescription.md +36 -0
  42. data/docs/ApiV3DoubleElimsBracketHalf.md +15 -0
  43. data/docs/ApiV3Event.md +62 -0
  44. data/docs/ApiV3EventFormat.md +15 -0
  45. data/docs/ApiV3EventLiveStream.md +22 -0
  46. data/docs/ApiV3EventParticipant.md +22 -0
  47. data/docs/ApiV3EventParticipants.md +18 -0
  48. data/docs/ApiV3EventType.md +15 -0
  49. data/docs/ApiV3Events.md +18 -0
  50. data/docs/ApiV3FFAchievementsDetail.md +64 -0
  51. data/docs/ApiV3FFAutoLocation.md +15 -0
  52. data/docs/ApiV3FFEndLocation.md +15 -0
  53. data/docs/ApiV3FFPointsDetail.md +54 -0
  54. data/docs/ApiV3FFRemoteAchievementsDetail.md +52 -0
  55. data/docs/ApiV3FFRemotePointsDetail.md +48 -0
  56. data/docs/ApiV3FreightFrenzyRemoteScoreDetail.md +22 -0
  57. data/docs/ApiV3FreightFrenzyScoreDetail.md +22 -0
  58. data/docs/ApiV3IntoTheDeepScoreDetail.md +22 -0
  59. data/docs/ApiV3ItdAchievementsDetail.md +48 -0
  60. data/docs/ApiV3ItdAutoLocation.md +15 -0
  61. data/docs/ApiV3ItdPointsDetail.md +42 -0
  62. data/docs/ApiV3ItdTeleopLocation.md +15 -0
  63. data/docs/ApiV3JunctionElement.md +15 -0
  64. data/docs/ApiV3League.md +26 -0
  65. data/docs/ApiV3LeagueDetails.md +28 -0
  66. data/docs/ApiV3LeagueMembershipDetails.md +20 -0
  67. data/docs/ApiV3Leagues.md +18 -0
  68. data/docs/ApiV3Match.md +79 -0
  69. data/docs/ApiV3MatchAlliance.md +18 -0
  70. data/docs/ApiV3MatchDetails.md +79 -0
  71. data/docs/ApiV3MatchTeam.md +24 -0
  72. data/docs/ApiV3Matches.md +18 -0
  73. data/docs/ApiV3PitMap.md +30 -0
  74. data/docs/ApiV3PitMapCellType.md +15 -0
  75. data/docs/ApiV3PitMapElement.md +40 -0
  76. data/docs/ApiV3PitMapLabelOrientation.md +15 -0
  77. data/docs/ApiV3PlayoffAlliance.md +24 -0
  78. data/docs/ApiV3PlayoffAlliances.md +18 -0
  79. data/docs/ApiV3PlayoffMatchAlliance.md +20 -0
  80. data/docs/ApiV3PlayoffRanking.md +32 -0
  81. data/docs/ApiV3PlayoffRankings.md +18 -0
  82. data/docs/ApiV3PlayoffSeriesDescription.md +32 -0
  83. data/docs/ApiV3PlayoffStructure.md +22 -0
  84. data/docs/ApiV3PlayoffType.md +15 -0
  85. data/docs/ApiV3PowerPlayAchievementsDetail.md +52 -0
  86. data/docs/ApiV3PowerPlayAutoLocation.md +15 -0
  87. data/docs/ApiV3PowerPlayPointsDetail.md +46 -0
  88. data/docs/ApiV3PowerPlayRemoteAchievementsDetail.md +48 -0
  89. data/docs/ApiV3PowerPlayRemotePointsDetail.md +44 -0
  90. data/docs/ApiV3PowerPlayRemoteScoreDetail.md +22 -0
  91. data/docs/ApiV3PowerPlayScoreDetail.md +22 -0
  92. data/docs/ApiV3Ranking.md +32 -0
  93. data/docs/ApiV3Rankings.md +18 -0
  94. data/docs/ApiV3Region.md +20 -0
  95. data/docs/ApiV3Regions.md +18 -0
  96. data/docs/ApiV3RemoteJunctionElement.md +15 -0
  97. data/docs/ApiV3RemoteScoreDetail.md +85 -0
  98. data/docs/ApiV3RoundRobinAllianceDescription.md +20 -0
  99. data/docs/ApiV3ScoreDetail.md +94 -0
  100. data/docs/ApiV3Season.md +24 -0
  101. data/docs/ApiV3Seasons.md +20 -0
  102. data/docs/ApiV3SelectionOperation.md +15 -0
  103. data/docs/ApiV3SeriesAllianceDescription.md +22 -0
  104. data/docs/ApiV3SeriesAllianceState.md +15 -0
  105. data/docs/ApiV3SimpleEvent.md +48 -0
  106. data/docs/ApiV3SimpleTeam.md +22 -0
  107. data/docs/ApiV3SingleAwardRecipient.md +30 -0
  108. data/docs/ApiV3SingleTeamMatch.md +44 -0
  109. data/docs/ApiV3SingleTeamMatchDetails.md +46 -0
  110. data/docs/ApiV3SingleTeamMatchParticipants.md +18 -0
  111. data/docs/ApiV3SingleTeamMatchResults.md +18 -0
  112. data/docs/ApiV3SingleTeamMatchResultsDetails.md +18 -0
  113. data/docs/ApiV3SkystoneAchievementsDetail.md +54 -0
  114. data/docs/ApiV3SkystonePointsDetail.md +46 -0
  115. data/docs/ApiV3SkystoneScoreDetail.md +22 -0
  116. data/docs/ApiV3Stone.md +15 -0
  117. data/docs/ApiV3Team.md +38 -0
  118. data/docs/ApiV3TeamAvatar.md +20 -0
  119. data/docs/ApiV3TeamAvatars.md +18 -0
  120. data/docs/ApiV3TeamDetails.md +24 -0
  121. data/docs/ApiV3TeamEventParticipation.md +20 -0
  122. data/docs/ApiV3TeamEventParticipationDetails.md +26 -0
  123. data/docs/ApiV3TeamHistory.md +36 -0
  124. data/docs/ApiV3TeamSeasonHistory.md +20 -0
  125. data/docs/ApiV3Teams.md +18 -0
  126. data/docs/ApiV3TournamentLevel.md +15 -0
  127. data/docs/ApiV3UgAchievementsDetail.md +60 -0
  128. data/docs/ApiV3UgPointsDetail.md +44 -0
  129. data/docs/ApiV3UgRemoteAchievementsDetail.md +58 -0
  130. data/docs/ApiV3UgRemotePointsDetail.md +44 -0
  131. data/docs/ApiV3UgWobbleLocation.md +15 -0
  132. data/docs/ApiV3UltimateGoalRemoteScoreDetail.md +22 -0
  133. data/docs/ApiV3UltimateGoalScoreDetail.md +22 -0
  134. data/docs/EventsApi.md +977 -0
  135. data/docs/LeaguesApi.md +385 -0
  136. data/docs/RegionsApi.md +301 -0
  137. data/docs/SeasonsApi.md +148 -0
  138. data/docs/TeamsApi.md +371 -0
  139. data/ftc_api_v3_client.gemspec +39 -0
  140. data/git_push.sh +57 -0
  141. data/lib/ftc_api_v3_client/api/events_api.rb +934 -0
  142. data/lib/ftc_api_v3_client/api/leagues_api.rb +391 -0
  143. data/lib/ftc_api_v3_client/api/regions_api.rb +292 -0
  144. data/lib/ftc_api_v3_client/api/seasons_api.rb +142 -0
  145. data/lib/ftc_api_v3_client/api/teams_api.rb +349 -0
  146. data/lib/ftc_api_v3_client/api_client.rb +397 -0
  147. data/lib/ftc_api_v3_client/api_error.rb +58 -0
  148. data/lib/ftc_api_v3_client/api_model_base.rb +88 -0
  149. data/lib/ftc_api_v3_client/configuration.rb +308 -0
  150. data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +202 -0
  151. data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +234 -0
  152. data/lib/ftc_api_v3_client/models/api_v3_advancement_status.rb +44 -0
  153. data/lib/ftc_api_v3_client/models/api_v3_alliance_color.rb +40 -0
  154. data/lib/ftc_api_v3_client/models/api_v3_alliance_description.rb +57 -0
  155. data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +427 -0
  156. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +436 -0
  157. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_participants.rb +55 -0
  158. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +221 -0
  159. data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results_details.rb +190 -0
  160. data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +217 -0
  161. data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +212 -0
  162. data/lib/ftc_api_v3_client/models/api_v3_alliance_selections.rb +166 -0
  163. data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +217 -0
  164. data/lib/ftc_api_v3_client/models/api_v3_award.rb +311 -0
  165. data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +177 -0
  166. data/lib/ftc_api_v3_client/models/api_v3_award_type.rb +59 -0
  167. data/lib/ftc_api_v3_client/models/api_v3_awards.rb +166 -0
  168. data/lib/ftc_api_v3_client/models/api_v3_base_playoff_series_description.rb +55 -0
  169. data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +191 -0
  170. data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +217 -0
  171. data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +217 -0
  172. data/lib/ftc_api_v3_client/models/api_v3_competing_type.rb +40 -0
  173. data/lib/ftc_api_v3_client/models/api_v3_coordinates.rb +191 -0
  174. data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +680 -0
  175. data/lib/ftc_api_v3_client/models/api_v3_cs_end_location.rb +41 -0
  176. data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +555 -0
  177. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +524 -0
  178. data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +528 -0
  179. data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +502 -0
  180. data/lib/ftc_api_v3_client/models/api_v3_decode_artifact_type.rb +41 -0
  181. data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +529 -0
  182. data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +217 -0
  183. data/lib/ftc_api_v3_client/models/api_v3_decode_teleop_base_location.rb +41 -0
  184. data/lib/ftc_api_v3_client/models/api_v3_division.rb +190 -0
  185. data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +405 -0
  186. data/lib/ftc_api_v3_client/models/api_v3_double_elims_bracket_half.rb +40 -0
  187. data/lib/ftc_api_v3_client/models/api_v3_event.rb +559 -0
  188. data/lib/ftc_api_v3_client/models/api_v3_event_format.rb +41 -0
  189. data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +182 -0
  190. data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +221 -0
  191. data/lib/ftc_api_v3_client/models/api_v3_event_participants.rb +166 -0
  192. data/lib/ftc_api_v3_client/models/api_v3_event_type.rb +50 -0
  193. data/lib/ftc_api_v3_client/models/api_v3_events.rb +166 -0
  194. data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +787 -0
  195. data/lib/ftc_api_v3_client/models/api_v3_ff_auto_location.rb +43 -0
  196. data/lib/ftc_api_v3_client/models/api_v3_ff_end_location.rb +41 -0
  197. data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +633 -0
  198. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +629 -0
  199. data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +554 -0
  200. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +217 -0
  201. data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +217 -0
  202. data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +217 -0
  203. data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +576 -0
  204. data/lib/ftc_api_v3_client/models/api_v3_itd_auto_location.rb +41 -0
  205. data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +477 -0
  206. data/lib/ftc_api_v3_client/models/api_v3_itd_teleop_location.rb +43 -0
  207. data/lib/ftc_api_v3_client/models/api_v3_junction_element.rb +44 -0
  208. data/lib/ftc_api_v3_client/models/api_v3_league.rb +217 -0
  209. data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +245 -0
  210. data/lib/ftc_api_v3_client/models/api_v3_league_membership_details.rb +190 -0
  211. data/lib/ftc_api_v3_client/models/api_v3_leagues.rb +166 -0
  212. data/lib/ftc_api_v3_client/models/api_v3_match.rb +55 -0
  213. data/lib/ftc_api_v3_client/models/api_v3_match_alliance.rb +166 -0
  214. data/lib/ftc_api_v3_client/models/api_v3_match_details.rb +55 -0
  215. data/lib/ftc_api_v3_client/models/api_v3_match_team.rb +209 -0
  216. data/lib/ftc_api_v3_client/models/api_v3_matches.rb +166 -0
  217. data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +322 -0
  218. data/lib/ftc_api_v3_client/models/api_v3_pit_map_cell_type.rb +45 -0
  219. data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +336 -0
  220. data/lib/ftc_api_v3_client/models/api_v3_pit_map_label_orientation.rb +40 -0
  221. data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +212 -0
  222. data/lib/ftc_api_v3_client/models/api_v3_playoff_alliances.rb +166 -0
  223. data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +192 -0
  224. data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +348 -0
  225. data/lib/ftc_api_v3_client/models/api_v3_playoff_rankings.rb +166 -0
  226. data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +347 -0
  227. data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +241 -0
  228. data/lib/ftc_api_v3_client/models/api_v3_playoff_type.rb +42 -0
  229. data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +576 -0
  230. data/lib/ftc_api_v3_client/models/api_v3_power_play_auto_location.rb +41 -0
  231. data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +529 -0
  232. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +538 -0
  233. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +502 -0
  234. data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +217 -0
  235. data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +217 -0
  236. data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +348 -0
  237. data/lib/ftc_api_v3_client/models/api_v3_rankings.rb +166 -0
  238. data/lib/ftc_api_v3_client/models/api_v3_region.rb +190 -0
  239. data/lib/ftc_api_v3_client/models/api_v3_regions.rb +166 -0
  240. data/lib/ftc_api_v3_client/models/api_v3_remote_junction_element.rb +40 -0
  241. data/lib/ftc_api_v3_client/models/api_v3_remote_score_detail.rb +59 -0
  242. data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +191 -0
  243. data/lib/ftc_api_v3_client/models/api_v3_score_detail.rb +65 -0
  244. data/lib/ftc_api_v3_client/models/api_v3_season.rb +242 -0
  245. data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +192 -0
  246. data/lib/ftc_api_v3_client/models/api_v3_selection_operation.rb +43 -0
  247. data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +239 -0
  248. data/lib/ftc_api_v3_client/models/api_v3_series_alliance_state.rb +40 -0
  249. data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +458 -0
  250. data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +217 -0
  251. data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +293 -0
  252. data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +427 -0
  253. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +436 -0
  254. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_participants.rb +164 -0
  255. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +164 -0
  256. data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results_details.rb +164 -0
  257. data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +634 -0
  258. data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +529 -0
  259. data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +217 -0
  260. data/lib/ftc_api_v3_client/models/api_v3_stone.rb +41 -0
  261. data/lib/ftc_api_v3_client/models/api_v3_team.rb +324 -0
  262. data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +190 -0
  263. data/lib/ftc_api_v3_client/models/api_v3_team_avatars.rb +166 -0
  264. data/lib/ftc_api_v3_client/models/api_v3_team_details.rb +247 -0
  265. data/lib/ftc_api_v3_client/models/api_v3_team_event_participation.rb +192 -0
  266. data/lib/ftc_api_v3_client/models/api_v3_team_event_participation_details.rb +238 -0
  267. data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +334 -0
  268. data/lib/ftc_api_v3_client/models/api_v3_team_season_history.rb +192 -0
  269. data/lib/ftc_api_v3_client/models/api_v3_teams.rb +166 -0
  270. data/lib/ftc_api_v3_client/models/api_v3_tournament_level.rb +43 -0
  271. data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +732 -0
  272. data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +503 -0
  273. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +706 -0
  274. data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +503 -0
  275. data/lib/ftc_api_v3_client/models/api_v3_ug_wobble_location.rb +41 -0
  276. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +217 -0
  277. data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +217 -0
  278. data/lib/ftc_api_v3_client/version.rb +15 -0
  279. data/lib/ftc_api_v3_client.rb +173 -0
  280. data/spec/api/events_api_spec.rb +207 -0
  281. data/spec/api/leagues_api_spec.rb +104 -0
  282. data/spec/api/regions_api_spec.rb +86 -0
  283. data/spec/api/seasons_api_spec.rb +58 -0
  284. data/spec/api/teams_api_spec.rb +97 -0
  285. data/spec/models/api_v3_advancement_from_slot_spec.rb +54 -0
  286. data/spec/models/api_v3_advancement_from_spec.rb +48 -0
  287. data/spec/models/api_v3_advancement_status_spec.rb +30 -0
  288. data/spec/models/api_v3_alliance_color_spec.rb +30 -0
  289. data/spec/models/api_v3_alliance_description_spec.rb +44 -0
  290. data/spec/models/api_v3_alliance_match_details_spec.rb +120 -0
  291. data/spec/models/api_v3_alliance_match_participants_spec.rb +44 -0
  292. data/spec/models/api_v3_alliance_match_results_details_spec.rb +42 -0
  293. data/spec/models/api_v3_alliance_match_results_spec.rb +48 -0
  294. data/spec/models/api_v3_alliance_match_spec.rb +114 -0
  295. data/spec/models/api_v3_alliance_playoff_match_participants_spec.rb +48 -0
  296. data/spec/models/api_v3_alliance_selection_spec.rb +42 -0
  297. data/spec/models/api_v3_alliance_selections_spec.rb +36 -0
  298. data/spec/models/api_v3_alliance_simple_match_participants_spec.rb +48 -0
  299. data/spec/models/api_v3_award_recipient_spec.rb +54 -0
  300. data/spec/models/api_v3_award_spec.rb +72 -0
  301. data/spec/models/api_v3_award_type_spec.rb +30 -0
  302. data/spec/models/api_v3_awards_spec.rb +36 -0
  303. data/spec/models/api_v3_base_playoff_series_description_spec.rb +44 -0
  304. data/spec/models/api_v3_basic_alliance_description_spec.rb +42 -0
  305. data/spec/models/api_v3_center_stage_remote_score_detail_spec.rb +48 -0
  306. data/spec/models/api_v3_center_stage_score_detail_spec.rb +48 -0
  307. data/spec/models/api_v3_competing_type_spec.rb +30 -0
  308. data/spec/models/api_v3_coordinates_spec.rb +42 -0
  309. data/spec/models/api_v3_cs_achievements_detail_spec.rb +150 -0
  310. data/spec/models/api_v3_cs_end_location_spec.rb +30 -0
  311. data/spec/models/api_v3_cs_points_detail_spec.rb +126 -0
  312. data/spec/models/api_v3_cs_remote_achievements_detail_spec.rb +114 -0
  313. data/spec/models/api_v3_cs_remote_points_detail_spec.rb +120 -0
  314. data/spec/models/api_v3_decode_achievements_detail_spec.rb +108 -0
  315. data/spec/models/api_v3_decode_artifact_type_spec.rb +30 -0
  316. data/spec/models/api_v3_decode_points_detail_spec.rb +120 -0
  317. data/spec/models/api_v3_decode_score_detail_spec.rb +48 -0
  318. data/spec/models/api_v3_decode_teleop_base_location_spec.rb +30 -0
  319. data/spec/models/api_v3_division_spec.rb +42 -0
  320. data/spec/models/api_v3_double_elimination_series_description_spec.rb +90 -0
  321. data/spec/models/api_v3_double_elims_bracket_half_spec.rb +30 -0
  322. data/spec/models/api_v3_event_format_spec.rb +30 -0
  323. data/spec/models/api_v3_event_live_stream_spec.rb +48 -0
  324. data/spec/models/api_v3_event_participant_spec.rb +48 -0
  325. data/spec/models/api_v3_event_participants_spec.rb +36 -0
  326. data/spec/models/api_v3_event_spec.rb +168 -0
  327. data/spec/models/api_v3_event_type_spec.rb +30 -0
  328. data/spec/models/api_v3_events_spec.rb +36 -0
  329. data/spec/models/api_v3_ff_achievements_detail_spec.rb +174 -0
  330. data/spec/models/api_v3_ff_auto_location_spec.rb +30 -0
  331. data/spec/models/api_v3_ff_end_location_spec.rb +30 -0
  332. data/spec/models/api_v3_ff_points_detail_spec.rb +144 -0
  333. data/spec/models/api_v3_ff_remote_achievements_detail_spec.rb +138 -0
  334. data/spec/models/api_v3_ff_remote_points_detail_spec.rb +126 -0
  335. data/spec/models/api_v3_freight_frenzy_remote_score_detail_spec.rb +48 -0
  336. data/spec/models/api_v3_freight_frenzy_score_detail_spec.rb +48 -0
  337. data/spec/models/api_v3_into_the_deep_score_detail_spec.rb +48 -0
  338. data/spec/models/api_v3_itd_achievements_detail_spec.rb +126 -0
  339. data/spec/models/api_v3_itd_auto_location_spec.rb +30 -0
  340. data/spec/models/api_v3_itd_points_detail_spec.rb +108 -0
  341. data/spec/models/api_v3_itd_teleop_location_spec.rb +30 -0
  342. data/spec/models/api_v3_junction_element_spec.rb +30 -0
  343. data/spec/models/api_v3_league_details_spec.rb +66 -0
  344. data/spec/models/api_v3_league_membership_details_spec.rb +42 -0
  345. data/spec/models/api_v3_league_spec.rb +60 -0
  346. data/spec/models/api_v3_leagues_spec.rb +36 -0
  347. data/spec/models/api_v3_match_alliance_spec.rb +36 -0
  348. data/spec/models/api_v3_match_details_spec.rb +44 -0
  349. data/spec/models/api_v3_match_spec.rb +44 -0
  350. data/spec/models/api_v3_match_team_spec.rb +54 -0
  351. data/spec/models/api_v3_matches_spec.rb +36 -0
  352. data/spec/models/api_v3_pit_map_cell_type_spec.rb +30 -0
  353. data/spec/models/api_v3_pit_map_element_spec.rb +102 -0
  354. data/spec/models/api_v3_pit_map_label_orientation_spec.rb +30 -0
  355. data/spec/models/api_v3_pit_map_spec.rb +72 -0
  356. data/spec/models/api_v3_playoff_alliance_spec.rb +54 -0
  357. data/spec/models/api_v3_playoff_alliances_spec.rb +36 -0
  358. data/spec/models/api_v3_playoff_match_alliance_spec.rb +42 -0
  359. data/spec/models/api_v3_playoff_ranking_spec.rb +78 -0
  360. data/spec/models/api_v3_playoff_rankings_spec.rb +36 -0
  361. data/spec/models/api_v3_playoff_series_description_spec.rb +78 -0
  362. data/spec/models/api_v3_playoff_structure_spec.rb +48 -0
  363. data/spec/models/api_v3_playoff_type_spec.rb +30 -0
  364. data/spec/models/api_v3_power_play_achievements_detail_spec.rb +138 -0
  365. data/spec/models/api_v3_power_play_auto_location_spec.rb +30 -0
  366. data/spec/models/api_v3_power_play_points_detail_spec.rb +120 -0
  367. data/spec/models/api_v3_power_play_remote_achievements_detail_spec.rb +126 -0
  368. data/spec/models/api_v3_power_play_remote_points_detail_spec.rb +114 -0
  369. data/spec/models/api_v3_power_play_remote_score_detail_spec.rb +48 -0
  370. data/spec/models/api_v3_power_play_score_detail_spec.rb +48 -0
  371. data/spec/models/api_v3_ranking_spec.rb +78 -0
  372. data/spec/models/api_v3_rankings_spec.rb +36 -0
  373. data/spec/models/api_v3_region_spec.rb +42 -0
  374. data/spec/models/api_v3_regions_spec.rb +36 -0
  375. data/spec/models/api_v3_remote_junction_element_spec.rb +30 -0
  376. data/spec/models/api_v3_remote_score_detail_spec.rb +44 -0
  377. data/spec/models/api_v3_round_robin_alliance_description_spec.rb +42 -0
  378. data/spec/models/api_v3_score_detail_spec.rb +44 -0
  379. data/spec/models/api_v3_season_spec.rb +54 -0
  380. data/spec/models/api_v3_seasons_spec.rb +42 -0
  381. data/spec/models/api_v3_selection_operation_spec.rb +30 -0
  382. data/spec/models/api_v3_series_alliance_description_spec.rb +48 -0
  383. data/spec/models/api_v3_series_alliance_state_spec.rb +30 -0
  384. data/spec/models/api_v3_simple_event_spec.rb +126 -0
  385. data/spec/models/api_v3_simple_team_spec.rb +48 -0
  386. data/spec/models/api_v3_single_award_recipient_spec.rb +72 -0
  387. data/spec/models/api_v3_single_team_match_details_spec.rb +120 -0
  388. data/spec/models/api_v3_single_team_match_participants_spec.rb +36 -0
  389. data/spec/models/api_v3_single_team_match_results_details_spec.rb +36 -0
  390. data/spec/models/api_v3_single_team_match_results_spec.rb +36 -0
  391. data/spec/models/api_v3_single_team_match_spec.rb +114 -0
  392. data/spec/models/api_v3_skystone_achievements_detail_spec.rb +144 -0
  393. data/spec/models/api_v3_skystone_points_detail_spec.rb +120 -0
  394. data/spec/models/api_v3_skystone_score_detail_spec.rb +48 -0
  395. data/spec/models/api_v3_stone_spec.rb +30 -0
  396. data/spec/models/api_v3_team_avatar_spec.rb +42 -0
  397. data/spec/models/api_v3_team_avatars_spec.rb +36 -0
  398. data/spec/models/api_v3_team_details_spec.rb +54 -0
  399. data/spec/models/api_v3_team_event_participation_details_spec.rb +60 -0
  400. data/spec/models/api_v3_team_event_participation_spec.rb +42 -0
  401. data/spec/models/api_v3_team_history_spec.rb +90 -0
  402. data/spec/models/api_v3_team_season_history_spec.rb +42 -0
  403. data/spec/models/api_v3_team_spec.rb +96 -0
  404. data/spec/models/api_v3_teams_spec.rb +36 -0
  405. data/spec/models/api_v3_tournament_level_spec.rb +30 -0
  406. data/spec/models/api_v3_ug_achievements_detail_spec.rb +162 -0
  407. data/spec/models/api_v3_ug_points_detail_spec.rb +114 -0
  408. data/spec/models/api_v3_ug_remote_achievements_detail_spec.rb +156 -0
  409. data/spec/models/api_v3_ug_remote_points_detail_spec.rb +114 -0
  410. data/spec/models/api_v3_ug_wobble_location_spec.rb +30 -0
  411. data/spec/models/api_v3_ultimate_goal_remote_score_detail_spec.rb +48 -0
  412. data/spec/models/api_v3_ultimate_goal_score_detail_spec.rb +48 -0
  413. data/spec/spec_helper.rb +111 -0
  414. data/update.sh +1 -0
  415. metadata +630 -0
@@ -0,0 +1,787 @@
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 ApiV3FFAchievementsDetail < ApiModelBase
18
+ attr_accessor :auto_delivered
19
+
20
+ attr_accessor :auto_robot1
21
+
22
+ attr_accessor :auto_robot2
23
+
24
+ attr_accessor :preload1
25
+
26
+ attr_accessor :preload2
27
+
28
+ attr_accessor :auto_storage_freight
29
+
30
+ attr_accessor :auto_freight1
31
+
32
+ attr_accessor :auto_freight2
33
+
34
+ attr_accessor :auto_freight3
35
+
36
+ attr_accessor :dc_storage_freight
37
+
38
+ attr_accessor :dc_freight1
39
+
40
+ attr_accessor :dc_freight2
41
+
42
+ attr_accessor :dc_freight3
43
+
44
+ attr_accessor :shared_freight
45
+
46
+ attr_accessor :eg_delivered
47
+
48
+ attr_accessor :balanced
49
+
50
+ attr_accessor :eg_robot1
51
+
52
+ attr_accessor :eg_robot2
53
+
54
+ attr_accessor :capped
55
+
56
+ attr_accessor :minor_penalties
57
+
58
+ attr_accessor :major_penalties
59
+
60
+ # Indicates if team 1 used a team shipping element
61
+ attr_accessor :init_tse1
62
+
63
+ # Indicates if team 2 used a team shipping element
64
+ attr_accessor :init_tse2
65
+
66
+ # Indicates if the shared shipping hub was tipped towards this alliance
67
+ attr_accessor :shared_tipped
68
+
69
+ class EnumAttributeValidator
70
+ attr_reader :datatype
71
+ attr_reader :allowable_values
72
+
73
+ def initialize(datatype, allowable_values)
74
+ @allowable_values = allowable_values.map do |value|
75
+ case datatype.to_s
76
+ when /Integer/i
77
+ value.to_i
78
+ when /Float/i
79
+ value.to_f
80
+ else
81
+ value
82
+ end
83
+ end
84
+ end
85
+
86
+ def valid?(value)
87
+ !value || allowable_values.include?(value)
88
+ end
89
+ end
90
+
91
+ # Attribute mapping from ruby-style variable name to JSON key.
92
+ def self.attribute_map
93
+ {
94
+ :'auto_delivered' => :'autoDelivered',
95
+ :'auto_robot1' => :'autoRobot1',
96
+ :'auto_robot2' => :'autoRobot2',
97
+ :'preload1' => :'preload1',
98
+ :'preload2' => :'preload2',
99
+ :'auto_storage_freight' => :'autoStorageFreight',
100
+ :'auto_freight1' => :'autoFreight1',
101
+ :'auto_freight2' => :'autoFreight2',
102
+ :'auto_freight3' => :'autoFreight3',
103
+ :'dc_storage_freight' => :'dcStorageFreight',
104
+ :'dc_freight1' => :'dcFreight1',
105
+ :'dc_freight2' => :'dcFreight2',
106
+ :'dc_freight3' => :'dcFreight3',
107
+ :'shared_freight' => :'sharedFreight',
108
+ :'eg_delivered' => :'egDelivered',
109
+ :'balanced' => :'balanced',
110
+ :'eg_robot1' => :'egRobot1',
111
+ :'eg_robot2' => :'egRobot2',
112
+ :'capped' => :'capped',
113
+ :'minor_penalties' => :'minorPenalties',
114
+ :'major_penalties' => :'majorPenalties',
115
+ :'init_tse1' => :'initTSE1',
116
+ :'init_tse2' => :'initTSE2',
117
+ :'shared_tipped' => :'sharedTipped'
118
+ }
119
+ end
120
+
121
+ # Returns attribute mapping this model knows about
122
+ def self.acceptable_attribute_map
123
+ attribute_map
124
+ end
125
+
126
+ # Returns all the JSON keys this model knows about
127
+ def self.acceptable_attributes
128
+ acceptable_attribute_map.values
129
+ end
130
+
131
+ # Attribute type mapping.
132
+ def self.openapi_types
133
+ {
134
+ :'auto_delivered' => :'Boolean',
135
+ :'auto_robot1' => :'ApiV3FFAutoLocation',
136
+ :'auto_robot2' => :'ApiV3FFAutoLocation',
137
+ :'preload1' => :'Boolean',
138
+ :'preload2' => :'Boolean',
139
+ :'auto_storage_freight' => :'Integer',
140
+ :'auto_freight1' => :'Integer',
141
+ :'auto_freight2' => :'Integer',
142
+ :'auto_freight3' => :'Integer',
143
+ :'dc_storage_freight' => :'Integer',
144
+ :'dc_freight1' => :'Integer',
145
+ :'dc_freight2' => :'Integer',
146
+ :'dc_freight3' => :'Integer',
147
+ :'shared_freight' => :'Integer',
148
+ :'eg_delivered' => :'Integer',
149
+ :'balanced' => :'Boolean',
150
+ :'eg_robot1' => :'ApiV3FFEndLocation',
151
+ :'eg_robot2' => :'ApiV3FFEndLocation',
152
+ :'capped' => :'Integer',
153
+ :'minor_penalties' => :'Integer',
154
+ :'major_penalties' => :'Integer',
155
+ :'init_tse1' => :'Boolean',
156
+ :'init_tse2' => :'Boolean',
157
+ :'shared_tipped' => :'Boolean'
158
+ }
159
+ end
160
+
161
+ # List of attributes with nullable: true
162
+ def self.openapi_nullable
163
+ Set.new([
164
+ ])
165
+ end
166
+
167
+ # Initializes the object
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ def initialize(attributes = {})
170
+ if (!attributes.is_a?(Hash))
171
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FtcApiV3Client::ApiV3FFAchievementsDetail` initialize method"
172
+ end
173
+
174
+ # check to see if the attribute exists and convert string to symbol for hash key
175
+ acceptable_attribute_map = self.class.acceptable_attribute_map
176
+ attributes = attributes.each_with_object({}) { |(k, v), h|
177
+ if (!acceptable_attribute_map.key?(k.to_sym))
178
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FtcApiV3Client::ApiV3FFAchievementsDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
179
+ end
180
+ h[k.to_sym] = v
181
+ }
182
+
183
+ if attributes.key?(:'auto_delivered')
184
+ self.auto_delivered = attributes[:'auto_delivered']
185
+ else
186
+ self.auto_delivered = nil
187
+ end
188
+
189
+ if attributes.key?(:'auto_robot1')
190
+ self.auto_robot1 = attributes[:'auto_robot1']
191
+ else
192
+ self.auto_robot1 = nil
193
+ end
194
+
195
+ if attributes.key?(:'auto_robot2')
196
+ self.auto_robot2 = attributes[:'auto_robot2']
197
+ else
198
+ self.auto_robot2 = nil
199
+ end
200
+
201
+ if attributes.key?(:'preload1')
202
+ self.preload1 = attributes[:'preload1']
203
+ else
204
+ self.preload1 = nil
205
+ end
206
+
207
+ if attributes.key?(:'preload2')
208
+ self.preload2 = attributes[:'preload2']
209
+ else
210
+ self.preload2 = nil
211
+ end
212
+
213
+ if attributes.key?(:'auto_storage_freight')
214
+ self.auto_storage_freight = attributes[:'auto_storage_freight']
215
+ else
216
+ self.auto_storage_freight = nil
217
+ end
218
+
219
+ if attributes.key?(:'auto_freight1')
220
+ self.auto_freight1 = attributes[:'auto_freight1']
221
+ else
222
+ self.auto_freight1 = nil
223
+ end
224
+
225
+ if attributes.key?(:'auto_freight2')
226
+ self.auto_freight2 = attributes[:'auto_freight2']
227
+ else
228
+ self.auto_freight2 = nil
229
+ end
230
+
231
+ if attributes.key?(:'auto_freight3')
232
+ self.auto_freight3 = attributes[:'auto_freight3']
233
+ else
234
+ self.auto_freight3 = nil
235
+ end
236
+
237
+ if attributes.key?(:'dc_storage_freight')
238
+ self.dc_storage_freight = attributes[:'dc_storage_freight']
239
+ else
240
+ self.dc_storage_freight = nil
241
+ end
242
+
243
+ if attributes.key?(:'dc_freight1')
244
+ self.dc_freight1 = attributes[:'dc_freight1']
245
+ else
246
+ self.dc_freight1 = nil
247
+ end
248
+
249
+ if attributes.key?(:'dc_freight2')
250
+ self.dc_freight2 = attributes[:'dc_freight2']
251
+ else
252
+ self.dc_freight2 = nil
253
+ end
254
+
255
+ if attributes.key?(:'dc_freight3')
256
+ self.dc_freight3 = attributes[:'dc_freight3']
257
+ else
258
+ self.dc_freight3 = nil
259
+ end
260
+
261
+ if attributes.key?(:'shared_freight')
262
+ self.shared_freight = attributes[:'shared_freight']
263
+ else
264
+ self.shared_freight = nil
265
+ end
266
+
267
+ if attributes.key?(:'eg_delivered')
268
+ self.eg_delivered = attributes[:'eg_delivered']
269
+ else
270
+ self.eg_delivered = nil
271
+ end
272
+
273
+ if attributes.key?(:'balanced')
274
+ self.balanced = attributes[:'balanced']
275
+ else
276
+ self.balanced = nil
277
+ end
278
+
279
+ if attributes.key?(:'eg_robot1')
280
+ self.eg_robot1 = attributes[:'eg_robot1']
281
+ else
282
+ self.eg_robot1 = nil
283
+ end
284
+
285
+ if attributes.key?(:'eg_robot2')
286
+ self.eg_robot2 = attributes[:'eg_robot2']
287
+ else
288
+ self.eg_robot2 = nil
289
+ end
290
+
291
+ if attributes.key?(:'capped')
292
+ self.capped = attributes[:'capped']
293
+ else
294
+ self.capped = nil
295
+ end
296
+
297
+ if attributes.key?(:'minor_penalties')
298
+ self.minor_penalties = attributes[:'minor_penalties']
299
+ else
300
+ self.minor_penalties = nil
301
+ end
302
+
303
+ if attributes.key?(:'major_penalties')
304
+ self.major_penalties = attributes[:'major_penalties']
305
+ else
306
+ self.major_penalties = nil
307
+ end
308
+
309
+ if attributes.key?(:'init_tse1')
310
+ self.init_tse1 = attributes[:'init_tse1']
311
+ else
312
+ self.init_tse1 = nil
313
+ end
314
+
315
+ if attributes.key?(:'init_tse2')
316
+ self.init_tse2 = attributes[:'init_tse2']
317
+ else
318
+ self.init_tse2 = nil
319
+ end
320
+
321
+ if attributes.key?(:'shared_tipped')
322
+ self.shared_tipped = attributes[:'shared_tipped']
323
+ else
324
+ self.shared_tipped = nil
325
+ end
326
+ end
327
+
328
+ # Show invalid properties with the reasons. Usually used together with valid?
329
+ # @return Array for valid properties with the reasons
330
+ def list_invalid_properties
331
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
332
+ invalid_properties = Array.new
333
+ if @auto_delivered.nil?
334
+ invalid_properties.push('invalid value for "auto_delivered", auto_delivered cannot be nil.')
335
+ end
336
+
337
+ if @auto_robot1.nil?
338
+ invalid_properties.push('invalid value for "auto_robot1", auto_robot1 cannot be nil.')
339
+ end
340
+
341
+ if @auto_robot2.nil?
342
+ invalid_properties.push('invalid value for "auto_robot2", auto_robot2 cannot be nil.')
343
+ end
344
+
345
+ if @preload1.nil?
346
+ invalid_properties.push('invalid value for "preload1", preload1 cannot be nil.')
347
+ end
348
+
349
+ if @preload2.nil?
350
+ invalid_properties.push('invalid value for "preload2", preload2 cannot be nil.')
351
+ end
352
+
353
+ if @auto_storage_freight.nil?
354
+ invalid_properties.push('invalid value for "auto_storage_freight", auto_storage_freight cannot be nil.')
355
+ end
356
+
357
+ if @auto_freight1.nil?
358
+ invalid_properties.push('invalid value for "auto_freight1", auto_freight1 cannot be nil.')
359
+ end
360
+
361
+ if @auto_freight2.nil?
362
+ invalid_properties.push('invalid value for "auto_freight2", auto_freight2 cannot be nil.')
363
+ end
364
+
365
+ if @auto_freight3.nil?
366
+ invalid_properties.push('invalid value for "auto_freight3", auto_freight3 cannot be nil.')
367
+ end
368
+
369
+ if @dc_storage_freight.nil?
370
+ invalid_properties.push('invalid value for "dc_storage_freight", dc_storage_freight cannot be nil.')
371
+ end
372
+
373
+ if @dc_freight1.nil?
374
+ invalid_properties.push('invalid value for "dc_freight1", dc_freight1 cannot be nil.')
375
+ end
376
+
377
+ if @dc_freight2.nil?
378
+ invalid_properties.push('invalid value for "dc_freight2", dc_freight2 cannot be nil.')
379
+ end
380
+
381
+ if @dc_freight3.nil?
382
+ invalid_properties.push('invalid value for "dc_freight3", dc_freight3 cannot be nil.')
383
+ end
384
+
385
+ if @shared_freight.nil?
386
+ invalid_properties.push('invalid value for "shared_freight", shared_freight cannot be nil.')
387
+ end
388
+
389
+ if @eg_delivered.nil?
390
+ invalid_properties.push('invalid value for "eg_delivered", eg_delivered cannot be nil.')
391
+ end
392
+
393
+ if @balanced.nil?
394
+ invalid_properties.push('invalid value for "balanced", balanced cannot be nil.')
395
+ end
396
+
397
+ if @eg_robot1.nil?
398
+ invalid_properties.push('invalid value for "eg_robot1", eg_robot1 cannot be nil.')
399
+ end
400
+
401
+ if @eg_robot2.nil?
402
+ invalid_properties.push('invalid value for "eg_robot2", eg_robot2 cannot be nil.')
403
+ end
404
+
405
+ if @capped.nil?
406
+ invalid_properties.push('invalid value for "capped", capped cannot be nil.')
407
+ end
408
+
409
+ if @minor_penalties.nil?
410
+ invalid_properties.push('invalid value for "minor_penalties", minor_penalties cannot be nil.')
411
+ end
412
+
413
+ if @major_penalties.nil?
414
+ invalid_properties.push('invalid value for "major_penalties", major_penalties cannot be nil.')
415
+ end
416
+
417
+ if @init_tse1.nil?
418
+ invalid_properties.push('invalid value for "init_tse1", init_tse1 cannot be nil.')
419
+ end
420
+
421
+ if @init_tse2.nil?
422
+ invalid_properties.push('invalid value for "init_tse2", init_tse2 cannot be nil.')
423
+ end
424
+
425
+ if @shared_tipped.nil?
426
+ invalid_properties.push('invalid value for "shared_tipped", shared_tipped cannot be nil.')
427
+ end
428
+
429
+ invalid_properties
430
+ end
431
+
432
+ # Check to see if the all the properties in the model are valid
433
+ # @return true if the model is valid
434
+ def valid?
435
+ warn '[DEPRECATED] the `valid?` method is obsolete'
436
+ return false if @auto_delivered.nil?
437
+ return false if @auto_robot1.nil?
438
+ return false if @auto_robot2.nil?
439
+ return false if @preload1.nil?
440
+ return false if @preload2.nil?
441
+ return false if @auto_storage_freight.nil?
442
+ return false if @auto_freight1.nil?
443
+ return false if @auto_freight2.nil?
444
+ return false if @auto_freight3.nil?
445
+ return false if @dc_storage_freight.nil?
446
+ return false if @dc_freight1.nil?
447
+ return false if @dc_freight2.nil?
448
+ return false if @dc_freight3.nil?
449
+ return false if @shared_freight.nil?
450
+ return false if @eg_delivered.nil?
451
+ return false if @balanced.nil?
452
+ return false if @eg_robot1.nil?
453
+ return false if @eg_robot2.nil?
454
+ return false if @capped.nil?
455
+ return false if @minor_penalties.nil?
456
+ return false if @major_penalties.nil?
457
+ return false if @init_tse1.nil?
458
+ return false if @init_tse2.nil?
459
+ return false if @shared_tipped.nil?
460
+ true
461
+ end
462
+
463
+ # Custom attribute writer method with validation
464
+ # @param [Object] auto_delivered Value to be assigned
465
+ def auto_delivered=(auto_delivered)
466
+ if auto_delivered.nil?
467
+ fail ArgumentError, 'auto_delivered cannot be nil'
468
+ end
469
+
470
+ @auto_delivered = auto_delivered
471
+ end
472
+
473
+ # Custom attribute writer method with validation
474
+ # @param [Object] auto_robot1 Value to be assigned
475
+ def auto_robot1=(auto_robot1)
476
+ if auto_robot1.nil?
477
+ fail ArgumentError, 'auto_robot1 cannot be nil'
478
+ end
479
+
480
+ @auto_robot1 = auto_robot1
481
+ end
482
+
483
+ # Custom attribute writer method with validation
484
+ # @param [Object] auto_robot2 Value to be assigned
485
+ def auto_robot2=(auto_robot2)
486
+ if auto_robot2.nil?
487
+ fail ArgumentError, 'auto_robot2 cannot be nil'
488
+ end
489
+
490
+ @auto_robot2 = auto_robot2
491
+ end
492
+
493
+ # Custom attribute writer method with validation
494
+ # @param [Object] preload1 Value to be assigned
495
+ def preload1=(preload1)
496
+ if preload1.nil?
497
+ fail ArgumentError, 'preload1 cannot be nil'
498
+ end
499
+
500
+ @preload1 = preload1
501
+ end
502
+
503
+ # Custom attribute writer method with validation
504
+ # @param [Object] preload2 Value to be assigned
505
+ def preload2=(preload2)
506
+ if preload2.nil?
507
+ fail ArgumentError, 'preload2 cannot be nil'
508
+ end
509
+
510
+ @preload2 = preload2
511
+ end
512
+
513
+ # Custom attribute writer method with validation
514
+ # @param [Object] auto_storage_freight Value to be assigned
515
+ def auto_storage_freight=(auto_storage_freight)
516
+ if auto_storage_freight.nil?
517
+ fail ArgumentError, 'auto_storage_freight cannot be nil'
518
+ end
519
+
520
+ @auto_storage_freight = auto_storage_freight
521
+ end
522
+
523
+ # Custom attribute writer method with validation
524
+ # @param [Object] auto_freight1 Value to be assigned
525
+ def auto_freight1=(auto_freight1)
526
+ if auto_freight1.nil?
527
+ fail ArgumentError, 'auto_freight1 cannot be nil'
528
+ end
529
+
530
+ @auto_freight1 = auto_freight1
531
+ end
532
+
533
+ # Custom attribute writer method with validation
534
+ # @param [Object] auto_freight2 Value to be assigned
535
+ def auto_freight2=(auto_freight2)
536
+ if auto_freight2.nil?
537
+ fail ArgumentError, 'auto_freight2 cannot be nil'
538
+ end
539
+
540
+ @auto_freight2 = auto_freight2
541
+ end
542
+
543
+ # Custom attribute writer method with validation
544
+ # @param [Object] auto_freight3 Value to be assigned
545
+ def auto_freight3=(auto_freight3)
546
+ if auto_freight3.nil?
547
+ fail ArgumentError, 'auto_freight3 cannot be nil'
548
+ end
549
+
550
+ @auto_freight3 = auto_freight3
551
+ end
552
+
553
+ # Custom attribute writer method with validation
554
+ # @param [Object] dc_storage_freight Value to be assigned
555
+ def dc_storage_freight=(dc_storage_freight)
556
+ if dc_storage_freight.nil?
557
+ fail ArgumentError, 'dc_storage_freight cannot be nil'
558
+ end
559
+
560
+ @dc_storage_freight = dc_storage_freight
561
+ end
562
+
563
+ # Custom attribute writer method with validation
564
+ # @param [Object] dc_freight1 Value to be assigned
565
+ def dc_freight1=(dc_freight1)
566
+ if dc_freight1.nil?
567
+ fail ArgumentError, 'dc_freight1 cannot be nil'
568
+ end
569
+
570
+ @dc_freight1 = dc_freight1
571
+ end
572
+
573
+ # Custom attribute writer method with validation
574
+ # @param [Object] dc_freight2 Value to be assigned
575
+ def dc_freight2=(dc_freight2)
576
+ if dc_freight2.nil?
577
+ fail ArgumentError, 'dc_freight2 cannot be nil'
578
+ end
579
+
580
+ @dc_freight2 = dc_freight2
581
+ end
582
+
583
+ # Custom attribute writer method with validation
584
+ # @param [Object] dc_freight3 Value to be assigned
585
+ def dc_freight3=(dc_freight3)
586
+ if dc_freight3.nil?
587
+ fail ArgumentError, 'dc_freight3 cannot be nil'
588
+ end
589
+
590
+ @dc_freight3 = dc_freight3
591
+ end
592
+
593
+ # Custom attribute writer method with validation
594
+ # @param [Object] shared_freight Value to be assigned
595
+ def shared_freight=(shared_freight)
596
+ if shared_freight.nil?
597
+ fail ArgumentError, 'shared_freight cannot be nil'
598
+ end
599
+
600
+ @shared_freight = shared_freight
601
+ end
602
+
603
+ # Custom attribute writer method with validation
604
+ # @param [Object] eg_delivered Value to be assigned
605
+ def eg_delivered=(eg_delivered)
606
+ if eg_delivered.nil?
607
+ fail ArgumentError, 'eg_delivered cannot be nil'
608
+ end
609
+
610
+ @eg_delivered = eg_delivered
611
+ end
612
+
613
+ # Custom attribute writer method with validation
614
+ # @param [Object] balanced Value to be assigned
615
+ def balanced=(balanced)
616
+ if balanced.nil?
617
+ fail ArgumentError, 'balanced cannot be nil'
618
+ end
619
+
620
+ @balanced = balanced
621
+ end
622
+
623
+ # Custom attribute writer method with validation
624
+ # @param [Object] eg_robot1 Value to be assigned
625
+ def eg_robot1=(eg_robot1)
626
+ if eg_robot1.nil?
627
+ fail ArgumentError, 'eg_robot1 cannot be nil'
628
+ end
629
+
630
+ @eg_robot1 = eg_robot1
631
+ end
632
+
633
+ # Custom attribute writer method with validation
634
+ # @param [Object] eg_robot2 Value to be assigned
635
+ def eg_robot2=(eg_robot2)
636
+ if eg_robot2.nil?
637
+ fail ArgumentError, 'eg_robot2 cannot be nil'
638
+ end
639
+
640
+ @eg_robot2 = eg_robot2
641
+ end
642
+
643
+ # Custom attribute writer method with validation
644
+ # @param [Object] capped Value to be assigned
645
+ def capped=(capped)
646
+ if capped.nil?
647
+ fail ArgumentError, 'capped cannot be nil'
648
+ end
649
+
650
+ @capped = capped
651
+ end
652
+
653
+ # Custom attribute writer method with validation
654
+ # @param [Object] minor_penalties Value to be assigned
655
+ def minor_penalties=(minor_penalties)
656
+ if minor_penalties.nil?
657
+ fail ArgumentError, 'minor_penalties cannot be nil'
658
+ end
659
+
660
+ @minor_penalties = minor_penalties
661
+ end
662
+
663
+ # Custom attribute writer method with validation
664
+ # @param [Object] major_penalties Value to be assigned
665
+ def major_penalties=(major_penalties)
666
+ if major_penalties.nil?
667
+ fail ArgumentError, 'major_penalties cannot be nil'
668
+ end
669
+
670
+ @major_penalties = major_penalties
671
+ end
672
+
673
+ # Custom attribute writer method with validation
674
+ # @param [Object] init_tse1 Value to be assigned
675
+ def init_tse1=(init_tse1)
676
+ if init_tse1.nil?
677
+ fail ArgumentError, 'init_tse1 cannot be nil'
678
+ end
679
+
680
+ @init_tse1 = init_tse1
681
+ end
682
+
683
+ # Custom attribute writer method with validation
684
+ # @param [Object] init_tse2 Value to be assigned
685
+ def init_tse2=(init_tse2)
686
+ if init_tse2.nil?
687
+ fail ArgumentError, 'init_tse2 cannot be nil'
688
+ end
689
+
690
+ @init_tse2 = init_tse2
691
+ end
692
+
693
+ # Custom attribute writer method with validation
694
+ # @param [Object] shared_tipped Value to be assigned
695
+ def shared_tipped=(shared_tipped)
696
+ if shared_tipped.nil?
697
+ fail ArgumentError, 'shared_tipped cannot be nil'
698
+ end
699
+
700
+ @shared_tipped = shared_tipped
701
+ end
702
+
703
+ # Checks equality by comparing each attribute.
704
+ # @param [Object] Object to be compared
705
+ def ==(o)
706
+ return true if self.equal?(o)
707
+ self.class == o.class &&
708
+ auto_delivered == o.auto_delivered &&
709
+ auto_robot1 == o.auto_robot1 &&
710
+ auto_robot2 == o.auto_robot2 &&
711
+ preload1 == o.preload1 &&
712
+ preload2 == o.preload2 &&
713
+ auto_storage_freight == o.auto_storage_freight &&
714
+ auto_freight1 == o.auto_freight1 &&
715
+ auto_freight2 == o.auto_freight2 &&
716
+ auto_freight3 == o.auto_freight3 &&
717
+ dc_storage_freight == o.dc_storage_freight &&
718
+ dc_freight1 == o.dc_freight1 &&
719
+ dc_freight2 == o.dc_freight2 &&
720
+ dc_freight3 == o.dc_freight3 &&
721
+ shared_freight == o.shared_freight &&
722
+ eg_delivered == o.eg_delivered &&
723
+ balanced == o.balanced &&
724
+ eg_robot1 == o.eg_robot1 &&
725
+ eg_robot2 == o.eg_robot2 &&
726
+ capped == o.capped &&
727
+ minor_penalties == o.minor_penalties &&
728
+ major_penalties == o.major_penalties &&
729
+ init_tse1 == o.init_tse1 &&
730
+ init_tse2 == o.init_tse2 &&
731
+ shared_tipped == o.shared_tipped
732
+ end
733
+
734
+ # @see the `==` method
735
+ # @param [Object] Object to be compared
736
+ def eql?(o)
737
+ self == o
738
+ end
739
+
740
+ # Calculates hash code according to all attributes.
741
+ # @return [Integer] Hash code
742
+ def hash
743
+ [auto_delivered, auto_robot1, auto_robot2, preload1, preload2, auto_storage_freight, auto_freight1, auto_freight2, auto_freight3, dc_storage_freight, dc_freight1, dc_freight2, dc_freight3, shared_freight, eg_delivered, balanced, eg_robot1, eg_robot2, capped, minor_penalties, major_penalties, init_tse1, init_tse2, shared_tipped].hash
744
+ end
745
+
746
+ # Builds the object from hash
747
+ # @param [Hash] attributes Model attributes in the form of hash
748
+ # @return [Object] Returns the model itself
749
+ def self.build_from_hash(attributes)
750
+ return nil unless attributes.is_a?(Hash)
751
+ attributes = attributes.transform_keys(&:to_sym)
752
+ transformed_hash = {}
753
+ openapi_types.each_pair do |key, type|
754
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
755
+ transformed_hash["#{key}"] = nil
756
+ elsif type =~ /\AArray<(.*)>/i
757
+ # check to ensure the input is an array given that the attribute
758
+ # is documented as an array but the input is not
759
+ if attributes[attribute_map[key]].is_a?(Array)
760
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
761
+ end
762
+ elsif !attributes[attribute_map[key]].nil?
763
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
764
+ end
765
+ end
766
+ new(transformed_hash)
767
+ end
768
+
769
+ # Returns the object in the form of hash
770
+ # @return [Hash] Returns the object in the form of hash
771
+ def to_hash
772
+ hash = {}
773
+ self.class.attribute_map.each_pair do |attr, param|
774
+ value = self.send(attr)
775
+ if value.nil?
776
+ is_nullable = self.class.openapi_nullable.include?(attr)
777
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
778
+ end
779
+
780
+ hash[param] = _to_hash(value)
781
+ end
782
+ hash
783
+ end
784
+
785
+ end
786
+
787
+ end