File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,11 @@ def get_batches(
504
504
has_more = batches .has_more
505
505
506
506
def create_project (
507
- self , project_name : str , task_type : TaskType , params : Dict = None
507
+ self ,
508
+ project_name : str ,
509
+ task_type : TaskType ,
510
+ params : Dict = None ,
511
+ self_serve : bool = False ,
508
512
) -> Project :
509
513
"""Creates a new project.
510
514
https://docs.scale.com/reference#project-creation
@@ -524,7 +528,12 @@ def create_project(
524
528
Project: [description]
525
529
"""
526
530
endpoint = "projects"
527
- payload = dict (type = task_type .value , name = project_name , params = params )
531
+ payload = dict (
532
+ type = task_type .value ,
533
+ name = project_name ,
534
+ params = params ,
535
+ self_serve = self_serve ,
536
+ )
528
537
projectdata = self .api .post_request (endpoint , body = payload )
529
538
return Project (projectdata , self )
530
539
You can’t perform that action at this time.
0 commit comments