def create_couch_cluster(self, name='', description='', replicas=1, partitions=1):
        """Create a PersistenceSystem resource describing a couch cluster.

        @param name    str
        @param description    str
        @param replicas    int
        @param partitions    int
        @retval persistence_system_id    str
        """
        persistence_sys = PersistenceSystem(name=name, description=description, type=PersistenceType.COUCHDB)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys.defaults['partitions'] = partitions
        persistence_sys_id, rev = self.clients.resource_registry.create(persistence_sys)
        return persistence_sys_id
    def create_compellent_cluster(self, name='', description='', replicas=1):
        """Create a PersistenceSystem resource describing a compellent cluster

        @param name    str
        @param description    str
        @param replicas    int
        @retval persistence_system_id    str
        @throws BadRequest    if object does not have _id or _rev attribute
        @throws NotFound    object with specified id does not exist
        """
        persistence_sys = PersistenceSystem(name=name, description=description, type=PersistenceType.COMPELLANT)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys_id, rev = self.clients.resource_registry.create(persistence_sys)
        return persistence_sys_id
    def create_elastic_search_cluster(self, name='', description='', replicas=1, shards=1):
        """Create a PersistenceSystem resource describing a couch cluster.

        @param name    str
        @param description    str
        @param replicas    int
        @param shards    int
        @retval persistence_system_id    str
        """
        persistence_sys = PersistenceSystem(name=name, description=description, type=PersistenceType.ELASTICSEARCH)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys.defaults['shards'] = shards
        persistence_sys_id, rev = self.clients.resource_registry.create(persistence_sys)
        return persistence_sys_id
    def create_compellent_cluster(self, name='', description='', replicas=1):
        """Create a PersistenceSystem resource describing a compellent cluster

        @param name    str
        @param description    str
        @param replicas    int
        @retval persistence_system_id    str
        @throws BadRequest    if object does not have _id or _rev attribute
        @throws NotFound    object with specified id does not exist
        """
        persistence_sys = PersistenceSystem(name=name,
                                            description=description,
                                            type=PersistenceType.COMPELLANT)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys_id, rev = self.clients.resource_registry.create(
            persistence_sys)
        return persistence_sys_id
    def create_couch_cluster(self,
                             name='',
                             description='',
                             replicas=1,
                             partitions=1):
        """Create a PersistenceSystem resource describing a couch cluster.

        @param name    str
        @param description    str
        @param replicas    int
        @param partitions    int
        @retval persistence_system_id    str
        """
        persistence_sys = PersistenceSystem(name=name,
                                            description=description,
                                            type=PersistenceType.COUCHDB)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys.defaults['partitions'] = partitions
        persistence_sys_id, rev = self.clients.resource_registry.create(
            persistence_sys)
        return persistence_sys_id
    def create_elastic_search_cluster(self,
                                      name='',
                                      description='',
                                      replicas=1,
                                      shards=1):
        """Create a PersistenceSystem resource describing a couch cluster.

        @param name    str
        @param description    str
        @param replicas    int
        @param shards    int
        @retval persistence_system_id    str
        """
        persistence_sys = PersistenceSystem(name=name,
                                            description=description,
                                            type=PersistenceType.ELASTICSEARCH)
        persistence_sys.defaults['replicas'] = replicas
        persistence_sys.defaults['shards'] = shards
        persistence_sys_id, rev = self.clients.resource_registry.create(
            persistence_sys)
        return persistence_sys_id