ftc_events_client 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +101 -5
  3. data/build.sh +0 -0
  4. data/config.json +1 -1
  5. data/docs/AdvancementApi.md +120 -0
  6. data/docs/AdvancementModel.md +9 -0
  7. data/docs/AdvancementSlot.md +13 -0
  8. data/docs/AdvancementSourceModel.md +10 -0
  9. data/docs/AllianceModelVersion2.md +3 -0
  10. data/docs/AllianceSelectionApi.md +56 -1
  11. data/docs/AllianceSelectionDetailModel.md +8 -0
  12. data/docs/ApiAdvancementStatus.md +6 -0
  13. data/docs/AutoNavigation.md +6 -0
  14. data/docs/AwardAssignmentModel.md +1 -0
  15. data/docs/AwardsApi.md +1 -1
  16. data/docs/Coordinate.md +12 -0
  17. data/docs/CoordinateEqualityComparer.md +6 -0
  18. data/docs/CoordinateSequence.md +17 -0
  19. data/docs/CoordinateSequenceFactory.md +7 -0
  20. data/docs/Dimension.md +6 -0
  21. data/docs/EndGameLocation.md +6 -0
  22. data/docs/Envelope.md +18 -0
  23. data/docs/FieldSide.md +6 -0
  24. data/docs/GeneralApi.md +1 -1
  25. data/docs/Geometry.md +30 -0
  26. data/docs/GeometryFactory.md +10 -0
  27. data/docs/GeometryOverlay.md +6 -0
  28. data/docs/JunctionElement.md +6 -0
  29. data/docs/LeaguesApi.md +1 -1
  30. data/docs/MatchResultsApi.md +1 -1
  31. data/docs/NtsGeometryServices.md +11 -0
  32. data/docs/OgcGeometryType.md +6 -0
  33. data/docs/Ordinates.md +6 -0
  34. data/docs/Point.md +35 -0
  35. data/docs/PrecisionModel.md +11 -0
  36. data/docs/PrecisionModels.md +6 -0
  37. data/docs/RankingsApi.md +1 -1
  38. data/docs/ScheduleApi.md +1 -1
  39. data/docs/ScheduleHybridModelTeamVersion2.md +2 -0
  40. data/docs/ScheduleHybridModelVersion2.md +2 -0
  41. data/docs/ScheduledMatchTeamModelVersion2.md +3 -0
  42. data/docs/ScoreDetailAllianceModel2022.md +42 -0
  43. data/docs/ScoreDetailAllianceModel2023.md +44 -0
  44. data/docs/ScoreDetailModel2021.md +1 -0
  45. data/docs/ScoreDetailModel2022.md +11 -0
  46. data/docs/ScoreDetailModel2023.md +11 -0
  47. data/docs/ScoreDetailModelSinglePlayer2021.md +1 -0
  48. data/docs/ScoreDetailModelSinglePlayer2022.md +11 -0
  49. data/docs/ScoreDetailModelSinglePlayer2023.md +11 -0
  50. data/docs/ScoreDetailSinglePlayer2022.md +35 -0
  51. data/docs/ScoreDetailSinglePlayer2023.md +36 -0
  52. data/docs/SeasonDataApi.md +1 -1
  53. data/docs/SeasonEventModelVersion2.md +3 -0
  54. data/docs/SeasonLeagueModelVersion2.md +2 -0
  55. data/docs/SeasonTeamModelVersion2.md +3 -0
  56. data/docs/SelectionModel.md +9 -0
  57. data/docs/SelectionResult.md +6 -0
  58. data/docs/TeamRankingModel.md +2 -0
  59. data/ftc_events_client.gemspec +1 -1
  60. data/git_push.sh +0 -0
  61. data/lib/ftc_events_client/api/advancement_api.rb +147 -0
  62. data/lib/ftc_events_client/api/alliance_selection_api.rb +63 -1
  63. data/lib/ftc_events_client/api/awards_api.rb +1 -1
  64. data/lib/ftc_events_client/api/general_api.rb +1 -1
  65. data/lib/ftc_events_client/api/leagues_api.rb +1 -1
  66. data/lib/ftc_events_client/api/match_results_api.rb +1 -1
  67. data/lib/ftc_events_client/api/rankings_api.rb +1 -1
  68. data/lib/ftc_events_client/api/schedule_api.rb +1 -1
  69. data/lib/ftc_events_client/api/season_data_api.rb +1 -1
  70. data/lib/ftc_events_client/api_client.rb +3 -13
  71. data/lib/ftc_events_client/api_error.rb +1 -1
  72. data/lib/ftc_events_client/configuration.rb +2 -2
  73. data/lib/ftc_events_client/models/advancement_model.rb +231 -0
  74. data/lib/ftc_events_client/models/advancement_slot.rb +269 -0
  75. data/lib/ftc_events_client/models/advancement_source_model.rb +242 -0
  76. data/lib/ftc_events_client/models/alliance_model_version2.rb +32 -2
  77. data/lib/ftc_events_client/models/alliance_score_2020.rb +1 -1
  78. data/lib/ftc_events_client/models/alliance_selection_detail_model.rb +218 -0
  79. data/lib/ftc_events_client/models/alliance_selection_model_version2.rb +1 -1
  80. data/lib/ftc_events_client/models/api_advancement_status.rb +31 -0
  81. data/lib/ftc_events_client/models/api_index_model.rb +1 -1
  82. data/lib/ftc_events_client/models/auto_navigated_status.rb +1 -1
  83. data/lib/ftc_events_client/models/auto_navigation.rb +29 -0
  84. data/lib/ftc_events_client/models/award_assignment_model.rb +12 -2
  85. data/lib/ftc_events_client/models/awards_model.rb +1 -1
  86. data/lib/ftc_events_client/models/barcode_element.rb +1 -1
  87. data/lib/ftc_events_client/models/coordinate.rb +251 -0
  88. data/lib/ftc_events_client/models/coordinate_equality_comparer.rb +197 -0
  89. data/lib/ftc_events_client/models/coordinate_sequence.rb +296 -0
  90. data/lib/ftc_events_client/models/coordinate_sequence_factory.rb +206 -0
  91. data/lib/ftc_events_client/models/dimension.rb +33 -0
  92. data/lib/ftc_events_client/models/end_game_location.rb +29 -0
  93. data/lib/ftc_events_client/models/endgame_parked_status.rb +1 -1
  94. data/lib/ftc_events_client/models/envelope.rb +305 -0
  95. data/lib/ftc_events_client/models/event_match_results_model_version2.rb +1 -1
  96. data/lib/ftc_events_client/models/event_rankings_model.rb +1 -1
  97. data/lib/ftc_events_client/models/event_schedule_hybrid_model_version2.rb +1 -1
  98. data/lib/ftc_events_client/models/event_schedule_model_version2.rb +1 -1
  99. data/lib/ftc_events_client/models/field_side.rb +28 -0
  100. data/lib/ftc_events_client/models/ftc_event_level.rb +1 -1
  101. data/lib/ftc_events_client/models/geometry.rb +418 -0
  102. data/lib/ftc_events_client/models/geometry_factory.rb +233 -0
  103. data/lib/ftc_events_client/models/geometry_overlay.rb +197 -0
  104. data/lib/ftc_events_client/models/junction_element.rb +32 -0
  105. data/lib/ftc_events_client/models/league_member_list_model.rb +1 -1
  106. data/lib/ftc_events_client/models/match_result_model_version2.rb +1 -1
  107. data/lib/ftc_events_client/models/match_result_team_model_version2.rb +1 -1
  108. data/lib/ftc_events_client/models/match_scores_model.rb +1 -1
  109. data/lib/ftc_events_client/models/nts_geometry_services.rb +242 -0
  110. data/lib/ftc_events_client/models/ogc_geometry_type.rb +42 -0
  111. data/lib/ftc_events_client/models/one_of_match_scores_model_match_scores_items.rb +1 -1
  112. data/lib/ftc_events_client/models/ordinates.rb +66 -0
  113. data/lib/ftc_events_client/models/point.rb +463 -0
  114. data/lib/ftc_events_client/models/precision_model.rb +242 -0
  115. data/lib/ftc_events_client/models/precision_models.rb +29 -0
  116. data/lib/ftc_events_client/models/schedule_hybrid_model_team_version2.rb +26 -6
  117. data/lib/ftc_events_client/models/schedule_hybrid_model_version2.rb +22 -2
  118. data/lib/ftc_events_client/models/scheduled_match_model_version2.rb +1 -1
  119. data/lib/ftc_events_client/models/scheduled_match_team_model_version2.rb +32 -2
  120. data/lib/ftc_events_client/models/score_detail_alliance_model_2020.rb +1 -1
  121. data/lib/ftc_events_client/models/score_detail_alliance_model_2021.rb +1 -1
  122. data/lib/ftc_events_client/models/score_detail_alliance_model_2022.rb +540 -0
  123. data/lib/ftc_events_client/models/score_detail_alliance_model_2023.rb +540 -0
  124. data/lib/ftc_events_client/models/score_detail_model_2019.rb +1 -1
  125. data/lib/ftc_events_client/models/score_detail_model_2020.rb +1 -1
  126. data/lib/ftc_events_client/models/score_detail_model_2021.rb +11 -2
  127. data/lib/ftc_events_client/models/score_detail_model_2022.rb +245 -0
  128. data/lib/ftc_events_client/models/score_detail_model_2023.rb +245 -0
  129. data/lib/ftc_events_client/models/score_detail_model_alliance_2019.rb +1 -1
  130. data/lib/ftc_events_client/models/score_detail_model_single_player_2020.rb +1 -1
  131. data/lib/ftc_events_client/models/score_detail_model_single_player_2021.rb +11 -2
  132. data/lib/ftc_events_client/models/score_detail_model_single_player_2022.rb +242 -0
  133. data/lib/ftc_events_client/models/score_detail_model_single_player_2023.rb +242 -0
  134. data/lib/ftc_events_client/models/score_detail_single_player_2021.rb +1 -1
  135. data/lib/ftc_events_client/models/score_detail_single_player_2022.rb +474 -0
  136. data/lib/ftc_events_client/models/score_detail_single_player_2023.rb +467 -0
  137. data/lib/ftc_events_client/models/season_award_listings_model.rb +1 -1
  138. data/lib/ftc_events_client/models/season_awards_model.rb +1 -1
  139. data/lib/ftc_events_client/models/season_event_listings_model_version2.rb +1 -1
  140. data/lib/ftc_events_client/models/season_event_model_version2.rb +30 -2
  141. data/lib/ftc_events_client/models/season_league_listings_model_version2.rb +1 -1
  142. data/lib/ftc_events_client/models/season_league_model_version2.rb +22 -2
  143. data/lib/ftc_events_client/models/season_summary_model_championship.rb +1 -1
  144. data/lib/ftc_events_client/models/season_summary_model_version2.rb +1 -1
  145. data/lib/ftc_events_client/models/season_team_listings_model_version2.rb +1 -1
  146. data/lib/ftc_events_client/models/season_team_model_version2.rb +36 -6
  147. data/lib/ftc_events_client/models/selection_model.rb +224 -0
  148. data/lib/ftc_events_client/models/selection_result.rb +29 -0
  149. data/lib/ftc_events_client/models/stone.rb +1 -1
  150. data/lib/ftc_events_client/models/team_ranking_model.rb +22 -2
  151. data/lib/ftc_events_client/version.rb +2 -2
  152. data/lib/ftc_events_client.rb +36 -1
  153. data/spec/api/advancement_api_spec.rb +61 -0
  154. data/spec/models/advancement_model_spec.rb +52 -0
  155. data/spec/models/advancement_slot_spec.rb +76 -0
  156. data/spec/models/advancement_source_model_spec.rb +58 -0
  157. data/spec/models/alliance_selection_detail_model_spec.rb +46 -0
  158. data/spec/models/api_advancement_status_spec.rb +34 -0
  159. data/spec/models/auto_navigation_spec.rb +34 -0
  160. data/spec/models/coordinate_equality_comparer_spec.rb +34 -0
  161. data/spec/models/coordinate_sequence_factory_spec.rb +40 -0
  162. data/spec/models/coordinate_sequence_spec.rb +100 -0
  163. data/spec/models/coordinate_spec.rb +70 -0
  164. data/spec/models/dimension_spec.rb +34 -0
  165. data/spec/models/end_game_location_spec.rb +34 -0
  166. data/spec/models/envelope_spec.rb +106 -0
  167. data/spec/models/field_side_spec.rb +34 -0
  168. data/spec/models/geometry_factory_spec.rb +58 -0
  169. data/spec/models/geometry_overlay_spec.rb +34 -0
  170. data/spec/models/geometry_spec.rb +178 -0
  171. data/spec/models/junction_element_spec.rb +34 -0
  172. data/spec/models/nts_geometry_services_spec.rb +64 -0
  173. data/spec/models/ogc_geometry_type_spec.rb +34 -0
  174. data/spec/models/ordinates_spec.rb +34 -0
  175. data/spec/models/point_spec.rb +208 -0
  176. data/spec/models/precision_model_spec.rb +64 -0
  177. data/spec/models/precision_models_spec.rb +34 -0
  178. data/spec/models/score_detail_alliance_model_2022_spec.rb +250 -0
  179. data/spec/models/score_detail_alliance_model_2023_spec.rb +262 -0
  180. data/spec/models/score_detail_model_2022_spec.rb +64 -0
  181. data/spec/models/score_detail_model_2023_spec.rb +64 -0
  182. data/spec/models/score_detail_model_single_player_2022_spec.rb +64 -0
  183. data/spec/models/score_detail_model_single_player_2023_spec.rb +64 -0
  184. data/spec/models/score_detail_single_player_2022_spec.rb +208 -0
  185. data/spec/models/score_detail_single_player_2023_spec.rb +214 -0
  186. data/spec/models/selection_model_spec.rb +52 -0
  187. data/spec/models/selection_result_spec.rb +34 -0
  188. metadata +144 -3
@@ -0,0 +1,467 @@
1
+ =begin
2
+ #FTC Events API
3
+
4
+ #FTC Events API is a service to return relevant information about the _FIRST_ Tech Challenge (FTC). Information is made available from events operating around the world Information is currently made available after the conclusion of the tournament. The API will provide data as soon as it has synced, and we do not add any artificial delays. ## Documentation Notes ### Timezones All times are listed in the local time to the event venue. HTTP-date values will show their timezone. ### Query Parameters If you specify a parameter, but no value for that parameter, it will be ignored. For example, if you request `URL?teamNumber=` the `teamNumber` parameter would be ignored. For all APIs that accept a query string in addition to the base URI, the order of parameters do not matter, but the name shown in the documentation must match exactly, as does the associated value format as described in details. For response codes that are not HTTP 200 (OK), the documentation will show a body message that represents a possible response value. While the \"title\" of the HTTP Status Code will match those shown in the response codes documentation section exactly, the body of the response will be a more detailed explanation of why that status code is being returned and may not always be exactly as shown in the examples. ### Experimenting with the API This documentation is rendered at both [api-docs](https://ftc-events.firstinspires.org/api-docs) and [try-it-out](https://ftc-events.firstinspires.org/try-it-out). [api-docs](https://ftc-events.firstinspires.org/api-docs) has a three panel, easy to read layout, while [try-it-out](https://ftc-events.firstinspires.org/try-it-out) has a feature that allows you try out endpoints from within the page. Additionally, the Open API Json is availabe at [Open API](https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json). This can be imported into a tool such as [Postman](https://www.postman.com) for experimentation as well. ### Last-Modified, FMS-OnlyModifiedSince, and If-Modified-Since Headers The FTC Events API utilizes the `Last-Modified` and `If-Modified-Since` Headers to communicate with consumers regarding the age of the data they are requesting. With a couple of exceptions, all calls will return a `Last-Modified` Header set with the time at which the data at that endpoint was last modified. The Header will always be set in the HTTP-date format, as described in the HTTP Protocol. There are two exceptions: the `Last-Modified` Header is not set if the endpoint returns no results (such as a request for a schedule with no matches). Consumers should keep track of the `Last-Modified` Header, and return it on subsequent calls to the same endpoint as the If-Modified-Since. The server will recognize this request, and will only return a result if the data has been modified since the last request. If no changes have been made, an HTTP 304 will be returned. If data has been modified, ALL data on that call will be returned (for \"only modified\" data, see below). The FTC Events API also allows a custom header used to filter the return data to a specific subset. This is done by specifying a `FMS-OnlyModifiedSince` header with each call. As with the `If-Modified-Since` header, consumers should keep track of the Last-Modified Header, and return it on subsequent calls to the same endpoint as the `FMS-OnlyModifiedSince` Header. The server will recognize this request, and will only return a result if the data has been modified since the last request, and, if returned, the data will only be those portions modified since the included date. If no changes, have been made, an HTTP 304 will be returned. Using this method, the server and consumer save processing time by only receiving modified data that is in need of update on the consumer side. If the Headers are improperly passed (such as the wrong Day of Week for the matching date, or a date in the future), the endpoint will simply ignore the Header and return all results. If both headers are specified, the request will be denied. ## Response Codes The FTC Events API HTTP Status Codes correspond with the [common codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html), but occasionally with different \"titles\". The \"title\" used by the API is shown next to each of the below possible response HTTP Status Codes. Throughout the documentation, Apiary may automatically show the common \"title\" in example returns (like \"Not Found\" for 404) but on the production server, the \"title\" will instead match those listed below. ### HTTP 200 - \"OK\" The request has succeeded. An entity corresponding to the requested resource is sent in the response. This will be returned as the HTTP Status Code for all request that succeed, even if the body is empty (such as an event that has no rankings, but with a valid season and event code were used) ### HTTP 304 - \"Not Modified\" When utilizing a Header that allows filtered data returns, such as `If-Modified-Since`, this response indicates that no data meets the request. ### HTTP 400 - \"Invalid Season Requested\"/\"Malformed Parameter Format In Request\"/\"Missing Parameter In Request\"/\"Invalid API Version Requested\": The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications. Specifically for this API, a 400 response indicates that the requested URI matches with a valid API, but one or more required parameter was malformed or invalid. Examples include an event code that is too short or team number that contains a letter. ### HTTP 401 - \"Unauthorized\" All requests against the API require authentication via a valid user token. Failing to provide one, or providing an invalid one, will warrant a 401 response. The client MAY repeat the request with a suitable Authorization header field. ### HTTP 404 - \"Invalid Event Requested\" Even though the 404 code usually indicates any not found status, a 404 will only be issued in this API when an event cannot be found for the requested season and event code. If the request didn't match a valid API or there were malformed parameters, the response would not receive a 404 but rather a 400 or 501. If this HTTP code is received, the season was a valid season and the event code matched the acceptable style of an event code, but there were no records of an event matching the combination of that season and event code. For example, HTTP 404 would be issued when the event had a different code in the requested season (the codes can change year to year based on event location). ### HTTP 500 - \"Internal Server Error\" The server encountered an unexpected condition which prevented it from fulfilling the request. This is a code sent directly by the server, and has no special alternate definition specific to this API. ### HTTP 501 - \"Request Did Not Match Any Current API Pattern\" The server does not support the functionality required to fulfill the request. Specifically, the request pattern did not match any of the possible APIs, and thus processing was discontinued. This code is also issued when too many optional parameters were included in a single request and fulfilling it would make the result confusing or misleading. Each API will specify which parameters or combination of parameters can be used at the same time. ### HTTP 503 - \"Service Unavailable\" The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a `Retry-After` header. This code will not always appear, sometimes the server may outright refuse the connection instead. This is a code sent directly by the server, and has no special alternate definition specific to this API. ## Authorization In order to make calls against the FTC Events API, you must include an HTTP Header called `Authorization` with the value set as specified below. If a request is made without this header, processing stops and an HTTP 401 is issued. All `Authorization` headers follow the same format: ``` Authorization: Basic 000000000000000000000000000000000000000000000000000000000000 ``` Where the Zeros are replaced by your Token. The Token can be formed by taking your username and your AuthorizationKey and adding a colon. For example, if your username is `sampleuser` and your AuthorizationKey is `7eaa6338-a097-4221-ac04-b6120fcc4d49` you would have this string: ``` sampleuser:7eaa6338-a097-4221-ac04-b6120fcc4d49 ``` This string must then be encoded using Base64 Encoded to form the Token, which will be the same length as the example above, but include letters and numbers. For our example, we would have: ``` c2FtcGxldXNlcjo3ZWFhNjMzOC1hMDk3LTQyMjEtYWMwNC1iNjEyMGZjYzRkNDk= ``` Most API client libraries can handle computing the authorization header using a username and password for you NOTICE: Publicly distributing an application, code snippet, etc, that has your username and token in it, encoded or not, WILL result in your token being blocked from the API. Each user should apply for their own token. If you wish to acquire a token for your development, you may do so by requesting a token through our automated system on this website.
5
+
6
+ OpenAPI spec version: v2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.52
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module FtcEventsClient
15
+ class ScoreDetailSinglePlayer2023
16
+ attr_accessor :init_team_prop
17
+
18
+ attr_accessor :robot_auto
19
+
20
+ attr_accessor :spike_mark_pixel
21
+
22
+ attr_accessor :target_backdrop_pixel
23
+
24
+ attr_accessor :auto_backdrop
25
+
26
+ attr_accessor :auto_backstage
27
+
28
+ attr_accessor :dc_backdrop
29
+
30
+ attr_accessor :dc_backstage
31
+
32
+ attr_accessor :mosaics
33
+
34
+ attr_accessor :max_set_line
35
+
36
+ attr_accessor :eg_robot
37
+
38
+ attr_accessor :drone
39
+
40
+ attr_accessor :minor_penalties
41
+
42
+ attr_accessor :major_penalties
43
+
44
+ attr_accessor :auto_navigating_points
45
+
46
+ attr_accessor :auto_randomization_points
47
+
48
+ attr_accessor :auto_backstage_points
49
+
50
+ attr_accessor :auto_backdrop_points
51
+
52
+ attr_accessor :dc_backdrop_points
53
+
54
+ attr_accessor :dc_backstage_points
55
+
56
+ attr_accessor :mosaic_points
57
+
58
+ attr_accessor :set_bonus_points
59
+
60
+ attr_accessor :eg_location_points
61
+
62
+ attr_accessor :eg_drone_points
63
+
64
+ attr_accessor :auto_points
65
+
66
+ attr_accessor :dc_points
67
+
68
+ attr_accessor :endgame_points
69
+
70
+ attr_accessor :penalty_points_committed
71
+
72
+ attr_accessor :pre_penalty_total
73
+
74
+ attr_accessor :total_points
75
+
76
+ # Attribute mapping from ruby-style variable name to JSON key.
77
+ def self.attribute_map
78
+ {
79
+ :'init_team_prop' => :'initTeamProp',
80
+ :'robot_auto' => :'robotAuto',
81
+ :'spike_mark_pixel' => :'spikeMarkPixel',
82
+ :'target_backdrop_pixel' => :'targetBackdropPixel',
83
+ :'auto_backdrop' => :'autoBackdrop',
84
+ :'auto_backstage' => :'autoBackstage',
85
+ :'dc_backdrop' => :'dcBackdrop',
86
+ :'dc_backstage' => :'dcBackstage',
87
+ :'mosaics' => :'mosaics',
88
+ :'max_set_line' => :'maxSetLine',
89
+ :'eg_robot' => :'egRobot',
90
+ :'drone' => :'drone',
91
+ :'minor_penalties' => :'minorPenalties',
92
+ :'major_penalties' => :'majorPenalties',
93
+ :'auto_navigating_points' => :'autoNavigatingPoints',
94
+ :'auto_randomization_points' => :'autoRandomizationPoints',
95
+ :'auto_backstage_points' => :'autoBackstagePoints',
96
+ :'auto_backdrop_points' => :'autoBackdropPoints',
97
+ :'dc_backdrop_points' => :'dcBackdropPoints',
98
+ :'dc_backstage_points' => :'dcBackstagePoints',
99
+ :'mosaic_points' => :'mosaicPoints',
100
+ :'set_bonus_points' => :'setBonusPoints',
101
+ :'eg_location_points' => :'egLocationPoints',
102
+ :'eg_drone_points' => :'egDronePoints',
103
+ :'auto_points' => :'autoPoints',
104
+ :'dc_points' => :'dcPoints',
105
+ :'endgame_points' => :'endgamePoints',
106
+ :'penalty_points_committed' => :'penaltyPointsCommitted',
107
+ :'pre_penalty_total' => :'prePenaltyTotal',
108
+ :'total_points' => :'totalPoints'
109
+ }
110
+ end
111
+
112
+ # Attribute type mapping.
113
+ def self.openapi_types
114
+ {
115
+ :'init_team_prop' => :'Object',
116
+ :'robot_auto' => :'Object',
117
+ :'spike_mark_pixel' => :'Object',
118
+ :'target_backdrop_pixel' => :'Object',
119
+ :'auto_backdrop' => :'Object',
120
+ :'auto_backstage' => :'Object',
121
+ :'dc_backdrop' => :'Object',
122
+ :'dc_backstage' => :'Object',
123
+ :'mosaics' => :'Object',
124
+ :'max_set_line' => :'Object',
125
+ :'eg_robot' => :'Object',
126
+ :'drone' => :'Object',
127
+ :'minor_penalties' => :'Object',
128
+ :'major_penalties' => :'Object',
129
+ :'auto_navigating_points' => :'Object',
130
+ :'auto_randomization_points' => :'Object',
131
+ :'auto_backstage_points' => :'Object',
132
+ :'auto_backdrop_points' => :'Object',
133
+ :'dc_backdrop_points' => :'Object',
134
+ :'dc_backstage_points' => :'Object',
135
+ :'mosaic_points' => :'Object',
136
+ :'set_bonus_points' => :'Object',
137
+ :'eg_location_points' => :'Object',
138
+ :'eg_drone_points' => :'Object',
139
+ :'auto_points' => :'Object',
140
+ :'dc_points' => :'Object',
141
+ :'endgame_points' => :'Object',
142
+ :'penalty_points_committed' => :'Object',
143
+ :'pre_penalty_total' => :'Object',
144
+ :'total_points' => :'Object'
145
+ }
146
+ end
147
+
148
+ # List of attributes with nullable: true
149
+ def self.openapi_nullable
150
+ Set.new([
151
+ ])
152
+ end
153
+
154
+ # Initializes the object
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ def initialize(attributes = {})
157
+ if (!attributes.is_a?(Hash))
158
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FtcEventsClient::ScoreDetailSinglePlayer2023` initialize method"
159
+ end
160
+
161
+ # check to see if the attribute exists and convert string to symbol for hash key
162
+ attributes = attributes.each_with_object({}) { |(k, v), h|
163
+ if (!self.class.attribute_map.key?(k.to_sym))
164
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FtcEventsClient::ScoreDetailSinglePlayer2023`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
165
+ end
166
+ h[k.to_sym] = v
167
+ }
168
+
169
+ if attributes.key?(:'init_team_prop')
170
+ self.init_team_prop = attributes[:'init_team_prop']
171
+ end
172
+
173
+ if attributes.key?(:'robot_auto')
174
+ self.robot_auto = attributes[:'robot_auto']
175
+ end
176
+
177
+ if attributes.key?(:'spike_mark_pixel')
178
+ self.spike_mark_pixel = attributes[:'spike_mark_pixel']
179
+ end
180
+
181
+ if attributes.key?(:'target_backdrop_pixel')
182
+ self.target_backdrop_pixel = attributes[:'target_backdrop_pixel']
183
+ end
184
+
185
+ if attributes.key?(:'auto_backdrop')
186
+ self.auto_backdrop = attributes[:'auto_backdrop']
187
+ end
188
+
189
+ if attributes.key?(:'auto_backstage')
190
+ self.auto_backstage = attributes[:'auto_backstage']
191
+ end
192
+
193
+ if attributes.key?(:'dc_backdrop')
194
+ self.dc_backdrop = attributes[:'dc_backdrop']
195
+ end
196
+
197
+ if attributes.key?(:'dc_backstage')
198
+ self.dc_backstage = attributes[:'dc_backstage']
199
+ end
200
+
201
+ if attributes.key?(:'mosaics')
202
+ self.mosaics = attributes[:'mosaics']
203
+ end
204
+
205
+ if attributes.key?(:'max_set_line')
206
+ self.max_set_line = attributes[:'max_set_line']
207
+ end
208
+
209
+ if attributes.key?(:'eg_robot')
210
+ self.eg_robot = attributes[:'eg_robot']
211
+ end
212
+
213
+ if attributes.key?(:'drone')
214
+ self.drone = attributes[:'drone']
215
+ end
216
+
217
+ if attributes.key?(:'minor_penalties')
218
+ self.minor_penalties = attributes[:'minor_penalties']
219
+ end
220
+
221
+ if attributes.key?(:'major_penalties')
222
+ self.major_penalties = attributes[:'major_penalties']
223
+ end
224
+
225
+ if attributes.key?(:'auto_navigating_points')
226
+ self.auto_navigating_points = attributes[:'auto_navigating_points']
227
+ end
228
+
229
+ if attributes.key?(:'auto_randomization_points')
230
+ self.auto_randomization_points = attributes[:'auto_randomization_points']
231
+ end
232
+
233
+ if attributes.key?(:'auto_backstage_points')
234
+ self.auto_backstage_points = attributes[:'auto_backstage_points']
235
+ end
236
+
237
+ if attributes.key?(:'auto_backdrop_points')
238
+ self.auto_backdrop_points = attributes[:'auto_backdrop_points']
239
+ end
240
+
241
+ if attributes.key?(:'dc_backdrop_points')
242
+ self.dc_backdrop_points = attributes[:'dc_backdrop_points']
243
+ end
244
+
245
+ if attributes.key?(:'dc_backstage_points')
246
+ self.dc_backstage_points = attributes[:'dc_backstage_points']
247
+ end
248
+
249
+ if attributes.key?(:'mosaic_points')
250
+ self.mosaic_points = attributes[:'mosaic_points']
251
+ end
252
+
253
+ if attributes.key?(:'set_bonus_points')
254
+ self.set_bonus_points = attributes[:'set_bonus_points']
255
+ end
256
+
257
+ if attributes.key?(:'eg_location_points')
258
+ self.eg_location_points = attributes[:'eg_location_points']
259
+ end
260
+
261
+ if attributes.key?(:'eg_drone_points')
262
+ self.eg_drone_points = attributes[:'eg_drone_points']
263
+ end
264
+
265
+ if attributes.key?(:'auto_points')
266
+ self.auto_points = attributes[:'auto_points']
267
+ end
268
+
269
+ if attributes.key?(:'dc_points')
270
+ self.dc_points = attributes[:'dc_points']
271
+ end
272
+
273
+ if attributes.key?(:'endgame_points')
274
+ self.endgame_points = attributes[:'endgame_points']
275
+ end
276
+
277
+ if attributes.key?(:'penalty_points_committed')
278
+ self.penalty_points_committed = attributes[:'penalty_points_committed']
279
+ end
280
+
281
+ if attributes.key?(:'pre_penalty_total')
282
+ self.pre_penalty_total = attributes[:'pre_penalty_total']
283
+ end
284
+
285
+ if attributes.key?(:'total_points')
286
+ self.total_points = attributes[:'total_points']
287
+ end
288
+ end
289
+
290
+ # Show invalid properties with the reasons. Usually used together with valid?
291
+ # @return Array for valid properties with the reasons
292
+ def list_invalid_properties
293
+ invalid_properties = Array.new
294
+ invalid_properties
295
+ end
296
+
297
+ # Check to see if the all the properties in the model are valid
298
+ # @return true if the model is valid
299
+ def valid?
300
+ true
301
+ end
302
+
303
+ # Checks equality by comparing each attribute.
304
+ # @param [Object] Object to be compared
305
+ def ==(o)
306
+ return true if self.equal?(o)
307
+ self.class == o.class &&
308
+ init_team_prop == o.init_team_prop &&
309
+ robot_auto == o.robot_auto &&
310
+ spike_mark_pixel == o.spike_mark_pixel &&
311
+ target_backdrop_pixel == o.target_backdrop_pixel &&
312
+ auto_backdrop == o.auto_backdrop &&
313
+ auto_backstage == o.auto_backstage &&
314
+ dc_backdrop == o.dc_backdrop &&
315
+ dc_backstage == o.dc_backstage &&
316
+ mosaics == o.mosaics &&
317
+ max_set_line == o.max_set_line &&
318
+ eg_robot == o.eg_robot &&
319
+ drone == o.drone &&
320
+ minor_penalties == o.minor_penalties &&
321
+ major_penalties == o.major_penalties &&
322
+ auto_navigating_points == o.auto_navigating_points &&
323
+ auto_randomization_points == o.auto_randomization_points &&
324
+ auto_backstage_points == o.auto_backstage_points &&
325
+ auto_backdrop_points == o.auto_backdrop_points &&
326
+ dc_backdrop_points == o.dc_backdrop_points &&
327
+ dc_backstage_points == o.dc_backstage_points &&
328
+ mosaic_points == o.mosaic_points &&
329
+ set_bonus_points == o.set_bonus_points &&
330
+ eg_location_points == o.eg_location_points &&
331
+ eg_drone_points == o.eg_drone_points &&
332
+ auto_points == o.auto_points &&
333
+ dc_points == o.dc_points &&
334
+ endgame_points == o.endgame_points &&
335
+ penalty_points_committed == o.penalty_points_committed &&
336
+ pre_penalty_total == o.pre_penalty_total &&
337
+ total_points == o.total_points
338
+ end
339
+
340
+ # @see the `==` method
341
+ # @param [Object] Object to be compared
342
+ def eql?(o)
343
+ self == o
344
+ end
345
+
346
+ # Calculates hash code according to all attributes.
347
+ # @return [Integer] Hash code
348
+ def hash
349
+ [init_team_prop, robot_auto, spike_mark_pixel, target_backdrop_pixel, auto_backdrop, auto_backstage, dc_backdrop, dc_backstage, mosaics, max_set_line, eg_robot, drone, minor_penalties, major_penalties, auto_navigating_points, auto_randomization_points, auto_backstage_points, auto_backdrop_points, dc_backdrop_points, dc_backstage_points, mosaic_points, set_bonus_points, eg_location_points, eg_drone_points, auto_points, dc_points, endgame_points, penalty_points_committed, pre_penalty_total, total_points].hash
350
+ end
351
+
352
+ # Builds the object from hash
353
+ # @param [Hash] attributes Model attributes in the form of hash
354
+ # @return [Object] Returns the model itself
355
+ def self.build_from_hash(attributes)
356
+ new.build_from_hash(attributes)
357
+ end
358
+
359
+ # Builds the object from hash
360
+ # @param [Hash] attributes Model attributes in the form of hash
361
+ # @return [Object] Returns the model itself
362
+ def build_from_hash(attributes)
363
+ return nil unless attributes.is_a?(Hash)
364
+ self.class.openapi_types.each_pair do |key, type|
365
+ if type =~ /\AArray<(.*)>/i
366
+ # check to ensure the input is an array given that the attribute
367
+ # is documented as an array but the input is not
368
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
369
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
370
+ end
371
+ elsif !attributes[self.class.attribute_map[key]].nil?
372
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
373
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
374
+ self.send("#{key}=", nil)
375
+ end
376
+ end
377
+
378
+ self
379
+ end
380
+
381
+ # Deserializes the data based on type
382
+ # @param string type Data type
383
+ # @param string value Value to be deserialized
384
+ # @return [Object] Deserialized data
385
+ def _deserialize(type, value)
386
+ case type.to_sym
387
+ when :DateTime
388
+ DateTime.parse(value)
389
+ when :Date
390
+ Date.parse(value)
391
+ when :String
392
+ value.to_s
393
+ when :Integer
394
+ value.to_i
395
+ when :Float
396
+ value.to_f
397
+ when :Boolean
398
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
399
+ true
400
+ else
401
+ false
402
+ end
403
+ when :Object
404
+ # generic object (usually a Hash), return directly
405
+ value
406
+ when /\AArray<(?<inner_type>.+)>\z/
407
+ inner_type = Regexp.last_match[:inner_type]
408
+ value.map { |v| _deserialize(inner_type, v) }
409
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
410
+ k_type = Regexp.last_match[:k_type]
411
+ v_type = Regexp.last_match[:v_type]
412
+ {}.tap do |hash|
413
+ value.each do |k, v|
414
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
415
+ end
416
+ end
417
+ else # model
418
+ FtcEventsClient.const_get(type).build_from_hash(value)
419
+ end
420
+ end
421
+
422
+ # Returns the string representation of the object
423
+ # @return [String] String presentation of the object
424
+ def to_s
425
+ to_hash.to_s
426
+ end
427
+
428
+ # to_body is an alias to to_hash (backward compatibility)
429
+ # @return [Hash] Returns the object in the form of hash
430
+ def to_body
431
+ to_hash
432
+ end
433
+
434
+ # Returns the object in the form of hash
435
+ # @return [Hash] Returns the object in the form of hash
436
+ def to_hash
437
+ hash = {}
438
+ self.class.attribute_map.each_pair do |attr, param|
439
+ value = self.send(attr)
440
+ if value.nil?
441
+ is_nullable = self.class.openapi_nullable.include?(attr)
442
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
443
+ end
444
+
445
+ hash[param] = _to_hash(value)
446
+ end
447
+ hash
448
+ end
449
+
450
+ # Outputs non-array value in the form of hash
451
+ # For object, use to_hash. Otherwise, just return the value
452
+ # @param [Object] value Any valid value
453
+ # @return [Hash] Returns the value in the form of hash
454
+ def _to_hash(value)
455
+ if value.is_a?(Array)
456
+ value.compact.map { |v| _to_hash(v) }
457
+ elsif value.is_a?(Hash)
458
+ {}.tap do |hash|
459
+ value.each { |k, v| hash[k] = _to_hash(v) }
460
+ end
461
+ elsif value.respond_to? :to_hash
462
+ value.to_hash
463
+ else
464
+ value
465
+ end
466
+ end end
467
+ end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.29
9
+ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.29
9
+ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.29
9
+ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,13 +6,15 @@
6
6
  OpenAPI spec version: v2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.29
9
+ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  require 'date'
13
13
 
14
14
  module FtcEventsClient
15
15
  class SeasonEventModelVersion2
16
+ attr_accessor :event_id
17
+
16
18
  attr_accessor :code
17
19
 
18
20
  attr_accessor :division_code
@@ -49,6 +51,10 @@ module FtcEventsClient
49
51
 
50
52
  attr_accessor :website
51
53
 
54
+ attr_accessor :live_stream_url
55
+
56
+ attr_accessor :coordinates
57
+
52
58
  attr_accessor :webcasts
53
59
 
54
60
  attr_accessor :timezone
@@ -60,6 +66,7 @@ module FtcEventsClient
60
66
  # Attribute mapping from ruby-style variable name to JSON key.
61
67
  def self.attribute_map
62
68
  {
69
+ :'event_id' => :'eventId',
63
70
  :'code' => :'code',
64
71
  :'division_code' => :'divisionCode',
65
72
  :'name' => :'name',
@@ -78,6 +85,8 @@ module FtcEventsClient
78
85
  :'stateprov' => :'stateprov',
79
86
  :'country' => :'country',
80
87
  :'website' => :'website',
88
+ :'live_stream_url' => :'liveStreamUrl',
89
+ :'coordinates' => :'coordinates',
81
90
  :'webcasts' => :'webcasts',
82
91
  :'timezone' => :'timezone',
83
92
  :'date_start' => :'dateStart',
@@ -88,6 +97,7 @@ module FtcEventsClient
88
97
  # Attribute type mapping.
89
98
  def self.openapi_types
90
99
  {
100
+ :'event_id' => :'Object',
91
101
  :'code' => :'Object',
92
102
  :'division_code' => :'Object',
93
103
  :'name' => :'Object',
@@ -106,6 +116,8 @@ module FtcEventsClient
106
116
  :'stateprov' => :'Object',
107
117
  :'country' => :'Object',
108
118
  :'website' => :'Object',
119
+ :'live_stream_url' => :'Object',
120
+ :'coordinates' => :'Object',
109
121
  :'webcasts' => :'Object',
110
122
  :'timezone' => :'Object',
111
123
  :'date_start' => :'Object',
@@ -130,6 +142,7 @@ module FtcEventsClient
130
142
  :'stateprov',
131
143
  :'country',
132
144
  :'website',
145
+ :'live_stream_url',
133
146
  :'webcasts',
134
147
  :'timezone',
135
148
  ])
@@ -150,6 +163,10 @@ module FtcEventsClient
150
163
  h[k.to_sym] = v
151
164
  }
152
165
 
166
+ if attributes.key?(:'event_id')
167
+ self.event_id = attributes[:'event_id']
168
+ end
169
+
153
170
  if attributes.key?(:'code')
154
171
  self.code = attributes[:'code']
155
172
  end
@@ -222,6 +239,14 @@ module FtcEventsClient
222
239
  self.website = attributes[:'website']
223
240
  end
224
241
 
242
+ if attributes.key?(:'live_stream_url')
243
+ self.live_stream_url = attributes[:'live_stream_url']
244
+ end
245
+
246
+ if attributes.key?(:'coordinates')
247
+ self.coordinates = attributes[:'coordinates']
248
+ end
249
+
225
250
  if attributes.key?(:'webcasts')
226
251
  if (value = attributes[:'webcasts']).is_a?(Array)
227
252
  self.webcasts = value
@@ -259,6 +284,7 @@ module FtcEventsClient
259
284
  def ==(o)
260
285
  return true if self.equal?(o)
261
286
  self.class == o.class &&
287
+ event_id == o.event_id &&
262
288
  code == o.code &&
263
289
  division_code == o.division_code &&
264
290
  name == o.name &&
@@ -277,6 +303,8 @@ module FtcEventsClient
277
303
  stateprov == o.stateprov &&
278
304
  country == o.country &&
279
305
  website == o.website &&
306
+ live_stream_url == o.live_stream_url &&
307
+ coordinates == o.coordinates &&
280
308
  webcasts == o.webcasts &&
281
309
  timezone == o.timezone &&
282
310
  date_start == o.date_start &&
@@ -292,7 +320,7 @@ module FtcEventsClient
292
320
  # Calculates hash code according to all attributes.
293
321
  # @return [Integer] Hash code
294
322
  def hash
295
- [code, division_code, name, remote, hybrid, field_count, published, type, type_name, region_code, league_code, district_code, venue, address, city, stateprov, country, website, webcasts, timezone, date_start, date_end].hash
323
+ [event_id, code, division_code, name, remote, hybrid, field_count, published, type, type_name, region_code, league_code, district_code, venue, address, city, stateprov, country, website, live_stream_url, coordinates, webcasts, timezone, date_start, date_end].hash
296
324
  end
297
325
 
298
326
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.29
9
+ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  require 'date'