|
@@ -1,3 +1,5 @@
|
|
|
|
|
+from cloudbridge.cloud.base.services import BaseKeyPairService
|
|
|
|
|
+from cloudbridge.cloud.base.services import BaseSecurityGroupService
|
|
|
from cloudbridge.cloud.base.services import BaseSecurityService
|
|
from cloudbridge.cloud.base.services import BaseSecurityService
|
|
|
|
|
|
|
|
|
|
|
|
@@ -5,3 +7,27 @@ class GCESecurityService(BaseSecurityService):
|
|
|
|
|
|
|
|
def __init__(self, provider):
|
|
def __init__(self, provider):
|
|
|
super(GCESecurityService, self).__init__(provider)
|
|
super(GCESecurityService, self).__init__(provider)
|
|
|
|
|
+
|
|
|
|
|
+ # Initialize provider services
|
|
|
|
|
+ self._key_pairs = GCEKeyPairService(provider)
|
|
|
|
|
+ self._security_groups = GCESecurityGroupService(provider)
|
|
|
|
|
+
|
|
|
|
|
+ @property
|
|
|
|
|
+ def key_pairs(self):
|
|
|
|
|
+ return self._key_pairs
|
|
|
|
|
+
|
|
|
|
|
+ @property
|
|
|
|
|
+ def security_groups(self):
|
|
|
|
|
+ return self._security_groups
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+class GCEKeyPairService(BaseKeyPairService):
|
|
|
|
|
+
|
|
|
|
|
+ def __init__(self, provider):
|
|
|
|
|
+ super(GCEKeyPairService, self).__init__(provider)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+class GCESecurityGroupService(BaseSecurityGroupService):
|
|
|
|
|
+
|
|
|
|
|
+ def __init__(self, provider):
|
|
|
|
|
+ super(GCESecurityGroupService, self).__init__(provider)
|