Skip to content
Permalink
Browse files

Added keypair and security service stubs.

  • Loading branch information...
nuwang committed Jan 22, 2016
1 parent 82c0244 commit e90a7f6885814a3477cd0b38398d62af64f91093
Showing with 26 additions and 0 deletions.
  1. +26 −0 cloudbridge/cloud/providers/gce/services.py
@@ -1,7 +1,33 @@
from cloudbridge.cloud.base.services import BaseKeyPairService
from cloudbridge.cloud.base.services import BaseSecurityGroupService
from cloudbridge.cloud.base.services import BaseSecurityService


class GCESecurityService(BaseSecurityService):

def __init__(self, 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)

0 comments on commit e90a7f6

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