コード例 #1
0
ファイル: models.py プロジェクト: Nyna71/atlasclient
 def update(self, **kwargs):
     """
     Update is not allowed for this resource
     """
     raise exceptions.MethodNotImplemented(
         method=self.update,
         details='The method update is not available for this resource')
コード例 #2
0
ファイル: models.py プロジェクト: mgorsk1/pyatlasclient
 def create(self, **kwargs):
     """Raise error since guid cannot be duplicated
     """
     raise exceptions.MethodNotImplemented(
         method=self.create,
         url=self.url,
         details='GUID cannot be duplicated, '
         'to create a new GUID use the relationship resource')