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_2000 | combine.txt | 2,000 | 512 | ``KubernetesPodOperator`` to provide authorization using Google Cloud credentials.
There is no need to manage the ``kube_config`` file, as it will be generated automatically.
All Kubernetes parameters (except ``config_file``) are also valid for the ``GKEStartPodOperator``.
For more information on ``KubernetesPodOperat... |
combine_chunk_2001 | combine.txt | 2,001 | 512 | contents of this can then be used downstream in your Dag.
Here is an example of it being used:
.. exampleinclude:: /../../google/tests/system/google/cloud/kubernetes_engine/example_kubernetes_engine.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gke_start_pod_xcom]
:end-before: [E... |
combine_chunk_2002 | combine.txt | 2,002 | 512 | :dedent: 4
:start-after: [START howto_operator_gke_pod_exec]
:end-before: [END howto_operator_gke_pod_exec]
.. _howto/operator:GKEStartJobOperator:
Run a Job on a GKE cluster
""""""""""""""""""""""""""
There are two operators available in order to run a job on a GKE cluster:
* :class:`~airflow.providers.c... |
combine_chunk_2003 | combine.txt | 2,003 | 512 | .operators.job.KubernetesDeleteJobOperator`
* :class:`~airflow.providers.google.cloud.operators.kubernetes_engine.GKEDeleteJobOperator`
``GKEDeleteJobOperator`` extends ``KubernetesDeleteJobOperator`` to provide authorization using Google Cloud credentials.
There is no need to manage the ``kube_config`` file, as it wi... |
combine_chunk_2004 | combine.txt | 2,004 | 512 | can use :class:`~airflow.providers.google.cloud.operators.kubernetes_engine.GKECreateCustomResourceOperator` to
create resource in the specified Google Kubernetes Engine cluster.
.. exampleinclude:: /../../google/tests/system/google/cloud/kubernetes_engine/example_kubernetes_engine_resource.py
:language: python
... |
combine_chunk_2005 | combine.txt | 2,005 | 512 | Sovereign Cloud from Google guidance
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In the Sovereign Cloud from Google environments, the practical question for Kubernetes Engine
is which operator parameters to set. For most of the operators, the answer is easy: ``use_dns_endpoint=True``.
For example:
.. code-block:: python
... |
combine_chunk_2006 | combine.txt | 2,006 | 512 | /prerequisite_tasks.rst
.. _howto/operator:ComputeEngineSSHOperator:
ComputeEngineRemoteInstanceSSHOperator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Use the
:class:`~airflow.providers.ssh.operators.ssh.SSHOperator` together with
:class:`~airflow.providers.google.cloud.hooks.compute_ssh.ComputeEngineSSHHook`
to execute... |
combine_chunk_2007 | combine.txt | 2,007 | 512 | permissions are present.
Below is the code to create the operator:
.. exampleinclude:: /../../google/tests/system/google/cloud/compute/example_compute_ssh.py
:language: python
:dedent: 4
:start-after: [START howto_execute_command_on_remote_1]
:end-before: [END howto_execute_command_on_remote_1]
You ... |
combine_chunk_2008 | combine.txt | 2,008 | 512 | you need to define it.
For more information about the Job object fields, visit `Google Cloud Batch Job description <https://cloud.google.com/python/docs/reference/batch/latest/google.cloud.batch_v1.types.Job>`__.
A simple job configuration can look as follows:
.. exampleinclude:: /../../google/tests/system/google/cl... |
combine_chunk_2009 | combine.txt | 2,009 | 512 | _cloud_batch.py
:language: python
:dedent: 4
:start-after: [START howto_operator_batch_list_jobs]
:end-before: [END howto_operator_batch_list_jobs]
The operator takes two optional parameters: "limit" to limit the number of tasks returned, and "filter" to only list the tasks matching the `filter <https:... |
combine_chunk_2010 | combine.txt | 2,010 | 512 | :
- **Non-templated pipeline**: Developer can run the pipeline as a local process on the Airflow worker
if you have a ``*.jar`` file for Java or a ``*.py`` file for Python. This also means that the necessary system
dependencies must be installed on the worker. For Java, worker must have the JRE Runtime installed.... |
combine_chunk_2011 | combine.txt | 2,011 | 512 | """"""""""""""""""""
A new pipeline can be created by passing its structure in a JSON format. See
:class:`~airflow.providers.google.cloud.operators.dataflow.DataflowCreatePipelineOperator`
This will create a new pipeline that will be visible on Dataflow Pipelines UI.
Here is an example of how you can create a Dataflow... |
combine_chunk_2012 | combine.txt | 2,012 | 512 | `
or
:class:`~airflow.providers.apache.beam.operators.beam.BeamRunPythonPipelineOperator`
.. _howto/operator:JavaSDKPipelines:
Java SDK pipelines
""""""""""""""""""
For Java pipeline the ``jar`` argument must be specified for
:class:`~airflow.providers.apache.beam.operators.beam.BeamRunJavaPipelineOperator`
as it co... |
combine_chunk_2013 | combine.txt | 2,013 | 512 | ``py_file`` argument must be specified for
:class:`~airflow.providers.apache.beam.operators.beam.BeamRunPythonPipelineOperator`
as it contains the pipeline to be executed on Dataflow. The Python file can be available on GCS that Airflow
has the ability to download or available on the local filesystem (provide the abso... |
combine_chunk_2014 | combine.txt | 2,014 | 512 | `Configuring PipelineOptions for execution on the Cloud Dataflow service <https://cloud.google.com/dataflow/docs/guides/specifying-exec-params#configuring-pipelineoptions-for-execution-on-the-cloud-dataflow-service>`_
Asynchronous execution
""""""""""""""""""""""
Dataflow batch jobs are by default asynchronous; howe... |
combine_chunk_2015 | combine.txt | 2,015 | 512 | :start-after: [START howto_operator_start_streaming_python_job_deferrable]
:end-before: [END howto_operator_start_streaming_python_job_deferrable]
Setting argument ``drain_pipeline`` to ``True`` allows to stop streaming job by draining it
instead of canceling during killing task instance.
See the `Stopping a... |
combine_chunk_2016 | combine.txt | 2,016 | 512 | : [START howto_operator_start_flex_template_job]
:end-before: [END howto_operator_start_flex_template_job]
Also for this action you can use the operator in the deferrable mode:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataflow/example_dataflow_template.py
:language: python
:dedent: 4
... |
combine_chunk_2017 | combine.txt | 2,017 | 512 | job_id`` to stop a specific job, or ``job_name_prefix`` to stop all jobs with provided name prefix.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataflow/example_dataflow_native_python.py
:language: python
:dedent: 4
:start-after: [START howto_operator_stop_dataflow_job]
:end-before: [EN... |
combine_chunk_2018 | combine.txt | 2,018 | 512 | ^^^
When job is triggered asynchronously sensors may be used to run checks for specific job properties.
:class:`~airflow.providers.google.cloud.sensors.dataflow.DataflowJobStatusSensor`.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataflow/example_dataflow_native_python_async.py
:language: python... |
combine_chunk_2019 | combine.txt | 2,019 | 512 | 4
:start-after: [START howto_sensor_wait_for_job_message_deferrable]
:end-before: [END howto_sensor_wait_for_job_message_deferrable]
:class:`~airflow.providers.google.cloud.sensors.dataflow.DataflowJobAutoScalingEventsSensor`.
.. exampleinclude:: /../../google/tests/system/google/cloud/dataflow/example_dataf... |
combine_chunk_2020 | combine.txt | 2,020 | 512 | KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Cloud Dataproc Metastore Operators
=========================================
Dataproc Metastore is a fully managed, highly available, auto-healing serverless
Apache H... |
combine_chunk_2021 | combine.txt | 2,021 | 512 | _metastore_get_service_operator]
:end-before: [END how_to_cloud_dataproc_metastore_get_service_operator]
Update a service
----------------
You can update the service by providing a service config and an updateMask.
In the updateMask argument you specifies the path, relative to Service, of the field to update.
For ... |
combine_chunk_2022 | combine.txt | 2,022 | 512 |
:dedent: 4
:start-after: [START how_to_cloud_dataproc_metastore_export_metadata_operator]
:end-before: [END how_to_cloud_dataproc_metastore_export_metadata_operator]
Restore a service
-----------------
To restore a service you can use:
:class:`~airflow.providers.google.cloud.operators.dataproc_metastore... |
combine_chunk_2023 | combine.txt | 2,023 | 512 | ://cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.backups#Backup>`__
A simple backup configuration can look as followed:
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc_metastore/example_dataproc_metastore_backup.py
:language: python
:dedent: 0
... |
combine_chunk_2024 | combine.txt | 2,024 | 512 | _metastore.MetastoreHivePartitionSensor`
.. exampleinclude:: /../../google/tests/system/google/cloud/dataproc_metastore/example_dataproc_metastore_hive_partition_sensor.py
:language: python
:dedent: 4
:start-after: [START how_to_cloud_dataproc_metastore_hive_partition_sensor]
:end-before: [END how_to_c... |
combine_chunk_2025 | combine.txt | 2,025 | 512 | :: /../../google/tests/system/google/cloud/workflows/example_workflows.py
:language: python
:dedent: 0
:start-after: [START how_to_define_workflow]
:end-before: [END how_to_define_workflow]
For more information about authoring workflows check official
production documentation `<Product document... |
combine_chunk_2026 | combine.txt | 2,026 | 512 | not idempotent due to API limitation.
.. exampleinclude:: /../../google/tests/system/google/cloud/workflows/example_workflows.py
:language: python
:dedent: 4
:start-after: [START how_to_create_execution]
:end-before: [END how_to_create_execution]
The create operator does not wait for executio... |
combine_chunk_2027 | combine.txt | 2,027 | 512 | 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. You may obtain a copy of the License at
.. http://www.apache.org/licenses/LICENSE-2.0
.... |
combine_chunk_2028 | combine.txt | 2,028 | 512 | :
:class:`~airflow.providers.google.cloud.operators.managed_airflow.ManagedAirflowCreateEnvironmentOperator`
The executable example below still imports the compatibility name
``CloudComposerCreateEnvironmentOperator``. The preferred alias for new code is
``ManagedAirflowCreateEnvironmentOperator``.
The create operato... |
combine_chunk_2029 | combine.txt | 2,029 | 512 | : [END howto_operator_get_managed_airflow_environment]
List environments
--------------------
To list environments you can use:
:class:`~airflow.providers.google.cloud.operators.managed_airflow.ManagedAirflowListEnvironmentsOperator`
The executable example below still imports the compatibility name
``CloudComposerL... |
combine_chunk_2030 | combine.txt | 2,030 | 512 | start-after: [START howto_operator_update_managed_airflow_environment_deferrable_mode]
:end-before: [END howto_operator_update_managed_airflow_environment_deferrable_mode]
Delete an environment
---------------------
To delete an environment you can use:
:class:`~airflow.providers.google.cloud.operators.managed_a... |
combine_chunk_2031 | combine.txt | 2,031 | 512 | include:: /../../google/tests/system/google/cloud/composer/example_cloud_composer.py
:language: python
:dedent: 4
:start-after: [START howto_operator_run_airflow_cli_command]
:end-before: [END howto_operator_run_airflow_cli_command]
or you can define the same operator in the deferrable mode:
.. exampl... |
combine_chunk_2032 | combine.txt | 2,032 | 512 | for a different DAG, task group, or task to complete for a specific
Managed Service for Apache Airflow environment, use:
:class:`~airflow.providers.google.cloud.sensors.cloud_composer.CloudComposerExternalTaskSensor`
.. exampleinclude:: /../../google/tests/system/google/cloud/composer/example_cloud_composer.py
:l... |
combine_chunk_2033 | combine.txt | 2,033 | 512 | info-type you can use
:class:`~airflow.providers.google.cloud.operators.cloud.dlp.CloudDLPCreateStoredInfoTypeOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/data_loss_prevention/example_dlp_info_types.py
:language: python
:dedent: 4
:start-after: [START howto_operator_dlp_create_in... |
combine_chunk_2034 | combine.txt | 2,034 | 512 | _dlp_delete_info_type]
Templates
^^^^^^^^^
Templates can be used to create and persist
configuration information to use with the Cloud Data Loss Prevention.
There are two types of DLP templates supported by Airflow:
* Inspection Template
* De-Identification Template
Here we will be using identification template fo... |
combine_chunk_2035 | combine.txt | 2,035 | 512 | :`~airflow.providers.google.cloud.operators.cloud.dlp.CloudDLPDeleteInspectTemplateOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/data_loss_prevention/example_dlp_inspect_template.py
:language: python
:dedent: 4
:start-after: [START howto_operator_dlp_delete_inspect_template]
:e... |
combine_chunk_2036 | combine.txt | 2,036 | 512 | Operator`.
.. _howto/operator:CloudDLPDeleteDLPJobOperator:
Deleting Job
""""""""""""
To delete a job you can use
:class:`~airflow.providers.google.cloud.operators.cloud.dlp.CloudDLPDeleteDLPJobOperator`.
.. _howto/operator:CloudDLPCancelDLPJobOperator:
Canceling a Job
""""""""""""""""
To start asynchronous cance... |
combine_chunk_2037 | combine.txt | 2,037 | 512 | job trigger you can use
:class:`~airflow.providers.google.cloud.operators.cloud.dlp.CloudDLPDeleteJobTriggerOperator`.
.. exampleinclude:: /../../google/tests/system/google/cloud/data_loss_prevention/example_dlp_job_trigger.py
:language: python
:dedent: 4
:start-after: [START howto_operator_dlp_delete_job... |
combine_chunk_2038 | combine.txt | 2,038 | 512 | LPRedactImageOperator:
Reference
^^^^^^^^^
For further information, look at:
* `Client Library Documentation <https://googleapis.dev/python/dlp/latest/index.html>`__
* `Product Documentation <https://cloud.google.com/dlp/docs>`__
<|file|>airflow/providers/google/docs/operators/cloud/functions.rst
.. Licensed to th... |
combine_chunk_2039 | combine.txt | 2,039 | 512 | 1/projects.locations.functions/delete>`_.
.. _howto/operator:CloudFunctionDeployFunctionOperator:
CloudFunctionDeployFunctionOperator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Use the operator to deploy a function to Google Cloud Functions.
If a function with this name already exists, it will be updated.
For parameter de... |
combine_chunk_2040 | combine.txt | 2,040 | 512 | : [END howto_operator_gcf_deploy]
You can also create the operator without project id - project id will be retrieved
from the Google Cloud connection used:
.. exampleinclude:: /../../google/tests/system/google/cloud/cloud_functions/example_functions.py
:language: python
:dedent: 4
:start-after: [START how... |
combine_chunk_2041 | combine.txt | 2,041 | 512 | howto/operator:CloudFunctionInvokeFunctionOperator:
CloudFunctionInvokeFunctionOperator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Use the operator to invoke a deployed function in Google Cloud Functions.
For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.functions.CloudFunctionInvok... |
combine_chunk_2042 | combine.txt | 2,042 | 512 | """"""""""""""""""
We are using the :class:`~google.cloud.vision_v1.types.Product`,
:class:`~google.cloud.vision_v1.types.ProductSet` and :class:`~google.api_core.retry.Retry` objects from
Google libraries:
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/example_vision_autogenerated.py
:langu... |
combine_chunk_2043 | combine.txt | 2,043 | 512 | /v1/api.html#google.cloud.vision_v1.ProductSearchClient.add_product_to_product_set>`_.
.. _howto/operator:CloudVisionImageAnnotateOperator:
CloudVisionImageAnnotateOperator
--------------------------------
Run image detection and annotation for an image.
For parameter definition, take a look at
:class:`~airflow.pr... |
combine_chunk_2044 | combine.txt | 2,044 | 512 | _image>`_.
.. _howto/operator:CloudVisionCreateProductOperator:
CloudVisionCreateProductOperator
--------------------------------
Creates and returns a new product resource.
Possible errors regarding the :code:`Product` object provided:
- Returns INVALID_ARGUMENT if ``display_name`` is missing or longer than 4096 ... |
combine_chunk_2045 | combine.txt | 2,045 | 512 | :dedent: 4
:start-after: [START vision_product_create_template_fields]
:end-before: [END vision_product_create_template_fields]
More information
""""""""""""""""
See `Google Cloud Vision Product create documentation
<https://googleapis.github.io/google-cloud-python/latest/vision/gapic/v1/api.html#google.c... |
combine_chunk_2046 | combine.txt | 2,046 | 512 | -
Gets information associated with a :code:`Product`.
Possible errors:
- Returns NOT_FOUND if the ``Product`` does not exist.
For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.vision.CloudVisionGetProductOperator`
Using the operator
""""""""""""""""""
If ``product_id`` was... |
combine_chunk_2047 | combine.txt | 2,047 | 512 | /vision/example_vision_autogenerated.py
:language: python
:start-after: [START howto_operator_vision_retry_import]
:end-before: [END howto_operator_vision_retry_import]
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/example_vision_autogenerated.py
:language: python
:start-after:... |
combine_chunk_2048 | combine.txt | 2,048 | 512 | it can be extracted from XCOM:
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/example_vision_autogenerated.py
:language: python
:dedent: 4
:start-after: [START howto_operator_vision_product_set_delete]
:end-before: [END howto_operator_vision_product_set_delete]
Otherwise it can be... |
combine_chunk_2049 | combine.txt | 2,049 | 512 | ]
Templating
""""""""""
.. literalinclude:: /../../google/src/airflow/providers/google/cloud/operators/vision.py
:language: python
:dedent: 4
:start-after: [START vision_productset_get_template_fields]
:end-before: [END vision_productset_get_template_fields]
More information
""""""""""""""""
See `Go... |
combine_chunk_2050 | combine.txt | 2,050 | 512 | :
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/example_vision_autogenerated.py
:language: python
:dedent: 4
:start-after: [START howto_operator_vision_product_set_update]
:end-before: [END howto_operator_vision_product_set_update]
Otherwise it can be specified explicitly:
.. exa... |
combine_chunk_2051 | combine.txt | 2,051 | 512 | is present in ``update_mask`` but is missing
from the request or longer than 4096 characters.
- Returns INVALID_ARGUMENT if ``description`` is present in ``update_mask`` but is longer than
4096 characters.
- Returns INVALID_ARGUMENT if ``product_category`` is present in ``update_mask``.
For parameter definition, ... |
combine_chunk_2052 | combine.txt | 2,052 | 512 | howto/operator:CloudVisionCreateReferenceImageOperator:
CloudVisionCreateReferenceImageOperator
---------------------------------------
Creates a new :code:`ReferenceImage` resource.
For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.vision.CloudVisionCreateReferenceImageOpera... |
combine_chunk_2053 | combine.txt | 2,053 | 512 | """"""""""
See `Google Cloud Vision ReferenceImage delete documentation
<https://googleapis.github.io/google-cloud-python/latest/vision/gapic/v1/api.html#google.cloud.vision_v1.ProductSearchClient.create_reference_image>`_.
.. _howto/operator:CloudVisionDeleteReferenceImageOperator:
CloudVisionDeleteReferenceImageOp... |
combine_chunk_2054 | combine.txt | 2,054 | 512 | /vision.py
:language: python
:dedent: 4
:start-after: [START vision_reference_image_create_template_fields]
:end-before: [END vision_reference_image_create_template_fields]
More information
""""""""""""""""
See `Google Cloud Vision ReferenceImage create documentation
<https://googleapis.github.io/goog... |
combine_chunk_2055 | combine.txt | 2,055 | 512 | /example_vision_explicit.py
:language: python
:dedent: 4
:start-after: [START howto_operator_vision_remove_product_from_product_set_2]
:end-before: [END howto_operator_vision_remove_product_from_product_set_2]
Templating
""""""""""
.. literalinclude:: /../../google/src/airflow/providers/googl... |
combine_chunk_2056 | combine.txt | 2,056 | 512 | : python
:dedent: 4
:start-after: [START vision_detect_text_set_template_fields]
:end-before: [END vision_detect_text_set_template_fields]
More information
""""""""""""""""
See `Google Cloud Vision Text Detection documentation
<https://googleapis.github.io/google-cloud-python/latest/vision/gapic/v1/api.ht... |
combine_chunk_2057 | combine.txt | 2,057 | 512 | _text_detection>`_.
.. _howto/operator:CloudVisionDetectImageLabelsOperator:
CloudVisionDetectImageLabelsOperator
------------------------------------
Run image label detection for an image.
For parameter definition, take a look at
:class:`~airflow.providers.google.cloud.operators.vision.CloudVisionDetectImageLabel... |
combine_chunk_2058 | combine.txt | 2,058 | 512 | :
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/example_vision_annotate_image.py
:language: python
:start-after: [START howto_operator_vision_retry_import]
:end-before: [END howto_operator_vision_retry_import]
.. exampleinclude:: /../../google/tests/system/google/cloud/vision/ex... |
combine_chunk_2059 | combine.txt | 2,059 | 512 | 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 Cloud Memorystor... |
combine_chunk_2060 | combine.txt | 2,060 | 512 | <https://cloud.google.com/memorystore/docs/redis/access-control#required_permissions_for_import_and_export>`__
.. _howto/operator:CloudMemorystoreCreateInstanceOperator:
Create instance
^^^^^^^^^^^^^^^
Create a instance is performed with the
:class:`~airflow.providers.google.cloud.operators.cloud_memorystore.CloudMe... |
combine_chunk_2061 | combine.txt | 2,061 | 512 | exampleinclude:: /../../google/tests/system/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
:language: python
:dedent: 4
:start-after: [START howto_operator_export_instance]
:end-before: [END howto_operator_export_instance]
You can use :ref:`Jinja templating <concepts:jinja-templatin... |
combine_chunk_2062 | combine.txt | 2,062 | 512 | /../../google/tests/system/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
:language: python
:dedent: 4
:start-after: [START howto_operator_import_instance]
:end-before: [END howto_operator_import_instance]
You can use :ref:`Jinja templating <concepts:jinja-templating>` with
:templat... |
combine_chunk_2063 | combine.txt | 2,063 | 512 | template-fields:`airflow.providers.google.cloud.operators.cloud_memorystore.CloudMemorystoreUpdateInstanceOperator`
parameters which allows you to dynamically determine values.
.. _howto/operator:CloudMemorystoreScaleInstanceOperator:
Scale instance
^^^^^^^^^^^^^^
Scale a instance is performed with the
:class:`~air... |
combine_chunk_2064 | combine.txt | 2,064 | 512 | under the Apache License, Version 2.0 (the
"License"); you may not use this 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 L... |
combine_chunk_2065 | combine.txt | 2,065 | 512 | If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:
.. exampleinclude:: /../../google/tests/system/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_instance_update]
:end-bef... |
combine_chunk_2066 | combine.txt | 2,066 | 512 | .BigtableCreateTableOperator`
to create a table in a Cloud Bigtable instance.
This operator creates a new table with specified column families and optional
split keys. It is typically used when initializing schema or preparing storage
for application data.
If the table with given ID exists in the Cloud Bigtable inst... |
combine_chunk_2067 | combine.txt | 2,067 | 512 | . If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:
Use the :class:`~airflow.providers.google.cloud.sensors.bigtable.BigtableTableReplicationCompletedSensor`
to wait for the table to replicate fully.
This sensor periodically checks the replication status and... |
combine_chunk_2068 | combine.txt | 2,068 | 512 | Prerequisite Tasks
------------------
.. include:: /operators/_partials/prerequisite_tasks.rst
.. _howto/operator:CloudMonitoringListAlertPoliciesOperator:
CloudMonitoringListAlertPoliciesOperator
-----------------------------------------
Use the :class:`~airflow.providers.google.cloud.operators.cloud_monitoring.C... |
combine_chunk_2069 | combine.txt | 2,069 | 512 | _cloud_monitoring_disable_alert_policy]
:end-before: [END howto_operator_gcp_cloud_monitoring_disable_alert_policy]
.. _howto/operator:CloudMonitoringUpsertAlertOperator:
CloudMonitoringUpsertAlertOperator
------------------------------------
Use the :class:`~airflow.providers.google.cloud.operators.cloud_monito... |
combine_chunk_2070 | combine.txt | 2,070 | 512 | python
:dedent: 4
:start-after: [START howto_operator_gcp_cloud_monitoring_list_notification_channel]
:end-before: [END howto_operator_gcp_cloud_monitoring_list_notification_channel]
.. _howto/operator:CloudMonitoringEnableNotificationChannelsOperator:
CloudMonitoringEnableNotificationChannelsOperator
--... |
combine_chunk_2071 | combine.txt | 2,071 | 512 | .. exampleinclude:: /../../google/tests/system/google/cloud/cloud_monitoring/example_cloud_monitoring.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_cloud_monitoring_upsert_notification_channel]
:end-before: [END howto_operator_gcp_cloud_monitoring_upsert_notification_channel]
... |
combine_chunk_2072 | combine.txt | 2,072 | 512 | sync across client apps through realtime listeners and offers offline support for mobile and web
so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud
Firestore also offers seamless integration with other Firebase and Google Cloud products, including
Cloud Functions.
... |
combine_chunk_2073 | combine.txt | 2,073 | 512 |
`LevelDB <https://github.com/google/leveldb>`__ is a fast key-value storage library written at Google that provides
an ordered mapping from string keys to string values.
.. note::
To use LevelDB hooks and operators you must requires installation of ``plyvel``. It will be
installed if you specify the extra ... |
combine_chunk_2074 | combine.txt | 2,074 | 512 | /devguides/config/admin/v1>`__.
Prerequisite Tasks
^^^^^^^^^^^^^^^^^^
.. include:: /operators/_partials/prerequisite_tasks.rst
.. _howto/operator:GoogleAnalyticsAdminListAccountsOperator:
List the Accounts
^^^^^^^^^^^^^^^^^
To list accounts from Analytics you can use the
:class:`~airflow.providers.google.marketing... |
combine_chunk_2075 | combine.txt | 2,075 | 512 | _admin.GoogleAnalyticsAdminDeletePropertyOperator`
.. _howto/operator:GoogleAnalyticsAdminCreateDataStreamOperator:
Create Data stream
^^^^^^^^^^^^^^^^^^
Creates a data stream.
To create a data stream you can use the
:class:`~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminC... |
combine_chunk_2076 | combine.txt | 2,076 | 512 | LinksOperator`
.. _howto/operator:GoogleAnalyticsAdminGetGoogleAdsLinkOperator:
Get the Google Ads link
^^^^^^^^^^^^^^^^^^^^^^^
To list Google Ads links you can use the
:class:`~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminGetGoogleAdsLinkOperator`.
.. exampleinclude:: /... |
combine_chunk_2077 | combine.txt | 2,077 | 512 | 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. 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 writin... |
combine_chunk_2078 | combine.txt | 2,078 | 512 | _platform.operators.search_ads.GoogleSearchAdsGetFieldOperator`
parameters which allows you to dynamically determine values.
.. _howto/operator:GoogleSearchAdsSearchFieldsOperator:
Retrieve metadata for multiple fields
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To retrieve metadata of multiple fields use the
:class:`~ai... |
combine_chunk_2079 | combine.txt | 2,079 | 512 | template-fields:`airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsListCustomColumnsOperator`
parameters which allows you to dynamically determine values.
<|file|>airflow/providers/google/docs/operators/marketing_platform/display_video.rst
.. Licensed to the Apache Software Foundation (A... |
combine_chunk_2080 | combine.txt | 2,080 | 512 | ^^
To save SDF files and save them in the Google Cloud Storage use
:class:`~airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360SDFtoGCSOperator`.
.. exampleinclude:: /../../google/tests/system/google/marketing_platform/example_display_video.py
:language: python
:dedent: 4... |
combine_chunk_2081 | combine.txt | 2,081 | 512 | OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Google Campaign Manager Operators
=================================
Google Campaign Manager operators allow you to insert, run, get or delete
reports. For more infor... |
combine_chunk_2082 | combine.txt | 2,082 | 512 | .providers.google.marketing_platform.sensors.campaign_manager.GoogleCampaignManagerReportSensor`.
.. exampleinclude:: /../../google/tests/system/google/marketing_platform/example_campaign_manager.py
:language: python
:dedent: 4
:start-after: [START howto_campaign_manager_wait_for_operation]
:end-before... |
combine_chunk_2083 | combine.txt | 2,083 | 512 | ManagerRunReportOperator`
parameters which allows you to dynamically determine values.
The result is saved to :ref:`XCom <concepts:xcom>`, which allows it to be used by other operators.
.. _howto/operator:GoogleCampaignManagerBatchInsertConversionsOperator:
Inserting conversions
^^^^^^^^^^^^^^^^^^^^^^^
To insert Cam... |
combine_chunk_2084 | combine.txt | 2,084 | 512 | file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this 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 distrib... |
combine_chunk_2085 | combine.txt | 2,085 | 512 | howto_google_bid_manager_get_query_operator]
:end-before: [END howto_google_bid_manager_get_query_operator]
Use :ref:`Jinja templating <concepts:jinja-templating>` with
:template-fields:`airflow.providers.google.marketing_platform.operators.bid_manager.GoogleBidManagerGetQueryOperator`
parameters which allow you ... |
combine_chunk_2086 | combine.txt | 2,086 | 512 | :dedent: 4
:start-after: [START howto_google_bid_manager_get_report_operator]
:end-before: [END howto_google_bid_manager_get_report_operator]
Use :ref:`Jinja templating <concepts:jinja-templating>` with
:template-fields:`airflow.providers.google.marketing_platform.operators.bid_manager.GoogleBidManagerGetR... |
combine_chunk_2087 | combine.txt | 2,087 | 512 | start-after: [START howto_google_bid_manager_wait_run_query_sensor]
:end-before: [END howto_google_bid_manager_wait_run_query_sensor]
Use :ref:`Jinja templating <concepts:jinja-templating>` with
:template-fields:`airflow.providers.google.marketing_platform.sensors.bid_manager.GoogleBidManagerRunQuerySensor`
parame... |
combine_chunk_2088 | combine.txt | 2,088 | 512 | GENERATED. IT WILL BE OVERWRITTEN!
Package apache-airflow-providers-google
------------------------------------------------------
Google services including:
- `Google Ads <https://ads.google.com/>`__
- `Google Cloud (GCP) <https://cloud.google.com/>`__
- `Google Firebase <https://firebase.google.com/>`__
- ... |
combine_chunk_2089 | combine.txt | 2,089 | 512 | 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.
.. _howto/connection:goo... |
combine_chunk_2090 | combine.txt | 2,090 | 512 | on GKE which allows mapping Kubernetes Service Accounts to GCP service accounts
`Workload Identity
<https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity>`_.
This can be useful when managing minimum permissions for multiple Airflow instances on a single GKE cluster which
each have a different IAM fo... |
combine_chunk_2091 | combine.txt | 2,091 | 512 | Issue URL``.
IdP Extra Request Parameters
JSON object with additional parameters to include in the token request to ``IdP Token Issue URL``,
for example ``{"audience": "api://my-application"}``.
Anonymous credentials (ignores all other settings)
Use anonymous credentials for APIs that do not require auth... |
combine_chunk_2092 | combine.txt | 2,092 | 512 | impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in all requests leveraging this connection.
If set as a string, the account must grant the originating account
the Service Account Token Cre... |
combine_chunk_2093 | combine.txt | 2,093 | 512 | key_path": "/keys/key.json", "scope": "https://www.googleapis.com/auth/cloud-platform", "project": "airflow", "num_retries": 5}}'
.. _howto/connection:google_cloud_platform:impersonation:
Direct impersonation of a service account
-----------------------------------------
Google operators support `direct impersonatio... |
combine_chunk_2094 | combine.txt | 2,094 | 512 | example, with the following ``terraform`` setup...
.. code-block:: terraform
terraform {
required_version = "> 0.11.14"
}
provider "google" {
}
variable "project_id" {
type = "string"
}
resource "google_service_account" "sa_1" {
ac... |
combine_chunk_2095 | combine.txt | 2,095 | 512 | .com",
]
...then requests will be executed using ``impersonation-chain-4`` account's privileges.
Domain-wide delegation
-----------------------------------------
Some Google operators, hooks and sensors support `domain-wide delegation <https://developers.google.com/cloud-search/docs/guides/delegation>`_, in ... |
combine_chunk_2096 | combine.txt | 2,096 | 512 | ^^^^^^^^^
Add the quota project ID to the Google Cloud connection extras. For example:
.. code-block:: json
{
"quota_project_id": "your-billing-project-id"
}
You can set this via the Airflow UI, the Connections REST API, or an environment variable, for
example:
.. code-block:: bash
export AIRFLOW_CONN_G... |
combine_chunk_2097 | combine.txt | 2,097 | 512 | `` **package in the worker image — this is mandatory.**
For a bare-metal or custom Docker image, add it at build time:
.. code-block:: dockerfile
RUN pip install pysocks
In a Kubernetes / Helm deployment, bake ``pysocks`` into your custom worker image the same way as
above, then point the chart at that image in... |
combine_chunk_2098 | combine.txt | 2,098 | 512 | Quick verification
~~~~~~~~~~~~~~~~~~
Run the following inside the worker container to confirm the proxy and PySocks are working:
.. code-block:: bash
# Proxy can reach Google (a 404 from Google = tunnel succeeded)
curl -x http://<proxy-host>:<port> https://oauth2.googleapis.com
# PySocks is importable
... |
combine_chunk_2099 | combine.txt | 2,099 | 512 | .
The :class:`~airflow.providers.google.cloud.hooks.compute_ssh.ComputeEngineSSHHook` use it to run
commands on a remote server using :class:`~airflow.providers.ssh.operators.ssh.SSHOperator` or transfer
file from/to the remote server using :class:`~airflow.providers.sftp.operators.sftp.SFTPOperator`.
Configuring the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.