Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sync/api/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def create_project(
auto_apply_recs: bool = False,
prediction_params: dict = None,
app_id: str = None,
optimize_instance_size: bool = False,
) -> Response[dict]:
"""Creates a Sync project for tracking and optimizing Apache Spark applications

Expand Down Expand Up @@ -102,6 +103,7 @@ def create_project(
"auto_apply_recs": auto_apply_recs,
"prediction_params": prediction_params,
"app_id": app_id,
"optimize_instance_size": optimize_instance_size,
}
)
)
Expand All @@ -128,6 +130,7 @@ def update_project(
prediction_preference: Preference = None,
auto_apply_recs: bool = None,
prediction_params: dict = None,
optimize_instance_size=None,
) -> Response[dict]:
"""Updates a project's mutable properties

Expand Down Expand Up @@ -169,6 +172,8 @@ def update_project(
project_update["cluster_path"] = cluster_path
if workspace_id:
project_update["workspace_id"] = workspace_id
if optimize_instance_size:
project_update["optimize_instance_size"] = optimize_instance_size

return Response(
**get_default_client().update_project(
Expand Down