@@ -63,7 +63,6 @@ def submission_description(self, submission_description: str):
63
63
raise TypeError ('submission_description must be of type str' )
64
64
self ._submission_description = submission_description
65
65
66
-
67
66
def endpoint (self ):
68
67
path = '/api/v1/competitions/submissions/submit/{competition_name}'
69
68
return path .format_map (self .to_field_map (self ))
@@ -73,6 +72,7 @@ def endpoint(self):
73
72
def method ():
74
73
return 'POST'
75
74
75
+
76
76
class ApiCreateSubmissionResponse (KaggleObject ):
77
77
r"""
78
78
Attributes:
@@ -160,7 +160,6 @@ def file_name(self, file_name: str):
160
160
raise TypeError ('file_name must be of type str' )
161
161
self ._file_name = file_name
162
162
163
-
164
163
def endpoint (self ):
165
164
path = '/api/v1/competitions/data/download/{competition_name}/{file_name}'
166
165
return path .format_map (self .to_field_map (self ))
@@ -169,6 +168,7 @@ def endpoint(self):
169
168
def endpoint_path ():
170
169
return '/api/v1/competitions/data/download/{competition_name}/{file_name}'
171
170
171
+
172
172
class ApiDownloadDataFilesRequest (KaggleObject ):
173
173
r"""
174
174
Attributes:
@@ -194,7 +194,6 @@ def competition_name(self, competition_name: str):
194
194
raise TypeError ('competition_name must be of type str' )
195
195
self ._competition_name = competition_name
196
196
197
-
198
197
def endpoint (self ):
199
198
path = '/api/v1/competitions/data/download-all/{competition_name}'
200
199
return path .format_map (self .to_field_map (self ))
@@ -203,6 +202,7 @@ def endpoint(self):
203
202
def endpoint_path ():
204
203
return '/api/v1/competitions/data/download-all/{competition_name}'
205
204
205
+
206
206
class ApiDownloadLeaderboardRequest (KaggleObject ):
207
207
r"""
208
208
Attributes:
@@ -226,7 +226,6 @@ def competition_name(self, competition_name: str):
226
226
raise TypeError ('competition_name must be of type str' )
227
227
self ._competition_name = competition_name
228
228
229
-
230
229
def endpoint (self ):
231
230
path = '/api/v1/competitions/{competition_name}/leaderboard/download'
232
231
return path .format_map (self .to_field_map (self ))
@@ -235,6 +234,7 @@ def endpoint(self):
235
234
def endpoint_path ():
236
235
return '/api/v1/competitions/{competition_name}/leaderboard/download'
237
236
237
+
238
238
class ApiGetLeaderboardRequest (KaggleObject ):
239
239
r"""
240
240
Attributes:
@@ -283,7 +283,6 @@ def override_public(self, override_public: bool):
283
283
raise TypeError ('override_public must be of type bool' )
284
284
self ._override_public = override_public
285
285
286
-
287
286
def endpoint (self ):
288
287
path = '/api/v1/competitions/{competition_name}/leaderboard/view'
289
288
return path .format_map (self .to_field_map (self ))
@@ -292,6 +291,7 @@ def endpoint(self):
292
291
def endpoint_path ():
293
292
return '/api/v1/competitions/{competition_name}/leaderboard/view'
294
293
294
+
295
295
class ApiGetLeaderboardResponse (KaggleObject ):
296
296
r"""
297
297
Attributes:
@@ -343,7 +343,6 @@ def ref(self, ref: int):
343
343
raise TypeError ('ref must be of type int' )
344
344
self ._ref = ref
345
345
346
-
347
346
def endpoint (self ):
348
347
path = '/api/v1/competitions/submissions/get/{ref}'
349
348
return path .format_map (self .to_field_map (self ))
@@ -353,6 +352,7 @@ def endpoint(self):
353
352
def method ():
354
353
return 'POST'
355
354
355
+
356
356
class ApiLeaderboardSubmission (KaggleObject ):
357
357
r"""
358
358
Attributes:
@@ -531,11 +531,11 @@ def page(self, page: int):
531
531
raise TypeError ('page must be of type int' )
532
532
self ._page = page
533
533
534
-
535
534
def endpoint (self ):
536
535
path = '/api/v1/competitions/list'
537
536
return path .format_map (self .to_field_map (self ))
538
537
538
+
539
539
class ApiListCompetitionsResponse (KaggleObject ):
540
540
r"""
541
541
Attributes:
@@ -561,11 +561,11 @@ def competitions(self, competitions: Optional[List[Optional['ApiCompetition']]])
561
561
raise TypeError ('competitions must contain only items of type ApiCompetition' )
562
562
self ._competitions = competitions
563
563
564
-
565
564
@classmethod
566
565
def prepare_from (cls , http_response ):
567
566
return cls .from_dict ({'competitions' : json .loads (http_response .text )})
568
567
568
+
569
569
class ApiListDataFilesRequest (KaggleObject ):
570
570
r"""
571
571
Attributes:
@@ -621,7 +621,6 @@ def page_token(self, page_token: str):
621
621
raise TypeError ('page_token must be of type str' )
622
622
self ._page_token = page_token
623
623
624
-
625
624
def endpoint (self ):
626
625
path = '/api/v1/competitions/data/list/{competition_name}'
627
626
return path .format_map (self .to_field_map (self ))
@@ -630,6 +629,7 @@ def endpoint(self):
630
629
def endpoint_path ():
631
630
return '/api/v1/competitions/data/list/{competition_name}'
632
631
632
+
633
633
class ApiListDataFilesResponse (KaggleObject ):
634
634
r"""
635
635
Attributes:
@@ -670,6 +670,10 @@ def next_page_token(self, next_page_token: str):
670
670
raise TypeError ('next_page_token must be of type str' )
671
671
self ._next_page_token = next_page_token
672
672
673
+ @property
674
+ def nextPageToken (self ):
675
+ return self .next_page_token
676
+
673
677
674
678
class ApiListSubmissionsRequest (KaggleObject ):
675
679
r"""
@@ -739,7 +743,6 @@ def page(self, page: int):
739
743
raise TypeError ('page must be of type int' )
740
744
self ._page = page
741
745
742
-
743
746
def endpoint (self ):
744
747
path = '/api/v1/competitions/submissions/list/{competition_name}'
745
748
return path .format_map (self .to_field_map (self ))
@@ -748,6 +751,7 @@ def endpoint(self):
748
751
def endpoint_path ():
749
752
return '/api/v1/competitions/submissions/list/{competition_name}'
750
753
754
+
751
755
class ApiListSubmissionsResponse (KaggleObject ):
752
756
r"""
753
757
Attributes:
@@ -773,11 +777,11 @@ def submissions(self, submissions: Optional[List[Optional['ApiSubmission']]]):
773
777
raise TypeError ('submissions must contain only items of type ApiSubmission' )
774
778
self ._submissions = submissions
775
779
776
-
777
780
@classmethod
778
781
def prepare_from (cls , http_response ):
779
782
return cls .from_dict ({'submissions' : json .loads (http_response .text )})
780
783
784
+
781
785
class ApiStartSubmissionUploadRequest (KaggleObject ):
782
786
r"""
783
787
Attributes:
@@ -848,7 +852,6 @@ def file_name(self, file_name: str):
848
852
raise TypeError ('file_name must be of type str' )
849
853
self ._file_name = file_name
850
854
851
-
852
855
def endpoint (self ):
853
856
path = '/api/v1/competitions/submission-url'
854
857
return path .format_map (self .to_field_map (self ))
@@ -858,6 +861,7 @@ def endpoint(self):
858
861
def method ():
859
862
return 'POST'
860
863
864
+
861
865
class ApiStartSubmissionUploadResponse (KaggleObject ):
862
866
r"""
863
867
Currently identical to StartBlobUploadResponse, but keeping separate since
@@ -899,6 +903,10 @@ def create_url(self, create_url: str):
899
903
raise TypeError ('create_url must be of type str' )
900
904
self ._create_url = create_url
901
905
906
+ @property
907
+ def createUrl (self ):
908
+ return self .create_url
909
+
902
910
903
911
class ApiSubmission (KaggleObject ):
904
912
r"""
0 commit comments