Răsfoiți Sursa

Added create and find abstract methods in InstanceService to revive previous build

jatin 9 ani în urmă
părinte
comite
cb578541de
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  1. 12 0
      cloudbridge/cloud/providers/azure/services.py

+ 12 - 0
cloudbridge/cloud/providers/azure/services.py

@@ -343,6 +343,14 @@ class AzureInstanceService(BaseInstanceService):
     def __init__(self, provider):
     def __init__(self, provider):
         super(AzureInstanceService, self).__init__(provider)
         super(AzureInstanceService, self).__init__(provider)
 
 
+    def create(self, name=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
+    def create_launch_config(self, name=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
     def list(self, limit=None, marker=None):
     def list(self, limit=None, marker=None):
         """
         """
         List all instances.
         List all instances.
@@ -365,6 +373,10 @@ class AzureInstanceService(BaseInstanceService):
             log.exception(cloudError.message)
             log.exception(cloudError.message)
             return None
             return None
 
 
+    def find(self, name, limit=None, marker=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
 
 
 class AzureImageService(BaseImageService):
 class AzureImageService(BaseImageService):
     def __init__(self, provider):
     def __init__(self, provider):