def index_storage_mode_to_param(value, default='plasma'):
    'Converts the index storage mode to what Couchbase understands'
    if (value == 'default'):
        return default
    if (value == 'memopt'):
        return 'memory_optimized'
    return value
Converts the index storage mode to what Couchbase understands
def index_storage_mode_to_param(value, default='plasma'):
    
    if (value == 'default'):
        return default
    if (value == 'memopt'):
        return 'memory_optimized'
    return value