ftc_api_v3_client 0.1.0 → 0.1.1
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.0.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +0 -4
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +16 -240
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +9 -135
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +7 -105
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +13 -195
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +19 -285
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +16 -240
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +12 -180
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +13 -195
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +4 -60
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +5 -60
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +6 -90
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +7 -105
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +8 -120
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +6 -90
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +1 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +4 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +11 -165
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +15 -225
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +10 -150
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +14 -210
- data/lib/ftc_api_v3_client/version.rb +1 -1
- data/update.sh +1 -1
- metadata +2 -1
|
@@ -72,6 +72,12 @@ 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'
|
|
75
81
|
])
|
|
76
82
|
end
|
|
77
83
|
|
|
@@ -147,10 +153,6 @@ module FtcApiV3Client
|
|
|
147
153
|
def list_invalid_properties
|
|
148
154
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
149
155
|
invalid_properties = Array.new
|
|
150
|
-
if @rank.nil?
|
|
151
|
-
invalid_properties.push('invalid value for "rank", rank cannot be nil.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
156
|
if @team.nil?
|
|
155
157
|
invalid_properties.push('invalid value for "team", team cannot be nil.')
|
|
156
158
|
end
|
|
@@ -159,26 +161,6 @@ module FtcApiV3Client
|
|
|
159
161
|
invalid_properties.push('invalid value for "sort_orders", sort_orders cannot be nil.')
|
|
160
162
|
end
|
|
161
163
|
|
|
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
|
-
|
|
182
164
|
invalid_properties
|
|
183
165
|
end
|
|
184
166
|
|
|
@@ -186,27 +168,11 @@ module FtcApiV3Client
|
|
|
186
168
|
# @return true if the model is valid
|
|
187
169
|
def valid?
|
|
188
170
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
189
|
-
return false if @rank.nil?
|
|
190
171
|
return false if @team.nil?
|
|
191
172
|
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?
|
|
197
173
|
true
|
|
198
174
|
end
|
|
199
175
|
|
|
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
|
-
|
|
210
176
|
# Custom attribute writer method with validation
|
|
211
177
|
# @param [Object] team Value to be assigned
|
|
212
178
|
def team=(team)
|
|
@@ -227,56 +193,6 @@ module FtcApiV3Client
|
|
|
227
193
|
@sort_orders = sort_orders
|
|
228
194
|
end
|
|
229
195
|
|
|
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
|
-
|
|
280
196
|
# Checks equality by comparing each attribute.
|
|
281
197
|
# @param [Object] Object to be compared
|
|
282
198
|
def ==(o)
|
|
@@ -49,6 +49,7 @@ module FtcApiV3Client
|
|
|
49
49
|
# List of attributes with nullable: true
|
|
50
50
|
def self.openapi_nullable
|
|
51
51
|
Set.new([
|
|
52
|
+
:'rank'
|
|
52
53
|
])
|
|
53
54
|
end
|
|
54
55
|
|
|
@@ -90,10 +91,6 @@ module FtcApiV3Client
|
|
|
90
91
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
91
92
|
end
|
|
92
93
|
|
|
93
|
-
if @rank.nil?
|
|
94
|
-
invalid_properties.push('invalid value for "rank", rank cannot be nil.')
|
|
95
|
-
end
|
|
96
|
-
|
|
97
94
|
invalid_properties
|
|
98
95
|
end
|
|
99
96
|
|
|
@@ -102,7 +99,6 @@ module FtcApiV3Client
|
|
|
102
99
|
def valid?
|
|
103
100
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
101
|
return false if @type.nil?
|
|
105
|
-
return false if @rank.nil?
|
|
106
102
|
true
|
|
107
103
|
end
|
|
108
104
|
|
|
@@ -116,16 +112,6 @@ module FtcApiV3Client
|
|
|
116
112
|
@type = type
|
|
117
113
|
end
|
|
118
114
|
|
|
119
|
-
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object] rank Value to be assigned
|
|
121
|
-
def rank=(rank)
|
|
122
|
-
if rank.nil?
|
|
123
|
-
fail ArgumentError, 'rank cannot be nil'
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
@rank = rank
|
|
127
|
-
end
|
|
128
|
-
|
|
129
115
|
# Checks equality by comparing each attribute.
|
|
130
116
|
# @param [Object] Object to be compared
|
|
131
117
|
def ==(o)
|
|
@@ -56,6 +56,7 @@ module FtcApiV3Client
|
|
|
56
56
|
# List of attributes with nullable: true
|
|
57
57
|
def self.openapi_nullable
|
|
58
58
|
Set.new([
|
|
59
|
+
:'cmp_year',
|
|
59
60
|
])
|
|
60
61
|
end
|
|
61
62
|
|
|
@@ -109,10 +110,6 @@ module FtcApiV3Client
|
|
|
109
110
|
invalid_properties.push('invalid value for "year_string", year_string cannot be nil.')
|
|
110
111
|
end
|
|
111
112
|
|
|
112
|
-
if @cmp_year.nil?
|
|
113
|
-
invalid_properties.push('invalid value for "cmp_year", cmp_year cannot be nil.')
|
|
114
|
-
end
|
|
115
|
-
|
|
116
113
|
if @game_name.nil?
|
|
117
114
|
invalid_properties.push('invalid value for "game_name", game_name cannot be nil.')
|
|
118
115
|
end
|
|
@@ -129,7 +126,6 @@ module FtcApiV3Client
|
|
|
129
126
|
def valid?
|
|
130
127
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
128
|
return false if @year_string.nil?
|
|
132
|
-
return false if @cmp_year.nil?
|
|
133
129
|
return false if @game_name.nil?
|
|
134
130
|
return false if @kickoff_time.nil?
|
|
135
131
|
true
|
|
@@ -145,16 +141,6 @@ module FtcApiV3Client
|
|
|
145
141
|
@year_string = year_string
|
|
146
142
|
end
|
|
147
143
|
|
|
148
|
-
# Custom attribute writer method with validation
|
|
149
|
-
# @param [Object] cmp_year Value to be assigned
|
|
150
|
-
def cmp_year=(cmp_year)
|
|
151
|
-
if cmp_year.nil?
|
|
152
|
-
fail ArgumentError, 'cmp_year cannot be nil'
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
@cmp_year = cmp_year
|
|
156
|
-
end
|
|
157
|
-
|
|
158
144
|
# Custom attribute writer method with validation
|
|
159
145
|
# @param [Object] game_name Value to be assigned
|
|
160
146
|
def game_name=(game_name)
|
|
@@ -48,6 +48,7 @@ module FtcApiV3Client
|
|
|
48
48
|
# List of attributes with nullable: true
|
|
49
49
|
def self.openapi_nullable
|
|
50
50
|
Set.new([
|
|
51
|
+
:'current_season_cmp_year'
|
|
51
52
|
])
|
|
52
53
|
end
|
|
53
54
|
|
|
@@ -91,10 +92,6 @@ module FtcApiV3Client
|
|
|
91
92
|
invalid_properties.push('invalid value for "seasons", seasons cannot be nil.')
|
|
92
93
|
end
|
|
93
94
|
|
|
94
|
-
if @current_season_cmp_year.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "current_season_cmp_year", current_season_cmp_year cannot be nil.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
95
|
invalid_properties
|
|
99
96
|
end
|
|
100
97
|
|
|
@@ -103,7 +100,6 @@ module FtcApiV3Client
|
|
|
103
100
|
def valid?
|
|
104
101
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
102
|
return false if @seasons.nil?
|
|
106
|
-
return false if @current_season_cmp_year.nil?
|
|
107
103
|
true
|
|
108
104
|
end
|
|
109
105
|
|
|
@@ -117,16 +113,6 @@ module FtcApiV3Client
|
|
|
117
113
|
@seasons = seasons
|
|
118
114
|
end
|
|
119
115
|
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] current_season_cmp_year Value to be assigned
|
|
122
|
-
def current_season_cmp_year=(current_season_cmp_year)
|
|
123
|
-
if current_season_cmp_year.nil?
|
|
124
|
-
fail ArgumentError, 'current_season_cmp_year cannot be nil'
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@current_season_cmp_year = current_season_cmp_year
|
|
128
|
-
end
|
|
129
|
-
|
|
130
116
|
# Checks equality by comparing each attribute.
|
|
131
117
|
# @param [Object] Object to be compared
|
|
132
118
|
def ==(o)
|
|
@@ -75,6 +75,7 @@ module FtcApiV3Client
|
|
|
75
75
|
# List of attributes with nullable: true
|
|
76
76
|
def self.openapi_nullable
|
|
77
77
|
Set.new([
|
|
78
|
+
:'series_id',
|
|
78
79
|
])
|
|
79
80
|
end
|
|
80
81
|
|
|
@@ -122,10 +123,6 @@ module FtcApiV3Client
|
|
|
122
123
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
123
124
|
end
|
|
124
125
|
|
|
125
|
-
if @series_id.nil?
|
|
126
|
-
invalid_properties.push('invalid value for "series_id", series_id cannot be nil.')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
126
|
if @state.nil?
|
|
130
127
|
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
|
131
128
|
end
|
|
@@ -138,7 +135,6 @@ module FtcApiV3Client
|
|
|
138
135
|
def valid?
|
|
139
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
140
137
|
return false if @type.nil?
|
|
141
|
-
return false if @series_id.nil?
|
|
142
138
|
return false if @state.nil?
|
|
143
139
|
true
|
|
144
140
|
end
|
|
@@ -153,16 +149,6 @@ module FtcApiV3Client
|
|
|
153
149
|
@type = type
|
|
154
150
|
end
|
|
155
151
|
|
|
156
|
-
# Custom attribute writer method with validation
|
|
157
|
-
# @param [Object] series_id Value to be assigned
|
|
158
|
-
def series_id=(series_id)
|
|
159
|
-
if series_id.nil?
|
|
160
|
-
fail ArgumentError, 'series_id cannot be nil'
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
@series_id = series_id
|
|
164
|
-
end
|
|
165
|
-
|
|
166
152
|
# Custom attribute writer method with validation
|
|
167
153
|
# @param [Object] state Value to be assigned
|
|
168
154
|
def state=(state)
|
|
@@ -123,6 +123,10 @@ module FtcApiV3Client
|
|
|
123
123
|
# List of attributes with nullable: true
|
|
124
124
|
def self.openapi_nullable
|
|
125
125
|
Set.new([
|
|
126
|
+
:'field',
|
|
127
|
+
:'random',
|
|
128
|
+
:'series',
|
|
129
|
+
:'number',
|
|
126
130
|
])
|
|
127
131
|
end
|
|
128
132
|
|
|
@@ -228,10 +232,6 @@ module FtcApiV3Client
|
|
|
228
232
|
invalid_properties.push('invalid value for "short_name", short_name cannot be nil.')
|
|
229
233
|
end
|
|
230
234
|
|
|
231
|
-
if @field.nil?
|
|
232
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
233
|
-
end
|
|
234
|
-
|
|
235
235
|
if @tournament_level.nil?
|
|
236
236
|
invalid_properties.push('invalid value for "tournament_level", tournament_level cannot be nil.')
|
|
237
237
|
end
|
|
@@ -240,14 +240,6 @@ module FtcApiV3Client
|
|
|
240
240
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
if @series.nil?
|
|
244
|
-
invalid_properties.push('invalid value for "series", series cannot be nil.')
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
if @number.nil?
|
|
248
|
-
invalid_properties.push('invalid value for "number", number cannot be nil.')
|
|
249
|
-
end
|
|
250
|
-
|
|
251
243
|
if @teams.nil?
|
|
252
244
|
invalid_properties.push('invalid value for "teams", teams cannot be nil.')
|
|
253
245
|
end
|
|
@@ -261,11 +253,8 @@ module FtcApiV3Client
|
|
|
261
253
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
262
254
|
return false if @type.nil?
|
|
263
255
|
return false if @short_name.nil?
|
|
264
|
-
return false if @field.nil?
|
|
265
256
|
return false if @tournament_level.nil?
|
|
266
257
|
return false if @display_name.nil?
|
|
267
|
-
return false if @series.nil?
|
|
268
|
-
return false if @number.nil?
|
|
269
258
|
return false if @teams.nil?
|
|
270
259
|
true
|
|
271
260
|
end
|
|
@@ -290,16 +279,6 @@ module FtcApiV3Client
|
|
|
290
279
|
@short_name = short_name
|
|
291
280
|
end
|
|
292
281
|
|
|
293
|
-
# Custom attribute writer method with validation
|
|
294
|
-
# @param [Object] field Value to be assigned
|
|
295
|
-
def field=(field)
|
|
296
|
-
if field.nil?
|
|
297
|
-
fail ArgumentError, 'field cannot be nil'
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
@field = field
|
|
301
|
-
end
|
|
302
|
-
|
|
303
282
|
# Custom attribute writer method with validation
|
|
304
283
|
# @param [Object] tournament_level Value to be assigned
|
|
305
284
|
def tournament_level=(tournament_level)
|
|
@@ -320,26 +299,6 @@ module FtcApiV3Client
|
|
|
320
299
|
@display_name = display_name
|
|
321
300
|
end
|
|
322
301
|
|
|
323
|
-
# Custom attribute writer method with validation
|
|
324
|
-
# @param [Object] series Value to be assigned
|
|
325
|
-
def series=(series)
|
|
326
|
-
if series.nil?
|
|
327
|
-
fail ArgumentError, 'series cannot be nil'
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
@series = series
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
# Custom attribute writer method with validation
|
|
334
|
-
# @param [Object] number Value to be assigned
|
|
335
|
-
def number=(number)
|
|
336
|
-
if number.nil?
|
|
337
|
-
fail ArgumentError, 'number cannot be nil'
|
|
338
|
-
end
|
|
339
|
-
|
|
340
|
-
@number = number
|
|
341
|
-
end
|
|
342
|
-
|
|
343
302
|
# Custom attribute writer method with validation
|
|
344
303
|
# @param [Object] teams Value to be assigned
|
|
345
304
|
def teams=(teams)
|
|
@@ -127,6 +127,10 @@ module FtcApiV3Client
|
|
|
127
127
|
# List of attributes with nullable: true
|
|
128
128
|
def self.openapi_nullable
|
|
129
129
|
Set.new([
|
|
130
|
+
:'field',
|
|
131
|
+
:'random',
|
|
132
|
+
:'series',
|
|
133
|
+
:'number',
|
|
130
134
|
])
|
|
131
135
|
end
|
|
132
136
|
|
|
@@ -236,10 +240,6 @@ module FtcApiV3Client
|
|
|
236
240
|
invalid_properties.push('invalid value for "short_name", short_name cannot be nil.')
|
|
237
241
|
end
|
|
238
242
|
|
|
239
|
-
if @field.nil?
|
|
240
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
241
|
-
end
|
|
242
|
-
|
|
243
243
|
if @tournament_level.nil?
|
|
244
244
|
invalid_properties.push('invalid value for "tournament_level", tournament_level cannot be nil.')
|
|
245
245
|
end
|
|
@@ -248,14 +248,6 @@ module FtcApiV3Client
|
|
|
248
248
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
-
if @series.nil?
|
|
252
|
-
invalid_properties.push('invalid value for "series", series cannot be nil.')
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
if @number.nil?
|
|
256
|
-
invalid_properties.push('invalid value for "number", number cannot be nil.')
|
|
257
|
-
end
|
|
258
|
-
|
|
259
251
|
if @teams.nil?
|
|
260
252
|
invalid_properties.push('invalid value for "teams", teams cannot be nil.')
|
|
261
253
|
end
|
|
@@ -269,11 +261,8 @@ module FtcApiV3Client
|
|
|
269
261
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
270
262
|
return false if @type.nil?
|
|
271
263
|
return false if @short_name.nil?
|
|
272
|
-
return false if @field.nil?
|
|
273
264
|
return false if @tournament_level.nil?
|
|
274
265
|
return false if @display_name.nil?
|
|
275
|
-
return false if @series.nil?
|
|
276
|
-
return false if @number.nil?
|
|
277
266
|
return false if @teams.nil?
|
|
278
267
|
true
|
|
279
268
|
end
|
|
@@ -298,16 +287,6 @@ module FtcApiV3Client
|
|
|
298
287
|
@short_name = short_name
|
|
299
288
|
end
|
|
300
289
|
|
|
301
|
-
# Custom attribute writer method with validation
|
|
302
|
-
# @param [Object] field Value to be assigned
|
|
303
|
-
def field=(field)
|
|
304
|
-
if field.nil?
|
|
305
|
-
fail ArgumentError, 'field cannot be nil'
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
@field = field
|
|
309
|
-
end
|
|
310
|
-
|
|
311
290
|
# Custom attribute writer method with validation
|
|
312
291
|
# @param [Object] tournament_level Value to be assigned
|
|
313
292
|
def tournament_level=(tournament_level)
|
|
@@ -328,26 +307,6 @@ module FtcApiV3Client
|
|
|
328
307
|
@display_name = display_name
|
|
329
308
|
end
|
|
330
309
|
|
|
331
|
-
# Custom attribute writer method with validation
|
|
332
|
-
# @param [Object] series Value to be assigned
|
|
333
|
-
def series=(series)
|
|
334
|
-
if series.nil?
|
|
335
|
-
fail ArgumentError, 'series cannot be nil'
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
@series = series
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
# Custom attribute writer method with validation
|
|
342
|
-
# @param [Object] number Value to be assigned
|
|
343
|
-
def number=(number)
|
|
344
|
-
if number.nil?
|
|
345
|
-
fail ArgumentError, 'number cannot be nil'
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
@number = number
|
|
349
|
-
end
|
|
350
|
-
|
|
351
310
|
# Custom attribute writer method with validation
|
|
352
311
|
# @param [Object] teams Value to be assigned
|
|
353
312
|
def teams=(teams)
|
|
@@ -44,6 +44,7 @@ module FtcApiV3Client
|
|
|
44
44
|
# List of attributes with nullable: true
|
|
45
45
|
def self.openapi_nullable
|
|
46
46
|
Set.new([
|
|
47
|
+
:'score'
|
|
47
48
|
])
|
|
48
49
|
end
|
|
49
50
|
|
|
@@ -75,10 +76,6 @@ module FtcApiV3Client
|
|
|
75
76
|
def list_invalid_properties
|
|
76
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
78
|
invalid_properties = Array.new
|
|
78
|
-
if @score.nil?
|
|
79
|
-
invalid_properties.push('invalid value for "score", score cannot be nil.')
|
|
80
|
-
end
|
|
81
|
-
|
|
82
79
|
invalid_properties
|
|
83
80
|
end
|
|
84
81
|
|
|
@@ -86,20 +83,9 @@ module FtcApiV3Client
|
|
|
86
83
|
# @return true if the model is valid
|
|
87
84
|
def valid?
|
|
88
85
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @score.nil?
|
|
90
86
|
true
|
|
91
87
|
end
|
|
92
88
|
|
|
93
|
-
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object] score Value to be assigned
|
|
95
|
-
def score=(score)
|
|
96
|
-
if score.nil?
|
|
97
|
-
fail ArgumentError, 'score cannot be nil'
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
@score = score
|
|
101
|
-
end
|
|
102
|
-
|
|
103
89
|
# Checks equality by comparing each attribute.
|
|
104
90
|
# @param [Object] Object to be compared
|
|
105
91
|
def ==(o)
|