コード例 #1
0
    def storage_volume_templates(self):
        """
        Gets the StorageVolumeTemplates API client.

        Returns:
            StorageVolumeTemplates:
        """
        return StorageVolumeTemplates(self.__connection)
コード例 #2
0
 def setUp(self):
     self.host = '127.0.0.1'
     self.connection = connection(self.host)
     self._storage_volume_templates = StorageVolumeTemplates(
         self.connection)
     self._storage_volume_templates.data = {
         'uri':
         '/rest/storage-volume-templates/ad28cf21-8b15-4f92-bdcf-51cb2042db32'
     }
コード例 #3
0
 def setUp(self):
     self.host = '127.0.0.1'
     self.connection = connection(self.host)
     self._storage_volume_templates = StorageVolumeTemplates(self.connection)
コード例 #4
0
 def storage_volume_templates(self):
     if not self.__storage_volume_templates:
         self.__storage_volume_templates = StorageVolumeTemplates(
             self.__connection)
     return self.__storage_volume_templates