X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=snaps%2Fdomain%2Fproject.py;h=54407cffcd5de409b48b05cd3193b362965a2e3b;hb=430905e7f76e4a074167a49ca2bfbf727eebcefd;hp=73357c7bd7941325d5bb9e22ad63efd8c246c084;hpb=5f1757326572ce9b5141e828a7a6157ded8bae0d;p=snaps.git diff --git a/snaps/domain/project.py b/snaps/domain/project.py index 73357c7..54407cf 100644 --- a/snaps/domain/project.py +++ b/snaps/domain/project.py @@ -32,3 +32,20 @@ class Project: def __eq__(self, other): return self.name == other.name and self.id == other.id + + +class Domain: + """ + SNAPS domain object for OpenStack Keystone v3+ domains. + """ + def __init__(self, name, domain_id=None): + """ + Constructor + :param name: the project's name + :param domain_id: the project's domain id + """ + self.name = name + self.id = domain_id + + def __eq__(self, other): + return self.name == other.name and self.id == other.id