diff --git a/pyproject.toml b/pyproject.toml index 5326ea5..9b8c65b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pysnyk" -version = "0.9.15" +version = "0.9.16" description = "A Python client for the Snyk API" authors = [ "Gareth Rushgrove ", diff --git a/snyk/client.py b/snyk/client.py index d3cc63f..8665ae0 100644 --- a/snyk/client.py +++ b/snyk/client.py @@ -44,7 +44,6 @@ def __init__( self.delay = delay self.verify = verify self.version = version - # Ensure we don't have a trailing / if self.api_url[-1] == "/": self.api_url = self.api_url.rstrip("/") @@ -210,7 +209,7 @@ def get_rest_pages(self, path: str, params: dict = {}) -> List: Helper function to collect paginated responses from the rest API into a single list. - This collects the "data" list from the first reponse and then appends the + This collects the "data" list from the first response and then appends the any further "data" lists if a next link is found in the links field. """ first_page_response = self.get(path, params) diff --git a/snyk/models.py b/snyk/models.py index d944f34..55dffad 100644 --- a/snyk/models.py +++ b/snyk/models.py @@ -587,6 +587,7 @@ class Project(DataClassJSONMixin): hostname: Optional[str] = None remoteRepoUrl: Optional[str] = None branch: Optional[str] = None + imageCluster: Optional[str] = None attributes: Optional[Dict[str, List[str]]] = None _tags: Optional[List[Any]] = field(default_factory=list)