ftc_api_v3_client 0.1.0 → 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.0.gem +0 -0
- data/ftc_api_v3_client-0.1.1.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +0 -104
- 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 +1 -0
- 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 +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +1 -0
- 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 -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_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 +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +2 -30
- 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 +3 -30
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +17 -120
- 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 +4 -60
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +2 -30
- 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 +4 -60
- 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_element.rb +6 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +2 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +2 -30
- 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 +2 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +1 -0
- 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_region.rb +2 -30
- 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 +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +2 -30
- 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 -30
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +8 -60
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +8 -60
- 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 +9 -60
- 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 +7 -60
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +2 -30
- 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 +3 -1
|
@@ -127,6 +127,14 @@ module FtcApiV3Client
|
|
|
127
127
|
# List of attributes with nullable: true
|
|
128
128
|
def self.openapi_nullable
|
|
129
129
|
Set.new([
|
|
130
|
+
:'type',
|
|
131
|
+
:'short_name',
|
|
132
|
+
:'tournament_level',
|
|
133
|
+
:'scheduled_start_time',
|
|
134
|
+
:'start_time',
|
|
135
|
+
:'post_time',
|
|
136
|
+
:'display_name',
|
|
137
|
+
:'commit_time',
|
|
130
138
|
])
|
|
131
139
|
end
|
|
132
140
|
|
|
@@ -228,26 +236,10 @@ module FtcApiV3Client
|
|
|
228
236
|
def list_invalid_properties
|
|
229
237
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
230
238
|
invalid_properties = Array.new
|
|
231
|
-
if @type.nil?
|
|
232
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
if @short_name.nil?
|
|
236
|
-
invalid_properties.push('invalid value for "short_name", short_name cannot be nil.')
|
|
237
|
-
end
|
|
238
|
-
|
|
239
239
|
if @field.nil?
|
|
240
240
|
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
if @tournament_level.nil?
|
|
244
|
-
invalid_properties.push('invalid value for "tournament_level", tournament_level cannot be nil.')
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
if @display_name.nil?
|
|
248
|
-
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
249
|
-
end
|
|
250
|
-
|
|
251
243
|
if @series.nil?
|
|
252
244
|
invalid_properties.push('invalid value for "series", series cannot be nil.')
|
|
253
245
|
end
|
|
@@ -267,37 +259,13 @@ module FtcApiV3Client
|
|
|
267
259
|
# @return true if the model is valid
|
|
268
260
|
def valid?
|
|
269
261
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
270
|
-
return false if @type.nil?
|
|
271
|
-
return false if @short_name.nil?
|
|
272
262
|
return false if @field.nil?
|
|
273
|
-
return false if @tournament_level.nil?
|
|
274
|
-
return false if @display_name.nil?
|
|
275
263
|
return false if @series.nil?
|
|
276
264
|
return false if @number.nil?
|
|
277
265
|
return false if @teams.nil?
|
|
278
266
|
true
|
|
279
267
|
end
|
|
280
268
|
|
|
281
|
-
# Custom attribute writer method with validation
|
|
282
|
-
# @param [Object] type Value to be assigned
|
|
283
|
-
def type=(type)
|
|
284
|
-
if type.nil?
|
|
285
|
-
fail ArgumentError, 'type cannot be nil'
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
@type = type
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
# Custom attribute writer method with validation
|
|
292
|
-
# @param [Object] short_name Value to be assigned
|
|
293
|
-
def short_name=(short_name)
|
|
294
|
-
if short_name.nil?
|
|
295
|
-
fail ArgumentError, 'short_name cannot be nil'
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
@short_name = short_name
|
|
299
|
-
end
|
|
300
|
-
|
|
301
269
|
# Custom attribute writer method with validation
|
|
302
270
|
# @param [Object] field Value to be assigned
|
|
303
271
|
def field=(field)
|
|
@@ -308,26 +276,6 @@ module FtcApiV3Client
|
|
|
308
276
|
@field = field
|
|
309
277
|
end
|
|
310
278
|
|
|
311
|
-
# Custom attribute writer method with validation
|
|
312
|
-
# @param [Object] tournament_level Value to be assigned
|
|
313
|
-
def tournament_level=(tournament_level)
|
|
314
|
-
if tournament_level.nil?
|
|
315
|
-
fail ArgumentError, 'tournament_level cannot be nil'
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
@tournament_level = tournament_level
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
# Custom attribute writer method with validation
|
|
322
|
-
# @param [Object] display_name Value to be assigned
|
|
323
|
-
def display_name=(display_name)
|
|
324
|
-
if display_name.nil?
|
|
325
|
-
fail ArgumentError, 'display_name cannot be nil'
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
@display_name = display_name
|
|
329
|
-
end
|
|
330
|
-
|
|
331
279
|
# Custom attribute writer method with validation
|
|
332
280
|
# @param [Object] series Value to be assigned
|
|
333
281
|
def series=(series)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @red_alliance.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "red_alliance", red_alliance cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @red_alliance.nil?
|
|
120
116
|
return false if @blue_alliance.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] red_alliance Value to be assigned
|
|
136
122
|
def red_alliance=(red_alliance)
|
|
@@ -70,6 +70,7 @@ module FtcApiV3Client
|
|
|
70
70
|
# List of attributes with nullable: true
|
|
71
71
|
def self.openapi_nullable
|
|
72
72
|
Set.new([
|
|
73
|
+
:'operation',
|
|
73
74
|
])
|
|
74
75
|
end
|
|
75
76
|
|
|
@@ -107,10 +108,6 @@ module FtcApiV3Client
|
|
|
107
108
|
def list_invalid_properties
|
|
108
109
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
110
|
invalid_properties = Array.new
|
|
110
|
-
if @operation.nil?
|
|
111
|
-
invalid_properties.push('invalid value for "operation", operation cannot be nil.')
|
|
112
|
-
end
|
|
113
|
-
|
|
114
111
|
if @team.nil?
|
|
115
112
|
invalid_properties.push('invalid value for "team", team cannot be nil.')
|
|
116
113
|
end
|
|
@@ -122,21 +119,10 @@ module FtcApiV3Client
|
|
|
122
119
|
# @return true if the model is valid
|
|
123
120
|
def valid?
|
|
124
121
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
125
|
-
return false if @operation.nil?
|
|
126
122
|
return false if @team.nil?
|
|
127
123
|
true
|
|
128
124
|
end
|
|
129
125
|
|
|
130
|
-
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object] operation Value to be assigned
|
|
132
|
-
def operation=(operation)
|
|
133
|
-
if operation.nil?
|
|
134
|
-
fail ArgumentError, 'operation cannot be nil'
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
@operation = operation
|
|
138
|
-
end
|
|
139
|
-
|
|
140
126
|
# Custom attribute writer method with validation
|
|
141
127
|
# @param [Object] team Value to be assigned
|
|
142
128
|
def team=(team)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @red_alliance.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "red_alliance", red_alliance cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @red_alliance.nil?
|
|
120
116
|
return false if @blue_alliance.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] red_alliance Value to be assigned
|
|
136
122
|
def red_alliance=(red_alliance)
|
|
@@ -91,6 +91,10 @@ module FtcApiV3Client
|
|
|
91
91
|
# List of attributes with nullable: true
|
|
92
92
|
def self.openapi_nullable
|
|
93
93
|
Set.new([
|
|
94
|
+
:'type',
|
|
95
|
+
:'name',
|
|
96
|
+
:'description',
|
|
97
|
+
:'sub_name',
|
|
94
98
|
])
|
|
95
99
|
end
|
|
96
100
|
|
|
@@ -156,14 +160,6 @@ module FtcApiV3Client
|
|
|
156
160
|
def list_invalid_properties
|
|
157
161
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
158
162
|
invalid_properties = Array.new
|
|
159
|
-
if @type.nil?
|
|
160
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
if @name.nil?
|
|
164
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
165
|
-
end
|
|
166
|
-
|
|
167
163
|
if @ordered.nil?
|
|
168
164
|
invalid_properties.push('invalid value for "ordered", ordered cannot be nil.')
|
|
169
165
|
end
|
|
@@ -183,34 +179,12 @@ module FtcApiV3Client
|
|
|
183
179
|
# @return true if the model is valid
|
|
184
180
|
def valid?
|
|
185
181
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
|
-
return false if @type.nil?
|
|
187
|
-
return false if @name.nil?
|
|
188
182
|
return false if @ordered.nil?
|
|
189
183
|
return false if @individual.nil?
|
|
190
184
|
return false if @recipients.nil?
|
|
191
185
|
true
|
|
192
186
|
end
|
|
193
187
|
|
|
194
|
-
# Custom attribute writer method with validation
|
|
195
|
-
# @param [Object] type Value to be assigned
|
|
196
|
-
def type=(type)
|
|
197
|
-
if type.nil?
|
|
198
|
-
fail ArgumentError, 'type cannot be nil'
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
@type = type
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# Custom attribute writer method with validation
|
|
205
|
-
# @param [Object] name Value to be assigned
|
|
206
|
-
def name=(name)
|
|
207
|
-
if name.nil?
|
|
208
|
-
fail ArgumentError, 'name cannot be nil'
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
@name = name
|
|
212
|
-
end
|
|
213
|
-
|
|
214
188
|
# Custom attribute writer method with validation
|
|
215
189
|
# @param [Object] ordered Value to be assigned
|
|
216
190
|
def ordered=(ordered)
|
|
@@ -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
|
+
:'type',
|
|
52
53
|
])
|
|
53
54
|
end
|
|
54
55
|
|
|
@@ -86,10 +87,6 @@ module FtcApiV3Client
|
|
|
86
87
|
def list_invalid_properties
|
|
87
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
88
89
|
invalid_properties = Array.new
|
|
89
|
-
if @type.nil?
|
|
90
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
91
|
-
end
|
|
92
|
-
|
|
93
90
|
if @alliance_seed.nil?
|
|
94
91
|
invalid_properties.push('invalid value for "alliance_seed", alliance_seed cannot be nil.')
|
|
95
92
|
end
|
|
@@ -101,21 +98,10 @@ module FtcApiV3Client
|
|
|
101
98
|
# @return true if the model is valid
|
|
102
99
|
def valid?
|
|
103
100
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
|
-
return false if @type.nil?
|
|
105
101
|
return false if @alliance_seed.nil?
|
|
106
102
|
true
|
|
107
103
|
end
|
|
108
104
|
|
|
109
|
-
# Custom attribute writer method with validation
|
|
110
|
-
# @param [Object] type Value to be assigned
|
|
111
|
-
def type=(type)
|
|
112
|
-
if type.nil?
|
|
113
|
-
fail ArgumentError, 'type cannot be nil'
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
@type = type
|
|
117
|
-
end
|
|
118
|
-
|
|
119
105
|
# Custom attribute writer method with validation
|
|
120
106
|
# @param [Object] alliance_seed Value to be assigned
|
|
121
107
|
def alliance_seed=(alliance_seed)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @achievements.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "achievements", achievements cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @achievements.nil?
|
|
120
116
|
return false if @points.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] achievements Value to be assigned
|
|
136
122
|
def achievements=(achievements)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @achievements.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "achievements", achievements cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @achievements.nil?
|
|
120
116
|
return false if @points.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] achievements Value to be assigned
|
|
136
122
|
def achievements=(achievements)
|
|
@@ -142,6 +142,8 @@ module FtcApiV3Client
|
|
|
142
142
|
# List of attributes with nullable: true
|
|
143
143
|
def self.openapi_nullable
|
|
144
144
|
Set.new([
|
|
145
|
+
:'eg_robot1',
|
|
146
|
+
:'eg_robot2',
|
|
145
147
|
])
|
|
146
148
|
end
|
|
147
149
|
|
|
@@ -343,14 +345,6 @@ module FtcApiV3Client
|
|
|
343
345
|
invalid_properties.push('invalid value for "max_set_line", max_set_line cannot be nil.')
|
|
344
346
|
end
|
|
345
347
|
|
|
346
|
-
if @eg_robot1.nil?
|
|
347
|
-
invalid_properties.push('invalid value for "eg_robot1", eg_robot1 cannot be nil.')
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
if @eg_robot2.nil?
|
|
351
|
-
invalid_properties.push('invalid value for "eg_robot2", eg_robot2 cannot be nil.')
|
|
352
|
-
end
|
|
353
|
-
|
|
354
348
|
if @drone1.nil?
|
|
355
349
|
invalid_properties.push('invalid value for "drone1", drone1 cannot be nil.')
|
|
356
350
|
end
|
|
@@ -388,8 +382,6 @@ module FtcApiV3Client
|
|
|
388
382
|
return false if @dc_backstage.nil?
|
|
389
383
|
return false if @mosaics.nil?
|
|
390
384
|
return false if @max_set_line.nil?
|
|
391
|
-
return false if @eg_robot1.nil?
|
|
392
|
-
return false if @eg_robot2.nil?
|
|
393
385
|
return false if @drone1.nil?
|
|
394
386
|
return false if @drone2.nil?
|
|
395
387
|
return false if @minor_penalties.nil?
|
|
@@ -537,26 +529,6 @@ module FtcApiV3Client
|
|
|
537
529
|
@max_set_line = max_set_line
|
|
538
530
|
end
|
|
539
531
|
|
|
540
|
-
# Custom attribute writer method with validation
|
|
541
|
-
# @param [Object] eg_robot1 Value to be assigned
|
|
542
|
-
def eg_robot1=(eg_robot1)
|
|
543
|
-
if eg_robot1.nil?
|
|
544
|
-
fail ArgumentError, 'eg_robot1 cannot be nil'
|
|
545
|
-
end
|
|
546
|
-
|
|
547
|
-
@eg_robot1 = eg_robot1
|
|
548
|
-
end
|
|
549
|
-
|
|
550
|
-
# Custom attribute writer method with validation
|
|
551
|
-
# @param [Object] eg_robot2 Value to be assigned
|
|
552
|
-
def eg_robot2=(eg_robot2)
|
|
553
|
-
if eg_robot2.nil?
|
|
554
|
-
fail ArgumentError, 'eg_robot2 cannot be nil'
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
@eg_robot2 = eg_robot2
|
|
558
|
-
end
|
|
559
|
-
|
|
560
532
|
# Custom attribute writer method with validation
|
|
561
533
|
# @param [Object] drone1 Value to be assigned
|
|
562
534
|
def drone1=(drone1)
|
|
@@ -118,6 +118,7 @@ module FtcApiV3Client
|
|
|
118
118
|
# List of attributes with nullable: true
|
|
119
119
|
def self.openapi_nullable
|
|
120
120
|
Set.new([
|
|
121
|
+
:'eg_robot',
|
|
121
122
|
])
|
|
122
123
|
end
|
|
123
124
|
|
|
@@ -267,10 +268,6 @@ module FtcApiV3Client
|
|
|
267
268
|
invalid_properties.push('invalid value for "max_set_line", max_set_line cannot be nil.')
|
|
268
269
|
end
|
|
269
270
|
|
|
270
|
-
if @eg_robot.nil?
|
|
271
|
-
invalid_properties.push('invalid value for "eg_robot", eg_robot cannot be nil.')
|
|
272
|
-
end
|
|
273
|
-
|
|
274
271
|
if @drone.nil?
|
|
275
272
|
invalid_properties.push('invalid value for "drone", drone cannot be nil.')
|
|
276
273
|
end
|
|
@@ -300,7 +297,6 @@ module FtcApiV3Client
|
|
|
300
297
|
return false if @dc_backstage.nil?
|
|
301
298
|
return false if @mosaics.nil?
|
|
302
299
|
return false if @max_set_line.nil?
|
|
303
|
-
return false if @eg_robot.nil?
|
|
304
300
|
return false if @drone.nil?
|
|
305
301
|
return false if @minor_penalties.nil?
|
|
306
302
|
return false if @major_penalties.nil?
|
|
@@ -407,16 +403,6 @@ module FtcApiV3Client
|
|
|
407
403
|
@max_set_line = max_set_line
|
|
408
404
|
end
|
|
409
405
|
|
|
410
|
-
# Custom attribute writer method with validation
|
|
411
|
-
# @param [Object] eg_robot Value to be assigned
|
|
412
|
-
def eg_robot=(eg_robot)
|
|
413
|
-
if eg_robot.nil?
|
|
414
|
-
fail ArgumentError, 'eg_robot cannot be nil'
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
@eg_robot = eg_robot
|
|
418
|
-
end
|
|
419
|
-
|
|
420
406
|
# Custom attribute writer method with validation
|
|
421
407
|
# @param [Object] drone Value to be assigned
|
|
422
408
|
def drone=(drone)
|
|
@@ -114,6 +114,8 @@ module FtcApiV3Client
|
|
|
114
114
|
# List of attributes with nullable: true
|
|
115
115
|
def self.openapi_nullable
|
|
116
116
|
Set.new([
|
|
117
|
+
:'robot1_teleop',
|
|
118
|
+
:'robot2_teleop',
|
|
117
119
|
])
|
|
118
120
|
end
|
|
119
121
|
|
|
@@ -257,14 +259,6 @@ module FtcApiV3Client
|
|
|
257
259
|
invalid_properties.push('invalid value for "teleop_classifier_state", teleop_classifier_state cannot be nil.')
|
|
258
260
|
end
|
|
259
261
|
|
|
260
|
-
if @robot1_teleop.nil?
|
|
261
|
-
invalid_properties.push('invalid value for "robot1_teleop", robot1_teleop cannot be nil.')
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
if @robot2_teleop.nil?
|
|
265
|
-
invalid_properties.push('invalid value for "robot2_teleop", robot2_teleop cannot be nil.')
|
|
266
|
-
end
|
|
267
|
-
|
|
268
262
|
if @minor_fouls.nil?
|
|
269
263
|
invalid_properties.push('invalid value for "minor_fouls", minor_fouls cannot be nil.')
|
|
270
264
|
end
|
|
@@ -289,8 +283,6 @@ module FtcApiV3Client
|
|
|
289
283
|
return false if @teleop_overflow_artifacts.nil?
|
|
290
284
|
return false if @teleop_depot_artifacts.nil?
|
|
291
285
|
return false if @teleop_classifier_state.nil?
|
|
292
|
-
return false if @robot1_teleop.nil?
|
|
293
|
-
return false if @robot2_teleop.nil?
|
|
294
286
|
return false if @minor_fouls.nil?
|
|
295
287
|
return false if @major_fouls.nil?
|
|
296
288
|
true
|
|
@@ -386,26 +378,6 @@ module FtcApiV3Client
|
|
|
386
378
|
@teleop_classifier_state = teleop_classifier_state
|
|
387
379
|
end
|
|
388
380
|
|
|
389
|
-
# Custom attribute writer method with validation
|
|
390
|
-
# @param [Object] robot1_teleop Value to be assigned
|
|
391
|
-
def robot1_teleop=(robot1_teleop)
|
|
392
|
-
if robot1_teleop.nil?
|
|
393
|
-
fail ArgumentError, 'robot1_teleop cannot be nil'
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
@robot1_teleop = robot1_teleop
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
# Custom attribute writer method with validation
|
|
400
|
-
# @param [Object] robot2_teleop Value to be assigned
|
|
401
|
-
def robot2_teleop=(robot2_teleop)
|
|
402
|
-
if robot2_teleop.nil?
|
|
403
|
-
fail ArgumentError, 'robot2_teleop cannot be nil'
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
@robot2_teleop = robot2_teleop
|
|
407
|
-
end
|
|
408
|
-
|
|
409
381
|
# Custom attribute writer method with validation
|
|
410
382
|
# @param [Object] minor_fouls Value to be assigned
|
|
411
383
|
def minor_fouls=(minor_fouls)
|
|
@@ -53,6 +53,7 @@ module FtcApiV3Client
|
|
|
53
53
|
# List of attributes with nullable: true
|
|
54
54
|
def self.openapi_nullable
|
|
55
55
|
Set.new([
|
|
56
|
+
:'type',
|
|
56
57
|
])
|
|
57
58
|
end
|
|
58
59
|
|
|
@@ -96,10 +97,6 @@ module FtcApiV3Client
|
|
|
96
97
|
def list_invalid_properties
|
|
97
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
99
|
invalid_properties = Array.new
|
|
99
|
-
if @type.nil?
|
|
100
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
100
|
if @achievements.nil?
|
|
104
101
|
invalid_properties.push('invalid value for "achievements", achievements cannot be nil.')
|
|
105
102
|
end
|
|
@@ -115,22 +112,11 @@ module FtcApiV3Client
|
|
|
115
112
|
# @return true if the model is valid
|
|
116
113
|
def valid?
|
|
117
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @type.nil?
|
|
119
115
|
return false if @achievements.nil?
|
|
120
116
|
return false if @points.nil?
|
|
121
117
|
true
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] type Value to be assigned
|
|
126
|
-
def type=(type)
|
|
127
|
-
if type.nil?
|
|
128
|
-
fail ArgumentError, 'type cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@type = type
|
|
132
|
-
end
|
|
133
|
-
|
|
134
120
|
# Custom attribute writer method with validation
|
|
135
121
|
# @param [Object] achievements Value to be assigned
|
|
136
122
|
def achievements=(achievements)
|
|
@@ -48,6 +48,8 @@ module FtcApiV3Client
|
|
|
48
48
|
# List of attributes with nullable: true
|
|
49
49
|
def self.openapi_nullable
|
|
50
50
|
Set.new([
|
|
51
|
+
:'event_code',
|
|
52
|
+
:'name'
|
|
51
53
|
])
|
|
52
54
|
end
|
|
53
55
|
|
|
@@ -85,14 +87,6 @@ module FtcApiV3Client
|
|
|
85
87
|
def list_invalid_properties
|
|
86
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
89
|
invalid_properties = Array.new
|
|
88
|
-
if @event_code.nil?
|
|
89
|
-
invalid_properties.push('invalid value for "event_code", event_code cannot be nil.')
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if @name.nil?
|
|
93
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
94
|
-
end
|
|
95
|
-
|
|
96
90
|
invalid_properties
|
|
97
91
|
end
|
|
98
92
|
|
|
@@ -100,31 +94,9 @@ module FtcApiV3Client
|
|
|
100
94
|
# @return true if the model is valid
|
|
101
95
|
def valid?
|
|
102
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
-
return false if @event_code.nil?
|
|
104
|
-
return false if @name.nil?
|
|
105
97
|
true
|
|
106
98
|
end
|
|
107
99
|
|
|
108
|
-
# Custom attribute writer method with validation
|
|
109
|
-
# @param [Object] event_code Value to be assigned
|
|
110
|
-
def event_code=(event_code)
|
|
111
|
-
if event_code.nil?
|
|
112
|
-
fail ArgumentError, 'event_code cannot be nil'
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
@event_code = event_code
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
# Custom attribute writer method with validation
|
|
119
|
-
# @param [Object] name Value to be assigned
|
|
120
|
-
def name=(name)
|
|
121
|
-
if name.nil?
|
|
122
|
-
fail ArgumentError, 'name cannot be nil'
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
@name = name
|
|
126
|
-
end
|
|
127
|
-
|
|
128
100
|
# Checks equality by comparing each attribute.
|
|
129
101
|
# @param [Object] Object to be compared
|
|
130
102
|
def ==(o)
|