Sfoglia il codice sorgente

New services in interface

almahmoud 7 anni fa
parent
commit
9ce545c909

+ 1 - 1
cloudbridge/cloud/interfaces/resources.py

@@ -1909,7 +1909,7 @@ class VMFirewall(LabeledCloudResource):
     @abstractproperty
     @abstractproperty
     def rules(self):
     def rules(self):
         """
         """
-        Get a container for the rules belonging to this VM firewall.
+        Get access to the rules belonging to this VM firewall.
 
 
         This object can be used for further operations on rules, such as get,
         This object can be used for further operations on rules, such as get,
         list, create, etc.
         list, create, etc.

+ 33 - 0
cloudbridge/cloud/interfaces/services.py

@@ -604,6 +604,28 @@ class NetworkingService(CloudService):
         """
         """
         pass
         pass
 
 
+    @abstractproperty
+    def _floating_ips(self):
+        """
+        Provides access to floating ips for this provider.
+        This service is not iterable.
+
+        :rtype: :class:`.FloatingIPService`
+        :return: a FloatingIPService object
+        """
+        pass
+
+    @abstractproperty
+    def _gateways(self):
+        """
+        Provides access to internet gateways for this provider.
+        This service is not iterable.
+
+        :rtype: :class:`.GatewayService`
+        :return: a GatewayService object
+        """
+        pass
+
 
 
 class NetworkService(PageableObjectMixin, CloudService):
 class NetworkService(PageableObjectMixin, CloudService):
 
 
@@ -1121,6 +1143,17 @@ class SecurityService(CloudService):
         """
         """
         pass
         pass
 
 
+    @abstractproperty
+    def _vm_firewall_rules(self):
+        """
+        Provides access to firewall (security group) rules for this provider.
+        This service is not iterable.
+
+        :rtype: :class:`.VMFirewallRuleService`
+        :return: a VMFirewallRuleService object
+        """
+        pass
+
 
 
 class KeyPairService(PageableObjectMixin, CloudService):
 class KeyPairService(PageableObjectMixin, CloudService):