from .... pyaz_utils import _call_az

def create(account_name, body, container_name, database_name, name, resource_group, operation=None, type=None):
    '''
    Create an SQL trigger under an Azure Cosmos DB SQL container.
    '''
    return _call_az("az cosmosdb sql trigger create", locals())


def update(account_name, container_name, database_name, name, resource_group, body=None, operation=None, type=None):
    return _call_az("az cosmosdb sql trigger update", locals())


def list(account_name, container_name, database_name, resource_group):
    '''
    List the SQL triggers under an Azure Cosmos DB SQL container.
    '''
    return _call_az("az cosmosdb sql trigger list", locals())


def show(account_name, container_name, database_name, name, resource_group):
    '''
    Show the details of a SQL trigger under an Azure Cosmos DB SQL container.
    '''
    return _call_az("az cosmosdb sql trigger show", locals())


def delete(account_name, container_name, database_name, name, resource_group, yes=None):
    '''
    Delete the SQL trigger under an Azure Cosmos DB SQL container.
    '''
    return _call_az("az cosmosdb sql trigger delete", locals())

