upcloud: Provide unique ID for server entities (#13181)

pull/13190/head
Ville Skyttä 2018-03-13 22:51:10 +02:00 committed by Paulus Schoutsen
parent d5612b5ccc
commit dd48fb04a3
1 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,11 @@ class UpCloudServerEntity(Entity):
self.uuid = uuid
self.data = None
@property
def unique_id(self) -> str:
"""Return unique ID for the entity."""
return self.uuid
@property
def name(self):
"""Return the name of the component."""