id stringlengths 15 25 | source stringclasses 1
value | chunk_index int64 0 393k | token_count int32 449 512 | content stringlengths 203 7.95k |
|---|---|---|---|---|
combine_chunk_1800 | combine.txt | 1,800 | 512 | _gcs]
The operator also supports running an aggregation pipeline.
.. exampleinclude:: /../../google/tests/system/google/cloud/transfers/example_mongo_to_gcs.py
:language: python
:dedent: 4
:start-after: [START howto_operator_mongo_to_gcs_aggregation]
:end-before: [END howto_operator_mongo_to_gcs_aggre... |
combine_chunk_1801 | combine.txt | 1,801 | 512 | .providers.google.cloud.transfers.bigquery_to_mssql.BigQueryToMsSqlOperator`
to define values dynamically.
You may use the parameter ``selected_fields`` to limit the fields to be copied (all fields by default),
as well as the parameter ``replace`` to overwrite the destination table instead of appending to it.
For more... |
combine_chunk_1802 | combine.txt | 1,802 | 512 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:class:`~airflow.providers.google.cloud.transfers.gcs_to_local.GCSToLocalFilesystemOperator` allows you to download
data from GCS to local filesystem.
Below is an example of using this operator to download a file from GCS.
.. exampleinclude:: /../../google/tests/system/google/cloud/gcs/... |
combine_chunk_1803 | combine.txt | 1,803 | 512 | >` with
:template-fields:`airflow.providers.google.cloud.transfers.bigquery_to_postgres.BigQueryToPostgresOperator`
to define values dynamically.
You may use the parameter ``selected_fields`` to limit the fields to be copied (all fields by default),
as well as the parameter ``replace`` to overwrite the destination tab... |
combine_chunk_1804 | combine.txt | 1,804 | 512 | OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Downloads data from Google Drive Storage to Local Filesystem
============================================================
The `Google Drive <https://ww... |
combine_chunk_1805 | combine.txt | 1,805 | 512 | to store large data from various applications.
With `Google Sheets <https://www.google.pl/intl/en/sheets/about/>`__, everyone can work together in the same
spreadsheet at the same time. Use formulas functions, and formatting options to save time and simplify
common spreadsheet tasks.
Prerequisite Tasks
^^^^^^^^^^^^^... |
combine_chunk_1806 | combine.txt | 1,806 | 512 | over the SSH protocol. It supports the full security and authentication functionality of the SSH.
Prerequisite Tasks
^^^^^^^^^^^^^^^^^^
.. include:: /operators/_partials/prerequisite_tasks.rst
.. _howto/operator:SFTPToGCSOperator:
Operator
^^^^^^^^
Transfer files between SFTP and Google Storage is performed with ... |
combine_chunk_1807 | combine.txt | 1,807 | 512 | _move_single_file_destination]
Copying directory
-----------------
Use the ``wildcard`` in ``source_path`` parameter to copy the directory.
.. exampleinclude:: /../../google/tests/system/google/cloud/gcs/example_sftp_to_gcs.py
:language: python
:dedent: 4
:start-after: [START howto_operator_sftp_to_gcs_... |
combine_chunk_1808 | combine.txt | 1,808 | 512 | under the License.
Postgres To Google Cloud Storage Operator
=========================================
The `Google Cloud Storage <https://cloud.google.com/storage/>`__ (GCS) service is
used to store large data from various applications. This page shows how to copy
data from Postgres to GCS.
Prerequisite Tasks
^^^... |
combine_chunk_1809 | combine.txt | 1,809 | 512 | same with `Azure Blob Storage <https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api>`__.
This page shows how to transfer data from Azure Blob Storage to GCS.
Prerequisite Tasks
^^^^^^^^^^^^^^^^^^
.. include:: /operators/_partials/prerequisite_tasks.rst
.. _howto/operator:AzureBlobStorageT... |
combine_chunk_1810 | combine.txt | 1,810 | 512 | store data. The `Google Cloud Storage <https://cloud.google.com/storage/>`__ is
used to store large data from various applications. The `Google Drive <https://www.google.com/drive/>`__ is
used to store daily use data, including documents and photos. Google Cloud Storage has strong integration
with Google Cloud service... |
combine_chunk_1811 | combine.txt | 1,811 | 512 | http://www.apache.org/licenses/LICENSE-2.0
.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language gover... |
combine_chunk_1812 | combine.txt | 1,812 | 512 | WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
.. _howto/operator:S3ToGCSOperator:
Transfer Data from Amazon S3 to Google Cloud Storage
==================================================... |
combine_chunk_1813 | combine.txt | 1,813 | 512 | to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not u... |
combine_chunk_1814 | combine.txt | 1,814 | 512 | https://cloud.google.com/bigquery/docs/managing-tables#copy-table>`__
<|file|>airflow/providers/google/docs/operators/transfer/presto_to_gcs.rst
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional ... |
combine_chunk_1815 | combine.txt | 1,815 | 512 | to size.
All parameters are described in the reference documentation - :class:`~airflow.providers.google.cloud.transfers.presto_to_gcs.PrestoToGCSOperator`.
An example operator call might look like this:
.. exampleinclude:: /../../google/tests/system/google/cloud/gcs/example_presto_to_gcs.py
:language: python
... |
combine_chunk_1816 | combine.txt | 1,816 | 512 | Quotas & limits in Google Cloud Storage <https://cloud.google.com/storage/quotas>`__ to see the
maximum allowed file size for a single object.
If you want to create 10 MB files, your code might look like this:
.. exampleinclude:: /../../google/tests/system/google/cloud/gcs/example_presto_to_gcs.py
:language: pyth... |
combine_chunk_1817 | combine.txt | 1,817 | 512 | more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. ... |
combine_chunk_1818 | combine.txt | 1,818 | 512 | :start-after: [START howto_ads_list_accounts_operator]
:end-before: [END howto_ads_list_accounts_operator]
Use :ref:`Jinja templating <concepts:jinja-templating>` with those parameters which allow you to
dynamically determine values:
* ``bucket``
* ``object_name``
* ``impersonation_chain``
parameters which allo... |
combine_chunk_1819 | combine.txt | 1,819 | 512 | `
to create any routine type. Routine fields mirror the BigQuery REST API's
``Routine`` resource. Pass them individually as keyword arguments, or pass the
complete resource via ``routine_resource``.
The ``if_exists`` argument controls collision behavior:
* ``"fail"`` (default) — raise when the routine already exists.... |
combine_chunk_1820 | combine.txt | 1,820 | 512 | routine's metadata. The operator pushes the serialized resource to
XCom.
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_routines.py
:language: python
:dedent: 4
:start-after: [START howto_operator_bigquery_get_routine]
:end-before: [END howto_operator_bigquery_ge... |
combine_chunk_1821 | combine.txt | 1,821 | 512 | <https://cloud.google.com/bigquery/docs/reference/rest/v2/routines>`__
* `User-defined functions <https://cloud.google.com/bigquery/docs/user-defined-functions>`__
* `Stored procedures <https://cloud.google.com/bigquery/docs/procedures>`__
* `Table functions <https://cloud.google.com/bigquery/docs/table-functions>`__
... |
combine_chunk_1822 | combine.txt | 1,822 | 512 | by its job ID.
.. exampleinclude:: /../../google/tests/system/google/cloud/ray/example_ray_job.py
:language: python
:dedent: 4
:start-after: [START how_to_ray_stop_job]
:end-before: [END how_to_ray_stop_job]
Deleting Ray Jobs
^^^^^^^^^^^^^^^^^
Use :class:`~airflow.providers.google.cloud.operators.ra... |
combine_chunk_1823 | combine.txt | 1,823 | 512 | ,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Managed Service for Apache Spark Operators... |
combine_chunk_1824 | combine.txt | 1,824 | 512 | class:`~airflow.providers.google.cloud.operators.dataproc.DataprocGetBatchOperator`,
:class:`~airflow.providers.google.cloud.operators.dataproc.DataprocListBatchesOperator`,
:class:`~airflow.providers.google.cloud.operators.dataproc.DataprocDeleteBatchOperator`, and
:class:`~airflow.providers.google.cloud.operato... |
combine_chunk_1825 | combine.txt | 1,825 | 512 | :language: python
:dedent: 0
:start-after: [START how_to_cloud_dataproc_create_cluster]
:end-before: [END how_to_cloud_dataproc_create_cluster]
With this configuration we can create the cluster:
:class:`~airflow.providers.google.cloud.operators.dataproc.DataprocCreateClusterOperator`
The executable examp... |
combine_chunk_1826 | combine.txt | 1,826 | 512 | still imports the compatibility name
``DataprocCreateClusterOperator``. The preferred alias for new code is
``ManagedSparkCreateClusterOperator``.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc/example_dataproc_gke.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_dat... |
combine_chunk_1827 | combine.txt | 1,827 | 512 | ^^^^^^^^^^^^^
High Obtainability (HO) mode enables creating Dataproc clusters using abstract hardware requirements
(number of instances, core count, and hardware class) instead of concrete machine types. The Dataproc backend
resolves these requirements into a ranked list of widely available machine families to minimiz... |
combine_chunk_1828 | combine.txt | 1,828 | 512 | ent: 4
:start-after: [START how_to_cloud_dataproc_create_ho_cluster_operator]
:end-before: [END how_to_cloud_dataproc_create_ho_cluster_operator]
Generating Cluster Config
^^^^^^^^^^^^^^^^^^^^^^^^^
.. warning::
**Deprecated:** The :class:`~airflow.providers.google.cloud.operators.dataproc.ClusterGenerator... |
combine_chunk_1829 | combine.txt | 1,829 | 512 |
You can scale the cluster up or down by providing a cluster config and a updateMask.
In the updateMask argument you specifies the path, relative to Cluster, of the field to update.
For more information on updateMask and other parameters take a look at `Managed Spark update cluster API. <https://cloud.google.com/datapr... |
combine_chunk_1830 | combine.txt | 1,830 | 512 |
:start-after: [START how_to_cloud_dataproc_scale_ho_cluster]
:end-before: [END how_to_cloud_dataproc_scale_ho_cluster]
Starting a cluster
---------------------------
To start a cluster you can use the
:class:`~airflow.providers.google.cloud.operators.dataproc.DataprocStartClusterOperator`:
The executable ex... |
combine_chunk_1831 | combine.txt | 1,831 | 512 | : 4
:start-after: [START how_to_cloud_dataproc_delete_cluster_operator_async]
:end-before: [END how_to_cloud_dataproc_delete_cluster_operator_async]
Submit a job to a cluster
-------------------------
Managed Spark supports submitting jobs of different big data components.
The list currently includes Spark, P... |
combine_chunk_1832 | combine.txt | 1,832 | 512 | : 0
:start-after: [START how_to_cloud_dataproc_sparksql_config]
:end-before: [END how_to_cloud_dataproc_sparksql_config]
Example of the configuration for a Spark Job:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc/example_dataproc_spark.py
:language: python
:dedent: 0
:start-... |
combine_chunk_1833 | combine.txt | 1,833 | 512 | :dedent: 0
:start-after: [START how_to_cloud_dataproc_sparkr_config]
:end-before: [END how_to_cloud_dataproc_sparkr_config]
Example of the configuration for a Presto Job:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc/example_dataproc_presto.py
:language: python
:dedent: 0
... |
combine_chunk_1834 | combine.txt | 1,834 | 512 | .. exampleinclude:: /../../google/tests/system/google/cloud/dataproc/example_dataproc_workflow.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_dataproc_trigger_workflow_template]
:end-before: [END how_to_cloud_dataproc_trigger_workflow_template]
Also for all this action you can use op... |
combine_chunk_1835 | combine.txt | 1,835 | 512 | :dedent: 4
:start-after: [START how_to_cloud_dataproc_create_batch_operator]
:end-before: [END how_to_cloud_dataproc_create_batch_operator]
When you need a readable ID and retry-safe uniqueness, set ``batch_id_prefix`` instead of ``batch_id``.
The operator generates a new ``<batch_id_prefix>-<8 hex characters... |
combine_chunk_1836 | combine.txt | 1,836 | 512 | :language: python
:dedent: 4
:start-after: [START how_to_cloud_dataproc_batch_async_sensor]
:end-before: [END how_to_cloud_dataproc_batch_async_sensor]
Also for all this action you can use operator in the deferrable mode:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc/example_dat... |
combine_chunk_1837 | combine.txt | 1,837 | 512 | : python
:dedent: 4
:start-after: [START how_to_cloud_dataproc_delete_batch_operator]
:end-before: [END how_to_cloud_dataproc_delete_batch_operator]
Cancel a Batch Operation
------------------------
To cancel a operation you can use:
:class:`~airflow.providers.google.cloud.operators.dataproc.DataprocCance... |
combine_chunk_1838 | combine.txt | 1,838 | 512 | /docs/operators/cloud/cloud_logging_sink.rst
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apach... |
combine_chunk_1839 | combine.txt | 1,839 | 512 | _sink.py
:language: python
:start-after: [START howto_operator_import_protobuf_obj]
:end-before: [END howto_operator_import_protobuf_obj]
:class:`~airflow.providers.google.cloud.operators.cloud_logging_sink.CloudLoggingUpdateSinkOperator`
.. exampleinclude:: /../../google/tests/system/google/cloud/cloud_lo... |
combine_chunk_1840 | combine.txt | 1,840 | 512 | the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Dataform Operators
=========================
Dataform is a service for da... |
combine_chunk_1841 | combine.txt | 1,841 | 512 | to_operator_create_compilation_result]
Get Compilation Result
----------------------
To get a Compilation Result you can use
:class:`~airflow.providers.google.cloud.operators.dataform.DataformGetCompilationResultOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataform/example_dataform.py
... |
combine_chunk_1842 | combine.txt | 1,842 | 512 | query Workflow Invocation Actions you can use
:class:`~airflow.providers.google.cloud.operators.dataform.DataformQueryWorkflowInvocationActionsOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataform/example_dataform.py
:language: python
:dedent: 4
:start-after: [START howto_operato... |
combine_chunk_1843 | combine.txt | 1,843 | 512 | /google/cloud/dataform/example_dataform.py
:language: python
:dedent: 0
:start-after: [START howto_operator_remove_directory]
:end-before: [END howto_operator_remove_directory]
Initialize workspace
--------------------
Creates default projects structure for provided workspace. Before it can be done w... |
combine_chunk_1844 | combine.txt | 1,844 | 512 | file except in compliance
with the License. You may obtain a copy of the License at
.. http://www.apache.org/licenses/LICENSE-2.0
.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS ... |
combine_chunk_1845 | combine.txt | 1,845 | 512 | The operator returns the model's response in :ref:`XCom <concepts:xcom>` under ``model_response`` key.
.. exampleinclude:: /../../google/tests/system/google/cloud/gen_ai/example_gen_ai_generative_model.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_gen_ai_generate_content_operator]
:... |
combine_chunk_1846 | combine.txt | 1,846 | 512 | ``cached_content`` key.
.. exampleinclude:: /../../google/tests/system/google/cloud/gen_ai/example_gen_ai_generative_model.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_gen_ai_create_cached_content_operator]
:end-before: [END how_to_cloud_gen_ai_create_cached_content_operator]
To... |
combine_chunk_1847 | combine.txt | 1,847 | 512 | _batch_api.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_gen_ai_batch_api_create_batch_job_with_file_task]
:end-before: [END how_to_cloud_gen_ai_batch_api_create_batch_job_with_file_task]
Operator could run in deferrable mode:
.. exampleinclude:: /../../google/tests/system/google/c... |
combine_chunk_1848 | combine.txt | 1,848 | 512 | ent: 4
:start-after: [START how_to_cloud_gen_ai_batch_api_cancel_batch_job_task]
:end-before: [END how_to_cloud_gen_ai_batch_api_cancel_batch_job_task]
Delete batch job
""""""""""""""""
To queue batch job for deletion via Batch API you can use
:class:`~airflow.providers.google.cloud.operators.gen_ai.GenAIGemi... |
combine_chunk_1849 | combine.txt | 1,849 | 512 | :language: python
:dedent: 4
:start-after: [START how_to_cloud_gen_ai_batch_api_create_embeddings_with_file_deferrable_task]
:end-before: [END how_to_cloud_gen_ai_batch_api_create_embeddings_with_file_deferrable_task]
Interacting with Gemini Files API
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The `Gemini File... |
combine_chunk_1850 | combine.txt | 1,850 | 512 | ../../google/tests/system/google/cloud/gen_ai/example_gen_ai_gemini_batch_api.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_gen_ai_files_api_list_files_task]
:end-before: [END how_to_cloud_gen_ai_files_api_list_files_task]
Delete file
"""""""""""
To delete file via Files API you ca... |
combine_chunk_1851 | combine.txt | 1,851 | 512 | rep Job is an internal object encoding the information necessary to run a part of a Cloud Dataprep job group.
For more information about the service visit `Google Dataprep API documentation <https://cloud.google.com/dataprep/docs/html/API-Reference_145281441>`_
Before you begin
^^^^^^^^^^^^^^^^
Before using Dataprep w... |
combine_chunk_1852 | combine.txt | 1,852 | 512 | END how_to_dataprep_run_job_group_operator]
.. _howto/operator:DataprepGetJobsForJobGroupOperator:
Get Jobs For Job Group
^^^^^^^^^^^^^^^^^^^^^^
Operator task is to get information about the batch jobs within a Cloud Dataprep job.
To get information about jobs within a Cloud Dataprep job use:
:class:`~airflow.provi... |
combine_chunk_1853 | combine.txt | 1,853 | 512 | RunFlowOperator`
Example usage:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataprep/example_dataprep.py
:language: python
:dedent: 4
:start-after: [START how_to_dataprep_dataprep_run_flow_operator]
:end-before: [END how_to_dataprep_dataprep_run_flow_operator]
Delete flow
^^^^^^^^^^^
... |
combine_chunk_1854 | combine.txt | 1,854 | 512 | applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Cl... |
combine_chunk_1855 | combine.txt | 1,855 | 512 | : [START gcp_text_to_speech_synthesize_template_fields]
:end-before: [END gcp_text_to_speech_synthesize_template_fields]
Reference
---------
For further information, look at:
* `Client Library Documentation <https://googleapis.github.io/google-cloud-python/latest/speech/>`__
* `Product Documentation <https://clo... |
combine_chunk_1856 | combine.txt | 1,856 | 512 | _to_cloud_managed_kafka_delete_cluster_operator]
:end-before: [END how_to_cloud_managed_kafka_delete_cluster_operator]
To get cluster you can use
:class:`~airflow.providers.google.cloud.operators.managed_kafka.ManagedKafkaGetClusterOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/managed_kaf... |
combine_chunk_1857 | combine.txt | 1,857 | 512 | afka_delete_topic_operator]
:end-before: [END how_to_cloud_managed_kafka_delete_topic_operator]
To get topic you can use
:class:`~airflow.providers.google.cloud.operators.managed_kafka.ManagedKafkaGetTopicOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/managed_kafka/example_managed_kafka_to... |
combine_chunk_1858 | combine.txt | 1,858 | 512 | START how_to_cloud_managed_kafka_get_consumer_group_operator]
:end-before: [END how_to_cloud_managed_kafka_get_consumer_group_operator]
To get a list of consumer groups you can use
:class:`~airflow.providers.google.cloud.operators.managed_kafka.ManagedKafkaListConsumerGroupsOperator`.
.. exampleinclude:: /../../g... |
combine_chunk_1859 | combine.txt | 1,859 | 512 | `Product Documentation <https://cloud.google.com/managed-service-for-apache-kafka/docs>`__
<|file|>airflow/providers/google/docs/operators/cloud/tasks.rst
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for ... |
combine_chunk_1860 | combine.txt | 1,860 | 512 | :class:`~airflow.providers.google.cloud.operators.tasks.CloudTasksQueueResumeOperator`
.. exampleinclude:: /../../google/tests/system/google/cloud/tasks/example_queue.py
:language: python
:dedent: 4
:start-after: [START resume_queue]
:end-before: [END resume_queue]
.. _howto/operator:CloudTasksQueuePa... |
combine_chunk_1861 | combine.txt | 1,861 | 512 | START list_queue]
:end-before: [END list_queue]
Tasks operations
----------------
.. _howto/operator:CloudTasksTaskCreateOperator:
Create task
^^^^^^^^^^^
To create new Task in a particular queue use
:class:`~airflow.providers.google.cloud.operators.tasks.CloudTasksTaskCreateOperator`
.. exampleinclude:: /../... |
combine_chunk_1862 | combine.txt | 1,862 | 512 | API documentation <https://cloud.google.com/tasks/docs/reference/rest>`__
* `Product documentation <https://cloud.google.com/tasks/docs>`__
<|file|>airflow/providers/google/docs/operators/cloud/spanner.rst
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See ... |
combine_chunk_1863 | combine.txt | 1,863 | 512 | Google Cloud Spanner API documentation `to create a new instance
<https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances/create>`_.
.. _howto/operator:SpannerDeleteDatabaseInstanceOperator:
SpannerDeleteDatabaseInstanceOperator
-------------------------------------
Deletes a database from the s... |
combine_chunk_1864 | combine.txt | 1,864 | 512 | :dedent: 4
:start-after: [START howto_operator_spanner_database_deploy]
:end-before: [END howto_operator_spanner_database_deploy]
Templating
""""""""""
.. literalinclude:: /../../google/src/airflow/providers/google/cloud/operators/spanner.py
:language: python
:dedent: 4
:start-after: [START gcp_s... |
combine_chunk_1865 | combine.txt | 1,865 | 512 | """"""""""
.. literalinclude:: /../../google/src/airflow/providers/google/cloud/operators/spanner.py
:language: python
:dedent: 4
:start-after: [START gcp_spanner_database_update_template_fields]
:end-before: [END gcp_spanner_database_update_template_fields]
More information
""""""""""""""""
See Goog... |
combine_chunk_1866 | combine.txt | 1,866 | 512 | variants are shown:
.. exampleinclude:: /../../google/tests/system/google/cloud/spanner/example_spanner.py
:language: python
:dedent: 4
:start-after: [START howto_operator_spanner_delete]
:end-before: [END howto_operator_spanner_delete]
Templating
""""""""""
.. literalinclude:: /../../google/src/air... |
combine_chunk_1867 | combine.txt | 1,867 | 512 | /storage-transfer/docs/reference/rest/v1/transferJobs#TimeOfDay>`_ ::
{ "year": 2019, "month": 2, "day": 11 }
- as an :class:`~datetime.datetime` object
The function accepts time in two formats:
- consistent with `Google API <https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs#TimeOfDa... |
combine_chunk_1868 | combine.txt | 1,868 | 512 | `Google Cloud Transfer Service - Method: transferJobs.create
<https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/create>`_.
.. _howto/operator:CloudDataTransferServiceDeleteJobOperator:
CloudDataTransferServiceDeleteJobOperator
-----------------------------------------
Deletes a transfer ... |
combine_chunk_1869 | combine.txt | 1,869 | 512 | """"""""""""""
See `Google Cloud Transfer Service - REST Resource: transferJobs - Run
<https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/run>`_
.. _howto/operator:CloudDataTransferServiceUpdateJobOperator:
CloudDataTransferServiceUpdateJobOperator
-----------------------------------------... |
combine_chunk_1870 | combine.txt | 1,870 | 512 | gcp_transfer_job_update_template_fields]
:end-before: [END gcp_transfer_job_update_template_fields]
More information
""""""""""""""""
See `Google Cloud Transfer Service - Method: transferJobs.patch
<https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/patch>`_
.. _howto/operator:CloudDa... |
combine_chunk_1871 | combine.txt | 1,871 | 512 | _service.py
:language: python
:dedent: 4
:start-after: [START gcp_transfer_operation_get_template_fields]
:end-before: [END gcp_transfer_operation_get_template_fields]
More information
""""""""""""""""
See `Google Cloud Transfer Service - Method: transferOperations.get
<https://cloud.google.com/storag... |
combine_chunk_1872 | combine.txt | 1,872 | 512 | /../../google/src/airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py
:language: python
:dedent: 4
:start-after: [START gcp_transfer_operation_pause_template_fields]
:end-before: [END gcp_transfer_operation_pause_template_fields]
More information
""""""""""""""""
See `Google Cl... |
combine_chunk_1873 | combine.txt | 1,873 | 512 | _gcp_transfer_wait_operation]
Templating
""""""""""
.. literalinclude:: /../../google/src/airflow/providers/google/cloud/sensors/cloud_storage_transfer_service.py
:language: python
:dedent: 4
:start-after: [START gcp_transfer_job_sensor_template_fields]
:end-before: [END gcp_transfer_job_sensor_templa... |
combine_chunk_1874 | combine.txt | 1,874 | 512 | distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Cloud Speech to Text Operators
=====================================
Prerequisite Tasks... |
combine_chunk_1875 | combine.txt | 1,875 | 512 | information, look at:
* `Client Library Documentation <https://googleapis.github.io/google-cloud-python/latest/speech/>`__
* `Product Documentation <https://cloud.google.com/speech/>`__
<|file|>airflow/providers/google/docs/operators/cloud/cloud_memorystore_memcached.rst
.. Licensed to the Apache Software Foundatio... |
combine_chunk_1876 | combine.txt | 1,876 | 512 | Operator`
operator.
.. exampleinclude:: /../../google/tests/system/google/cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
:language: python
:dedent: 4
:start-after: [START howto_operator_create_instance_memcached]
:end-before: [END howto_operator_create_instance_memcached]
.. _howto/op... |
combine_chunk_1877 | combine.txt | 1,877 | 512 | /cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
:language: python
:dedent: 4
:start-after: [START howto_operator_update_instance_memcached]
:end-before: [END howto_operator_update_instance_memcached]
.. _howto/operator:CloudMemorystoreMemcachedApplyParametersOperator:
Update and apply... |
combine_chunk_1878 | combine.txt | 1,878 | 512 | LabelsOperator:
CloudVideoIntelligenceDetectVideoLabelsOperator
-----------------------------------------------
Performs video annotation, annotating video labels.
For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.video_intelligence.CloudVideoIntelligenceDetectVideoLabelsOper... |
combine_chunk_1879 | combine.txt | 1,879 | 512 | _operator_video_intelligence_other_args]
:end-before: [END howto_operator_video_intelligence_other_args]
Using the operator
""""""""""""""""""
.. exampleinclude:: /../../google/tests/system/google/cloud/video_intelligence/example_video_intelligence.py
:language: python
:dedent: 4
:start-after:... |
combine_chunk_1880 | combine.txt | 1,880 | 512 | end-before: [END howto_operator_video_intelligence_detect_video_shots]
You can use the annotation output via Xcom:
.. exampleinclude:: /../../google/tests/system/google/cloud/video_intelligence/example_video_intelligence.py
:language: python
:dedent: 4
:start-after: [START howto_operator_video_intel... |
combine_chunk_1881 | combine.txt | 1,881 | 512 | without writing a single line of code.
BigQuery Data Transfer Service initially supports Google application sources like Google Ads,
Campaign Manager, Google Ad Manager and YouTube. Through BigQuery Data Transfer Service, users also
gain access to data connectors that allow you to easily transfer data from Teradata an... |
combine_chunk_1882 | combine.txt | 1,882 | 512 | , id of the new config is accessible in
:ref:`XCom <concepts:xcom>` under ``transfer_config_id`` key.
.. _howto/operator:BigQueryDeleteDataTransferConfigOperator:
Deleting transfer configuration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To delete DTS transfer configuration you can use
:class:`~airflow.providers.google.cloud.... |
combine_chunk_1883 | combine.txt | 1,883 | 512 | _sensor]
You can use :ref:`Jinja templating <concepts:jinja-templating>` with
:template-fields:`airflow.providers.google.cloud.sensors.bigquery_dts.BigQueryDataTransferServiceTransferRunSensor`
parameters which allows you to dynamically determine values.
Reference
^^^^^^^^^
For further information, look at:
* `Clie... |
combine_chunk_1884 | combine.txt | 1,884 | 512 | set ``use_legacy_sql=False`` to use GoogleSQL.
For more information, see
`Legacy SQL feature availability <https://docs.cloud.google.com/bigquery/docs/legacy-sql-feature-availability>`__.
Prerequisite Tasks
^^^^^^^^^^^^^^^^^^
.. include:: /operators/_partials/prerequisite_tasks.rst
Manage datasets
^^^^^^^^^... |
combine_chunk_1885 | combine.txt | 1,885 | 512 | `.
The update method replaces the entire Table resource, whereas the patch
method only replaces fields that are provided in the submitted Table resource.
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_tables.py
:language: python
:dedent: 4
:start-after: [START howto_... |
combine_chunk_1886 | combine.txt | 1,886 | 512 | QueryCreateTableOperator:
Create table
""""""""""""
To create a new table in a dataset with the data in Google Cloud Storage
you can use
:class:`~airflow.providers.google.cloud.operators.bigquery.BigQueryCreateTableOperator` by providing `table structure <https://cloud.google.com/bigquery/docs/reference/rest/v2/table... |
combine_chunk_1887 | combine.txt | 1,887 | 512 | of the ``as_dict`` parameter:
``False`` (default) - A Python list of lists, where the number of elements in the nesting list will be equal to the number of rows fetched. Each element in the
nesting will a nested list where elements would represent the column values for
that row.
``True`` - A Python list of dictionarie... |
combine_chunk_1888 | combine.txt | 1,888 | 512 | google/tests/system/google/cloud/bigquery/example_bigquery_tables.py
:language: python
:dedent: 4
:start-after: [START howto_operator_bigquery_update_table_schema]
:end-before: [END howto_operator_bigquery_update_table_schema]
.. _howto/operator:BigQueryDeleteTableOperator:
Delete table
""""""""""""
... |
combine_chunk_1889 | combine.txt | 1,889 | 512 | .BigQueryInsertJobOperator`
with proper query job configuration that can be Jinja templated.
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_queries.py
:language: python
:dedent: 4
:start-after: [START howto_operator_bigquery_insert_job]
:end-before: [END howto_ope... |
combine_chunk_1890 | combine.txt | 1,890 | 512 | howto_operator_bigquery_insert_job_async]
Durable execution
^^^^^^^^^^^^^^^^^
``BigQueryInsertJobOperator`` submits a job and then polls it to completion on the worker. By
default the operator runs in a *durable* mode that makes this crash-safe: the submitted BigQuery
job id is persisted to :doc:`task state store <a... |
combine_chunk_1891 | combine.txt | 1,891 | 512 | the right choice for it.
Durable execution requires Airflow 3.3 or newer, since it relies on the task state store. On
earlier Airflow versions the flag is a no-op -- setting it explicitly only emits a warning -- and
the operator always submits a fresh job on retry, exactly as before -- including the pre-existing
``re... |
combine_chunk_1892 | combine.txt | 1,892 | 512 | [END howto_operator_bigquery_check]
Also you can use deferrable mode in this operator
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_queries_async.py
:language: python
:dedent: 4
:start-after: [START howto_operator_bigquery_check_async]
:end-before: [END howto_o... |
combine_chunk_1893 | combine.txt | 1,893 | 512 | mode in this operator
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_queries_async.py
:language: python
:dedent: 4
:start-after: [START howto_operator_bigquery_interval_check_async]
:end-before: [END howto_operator_bigquery_interval_check_async]
.. _howto/operat... |
combine_chunk_1894 | combine.txt | 1,894 | 512 | exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_sensors.py
:language: python
:dedent: 4
:start-after: [START howto_sensor_bigquery_table_defered]
:end-before: [END howto_sensor_bigquery_table_defered]
.. exampleinclude:: /../../google/tests/system/google/cloud/bigque... |
combine_chunk_1895 | combine.txt | 1,895 | 512 | ETL pipelines to ensure that recent streamed data has been fully
processed before continuing downstream tasks.
.. exampleinclude:: /../../google/tests/system/google/cloud/bigquery/example_bigquery_streaming_buffer_sensor.py
:language: python
:dedent: 4
:start-after: [START howto_sensor_bigquery_streaming_... |
combine_chunk_1896 | combine.txt | 1,896 | 512 | :: /operators/_partials/prerequisite_tasks.rst
Create a job
---------------------
Before you create a job in Cloud Run, you need to define it.
For more information about the Job object fields, visit `Google Cloud Run Job description <https://cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run... |
combine_chunk_1897 | combine.txt | 1,897 | 512 | _run_service.py
:language: python
:dedent: 0
:start-after: [START howto_operator_cloud_run_service_creation]
:end-before: [END howto_operator_cloud_run_service_creation]
With this configuration we can create the service:
:class:`~airflow.providers.google.cloud.operators.cloud_run.CloudRunCreateService... |
combine_chunk_1898 | combine.txt | 1,898 | 512 | _run/example_cloud_run.py
:language: python
:dedent: 4
:start-after: [START howto_operator_cloud_run_execute_job_deferrable_mode]
:end-before: [END howto_operator_cloud_run_execute_job_deferrable_mode]
Transport
^^^^^^^^^
The :class:`~airflow.providers.google.cloud.operators.cloud_run.CloudRunExecuteJ... |
combine_chunk_1899 | combine.txt | 1,899 | 512 | task_id="execute_cloud_run_job",
project_id=PROJECT_ID,
region=region,
job_name=job_name,
verbose=True,
)
When enabling ``verbose``:
* The service account used by ``gcp_conn_id`` (or by ``impersonation_chain``) must have the
``roles/logging.viewer`` role on the project th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.