1# Copyright (c) 2019 Ultimaker B.V.
2# Cura is released under the terms of the LGPLv3 or higher.
3from ..BaseModel import BaseModel
4
5
6class ClusterMaterial(BaseModel):
7    def __init__(self, guid: str, version: int, **kwargs) -> None:
8        self.guid = guid  # type: str
9        self.version = version  # type: int
10        super().__init__(**kwargs)
11
12    def validate(self) -> None:
13        if not self.guid:
14            raise ValueError("guid is required on ClusterMaterial")
15        if not self.version:
16            raise ValueError("version is required on ClusterMaterial")
17