Skip to content

Commit 4961474

Browse files
add auto-onboard functionality to sdk (#95)
* add auto-onboard functionality to sdk * formatting * formatting
1 parent 54c3b3f commit 4961474

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

scaleapi/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "2.15.13"
1+
__version__ = "2.15.14"
22
__package_name__ = "scaleapi"

scaleapi/projects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ def __init__(self, json, client):
99
self.created_at = json["created_at"]
1010
self.updated_at = json["updated_at"]
1111
self.template_variables = json["template_variables"]
12+
self.response_schema = json.get("response_schema", None)
13+
self.auto_onboard_enabled = json.get("auto_onboard_enabled", False)
1214

1315
def __hash__(self):
1416
return hash(self.id)
@@ -23,6 +25,14 @@ def get_template_variables(self):
2325
"""Returns template variables dictionary"""
2426
return self.template_variables
2527

28+
def is_auto_onboardable(self):
29+
"""Returns boolean value whether project is auto onboardable"""
30+
return self.auto_onboard_enabled
31+
32+
def get_response_schema(self):
33+
"""Returns response schema if enabled for your account"""
34+
return self.response_schema
35+
2636
def as_dict(self):
2737
"""Returns task template object as JSON dictionary"""
2838
return self._json

0 commit comments

Comments
 (0)