Преглед на файлове

New services in interface

almahmoud преди 7 години
родител
ревизия
9ce545c909
променени са 2 файла, в които са добавени 34 реда и са изтрити 1 реда
  1. 1 1
      cloudbridge/cloud/interfaces/resources.py
  2. 33 0
      cloudbridge/cloud/interfaces/services.py

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

@@ -1909,7 +1909,7 @@ class VMFirewall(LabeledCloudResource):
     @abstractproperty
     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,
         list, create, etc.

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

@@ -604,6 +604,28 @@ class NetworkingService(CloudService):
         """
         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):
 
@@ -1121,6 +1143,17 @@ class SecurityService(CloudService):
         """
         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):