ftc_api_v3_client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/config.json +1 -1
- data/ftc_api_v3_client-0.1.1.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +3 -103
- data/lib/ftc_api_v3_client/api/leagues_api.rb +0 -56
- data/lib/ftc_api_v3_client/api/regions_api.rb +0 -28
- data/lib/ftc_api_v3_client/api/seasons_api.rb +0 -4
- data/lib/ftc_api_v3_client/api/teams_api.rb +0 -28
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +16 -1
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +31 -2
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +2 -1
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +240 -16
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +129 -17
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +93 -23
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +180 -12
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +34 -19
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +32 -122
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +3 -15
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +185 -59
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +285 -19
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +175 -35
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +240 -16
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +156 -44
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +195 -13
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +60 -4
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +66 -5
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +17 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +90 -6
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +33 -19
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +107 -7
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +121 -8
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +90 -6
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +11 -39
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +10 -24
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +15 -120
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +4 -31
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +165 -11
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +17 -54
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +15 -54
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/version.rb +1 -1
- data/update.sh +1 -1
- metadata +2 -1
|
@@ -110,11 +110,12 @@ module FtcApiV3Client
|
|
|
110
110
|
# List of attributes with nullable: true
|
|
111
111
|
def self.openapi_nullable
|
|
112
112
|
Set.new([
|
|
113
|
-
:'
|
|
114
|
-
:'
|
|
115
|
-
:'
|
|
116
|
-
:'
|
|
117
|
-
:'
|
|
113
|
+
:'type',
|
|
114
|
+
:'label',
|
|
115
|
+
:'label_orientation',
|
|
116
|
+
:'address',
|
|
117
|
+
:'address_group',
|
|
118
|
+
:'color'
|
|
118
119
|
])
|
|
119
120
|
end
|
|
120
121
|
|
|
@@ -196,6 +197,22 @@ module FtcApiV3Client
|
|
|
196
197
|
def list_invalid_properties
|
|
197
198
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
198
199
|
invalid_properties = Array.new
|
|
200
|
+
if @x.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if @y.nil?
|
|
205
|
+
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if @width.nil?
|
|
209
|
+
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if @height.nil?
|
|
213
|
+
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
|
214
|
+
end
|
|
215
|
+
|
|
199
216
|
invalid_properties
|
|
200
217
|
end
|
|
201
218
|
|
|
@@ -203,9 +220,53 @@ module FtcApiV3Client
|
|
|
203
220
|
# @return true if the model is valid
|
|
204
221
|
def valid?
|
|
205
222
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
223
|
+
return false if @x.nil?
|
|
224
|
+
return false if @y.nil?
|
|
225
|
+
return false if @width.nil?
|
|
226
|
+
return false if @height.nil?
|
|
206
227
|
true
|
|
207
228
|
end
|
|
208
229
|
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] x Value to be assigned
|
|
232
|
+
def x=(x)
|
|
233
|
+
if x.nil?
|
|
234
|
+
fail ArgumentError, 'x cannot be nil'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@x = x
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] y Value to be assigned
|
|
242
|
+
def y=(y)
|
|
243
|
+
if y.nil?
|
|
244
|
+
fail ArgumentError, 'y cannot be nil'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@y = y
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] width Value to be assigned
|
|
252
|
+
def width=(width)
|
|
253
|
+
if width.nil?
|
|
254
|
+
fail ArgumentError, 'width cannot be nil'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@width = width
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Custom attribute writer method with validation
|
|
261
|
+
# @param [Object] height Value to be assigned
|
|
262
|
+
def height=(height)
|
|
263
|
+
if height.nil?
|
|
264
|
+
fail ArgumentError, 'height cannot be nil'
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
@height = height
|
|
268
|
+
end
|
|
269
|
+
|
|
209
270
|
# Checks equality by comparing each attribute.
|
|
210
271
|
# @param [Object] Object to be compared
|
|
211
272
|
def ==(o)
|
|
@@ -58,7 +58,8 @@ module FtcApiV3Client
|
|
|
58
58
|
# List of attributes with nullable: true
|
|
59
59
|
def self.openapi_nullable
|
|
60
60
|
Set.new([
|
|
61
|
-
:'
|
|
61
|
+
:'name',
|
|
62
|
+
:'abbrev'
|
|
62
63
|
])
|
|
63
64
|
end
|
|
64
65
|
|
|
@@ -106,6 +107,10 @@ module FtcApiV3Client
|
|
|
106
107
|
def list_invalid_properties
|
|
107
108
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
109
|
invalid_properties = Array.new
|
|
110
|
+
if @seed.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "seed", seed cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
109
114
|
if @teams.nil?
|
|
110
115
|
invalid_properties.push('invalid value for "teams", teams cannot be nil.')
|
|
111
116
|
end
|
|
@@ -117,10 +122,21 @@ module FtcApiV3Client
|
|
|
117
122
|
# @return true if the model is valid
|
|
118
123
|
def valid?
|
|
119
124
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
125
|
+
return false if @seed.nil?
|
|
120
126
|
return false if @teams.nil?
|
|
121
127
|
true
|
|
122
128
|
end
|
|
123
129
|
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] seed Value to be assigned
|
|
132
|
+
def seed=(seed)
|
|
133
|
+
if seed.nil?
|
|
134
|
+
fail ArgumentError, 'seed cannot be nil'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@seed = seed
|
|
138
|
+
end
|
|
139
|
+
|
|
124
140
|
# Custom attribute writer method with validation
|
|
125
141
|
# @param [Object] teams Value to be assigned
|
|
126
142
|
def teams=(teams)
|
|
@@ -48,7 +48,6 @@ module FtcApiV3Client
|
|
|
48
48
|
# List of attributes with nullable: true
|
|
49
49
|
def self.openapi_nullable
|
|
50
50
|
Set.new([
|
|
51
|
-
:'seed'
|
|
52
51
|
])
|
|
53
52
|
end
|
|
54
53
|
|
|
@@ -92,6 +91,10 @@ module FtcApiV3Client
|
|
|
92
91
|
invalid_properties.push('invalid value for "teams", teams cannot be nil.')
|
|
93
92
|
end
|
|
94
93
|
|
|
94
|
+
if @seed.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "seed", seed cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
95
98
|
invalid_properties
|
|
96
99
|
end
|
|
97
100
|
|
|
@@ -100,6 +103,7 @@ module FtcApiV3Client
|
|
|
100
103
|
def valid?
|
|
101
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
105
|
return false if @teams.nil?
|
|
106
|
+
return false if @seed.nil?
|
|
103
107
|
true
|
|
104
108
|
end
|
|
105
109
|
|
|
@@ -113,6 +117,16 @@ module FtcApiV3Client
|
|
|
113
117
|
@teams = teams
|
|
114
118
|
end
|
|
115
119
|
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] seed Value to be assigned
|
|
122
|
+
def seed=(seed)
|
|
123
|
+
if seed.nil?
|
|
124
|
+
fail ArgumentError, 'seed cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@seed = seed
|
|
128
|
+
end
|
|
129
|
+
|
|
116
130
|
# Checks equality by comparing each attribute.
|
|
117
131
|
# @param [Object] Object to be compared
|
|
118
132
|
def ==(o)
|
|
@@ -72,12 +72,6 @@ module FtcApiV3Client
|
|
|
72
72
|
# List of attributes with nullable: true
|
|
73
73
|
def self.openapi_nullable
|
|
74
74
|
Set.new([
|
|
75
|
-
:'rank',
|
|
76
|
-
:'wins',
|
|
77
|
-
:'losses',
|
|
78
|
-
:'ties',
|
|
79
|
-
:'matches_counted',
|
|
80
|
-
:'matches_played'
|
|
81
75
|
])
|
|
82
76
|
end
|
|
83
77
|
|
|
@@ -153,6 +147,10 @@ module FtcApiV3Client
|
|
|
153
147
|
def list_invalid_properties
|
|
154
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
155
149
|
invalid_properties = Array.new
|
|
150
|
+
if @rank.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "rank", rank cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
156
154
|
if @alliance.nil?
|
|
157
155
|
invalid_properties.push('invalid value for "alliance", alliance cannot be nil.')
|
|
158
156
|
end
|
|
@@ -161,6 +159,26 @@ module FtcApiV3Client
|
|
|
161
159
|
invalid_properties.push('invalid value for "sort_orders", sort_orders cannot be nil.')
|
|
162
160
|
end
|
|
163
161
|
|
|
162
|
+
if @wins.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "wins", wins cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @losses.nil?
|
|
167
|
+
invalid_properties.push('invalid value for "losses", losses cannot be nil.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if @ties.nil?
|
|
171
|
+
invalid_properties.push('invalid value for "ties", ties cannot be nil.')
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if @matches_counted.nil?
|
|
175
|
+
invalid_properties.push('invalid value for "matches_counted", matches_counted cannot be nil.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @matches_played.nil?
|
|
179
|
+
invalid_properties.push('invalid value for "matches_played", matches_played cannot be nil.')
|
|
180
|
+
end
|
|
181
|
+
|
|
164
182
|
invalid_properties
|
|
165
183
|
end
|
|
166
184
|
|
|
@@ -168,11 +186,27 @@ module FtcApiV3Client
|
|
|
168
186
|
# @return true if the model is valid
|
|
169
187
|
def valid?
|
|
170
188
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
189
|
+
return false if @rank.nil?
|
|
171
190
|
return false if @alliance.nil?
|
|
172
191
|
return false if @sort_orders.nil?
|
|
192
|
+
return false if @wins.nil?
|
|
193
|
+
return false if @losses.nil?
|
|
194
|
+
return false if @ties.nil?
|
|
195
|
+
return false if @matches_counted.nil?
|
|
196
|
+
return false if @matches_played.nil?
|
|
173
197
|
true
|
|
174
198
|
end
|
|
175
199
|
|
|
200
|
+
# Custom attribute writer method with validation
|
|
201
|
+
# @param [Object] rank Value to be assigned
|
|
202
|
+
def rank=(rank)
|
|
203
|
+
if rank.nil?
|
|
204
|
+
fail ArgumentError, 'rank cannot be nil'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@rank = rank
|
|
208
|
+
end
|
|
209
|
+
|
|
176
210
|
# Custom attribute writer method with validation
|
|
177
211
|
# @param [Object] alliance Value to be assigned
|
|
178
212
|
def alliance=(alliance)
|
|
@@ -193,6 +227,56 @@ module FtcApiV3Client
|
|
|
193
227
|
@sort_orders = sort_orders
|
|
194
228
|
end
|
|
195
229
|
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] wins Value to be assigned
|
|
232
|
+
def wins=(wins)
|
|
233
|
+
if wins.nil?
|
|
234
|
+
fail ArgumentError, 'wins cannot be nil'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@wins = wins
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] losses Value to be assigned
|
|
242
|
+
def losses=(losses)
|
|
243
|
+
if losses.nil?
|
|
244
|
+
fail ArgumentError, 'losses cannot be nil'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@losses = losses
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] ties Value to be assigned
|
|
252
|
+
def ties=(ties)
|
|
253
|
+
if ties.nil?
|
|
254
|
+
fail ArgumentError, 'ties cannot be nil'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@ties = ties
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Custom attribute writer method with validation
|
|
261
|
+
# @param [Object] matches_counted Value to be assigned
|
|
262
|
+
def matches_counted=(matches_counted)
|
|
263
|
+
if matches_counted.nil?
|
|
264
|
+
fail ArgumentError, 'matches_counted cannot be nil'
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
@matches_counted = matches_counted
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Custom attribute writer method with validation
|
|
271
|
+
# @param [Object] matches_played Value to be assigned
|
|
272
|
+
def matches_played=(matches_played)
|
|
273
|
+
if matches_played.nil?
|
|
274
|
+
fail ArgumentError, 'matches_played cannot be nil'
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
@matches_played = matches_played
|
|
278
|
+
end
|
|
279
|
+
|
|
196
280
|
# Checks equality by comparing each attribute.
|
|
197
281
|
# @param [Object] Object to be compared
|
|
198
282
|
def ==(o)
|
|
@@ -73,9 +73,8 @@ module FtcApiV3Client
|
|
|
73
73
|
# List of attributes with nullable: true
|
|
74
74
|
def self.openapi_nullable
|
|
75
75
|
Set.new([
|
|
76
|
-
:'
|
|
77
|
-
:'
|
|
78
|
-
:'round',
|
|
76
|
+
:'name',
|
|
77
|
+
:'short_name',
|
|
79
78
|
])
|
|
80
79
|
end
|
|
81
80
|
|
|
@@ -149,12 +148,16 @@ module FtcApiV3Client
|
|
|
149
148
|
def list_invalid_properties
|
|
150
149
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
151
150
|
invalid_properties = Array.new
|
|
152
|
-
if @
|
|
153
|
-
invalid_properties.push('invalid value for "
|
|
151
|
+
if @series_id.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "series_id", series_id cannot be nil.')
|
|
154
153
|
end
|
|
155
154
|
|
|
156
|
-
if @
|
|
157
|
-
invalid_properties.push('invalid value for "
|
|
155
|
+
if @matches_to_win.nil?
|
|
156
|
+
invalid_properties.push('invalid value for "matches_to_win", matches_to_win cannot be nil.')
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if @round.nil?
|
|
160
|
+
invalid_properties.push('invalid value for "round", round cannot be nil.')
|
|
158
161
|
end
|
|
159
162
|
|
|
160
163
|
if @red.nil?
|
|
@@ -176,8 +179,9 @@ module FtcApiV3Client
|
|
|
176
179
|
# @return true if the model is valid
|
|
177
180
|
def valid?
|
|
178
181
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
179
|
-
return false if @
|
|
180
|
-
return false if @
|
|
182
|
+
return false if @series_id.nil?
|
|
183
|
+
return false if @matches_to_win.nil?
|
|
184
|
+
return false if @round.nil?
|
|
181
185
|
return false if @red.nil?
|
|
182
186
|
return false if @blue.nil?
|
|
183
187
|
return false if @finals.nil?
|
|
@@ -185,23 +189,33 @@ module FtcApiV3Client
|
|
|
185
189
|
end
|
|
186
190
|
|
|
187
191
|
# Custom attribute writer method with validation
|
|
188
|
-
# @param [Object]
|
|
189
|
-
def
|
|
190
|
-
if
|
|
191
|
-
fail ArgumentError, '
|
|
192
|
+
# @param [Object] series_id Value to be assigned
|
|
193
|
+
def series_id=(series_id)
|
|
194
|
+
if series_id.nil?
|
|
195
|
+
fail ArgumentError, 'series_id cannot be nil'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
@series_id = series_id
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Custom attribute writer method with validation
|
|
202
|
+
# @param [Object] matches_to_win Value to be assigned
|
|
203
|
+
def matches_to_win=(matches_to_win)
|
|
204
|
+
if matches_to_win.nil?
|
|
205
|
+
fail ArgumentError, 'matches_to_win cannot be nil'
|
|
192
206
|
end
|
|
193
207
|
|
|
194
|
-
@
|
|
208
|
+
@matches_to_win = matches_to_win
|
|
195
209
|
end
|
|
196
210
|
|
|
197
211
|
# Custom attribute writer method with validation
|
|
198
|
-
# @param [Object]
|
|
199
|
-
def
|
|
200
|
-
if
|
|
201
|
-
fail ArgumentError, '
|
|
212
|
+
# @param [Object] round Value to be assigned
|
|
213
|
+
def round=(round)
|
|
214
|
+
if round.nil?
|
|
215
|
+
fail ArgumentError, 'round cannot be nil'
|
|
202
216
|
end
|
|
203
217
|
|
|
204
|
-
@
|
|
218
|
+
@round = round
|
|
205
219
|
end
|
|
206
220
|
|
|
207
221
|
# Custom attribute writer method with validation
|
|
@@ -75,7 +75,7 @@ module FtcApiV3Client
|
|
|
75
75
|
# List of attributes with nullable: true
|
|
76
76
|
def self.openapi_nullable
|
|
77
77
|
Set.new([
|
|
78
|
-
:'
|
|
78
|
+
:'type',
|
|
79
79
|
])
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -121,8 +121,8 @@ module FtcApiV3Client
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
-
if @
|
|
125
|
-
invalid_properties.push('invalid value for "
|
|
124
|
+
if @alliance_count.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "alliance_count", alliance_count cannot be nil.')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
if @series.nil?
|
|
@@ -136,19 +136,19 @@ module FtcApiV3Client
|
|
|
136
136
|
# @return true if the model is valid
|
|
137
137
|
def valid?
|
|
138
138
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
139
|
-
return false if @
|
|
139
|
+
return false if @alliance_count.nil?
|
|
140
140
|
return false if @series.nil?
|
|
141
141
|
true
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object]
|
|
146
|
-
def
|
|
147
|
-
if
|
|
148
|
-
fail ArgumentError, '
|
|
145
|
+
# @param [Object] alliance_count Value to be assigned
|
|
146
|
+
def alliance_count=(alliance_count)
|
|
147
|
+
if alliance_count.nil?
|
|
148
|
+
fail ArgumentError, 'alliance_count cannot be nil'
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
@
|
|
151
|
+
@alliance_count = alliance_count
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
# Custom attribute writer method with validation
|
|
@@ -142,13 +142,8 @@ module FtcApiV3Client
|
|
|
142
142
|
# List of attributes with nullable: true
|
|
143
143
|
def self.openapi_nullable
|
|
144
144
|
Set.new([
|
|
145
|
-
:'
|
|
146
|
-
:'
|
|
147
|
-
:'major_penalties',
|
|
148
|
-
:'beacons',
|
|
149
|
-
:'owned_junctions',
|
|
150
|
-
:'dc_terminal_near',
|
|
151
|
-
:'dc_terminal_far',
|
|
145
|
+
:'robot1_auto',
|
|
146
|
+
:'robot2_auto',
|
|
152
147
|
])
|
|
153
148
|
end
|
|
154
149
|
|
|
@@ -282,6 +277,10 @@ module FtcApiV3Client
|
|
|
282
277
|
def list_invalid_properties
|
|
283
278
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
284
279
|
invalid_properties = Array.new
|
|
280
|
+
if @auto_terminal.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "auto_terminal", auto_terminal cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
285
284
|
if @eg_navigated1.nil?
|
|
286
285
|
invalid_properties.push('invalid value for "eg_navigated1", eg_navigated1 cannot be nil.')
|
|
287
286
|
end
|
|
@@ -290,6 +289,22 @@ module FtcApiV3Client
|
|
|
290
289
|
invalid_properties.push('invalid value for "eg_navigated2", eg_navigated2 cannot be nil.')
|
|
291
290
|
end
|
|
292
291
|
|
|
292
|
+
if @minor_penalties.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "minor_penalties", minor_penalties cannot be nil.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if @major_penalties.nil?
|
|
297
|
+
invalid_properties.push('invalid value for "major_penalties", major_penalties cannot be nil.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if @beacons.nil?
|
|
301
|
+
invalid_properties.push('invalid value for "beacons", beacons cannot be nil.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if @owned_junctions.nil?
|
|
305
|
+
invalid_properties.push('invalid value for "owned_junctions", owned_junctions cannot be nil.')
|
|
306
|
+
end
|
|
307
|
+
|
|
293
308
|
if @circuit.nil?
|
|
294
309
|
invalid_properties.push('invalid value for "circuit", circuit cannot be nil.')
|
|
295
310
|
end
|
|
@@ -310,6 +325,14 @@ module FtcApiV3Client
|
|
|
310
325
|
invalid_properties.push('invalid value for "dc_junctions", dc_junctions cannot be nil.')
|
|
311
326
|
end
|
|
312
327
|
|
|
328
|
+
if @dc_terminal_near.nil?
|
|
329
|
+
invalid_properties.push('invalid value for "dc_terminal_near", dc_terminal_near cannot be nil.')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if @dc_terminal_far.nil?
|
|
333
|
+
invalid_properties.push('invalid value for "dc_terminal_far", dc_terminal_far cannot be nil.')
|
|
334
|
+
end
|
|
335
|
+
|
|
313
336
|
invalid_properties
|
|
314
337
|
end
|
|
315
338
|
|
|
@@ -317,16 +340,33 @@ module FtcApiV3Client
|
|
|
317
340
|
# @return true if the model is valid
|
|
318
341
|
def valid?
|
|
319
342
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
343
|
+
return false if @auto_terminal.nil?
|
|
320
344
|
return false if @eg_navigated1.nil?
|
|
321
345
|
return false if @eg_navigated2.nil?
|
|
346
|
+
return false if @minor_penalties.nil?
|
|
347
|
+
return false if @major_penalties.nil?
|
|
348
|
+
return false if @beacons.nil?
|
|
349
|
+
return false if @owned_junctions.nil?
|
|
322
350
|
return false if @circuit.nil?
|
|
323
351
|
return false if @init_signal_sleeve1.nil?
|
|
324
352
|
return false if @init_signal_sleeve2.nil?
|
|
325
353
|
return false if @auto_junctions.nil?
|
|
326
354
|
return false if @dc_junctions.nil?
|
|
355
|
+
return false if @dc_terminal_near.nil?
|
|
356
|
+
return false if @dc_terminal_far.nil?
|
|
327
357
|
true
|
|
328
358
|
end
|
|
329
359
|
|
|
360
|
+
# Custom attribute writer method with validation
|
|
361
|
+
# @param [Object] auto_terminal Value to be assigned
|
|
362
|
+
def auto_terminal=(auto_terminal)
|
|
363
|
+
if auto_terminal.nil?
|
|
364
|
+
fail ArgumentError, 'auto_terminal cannot be nil'
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
@auto_terminal = auto_terminal
|
|
368
|
+
end
|
|
369
|
+
|
|
330
370
|
# Custom attribute writer method with validation
|
|
331
371
|
# @param [Object] eg_navigated1 Value to be assigned
|
|
332
372
|
def eg_navigated1=(eg_navigated1)
|
|
@@ -347,6 +387,46 @@ module FtcApiV3Client
|
|
|
347
387
|
@eg_navigated2 = eg_navigated2
|
|
348
388
|
end
|
|
349
389
|
|
|
390
|
+
# Custom attribute writer method with validation
|
|
391
|
+
# @param [Object] minor_penalties Value to be assigned
|
|
392
|
+
def minor_penalties=(minor_penalties)
|
|
393
|
+
if minor_penalties.nil?
|
|
394
|
+
fail ArgumentError, 'minor_penalties cannot be nil'
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
@minor_penalties = minor_penalties
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Custom attribute writer method with validation
|
|
401
|
+
# @param [Object] major_penalties Value to be assigned
|
|
402
|
+
def major_penalties=(major_penalties)
|
|
403
|
+
if major_penalties.nil?
|
|
404
|
+
fail ArgumentError, 'major_penalties cannot be nil'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
@major_penalties = major_penalties
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Custom attribute writer method with validation
|
|
411
|
+
# @param [Object] beacons Value to be assigned
|
|
412
|
+
def beacons=(beacons)
|
|
413
|
+
if beacons.nil?
|
|
414
|
+
fail ArgumentError, 'beacons cannot be nil'
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
@beacons = beacons
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Custom attribute writer method with validation
|
|
421
|
+
# @param [Object] owned_junctions Value to be assigned
|
|
422
|
+
def owned_junctions=(owned_junctions)
|
|
423
|
+
if owned_junctions.nil?
|
|
424
|
+
fail ArgumentError, 'owned_junctions cannot be nil'
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
@owned_junctions = owned_junctions
|
|
428
|
+
end
|
|
429
|
+
|
|
350
430
|
# Custom attribute writer method with validation
|
|
351
431
|
# @param [Object] circuit Value to be assigned
|
|
352
432
|
def circuit=(circuit)
|
|
@@ -397,6 +477,26 @@ module FtcApiV3Client
|
|
|
397
477
|
@dc_junctions = dc_junctions
|
|
398
478
|
end
|
|
399
479
|
|
|
480
|
+
# Custom attribute writer method with validation
|
|
481
|
+
# @param [Object] dc_terminal_near Value to be assigned
|
|
482
|
+
def dc_terminal_near=(dc_terminal_near)
|
|
483
|
+
if dc_terminal_near.nil?
|
|
484
|
+
fail ArgumentError, 'dc_terminal_near cannot be nil'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
@dc_terminal_near = dc_terminal_near
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Custom attribute writer method with validation
|
|
491
|
+
# @param [Object] dc_terminal_far Value to be assigned
|
|
492
|
+
def dc_terminal_far=(dc_terminal_far)
|
|
493
|
+
if dc_terminal_far.nil?
|
|
494
|
+
fail ArgumentError, 'dc_terminal_far cannot be nil'
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
@dc_terminal_far = dc_terminal_far
|
|
498
|
+
end
|
|
499
|
+
|
|
400
500
|
# Checks equality by comparing each attribute.
|
|
401
501
|
# @param [Object] Object to be compared
|
|
402
502
|
def ==(o)
|