(self, version)
:return: list of resource slugs corresponding to version
:return: list of resource slugs corresponding to version
: return : list of resource slugs corresponding to version
def get_resource_slugs(self, version):
        """
        :return: list of resource slugs corresponding to version
        """
        all_resources = self.list_resources().json()
        if version and self.use_version_postfix:
            # get all slugs with version postfix
            return [r['slug']
                    for r in all_resources
                    if r['slug'].endswith("v%s" % version)]
        elif version and not self.use_version_postfix:
            # get all slugs that don't have version postfix
            return [r['slug']
                    for r in all_resources
                    if not r['slug'].endswith("v%s" % version)]
        else:
            # get all slugs
            return [r['slug'] for r in all_resources]
def get_resource_slugs ( self , version ) : all_resources = self . list_resources ( ) . json ( ) if version and self . use_version_postfix : # get all slugs with version postfix return [ r [ 'slug' ] for r in all_resources if r [ 'slug' ] . endswith ( "v%s" % version ) ] elif version and not self . use_version_postfix : # get all slugs that don't have version postfix return [ r [ 'slug' ] for r in all_resources if not r [ 'slug' ] . endswith ( "v%s" % version ) ] else : # get all slugs return [ r [ 'slug' ] for r in all_resources ]