@@ -712,13 +712,19 @@ class ApiCreateSubmissionRequest(KaggleObject):
712712 https://github.com/Kaggle/kaggleazure/blob/9c4bea5548c50844a257f26a10c6c9ae9aaf486b/Kaggle.Services.Competitions/Iam/Competitions/CompetitionsSubmitChecker.cs#L78).
713713 If specified, submit on behalf of this model team instead of
714714 the current user.
715+ sandbox (bool)
716+ Only competition hosts or admins can set true (see checker at
717+ https://github.com/Kaggle/kaggleazure/blob/9c4bea5548c50844a257f26a10c6c9ae9aaf486b/Kaggle.Services.Competitions/Iam/Competitions/CompetitionsSubmitChecker.cs#L69).
718+ If set, this will be a sample submission used for verifying the competition
719+ setup.
715720 """
716721
717722 def __init__ (self ):
718723 self ._competition_name = ""
719724 self ._blob_file_tokens = ""
720725 self ._submission_description = None
721726 self ._benchmark_model_version_id = None
727+ self ._sandbox = None
722728 self ._freeze ()
723729
724730 @property
@@ -782,6 +788,25 @@ def benchmark_model_version_id(self, benchmark_model_version_id: Optional[int]):
782788 raise TypeError ('benchmark_model_version_id must be of type int' )
783789 self ._benchmark_model_version_id = benchmark_model_version_id
784790
791+ @property
792+ def sandbox (self ) -> bool :
793+ r"""
794+ Only competition hosts or admins can set true (see checker at
795+ https://github.com/Kaggle/kaggleazure/blob/9c4bea5548c50844a257f26a10c6c9ae9aaf486b/Kaggle.Services.Competitions/Iam/Competitions/CompetitionsSubmitChecker.cs#L69).
796+ If set, this will be a sample submission used for verifying the competition
797+ setup.
798+ """
799+ return self ._sandbox or False
800+
801+ @sandbox .setter
802+ def sandbox (self , sandbox : Optional [bool ]):
803+ if sandbox is None :
804+ del self .sandbox
805+ return
806+ if not isinstance (sandbox , bool ):
807+ raise TypeError ('sandbox must be of type bool' )
808+ self ._sandbox = sandbox
809+
785810 def endpoint (self ):
786811 path = '/api/v1/competitions/submissions/submit/{competition_name}'
787812 return path .format_map (self .to_field_map (self ))
@@ -2297,6 +2322,7 @@ def url(self, url: Optional[str]):
22972322 FieldMetadata ("blobFileTokens" , "blob_file_tokens" , "_blob_file_tokens" , str , "" , PredefinedSerializer ()),
22982323 FieldMetadata ("submissionDescription" , "submission_description" , "_submission_description" , str , None , PredefinedSerializer (), optional = True ),
22992324 FieldMetadata ("benchmarkModelVersionId" , "benchmark_model_version_id" , "_benchmark_model_version_id" , int , None , PredefinedSerializer (), optional = True ),
2325+ FieldMetadata ("sandbox" , "sandbox" , "_sandbox" , bool , None , PredefinedSerializer (), optional = True ),
23002326]
23012327
23022328ApiCreateSubmissionResponse ._fields = [
0 commit comments