:mod:`airflow.contrib.operators.azure_cosmos_operator` ====================================================== .. py:module:: airflow.contrib.operators.azure_cosmos_operator Module Contents --------------- .. py:class:: AzureCosmosInsertDocumentOperator(database_name, collection_name, document, azure_cosmos_conn_id='azure_cosmos_default', *args, **kwargs) Bases::class:`airflow.models.BaseOperator` Inserts a new document into the specified Cosmos database and collection It will create both the database and collection if they do not already exist :param database_name: The name of the database. (templated) :type database_name: str :param collection_name: The name of the collection. (templated) :type collection_name: str :param document: The document to insert :type document: dict :param azure_cosmos_conn_id: reference to a CosmosDB connection. :type azure_cosmos_conn_id: str .. attribute:: template_fields :annotation: = ['database_name', 'collection_name'] .. attribute:: ui_color :annotation: = #e4f0e8 .. method:: execute(self, context)