Skip to content
Permalink
Browse files

Added security service.

  • Loading branch information...
nuwang committed Jan 22, 2016
1 parent 54c67e9 commit 82c0244aa4229ae0aecfe40d769eb93b06470dc7
Showing with 38 additions and 0 deletions.
  1. +31 −0 cloudbridge/cloud/providers/gce/provider.py
  2. +7 −0 cloudbridge/cloud/providers/gce/services.py
@@ -1,4 +1,10 @@
"""
Provider implementation based on google-api-python-client library
for GCE.
"""

from cloudbridge.cloud.base import BaseCloudProvider
from .services import GCESecurityService


class GCECloudProvider(BaseCloudProvider):
@@ -7,3 +13,28 @@ class GCECloudProvider(BaseCloudProvider):

def __init__(self, config):
super(GCECloudProvider, self).__init__(config)
self._security = GCESecurityService(self)

@property
def compute(self):
raise NotImplementedError(
"GCECloudProvider does not implement this service")

@property
def network(self):
raise NotImplementedError(
"GCECloudProvider does not implement this service")

@property
def security(self):
return self._security

@property
def block_store(self):
raise NotImplementedError(
"GCECloudProvider does not implement this service")

@property
def object_store(self):
raise NotImplementedError(
"GCECloudProvider does not implement this service")
@@ -0,0 +1,7 @@
from cloudbridge.cloud.base.services import BaseSecurityService


class GCESecurityService(BaseSecurityService):

def __init__(self, provider):
super(GCESecurityService, self).__init__(provider)

0 comments on commit 82c0244

Please sign in to comment.
You can’t perform that action at this time.