id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,400 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataplex.py | google.cloud.operators.dataplex.DataplexGetTaskOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.dataplex import DataplexCatalogAspectTypeLink, DataplexCatalogAspectTypesLink, DataplexCatalogEntryGroupLink, DataplexCatalogEntryGroupsLink, DataplexCatalogEntryLink, DataplexCatalogEntryTy... |
class DataplexGetTaskOperator(GoogleCloudBaseOperator):
'''
Get task resource.
:param project_id: Required. The ID of the Google Cloud project that the task belongs to.
:param region: Required. The ID of the Google Cloud region that the task belongs to.
:param lake_id: Required. The ID of the Googl... | 5 | 1 | 23 | 1 | 23 | 0 | 1 | 0.46 | 1 | 9 | 3 | 0 | 2 | 10 | 2 | 3 | 75 | 5 | 48 | 31 | 31 | 22 | 22 | 17 | 19 | 1 | 2 | 0 | 2 |
8,401 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataplex.py | google.cloud.operators.dataplex.DataplexListTasksOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.dataplex import DataplexCatalogAspectTypeLink, DataplexCatalogAspectTypesLink, DataplexCatalogEntryGroupLink, DataplexCatalogEntryGroupsLink, DataplexCatalogEntryLink, DataplexCatalogEntryTy... |
class DataplexListTasksOperator(GoogleCloudBaseOperator):
'''
Lists tasks under the given lake.
:param project_id: Required. The ID of the Google Cloud project that the task belongs to.
:param region: Required. The ID of the Google Cloud region that the task belongs to.
:param lake_id: Required. Th... | 5 | 1 | 27 | 1 | 27 | 0 | 1 | 0.46 | 1 | 10 | 2 | 0 | 2 | 13 | 2 | 3 | 97 | 5 | 63 | 37 | 43 | 29 | 24 | 20 | 21 | 1 | 2 | 0 | 2 |
8,402 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataplex.py | google.cloud.operators.dataplex.DataplexRunDataProfileScanOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.triggers.dataplex import DataplexDataProfileJobTrigger, DataplexDataQualityJobTrigger
from collections.abc import MutableSequence, Sequence
from airflow.exceptions import AirflowException
from goo... |
class DataplexRunDataProfileScanOperator(GoogleCloudBaseOperator):
'''
Runs an on-demand execution of a DataScan Data Profile Scan.
:param project_id: Required. The ID of the Google Cloud project that the lake belongs to.
:param region: Required. The ID of the Google Cloud region that the lake belongs ... | 4 | 2 | 33 | 2 | 30 | 2 | 4 | 0.4 | 1 | 11 | 3 | 0 | 3 | 13 | 3 | 4 | 138 | 11 | 91 | 41 | 70 | 36 | 43 | 24 | 39 | 6 | 2 | 2 | 11 |
8,403 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataplex.py | google.cloud.operators.dataplex.DataplexRunDataQualityScanOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.triggers.dataplex import DataplexDataProfileJobTrigger, DataplexDataQualityJobTrigger
from collections.abc import MutableSequence, Sequence
from airflow.exceptions import AirflowException
from goo... | null | 4 | 2 | 39 | 2 | 35 | 2 | 5 | 0.36 | 1 | 11 | 4 | 0 | 3 | 14 | 3 | 4 | 158 | 11 | 108 | 44 | 86 | 39 | 51 | 26 | 47 | 8 | 2 | 4 | 15 |
8,404 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepCopyFlowOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.dataprep import DataprepFlowLink, DataprepJobGroupLink
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.hooks.dataprep imp... |
class DataprepCopyFlowOperator(GoogleCloudBaseOperator):
'''
Create a copy of the provided flow id, as well as all contained recipes.
:param dataprep_conn_id: The Dataprep connection ID
:param flow_id: ID of the flow to be copied
:param name: Name for the copy of the flow
:param description: De... | 3 | 1 | 19 | 1 | 18 | 0 | 2 | 0.18 | 1 | 7 | 2 | 0 | 2 | 6 | 2 | 3 | 57 | 5 | 44 | 24 | 31 | 8 | 19 | 14 | 16 | 2 | 2 | 1 | 3 |
8,405 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepDeleteFlowOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.dataprep import GoogleDataprepHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
class DataprepDeleteFlowOperator(GoogleCloudBaseOperator):
"""
Delete the flow with provided id.
:param ... |
class DataprepDeleteFlowOperator(GoogleCloudBaseOperator):
'''
Delete the flow with provided id.
:param dataprep_conn_id: The Dataprep connection ID
:param flow_id: ID of the flow to be copied
'''
def __init__(self, *, dataprep_conn_id: str='dataprep_default', flow_id: int | str, **kwargs) -> ... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.31 | 1 | 4 | 1 | 0 | 2 | 2 | 2 | 3 | 25 | 4 | 16 | 13 | 7 | 5 | 10 | 7 | 7 | 1 | 2 | 0 | 2 |
8,406 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepGetJobGroupOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from airflow.providers.google.cloud.links.dataprep import DataprepFlowLink, DataprepJobGroupLink
from airflow.prov... |
class DataprepGetJobGroupOperator(GoogleCloudBaseOperator):
'''
Get the specified job group.
A job group is a job that is executed from a specific node in a flow.
API documentation: https://clouddataprep.com/documentation/api#section/Overview.
.. seealso::
For more information on how to use... | 3 | 1 | 17 | 1 | 16 | 0 | 2 | 0.28 | 1 | 7 | 2 | 0 | 2 | 5 | 2 | 3 | 59 | 9 | 39 | 21 | 27 | 11 | 17 | 12 | 14 | 2 | 2 | 1 | 3 |
8,407 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepGetJobsForJobGroupOperator | from airflow.providers.google.cloud.hooks.dataprep import GoogleDataprepHook
from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
class DataprepGetJobsForJobGroupOperator(GoogleCloudBaseOperator):
"""
Get information about the batch jobs w... |
class DataprepGetJobsForJobGroupOperator(GoogleCloudBaseOperator):
'''
Get information about the batch jobs within a Cloud Dataprep job.
API documentation: https://clouddataprep.com/documentation/api#section/Overview.
.. seealso::
For more information on how to use this operator, take a look at... | 3 | 1 | 9 | 0 | 9 | 0 | 1 | 0.42 | 1 | 5 | 1 | 0 | 2 | 2 | 2 | 3 | 33 | 6 | 19 | 14 | 10 | 8 | 11 | 8 | 8 | 1 | 2 | 0 | 2 |
8,408 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepRunFlowOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.links.dataprep import DataprepFlowLink, DataprepJobGroupLink
from airflow.providers.google.cloud.hooks.dataprep import GoogleDataprepHook
from airflow.providers.google.cloud.operators.cloud_base import G... |
class DataprepRunFlowOperator(GoogleCloudBaseOperator):
'''
Runs the flow with the provided id copy of the provided flow id.
:param dataprep_conn_id: The Dataprep connection ID
:param flow_id: ID of the flow to be copied
:param body_request: Body of the POST request to be sent.
'''
def __i... | 3 | 1 | 15 | 1 | 14 | 0 | 2 | 0.18 | 1 | 6 | 2 | 0 | 2 | 4 | 2 | 3 | 45 | 6 | 33 | 20 | 22 | 6 | 17 | 12 | 14 | 2 | 2 | 1 | 3 |
8,409 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataprep.py | google.cloud.operators.dataprep.DataprepRunJobGroupOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.dataprep import DataprepFlowLink, DataprepJobGroupLink
from airflow.providers.google.cloud.hooks.dataprep import GoogleDataprepHook
from collections.abc import Sequence
from airflow.provider... |
class DataprepRunJobGroupOperator(GoogleCloudBaseOperator):
'''
Create a ``jobGroup``, which launches the specified job as the authenticated user.
This performs the same action as clicking on the Run Job button in the application.
To get recipe_id please follow the Dataprep API documentation:
https... | 3 | 1 | 14 | 1 | 13 | 0 | 2 | 0.43 | 1 | 6 | 2 | 0 | 2 | 3 | 2 | 3 | 49 | 9 | 28 | 18 | 18 | 12 | 16 | 11 | 13 | 2 | 2 | 1 | 3 |
8,410 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.ClusterGenerator | from airflow.utils import timezone
from datetime import datetime, timedelta
import re
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
class ClusterGenerator:
"""
Create a new Dataproc Cluster.
:param cluster_name: The name of the DataProc cluster to create. (templated)
... |
class ClusterGenerator:
'''
Create a new Dataproc Cluster.
:param cluster_name: The name of the DataProc cluster to create. (templated)
:param project_id: The ID of the google cloud project in which
to create the cluster. (templated)
:param num_workers: The # of workers to spin up. If set t... | 9 | 2 | 41 | 4 | 36 | 1 | 7 | 0.35 | 0 | 11 | 3 | 0 | 8 | 45 | 8 | 8 | 432 | 44 | 287 | 115 | 231 | 101 | 162 | 68 | 153 | 22 | 0 | 2 | 52 |
8,411 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocCancelOperationOperator | from collections.abc import MutableSequence, Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cl... |
class DataprocCancelOperationOperator(GoogleCloudBaseOperator):
'''
Cancel the batch workload resource.
:param operation_name: Required. The name of the operation resource to be cancelled.
:param region: Required. The Cloud Dataproc region in which to handle the request.
:param project_id: Optional... | 3 | 1 | 14 | 1 | 14 | 0 | 1 | 0.69 | 1 | 6 | 1 | 0 | 2 | 8 | 2 | 3 | 54 | 5 | 29 | 25 | 14 | 20 | 17 | 13 | 14 | 1 | 2 | 0 | 2 |
8,412 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocCreateBatchOperator | from collections.abc import MutableSequence, Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from functools import cached_property
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method ... |
class DataprocCreateBatchOperator(GoogleCloudBaseOperator):
'''
Create a batch workload.
:param project_id: Optional. The ID of the Google Cloud project that the cluster belongs to. (templated)
:param region: Required. The Cloud Dataproc region in which to handle the request. (templated)
:param bat... | 11 | 2 | 31 | 1 | 28 | 1 | 3 | 0.19 | 1 | 14 | 4 | 0 | 8 | 18 | 8 | 9 | 299 | 21 | 234 | 72 | 191 | 44 | 109 | 38 | 99 | 11 | 2 | 3 | 27 |
8,413 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocCreateClusterOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
import warnings
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, Datapro... |
class DataprocCreateClusterOperator(GoogleCloudBaseOperator):
'''
Create a new cluster on Google Cloud Dataproc.
The operator will wait until the creation is successful or an error occurs
in the creation process.
If the cluster already exists and ``use_if_exists`` is True, then the operator will:
... | 12 | 2 | 25 | 1 | 22 | 2 | 4 | 0.31 | 1 | 19 | 7 | 0 | 11 | 17 | 11 | 12 | 364 | 29 | 255 | 76 | 222 | 80 | 158 | 51 | 146 | 16 | 2 | 4 | 42 |
8,414 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocCreateWorkflowTemplateOperator | from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.links.dataproc import DATAPROC_BATCH_LINK, DATAPROC_JOB_LINK_DEPRECATED, DataprocBatchesListLink, DataprocBatchLink, DataprocClusterLink, DataprocJobLink, DataprocLink, DataprocWorkflowLink, DataprocWorkflowTemplateL... |
class DataprocCreateWorkflowTemplateOperator(GoogleCloudBaseOperator):
'''
Creates new workflow template.
:param project_id: Optional. The ID of the Google Cloud project the cluster belongs to.
:param region: Required. The Cloud Dataproc region in which to handle the request.
:param template: The D... | 3 | 1 | 23 | 0 | 23 | 0 | 2 | 0.24 | 1 | 8 | 2 | 0 | 2 | 8 | 2 | 3 | 66 | 4 | 50 | 29 | 35 | 12 | 25 | 17 | 22 | 3 | 2 | 1 | 4 |
8,415 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocDeleteBatchOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.hooks.dataproc import DataprocHook, DataProcJobBuilder, DataprocResourceIsNotReadyError
from collections.abc import... |
class DataprocDeleteBatchOperator(GoogleCloudBaseOperator):
'''
Delete the batch workload resource.
:param batch_id: Required. The ID to use for the batch, which will become the final component
of the batch's resource name.
This value must be 4-63 characters. Valid characters are /[a-z][0-9... | 3 | 1 | 17 | 0 | 17 | 0 | 1 | 0.61 | 1 | 6 | 1 | 0 | 2 | 8 | 2 | 3 | 62 | 4 | 36 | 25 | 21 | 22 | 17 | 13 | 14 | 1 | 2 | 0 | 2 |
8,416 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocDeleteClusterOperator | from typing import TYPE_CHECKING, Any
from collections.abc import MutableSequence, Sequence
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.tr... |
class DataprocDeleteClusterOperator(GoogleCloudBaseOperator):
'''
Delete a cluster in a project.
:param region: Required. The Cloud Dataproc region in which to handle the request (templated).
:param cluster_name: Required. The cluster name (templated).
:param project_id: Optional. The ID of the Goo... | 5 | 2 | 22 | 1 | 20 | 1 | 3 | 0.38 | 1 | 14 | 3 | 0 | 4 | 12 | 4 | 5 | 121 | 8 | 82 | 38 | 61 | 31 | 41 | 21 | 36 | 4 | 2 | 2 | 10 |
8,417 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocDiagnoseClusterOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.utils.dataproc import DataprocOperationType
from airflow.providers.google.cloud.hooks.dataproc import DataprocHook,... |
class DataprocDiagnoseClusterOperator(GoogleCloudBaseOperator):
'''
Diagnose a cluster in a project.
After the operation completes, the response contains the Cloud Storage URI of the diagnostic output report containing a summary of collected diagnostics.
:param region: Required. The Cloud Dataproc regi... | 4 | 2 | 31 | 1 | 28 | 2 | 2 | 0.34 | 1 | 15 | 4 | 0 | 3 | 14 | 3 | 4 | 136 | 9 | 95 | 41 | 73 | 32 | 35 | 23 | 31 | 3 | 2 | 2 | 7 |
8,418 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocGetBatchOperator | from collections.abc import MutableSequence, Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.links.dataproc import DATAPROC_BATCH_LINK, DATAPROC_JOB_LINK_DEPRECATED, DataprocBatchesListL... |
class DataprocGetBatchOperator(GoogleCloudBaseOperator):
'''
Get the batch workload resource representation.
:param batch_id: Required. The ID to use for the batch, which will become the final component
of the batch's resource name.
This value must be 4-63 characters. Valid characters are /... | 3 | 1 | 22 | 0 | 22 | 0 | 2 | 0.48 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 72 | 4 | 46 | 28 | 31 | 22 | 21 | 16 | 18 | 2 | 2 | 1 | 3 |
8,419 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocInstantiateInlineWorkflowTemplateOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, DataprocDeleteClusterTr... |
class DataprocInstantiateInlineWorkflowTemplateOperator(GoogleCloudBaseOperator):
'''
Instantiate a WorkflowTemplate Inline on Google Cloud Dataproc.
The operator will wait until the WorkflowTemplate is finished executing.
.. seealso::
For more information on how to use this operator, take a lo... | 6 | 2 | 24 | 1 | 22 | 1 | 2 | 0.38 | 1 | 14 | 4 | 0 | 5 | 15 | 5 | 6 | 173 | 14 | 115 | 56 | 84 | 44 | 57 | 31 | 50 | 4 | 2 | 1 | 12 |
8,420 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocInstantiateWorkflowTemplateOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, DataprocDeleteClusterTr... |
class DataprocInstantiateWorkflowTemplateOperator(GoogleCloudBaseOperator):
'''
Instantiate a WorkflowTemplate on Google Cloud Dataproc.
The operator will wait until the WorkflowTemplate is finished executing.
.. seealso::
Please refer to:
https://cloud.google.com/dataproc/docs/referenc... | 5 | 2 | 24 | 1 | 22 | 1 | 2 | 0.46 | 1 | 13 | 4 | 0 | 4 | 15 | 4 | 5 | 144 | 10 | 92 | 47 | 69 | 42 | 47 | 29 | 42 | 3 | 2 | 1 | 9 |
8,421 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocJobBaseOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, DataprocDeleteClusterTrigger, DataprocOperationTrigger, DataprocSubmitTrigger
from airflow.... |
class DataprocJobBaseOperator(GoogleCloudBaseOperator):
'''
Base class for operators that launch job on DataProc.
:param region: The specified region where the dataproc cluster is created.
:param job_name: The job name used in the DataProc cluster. This name by default
is the task_id appended w... | 7 | 4 | 20 | 1 | 18 | 1 | 3 | 0.45 | 1 | 14 | 5 | 0 | 6 | 18 | 6 | 7 | 173 | 13 | 110 | 50 | 86 | 50 | 69 | 32 | 62 | 5 | 2 | 2 | 16 |
8,422 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocListBatchesOperator | from collections.abc import MutableSequence, Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.links.dataproc import DATAPROC_BATCH_LINK, DATAPROC_JOB_LINK_DEPRECATED, DataprocBatchesListL... |
class DataprocListBatchesOperator(GoogleCloudBaseOperator):
'''
List batch workloads.
:param region: Required. The Cloud Dataproc region in which to handle the request.
:param project_id: Optional. The ID of the Google Cloud project that the cluster belongs to.
:param page_size: Optional. The maxim... | 3 | 1 | 23 | 0 | 23 | 0 | 2 | 0.52 | 1 | 8 | 2 | 0 | 2 | 11 | 2 | 3 | 77 | 4 | 48 | 34 | 30 | 25 | 23 | 19 | 20 | 2 | 2 | 1 | 3 |
8,423 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocStartClusterOperator | from airflow.providers.google.cloud.links.dataproc import DATAPROC_BATCH_LINK, DATAPROC_JOB_LINK_DEPRECATED, DataprocBatchesListLink, DataprocBatchLink, DataprocClusterLink, DataprocJobLink, DataprocLink, DataprocWorkflowLink, DataprocWorkflowTemplateLink
from google.cloud.dataproc_v1 import Batch, Cluster, ClusterStat... |
class DataprocStartClusterOperator(_DataprocStartStopClusterBaseOperator):
'''Start a cluster in a project.'''
def execute(self, context: Context) -> dict | None:
pass
def _check_desired_cluster_state(self, cluster: Cluster) -> tuple[bool, str | None]:
pass
def _get_operation(self) -... | 4 | 1 | 9 | 0 | 9 | 0 | 1 | 0.04 | 1 | 6 | 1 | 0 | 3 | 5 | 3 | 11 | 33 | 4 | 28 | 11 | 24 | 1 | 14 | 6 | 10 | 2 | 3 | 1 | 4 |
8,424 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocStopClusterOperator | from google.cloud.dataproc_v1 import Batch, Cluster, ClusterStatus, JobStatus
class DataprocStopClusterOperator(_DataprocStartStopClusterBaseOperator):
"""Stop a cluster in a project."""
def execute(self, context: Context) -> dict | None:
self.log.info('Stopping the cluster: %s', self.cluster_name)
... |
class DataprocStopClusterOperator(_DataprocStartStopClusterBaseOperator):
'''Stop a cluster in a project.'''
def execute(self, context: Context) -> dict | None:
pass
def _check_desired_cluster_state(self, cluster: Cluster) -> tuple[bool, str | None]:
pass
def _get_operation(self) -> ... | 4 | 1 | 6 | 0 | 6 | 0 | 1 | 0.05 | 1 | 5 | 0 | 0 | 3 | 5 | 3 | 11 | 24 | 3 | 20 | 10 | 16 | 1 | 12 | 5 | 8 | 2 | 3 | 1 | 4 |
8,425 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocSubmitJobOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, DataprocDeleteClusterTr... |
class DataprocSubmitJobOperator(GoogleCloudBaseOperator):
'''
Submit a job to a cluster.
:param project_id: Optional. The ID of the Google Cloud project that the job belongs to.
:param region: Required. The Cloud Dataproc region in which to handle the request.
:param job: Required. The job resource... | 6 | 2 | 28 | 1 | 26 | 1 | 3 | 0.31 | 1 | 14 | 4 | 0 | 5 | 18 | 5 | 6 | 189 | 12 | 135 | 63 | 102 | 42 | 70 | 36 | 63 | 8 | 2 | 2 | 17 |
8,426 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.DataprocUpdateClusterOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.configuration import conf
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.triggers.dataproc import DataprocBatchTrigger, DataprocClusterTrigger, DataprocDeleteClusterTr... |
class DataprocUpdateClusterOperator(GoogleCloudBaseOperator):
'''
Update a cluster in a project.
:param region: Required. The Cloud Dataproc region in which to handle the request.
:param project_id: Optional. The ID of the Google Cloud project the cluster belongs to.
:param cluster_name: Required. ... | 4 | 2 | 31 | 1 | 28 | 2 | 3 | 0.45 | 1 | 14 | 4 | 0 | 3 | 14 | 3 | 4 | 147 | 9 | 95 | 44 | 73 | 43 | 40 | 26 | 36 | 4 | 2 | 2 | 8 |
8,427 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.InstanceFlexibilityPolicy | from dataclasses import dataclass
@dataclass
class InstanceFlexibilityPolicy:
"""
Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
Representation for google.cloud.dataproc.v1#google.cloud.dataproc.v1.InstanceFlexibilityPolicy.
:param instance_selection_list: List o... | @dataclass
class InstanceFlexibilityPolicy:
'''
Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
Representation for google.cloud.dataproc.v1#google.cloud.dataproc.v1.InstanceFlexibilityPolicy.
:param instance_selection_list: List of instance selection options that the... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 3 | 2 | 1 | 1 | 6 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
8,428 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.InstanceSelection | from dataclasses import dataclass
@dataclass
class InstanceSelection:
"""
Defines machines types and a rank to which the machines types belong.
Representation for
google.cloud.dataproc.v1#google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection.
:param machine_types: Full machine-type... | @dataclass
class InstanceSelection:
'''
Defines machines types and a rank to which the machines types belong.
Representation for
google.cloud.dataproc.v1#google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection.
:param machine_types: Full machine-type names, e.g. "n1-standard-16".
:p... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 3.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 3 | 3 | 2 | 2 | 10 | 3 | 2 | 2 | 0 | 0 | 0 | 0 |
8,429 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc.PreemptibilityType | from enum import Enum
class PreemptibilityType(Enum):
"""Contains possible Type values of Preemptibility applicable for every secondary worker of Cluster."""
PREEMPTIBLE = 'PREEMPTIBLE'
SPOT = 'SPOT'
PREEMPTIBILITY_UNSPECIFIED = 'PREEMPTIBILITY_UNSPECIFIED'
NON_PREEMPTIBLE = 'NON_PREEMPTIBLE' |
class PreemptibilityType(Enum):
'''Contains possible Type values of Preemptibility applicable for every secondary worker of Cluster.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 7 | 1 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
8,430 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py | google.cloud.operators.dataproc._DataprocStartStopClusterBaseOperator | from airflow.providers.google.cloud.hooks.dataproc import DataprocHook, DataProcJobBuilder, DataprocResourceIsNotReadyError
from collections.abc import MutableSequence, Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from ... |
class _DataprocStartStopClusterBaseOperator(GoogleCloudBaseOperator):
'''
Base class to start or stop a cluster in a project.
:param cluster_name: Required. Name of the cluster to create
:param region: Required. The specified region where the dataproc cluster is created.
:param project_id: Optional... | 9 | 4 | 12 | 1 | 8 | 3 | 1 | 0.64 | 1 | 9 | 1 | 2 | 7 | 11 | 7 | 8 | 124 | 14 | 67 | 39 | 44 | 43 | 36 | 24 | 28 | 2 | 2 | 1 | 9 |
8,431 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreCreateBackupOperator | from typing import TYPE_CHECKING, Any
from google.api_core.exceptions import AlreadyExists
from google.cloud.metastore_v1.types import Backup, MetadataImport, Service
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.retry import Retry, exponential_sleep_generator
from collections... |
class DataprocMetastoreCreateBackupOperator(GoogleCloudBaseOperator):
'''
Create a new backup in a given project and location.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param region: Required. The ID of the Google Cloud region that the service belongs... | 5 | 1 | 32 | 1 | 31 | 0 | 2 | 0.47 | 1 | 8 | 2 | 0 | 2 | 11 | 2 | 3 | 111 | 8 | 70 | 35 | 52 | 33 | 29 | 20 | 26 | 2 | 2 | 1 | 3 |
8,432 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreCreateMetadataImportOperator | from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.retry import Retry, exponential_sleep_generator
from typing import TYPE_CHECKING, Any
from google.cloud.metastore_v1.types import Backup, Met... |
class DataprocMetastoreCreateMetadataImportOperator(GoogleCloudBaseOperator):
'''
Create a new MetadataImport in a given project and location.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param region: Required. The ID of the Google Cloud region that the... | 5 | 1 | 26 | 1 | 25 | 0 | 1 | 0.57 | 1 | 8 | 2 | 0 | 2 | 11 | 2 | 3 | 99 | 8 | 58 | 35 | 40 | 33 | 25 | 20 | 22 | 1 | 2 | 0 | 2 |
8,433 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreCreateServiceOperator | from typing import TYPE_CHECKING, Any
from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from collections.abc import Sequence
from airflow.provi... |
class DataprocMetastoreCreateServiceOperator(GoogleCloudBaseOperator):
'''
Create a metastore service in a project and location.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
:param project_id: Required. The ID of the Google Cloud project that the service belon... | 5 | 1 | 28 | 0 | 28 | 0 | 2 | 0.44 | 1 | 8 | 2 | 0 | 2 | 10 | 2 | 3 | 98 | 6 | 64 | 33 | 47 | 28 | 28 | 19 | 25 | 2 | 2 | 1 | 3 |
8,434 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreDeleteBackupOperator | from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.api_core.retry import Retry, exponential_sleep_generator
from google.api_core.gapic_v1.method... |
class DataprocMetastoreDeleteBackupOperator(GoogleCloudBaseOperator):
'''
Delete a single backup.
:param project_id: Required. The ID of the Google Cloud project that the backup belongs to.
:param region: Required. The ID of the Google Cloud region that the backup belongs to.
:param service_id: Req... | 3 | 1 | 22 | 0 | 22 | 0 | 1 | 0.6 | 1 | 6 | 1 | 0 | 2 | 10 | 2 | 3 | 83 | 6 | 48 | 30 | 31 | 29 | 20 | 16 | 17 | 1 | 2 | 0 | 2 |
8,435 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreDeleteServiceOperator | from collections.abc import Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.operators.cloud_base... |
class DataprocMetastoreDeleteServiceOperator(GoogleCloudBaseOperator):
'''
Delete a single service.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param service_id:... | 3 | 1 | 19 | 0 | 19 | 0 | 1 | 0.5 | 1 | 6 | 1 | 0 | 2 | 8 | 2 | 3 | 67 | 4 | 42 | 26 | 27 | 21 | 18 | 14 | 15 | 1 | 2 | 0 | 2 |
8,436 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreDetailedLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataprocMetastoreDetailedLink(BaseGoogleLink):
"""Helper class for constructing Dataproc Metastore detailed resource link."""
name = 'Dataproc Metastore resource'
key = 'config'
def get_link(self, operator: BaseOperator, *, ti_... |
class DataprocMetastoreDetailedLink(BaseGoogleLink):
'''Helper class for constructing Dataproc Metastore detailed resource link.'''
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str:
pass | 2 | 1 | 18 | 0 | 18 | 0 | 2 | 0.03 | 1 | 4 | 3 | 0 | 1 | 0 | 2 | 2 | 44 | 3 | 40 | 19 | 24 | 1 | 8 | 6 | 5 | 2 | 1 | 0 | 3 |
8,437 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreExportMetadataOperator | from airflow.providers.google.common.links.storage import StorageLink
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from airflow.exceptions import AirflowException
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from goog... |
class DataprocMetastoreExportMetadataOperator(GoogleCloudBaseOperator):
'''
Export metadata from a service.
:param destination_gcs_folder: A Cloud Storage URI of a folder, in the format
``gs://<bucket_name>/<path_inside_bucket>``. A sub-folder
``<export_folder>`` containing exported files w... | 7 | 2 | 20 | 1 | 18 | 1 | 2 | 0.43 | 1 | 9 | 4 | 0 | 4 | 11 | 4 | 5 | 118 | 8 | 77 | 40 | 57 | 33 | 38 | 25 | 33 | 4 | 2 | 2 | 8 |
8,438 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreGetServiceOperator | from collections.abc import Sequence
from google.cloud.metastore_v1.types import Backup, MetadataImport, Service
from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.api_core.retry im... |
class DataprocMetastoreGetServiceOperator(GoogleCloudBaseOperator):
'''
Get the details of a single service.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param se... | 5 | 1 | 19 | 0 | 19 | 0 | 1 | 0.53 | 1 | 8 | 2 | 0 | 2 | 8 | 2 | 3 | 71 | 5 | 43 | 27 | 28 | 23 | 19 | 15 | 16 | 1 | 2 | 0 | 2 |
8,439 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataprocMetastoreLink(BaseGoogleLink):
"""Helper class for constructing Dataproc Metastore resource link."""
name = 'Dataproc Metastore'
key = 'conf'
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str... |
class DataprocMetastoreLink(BaseGoogleLink):
'''Helper class for constructing Dataproc Metastore resource link.'''
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str:
pass | 2 | 1 | 19 | 0 | 19 | 0 | 2 | 0.02 | 1 | 8 | 7 | 0 | 1 | 0 | 2 | 2 | 46 | 3 | 42 | 23 | 22 | 1 | 8 | 6 | 5 | 2 | 1 | 0 | 3 |
8,440 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreListBackupsOperator | from google.cloud.metastore_v1.types import Backup, MetadataImport, Service
from typing import TYPE_CHECKING, Any
from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from collections.abc import Sequence
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google... |
class DataprocMetastoreListBackupsOperator(GoogleCloudBaseOperator):
'''
List backups in a service.
:param project_id: Required. The ID of the Google Cloud project that the backup belongs to.
:param region: Required. The ID of the Google Cloud region that the backup belongs to.
:param service_id: R... | 5 | 1 | 25 | 0 | 25 | 0 | 1 | 0.42 | 1 | 10 | 2 | 0 | 2 | 12 | 2 | 3 | 83 | 5 | 55 | 35 | 36 | 23 | 23 | 19 | 20 | 1 | 2 | 0 | 2 |
8,441 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreRestoreServiceOperator | from airflow.providers.google.cloud.hooks.dataproc_metastore import DataprocMetastoreHook
from google.api_core.retry import Retry, exponential_sleep_generator
from airflow.exceptions import AirflowException
import time
from google.cloud.metastore_v1 import MetadataExport, MetadataManagementActivity
from typing import T... |
class DataprocMetastoreRestoreServiceOperator(GoogleCloudBaseOperator):
'''
Restore a service from a backup.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
:param se... | 6 | 2 | 27 | 0 | 25 | 2 | 2 | 0.49 | 1 | 8 | 3 | 0 | 3 | 14 | 3 | 4 | 128 | 7 | 81 | 43 | 59 | 40 | 36 | 25 | 32 | 4 | 2 | 2 | 6 |
8,442 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dataproc_metastore.py | google.cloud.operators.dataproc_metastore.DataprocMetastoreUpdateServiceOperator | from typing import TYPE_CHECKING, Any
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from collections.abc import Sequence
from google.api_core.retry import Retry, exponential_sleep_generator
from google.cloud.me... |
class DataprocMetastoreUpdateServiceOperator(GoogleCloudBaseOperator):
'''
Update the parameters of a single service.
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
... | 5 | 1 | 24 | 1 | 24 | 0 | 1 | 0.64 | 1 | 8 | 2 | 0 | 2 | 11 | 2 | 3 | 96 | 9 | 53 | 33 | 35 | 34 | 23 | 18 | 20 | 1 | 2 | 0 | 2 |
8,443 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreAllocateIdsOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.links.datastore import CloudDatastoreEntitiesLink, CloudDatastoreImportExportLink
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING,... |
class CloudDatastoreAllocateIdsOperator(GoogleCloudBaseOperator):
'''
Allocate IDs for incomplete keys. Return list of keys.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreAllocateIdsOperator`
.. seealso::
... | 5 | 1 | 13 | 1 | 13 | 0 | 1 | 0.61 | 1 | 6 | 2 | 0 | 2 | 4 | 2 | 3 | 57 | 7 | 31 | 19 | 20 | 19 | 14 | 11 | 11 | 1 | 2 | 0 | 2 |
8,444 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreBeginTransactionOperator | from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING, Any
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
cl... |
class CloudDatastoreBeginTransactionOperator(GoogleCloudBaseOperator):
'''
Begins a new transaction. Returns a transaction handle.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreBeginTransactionOperator`
.. see... | 3 | 1 | 13 | 1 | 12 | 0 | 1 | 0.66 | 1 | 6 | 1 | 0 | 2 | 4 | 2 | 3 | 55 | 7 | 29 | 18 | 18 | 19 | 12 | 10 | 9 | 1 | 2 | 0 | 2 |
8,445 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreCommitOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
from airflow.providers.google.cloud.links.datastore import CloudDatastoreEntitiesLink, CloudDatastoreImportExportLink
from... |
class CloudDatastoreCommitOperator(GoogleCloudBaseOperator):
'''
Commit a transaction, optionally creating, deleting or modifying some entities.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreCommitOperator`
..... | 5 | 1 | 13 | 1 | 13 | 0 | 1 | 0.61 | 1 | 7 | 2 | 0 | 2 | 4 | 2 | 3 | 57 | 7 | 31 | 19 | 20 | 19 | 14 | 11 | 11 | 1 | 2 | 0 | 2 |
8,446 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreDeleteOperationOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
class CloudDatastoreDeleteOperationOperator(GoogleCloudBaseOperator):
"""
Deletes the long-running operation.
... |
class CloudDatastoreDeleteOperationOperator(GoogleCloudBaseOperator):
'''
Deletes the long-running operation.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreDeleteOperationOperator`
.. seealso::
https:/... | 3 | 1 | 10 | 1 | 9 | 0 | 1 | 0.78 | 1 | 4 | 1 | 0 | 2 | 3 | 2 | 3 | 48 | 7 | 23 | 15 | 13 | 18 | 10 | 8 | 7 | 1 | 2 | 0 | 2 |
8,447 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreExportEntitiesOperator | from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
from collections.abc import Sequence
from airflow.exceptions import AirflowException
from airflow.providers.google.common.links.storage import StorageLink
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.c... |
class CloudDatastoreExportEntitiesOperator(GoogleCloudBaseOperator):
'''
Export entities from Google Cloud Datastore to Cloud Storage.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreExportEntitiesOperator`
.. s... | 3 | 1 | 30 | 2 | 28 | 0 | 3 | 0.46 | 1 | 10 | 4 | 0 | 2 | 10 | 2 | 3 | 104 | 9 | 65 | 36 | 48 | 30 | 31 | 22 | 28 | 4 | 2 | 2 | 5 |
8,448 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreGetOperationOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
class CloudDatastoreGetOperationOperator(GoogleCloudBaseOperator):
"""
Gets the latest state of a long-running op... |
class CloudDatastoreGetOperationOperator(GoogleCloudBaseOperator):
'''
Gets the latest state of a long-running operation.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreGetOperationOperator`
.. seealso::
... | 3 | 1 | 10 | 1 | 10 | 0 | 1 | 0.75 | 1 | 4 | 1 | 0 | 2 | 3 | 2 | 3 | 49 | 7 | 24 | 16 | 14 | 18 | 11 | 9 | 8 | 1 | 2 | 0 | 2 |
8,449 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreImportEntitiesOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.exceptions import AirflowException
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING, Any
from airflow.providers.google.cloud.links.datastore import CloudD... |
class CloudDatastoreImportEntitiesOperator(GoogleCloudBaseOperator):
'''
Import entities from Cloud Storage to Google Cloud Datastore.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreImportEntitiesOperator`
.. s... | 5 | 1 | 24 | 1 | 23 | 0 | 2 | 0.51 | 1 | 8 | 3 | 0 | 2 | 9 | 2 | 3 | 91 | 8 | 55 | 31 | 39 | 28 | 25 | 18 | 22 | 2 | 2 | 1 | 3 |
8,450 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreRollbackOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
class CloudDatastoreRollbackOperator(Goo... |
class CloudDatastoreRollbackOperator(GoogleCloudBaseOperator):
'''
Roll back a transaction.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreRollbackOperator`
.. seealso::
https://cloud.google.com/datasto... | 3 | 1 | 12 | 1 | 12 | 0 | 1 | 0.68 | 1 | 4 | 1 | 0 | 2 | 4 | 2 | 3 | 54 | 7 | 28 | 17 | 17 | 19 | 11 | 9 | 8 | 1 | 2 | 0 | 2 |
8,451 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/datastore.py | google.cloud.operators.datastore.CloudDatastoreRunQueryOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING, Any
from airflow.providers.google.cloud.hooks.datastore import DatastoreHook
from collections.abc import Sequence
cl... |
class CloudDatastoreRunQueryOperator(GoogleCloudBaseOperator):
'''
Run a query for entities. Returns the batch of query results.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDatastoreRunQueryOperator`
.. seealso::
... | 3 | 1 | 13 | 1 | 12 | 0 | 1 | 0.66 | 1 | 6 | 1 | 0 | 2 | 4 | 2 | 3 | 55 | 7 | 29 | 18 | 18 | 19 | 12 | 10 | 9 | 1 | 2 | 0 | 2 |
8,452 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCancelDLPJobOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.... |
class CloudDLPCancelDLPJobOperator(GoogleCloudBaseOperator):
'''
Starts asynchronous cancellation on a long-running DlpJob.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPCancelDLPJobOperator`
:param dlp_job_id: ID o... | 3 | 1 | 21 | 1 | 20 | 0 | 2 | 0.52 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 79 | 6 | 48 | 25 | 34 | 25 | 18 | 14 | 15 | 2 | 2 | 1 | 3 |
8,453 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCreateDLPJobOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPCreateDLPJobOperator(GoogleCloudBaseOperator):
'''
Creates a new job to inspect storage or calculate risk metrics.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPCreateDLPJobOperator`
:param project_id:... | 3 | 1 | 33 | 2 | 31 | 0 | 3 | 0.4 | 1 | 10 | 2 | 0 | 2 | 10 | 2 | 3 | 110 | 9 | 72 | 33 | 55 | 29 | 28 | 19 | 25 | 5 | 2 | 2 | 6 |
8,454 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCreateDeidentifyTemplateOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPCreateDeidentifyTemplateOperator(GoogleCloudBaseOperator):
'''
Create a deidentify template to reuse frequently-used configurations for content, images, and storage.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:C... | 3 | 1 | 32 | 1 | 31 | 0 | 3 | 0.39 | 1 | 9 | 2 | 0 | 2 | 9 | 2 | 3 | 107 | 8 | 71 | 32 | 55 | 28 | 28 | 19 | 25 | 5 | 2 | 2 | 6 |
8,455 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCreateInspectTemplateOperator | from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, Dei... |
class CloudDLPCreateInspectTemplateOperator(GoogleCloudBaseOperator):
'''
Create an InspectTemplate to reuse frequently-used configurations for content, images, and storage.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDL... | 3 | 1 | 32 | 2 | 31 | 0 | 3 | 0.39 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 108 | 9 | 71 | 32 | 55 | 28 | 28 | 19 | 25 | 5 | 2 | 2 | 6 |
8,456 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCreateJobTriggerOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPCreateJobTriggerOperator(GoogleCloudBaseOperator):
'''
Create a job trigger to run DLP actions such as scanning storage for sensitive info on a set schedule.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPC... | 3 | 1 | 31 | 2 | 30 | 0 | 4 | 0.38 | 1 | 9 | 2 | 0 | 2 | 8 | 2 | 3 | 103 | 9 | 68 | 31 | 53 | 26 | 29 | 18 | 26 | 6 | 2 | 2 | 7 |
8,457 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPCreateStoredInfoTypeOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPCreateStoredInfoTypeOperator(GoogleCloudBaseOperator):
'''
Creates a pre-built stored infoType to be used for inspection.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPCreateStoredInfoTypeOperator`
:pa... | 3 | 1 | 34 | 2 | 33 | 0 | 4 | 0.37 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 112 | 9 | 75 | 33 | 59 | 28 | 30 | 19 | 27 | 6 | 2 | 2 | 7 |
8,458 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeidentifyContentOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPDeidentifyContentOperator(GoogleCloudBaseOperator):
'''
De-identifies potentially sensitive info from a content item; limits input size and output size.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPDeiden... | 3 | 1 | 23 | 0 | 23 | 0 | 1 | 0.63 | 1 | 7 | 1 | 0 | 2 | 11 | 2 | 3 | 97 | 6 | 56 | 32 | 38 | 35 | 19 | 17 | 16 | 1 | 2 | 0 | 2 |
8,459 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeleteDLPJobOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE... |
class CloudDLPDeleteDLPJobOperator(GoogleCloudBaseOperator):
'''
Deletes a long-running DlpJob.
This method indicates that the client is no longer interested
in the DlpJob result. The job will be cancelled if possible.
.. seealso::
For more information on how to use this operator, take a lo... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.54 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 85 | 8 | 50 | 25 | 36 | 27 | 21 | 14 | 18 | 3 | 2 | 2 | 4 |
8,460 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeleteDeidentifyTemplateOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPDeleteDeidentifyTemplateOperator(GoogleCloudBaseOperator):
'''
Deletes a DeidentifyTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPDeleteDeidentifyTemplateOperator`
:param template_id: The ID o... | 3 | 1 | 23 | 0 | 23 | 0 | 2 | 0.5 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 86 | 5 | 54 | 27 | 39 | 27 | 22 | 15 | 19 | 3 | 2 | 2 | 4 |
8,461 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeleteInspectTemplateOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPDeleteInspectTemplateOperator(GoogleCloudBaseOperator):
'''
Deletes an InspectTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPDeleteInspectTemplateOperator`
:param template_id: The ID of the in... | 3 | 1 | 24 | 1 | 23 | 0 | 2 | 0.5 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 88 | 7 | 54 | 27 | 39 | 27 | 22 | 15 | 19 | 3 | 2 | 2 | 4 |
8,462 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeleteJobTriggerOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.exceptions import AlreadyExists, InvalidArgument, NotFound
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.go... |
class CloudDLPDeleteJobTriggerOperator(GoogleCloudBaseOperator):
'''
Deletes a job trigger.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPDeleteJobTriggerOperator`
:param job_trigger_id: The ID of the DLP job trigge... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.5 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 82 | 7 | 50 | 25 | 36 | 25 | 21 | 14 | 18 | 3 | 2 | 2 | 4 |
8,463 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPDeleteStoredInfoTypeOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.data_loss_prevention import CloudDLPDeidentifyTemplateDetailsLink, CloudDLPDeidentifyTemplatesListLink, CloudDLPInfoTypeDetailsLink, CloudDLPInfoTypesListLink, CloudDLPInspectTemplateDetails... |
class CloudDLPDeleteStoredInfoTypeOperator(GoogleCloudBaseOperator):
'''
Deletes a stored infoType.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPDeleteStoredInfoTypeOperator`
:param stored_info_type_id: The ID of t... | 3 | 1 | 23 | 1 | 23 | 0 | 2 | 0.5 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 87 | 6 | 54 | 27 | 39 | 27 | 22 | 15 | 19 | 3 | 2 | 1 | 4 |
8,464 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPGetDLPJobOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPGetDLPJobOperator(GoogleCloudBaseOperator):
'''
Gets the latest state of a long-running DlpJob.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPGetDLPJobOperator`
:param dlp_job_id: The ID of the DLP job... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.51 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 82 | 8 | 49 | 26 | 35 | 25 | 19 | 15 | 16 | 2 | 2 | 1 | 3 |
8,465 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPGetDLPJobTriggerOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPGetDLPJobTriggerOperator(GoogleCloudBaseOperator):
'''
Gets a job trigger.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPGetDLPJobTriggerOperator`
:param job_trigger_id: The ID of the DLP job trigger t... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.51 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 82 | 8 | 49 | 26 | 35 | 25 | 19 | 15 | 16 | 2 | 2 | 1 | 3 |
8,466 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPGetDeidentifyTemplateOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPGetDeidentifyTemplateOperator(GoogleCloudBaseOperator):
'''
Gets a DeidentifyTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPGetDeidentifyTemplateOperator`
:param template_id: The ID of deident... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.54 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 85 | 8 | 50 | 28 | 35 | 27 | 20 | 16 | 17 | 2 | 2 | 1 | 3 |
8,467 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPGetInspectTemplateOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPGetInspectTemplateOperator(GoogleCloudBaseOperator):
'''
Gets an InspectTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPGetInspectTemplateOperator`
:param template_id: The ID of inspect templat... | 3 | 1 | 23 | 1 | 22 | 0 | 2 | 0.51 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 88 | 8 | 53 | 28 | 38 | 27 | 20 | 16 | 17 | 2 | 2 | 1 | 3 |
8,468 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPGetStoredInfoTypeOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPGetStoredInfoTypeOperator(GoogleCloudBaseOperator):
'''
Gets a stored infoType.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPGetStoredInfoTypeOperator`
:param stored_info_type_id: The ID of the stored... | 3 | 1 | 23 | 1 | 22 | 0 | 2 | 0.51 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 88 | 8 | 53 | 28 | 38 | 27 | 20 | 16 | 17 | 2 | 2 | 1 | 3 |
8,469 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPInspectContentOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPInspectContentOperator(GoogleCloudBaseOperator):
'''
Finds potentially sensitive info in content; limits input size, processing time, and output size.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPInspectC... | 3 | 1 | 20 | 0 | 20 | 0 | 1 | 0.6 | 1 | 7 | 1 | 0 | 2 | 9 | 2 | 3 | 83 | 6 | 48 | 28 | 32 | 29 | 17 | 15 | 14 | 1 | 2 | 0 | 2 |
8,470 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListDLPJobsOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPListDLPJobsOperator(GoogleCloudBaseOperator):
'''
Lists DlpJobs that match the specified filter in the request.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListDLPJobsOperator`
:param project_id: (Op... | 3 | 1 | 26 | 1 | 25 | 1 | 2 | 0.57 | 1 | 8 | 2 | 0 | 2 | 10 | 2 | 3 | 95 | 8 | 56 | 32 | 39 | 32 | 22 | 18 | 19 | 2 | 2 | 1 | 3 |
8,471 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListDeidentifyTemplatesOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPListDeidentifyTemplatesOperator(GoogleCloudBaseOperator):
'''
Lists DeidentifyTemplates.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListDeidentifyTemplatesOperator`
:param organization_id: (Optional... | 3 | 1 | 24 | 1 | 23 | 1 | 2 | 0.57 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 92 | 8 | 54 | 30 | 38 | 31 | 21 | 17 | 18 | 2 | 2 | 1 | 3 |
8,472 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListInfoTypesOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPListInfoTypesOperator(GoogleCloudBaseOperator):
'''
Returns a list of the sensitive information types that the DLP API supports.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListInfoTypesOperator`
:pa... | 3 | 1 | 22 | 1 | 21 | 0 | 2 | 0.51 | 1 | 7 | 2 | 0 | 2 | 8 | 2 | 3 | 82 | 8 | 49 | 28 | 34 | 25 | 20 | 16 | 17 | 2 | 2 | 1 | 3 |
8,473 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListInspectTemplatesOperator | from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.links.data_loss_prevention import CloudDLPDeidentifyTemplateDetailsLink, CloudDLPDeidentifyTemplatesListLink, CloudDLPInfoTypeDetailsLink, CloudDLPInfoTypesListLink, CloudDLPInspectTemplateDetailsLink, CloudDLPInspec... |
class CloudDLPListInspectTemplatesOperator(GoogleCloudBaseOperator):
'''
Lists InspectTemplates.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListInspectTemplatesOperator`
:param organization_id: (Optional) The org... | 3 | 1 | 24 | 1 | 23 | 0 | 2 | 0.56 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 92 | 8 | 54 | 30 | 38 | 30 | 21 | 17 | 18 | 2 | 2 | 1 | 3 |
8,474 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListJobTriggersOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPListJobTriggersOperator(GoogleCloudBaseOperator):
'''
Lists job triggers.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListJobTriggersOperator`
:param project_id: (Optional) Google Cloud project ID wh... | 3 | 1 | 24 | 1 | 23 | 0 | 2 | 0.55 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 90 | 8 | 53 | 30 | 37 | 29 | 21 | 17 | 18 | 2 | 2 | 1 | 3 |
8,475 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPListStoredInfoTypesOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPListStoredInfoTypesOperator(GoogleCloudBaseOperator):
'''
Lists stored infoTypes.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPListStoredInfoTypesOperator`
:param organization_id: (Optional) The organ... | 3 | 1 | 24 | 1 | 23 | 0 | 2 | 0.56 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 92 | 8 | 54 | 30 | 38 | 30 | 21 | 17 | 18 | 2 | 2 | 1 | 3 |
8,476 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPRedactImageOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPRedactImageOperator(GoogleCloudBaseOperator):
'''
Redacts potentially sensitive info from an image; limits input size, processing time, and output size.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPRedact... | 3 | 1 | 21 | 0 | 21 | 0 | 1 | 0.6 | 1 | 9 | 1 | 0 | 2 | 10 | 2 | 3 | 89 | 6 | 52 | 30 | 35 | 31 | 18 | 16 | 15 | 1 | 2 | 0 | 2 |
8,477 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPReidentifyContentOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPReidentifyContentOperator(GoogleCloudBaseOperator):
'''
Re-identifies content that has been de-identified.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPReidentifyContentOperator`
:param project_id: (O... | 3 | 1 | 23 | 0 | 23 | 0 | 1 | 0.59 | 1 | 7 | 1 | 0 | 2 | 11 | 2 | 3 | 95 | 6 | 56 | 32 | 38 | 33 | 19 | 17 | 16 | 1 | 2 | 0 | 2 |
8,478 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPUpdateDeidentifyTemplateOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectCon... |
class CloudDLPUpdateDeidentifyTemplateOperator(GoogleCloudBaseOperator):
'''
Updates the DeidentifyTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPUpdateDeidentifyTemplateOperator`
:param template_id: The ID... | 3 | 1 | 26 | 1 | 25 | 0 | 2 | 0.48 | 1 | 8 | 2 | 0 | 2 | 10 | 2 | 3 | 98 | 8 | 61 | 32 | 44 | 29 | 22 | 18 | 19 | 2 | 2 | 1 | 3 |
8,479 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPUpdateInspectTemplateOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPUpdateInspectTemplateOperator(GoogleCloudBaseOperator):
'''
Updates the InspectTemplate.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPUpdateInspectTemplateOperator`
:param template_id: The ID of the i... | 3 | 1 | 26 | 1 | 25 | 0 | 2 | 0.48 | 1 | 8 | 2 | 0 | 2 | 10 | 2 | 3 | 98 | 8 | 61 | 32 | 44 | 29 | 22 | 18 | 19 | 2 | 2 | 1 | 3 |
8,480 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPUpdateJobTriggerOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListI... |
class CloudDLPUpdateJobTriggerOperator(GoogleCloudBaseOperator):
'''
Updates a job trigger.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPUpdateJobTriggerOperator`
:param job_trigger_id: The ID of the DLP job trigge... | 3 | 1 | 25 | 1 | 24 | 0 | 2 | 0.47 | 1 | 8 | 2 | 0 | 2 | 9 | 2 | 3 | 92 | 8 | 57 | 30 | 41 | 27 | 21 | 17 | 18 | 2 | 2 | 1 | 3 |
8,481 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/dlp.py | google.cloud.operators.dlp.CloudDLPUpdateStoredInfoTypeOperator | from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.cloud... |
class CloudDLPUpdateStoredInfoTypeOperator(GoogleCloudBaseOperator):
'''
Updates the stored infoType by creating a new version.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudDLPUpdateStoredInfoTypeOperator`
:param stor... | 3 | 1 | 26 | 1 | 25 | 0 | 2 | 0.49 | 1 | 8 | 2 | 0 | 2 | 10 | 2 | 3 | 99 | 8 | 61 | 32 | 44 | 30 | 22 | 18 | 19 | 2 | 2 | 1 | 3 |
8,482 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/functions.py | google.cloud.operators.functions.CloudFunctionDeleteFunctionOperator | from airflow.providers.google.cloud.hooks.functions import CloudFunctionsHook
from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.links.cloud_functions import CloudFunctionsDetailsLink, CloudFunctionsListLink
fr... |
class CloudFunctionDeleteFunctionOperator(GoogleCloudBaseOperator):
'''
Deletes the specified function from Google Cloud Functions.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudFunctionDeleteFunctionOperator`
:param n... | 4 | 1 | 16 | 0 | 16 | 0 | 3 | 0.36 | 1 | 6 | 2 | 0 | 3 | 5 | 3 | 4 | 81 | 6 | 55 | 25 | 42 | 20 | 31 | 15 | 27 | 4 | 2 | 2 | 8 |
8,483 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/functions.py | google.cloud.operators.functions.CloudFunctionDeployFunctionOperator | from airflow.providers.google.cloud.hooks.functions import CloudFunctionsHook
from airflow.providers.google.cloud.links.cloud_functions import CloudFunctionsDetailsLink, CloudFunctionsListLink
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.version import version
fro... |
class CloudFunctionDeployFunctionOperator(GoogleCloudBaseOperator):
'''
Create or update a function in Google Cloud Functions.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudFunctionDeployFunctionOperator`
:param locati... | 12 | 1 | 9 | 0 | 9 | 0 | 2 | 0.36 | 1 | 11 | 6 | 0 | 9 | 9 | 9 | 10 | 137 | 12 | 92 | 38 | 70 | 33 | 60 | 25 | 50 | 4 | 2 | 2 | 20 |
8,484 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/functions.py | google.cloud.operators.functions.CloudFunctionInvokeFunctionOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING, Any
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.cloud.links.cloud_functions import CloudFuncti... |
class CloudFunctionInvokeFunctionOperator(GoogleCloudBaseOperator):
'''
Invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CloudF... | 5 | 1 | 24 | 1 | 23 | 0 | 2 | 0.37 | 1 | 6 | 2 | 0 | 2 | 7 | 2 | 3 | 82 | 8 | 54 | 26 | 40 | 20 | 22 | 15 | 19 | 2 | 2 | 1 | 3 |
8,485 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/functions.py | google.cloud.operators.functions.ZipPathPreprocessor | from airflow.exceptions import AirflowException
class ZipPathPreprocessor:
"""
Pre-processes zip path parameter.
Responsible for checking if the zip path parameter is correctly specified in
relation with source_code body fields. Non empty zip path parameter is special because
it is mutually exclus... |
class ZipPathPreprocessor:
'''
Pre-processes zip path parameter.
Responsible for checking if the zip path parameter is correctly specified in
relation with source_code body fields. Non empty zip path parameter is special because
it is mutually exclusive with sourceArchiveUrl and sourceRepository bo... | 9 | 3 | 6 | 0 | 5 | 0 | 2 | 0.44 | 0 | 4 | 1 | 0 | 6 | 2 | 7 | 7 | 70 | 11 | 41 | 12 | 32 | 18 | 29 | 11 | 21 | 3 | 0 | 2 | 14 |
8,486 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSBucketCreateAclEntryOperator | from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
class GCSBucketCreateAclEntryOperator(GoogleCl... |
class GCSBucketCreateAclEntryOperator(GoogleCloudBaseOperator):
'''
Creates a new ACL entry on the specified bucket.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GCSBucketCreateAclEntryOperator`
:param bucket: Name of a bu... | 3 | 1 | 16 | 0 | 16 | 0 | 1 | 0.61 | 1 | 5 | 2 | 0 | 2 | 6 | 2 | 3 | 71 | 5 | 41 | 22 | 28 | 25 | 15 | 12 | 12 | 1 | 2 | 0 | 2 |
8,487 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSCreateBucketOperator | from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
fro... |
class GCSCreateBucketOperator(GoogleCloudBaseOperator):
'''
Creates a new bucket.
Google Cloud Storage uses a flat namespace, so you
can't create a bucket with a name that is already in use.
.. seealso::
For more information, see Bucket Naming Guidelines:
https://cloud.g... | 3 | 1 | 22 | 0 | 22 | 1 | 2 | 0.91 | 1 | 6 | 2 | 0 | 2 | 8 | 2 | 3 | 115 | 14 | 54 | 27 | 39 | 49 | 21 | 15 | 18 | 2 | 2 | 1 | 3 |
8,488 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSDeleteBucketOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from collections.abc import Sequence
class GCSDeleteBucketOperator(GoogleCloudBaseOperator):
"""
Deletes bucket from a Google Cloud Storage.
.. seealso::
... |
class GCSDeleteBucketOperator(GoogleCloudBaseOperator):
'''
Deletes bucket from a Google Cloud Storage.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GCSDeleteBucketOperator`
:param bucket_name: name of the bucket which wil... | 3 | 1 | 10 | 1 | 10 | 0 | 1 | 0.77 | 1 | 5 | 1 | 0 | 2 | 5 | 2 | 3 | 52 | 6 | 26 | 19 | 14 | 20 | 12 | 10 | 9 | 1 | 2 | 0 | 2 |
8,489 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSDeleteObjectsOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
class GCSDeleteObjectsOperator(GoogleCloudBaseOperator):
"""
Deletes objects from a list or all objects matching a prefix fro... |
class GCSDeleteObjectsOperator(GoogleCloudBaseOperator):
'''
Deletes objects from a list or all objects matching a prefix from a Google Cloud Storage bucket.
:param bucket_name: The GCS bucket to delete from
:param objects: List of objects to delete. These should be the names
of objects in the ... | 4 | 1 | 25 | 2 | 23 | 0 | 3 | 0.22 | 1 | 7 | 2 | 0 | 3 | 5 | 3 | 4 | 104 | 11 | 76 | 35 | 55 | 17 | 35 | 21 | 28 | 4 | 2 | 1 | 10 |
8,490 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSFileTransformOperator | from tempfile import NamedTemporaryFile, TemporaryDirectory
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
import sys
from collections.abc import Sequence
import subprocess
from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
from airflow.except... |
class GCSFileTransformOperator(GoogleCloudBaseOperator):
'''
Copies data from a source GCS location to a temporary location on the local filesystem.
Runs a transformation on this file as specified by the transformation script
and uploads the output to a destination bucket. If the output bucket is not
... | 4 | 1 | 25 | 3 | 22 | 0 | 2 | 0.37 | 1 | 9 | 4 | 0 | 3 | 8 | 3 | 4 | 119 | 15 | 76 | 34 | 59 | 28 | 39 | 21 | 33 | 5 | 2 | 4 | 7 |
8,491 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSListObjectsOperator | import warnings
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from collections.abc import Sequence
from airflow.exceptions import ... |
class GCSListObjectsOperator(GoogleCloudBaseOperator):
'''
List all objects from the bucket filtered by given string prefix and delimiter in name or match_glob.
This operator returns a python list with the name of objects which can be used by
XCom in the downstream task.
:param bucket: The Google C... | 3 | 1 | 27 | 1 | 26 | 0 | 2 | 0.54 | 1 | 7 | 3 | 0 | 2 | 6 | 2 | 3 | 104 | 11 | 61 | 23 | 48 | 33 | 21 | 13 | 18 | 2 | 2 | 1 | 4 |
8,492 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSObjectCreateAclEntryOperator | from collections.abc import Sequence
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
class GCSObjectCreateAclEntryOperator(GoogleCl... |
class GCSObjectCreateAclEntryOperator(GoogleCloudBaseOperator):
'''
Creates a new ACL entry on the specified object.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GCSObjectCreateAclEntryOperator`
:param bucket: Name of a bu... | 3 | 1 | 21 | 0 | 21 | 0 | 1 | 0.56 | 1 | 6 | 2 | 0 | 2 | 8 | 2 | 3 | 86 | 5 | 52 | 26 | 37 | 29 | 17 | 14 | 14 | 1 | 2 | 0 | 2 |
8,493 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSSynchronizeBucketsOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from collections.abc import Sequence
from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
class GCSSynchronizeBucketsOperator(GoogleClou... |
class GCSSynchronizeBucketsOperator(GoogleCloudBaseOperator):
'''
Synchronizes the contents of the buckets or bucket's directories in the Google Cloud Services.
Parameters ``source_object`` and ``destination_object`` describe the root sync directory. If they are
not passed, the entire bucket will be sy... | 4 | 1 | 16 | 0 | 16 | 0 | 2 | 0.51 | 1 | 6 | 2 | 0 | 3 | 9 | 3 | 4 | 102 | 10 | 61 | 29 | 44 | 31 | 22 | 16 | 18 | 3 | 2 | 1 | 5 |
8,494 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/gcs.py | google.cloud.operators.gcs.GCSTimeSpanFileTransformOperator | from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from google.cloud.exceptions import GoogleCloudError
import pendulum
from pathlib import Path
from airflow.utils import timezone
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from collections.abc import Sequence
from airfl... |
class GCSTimeSpanFileTransformOperator(GoogleCloudBaseOperator):
'''
Copy objects that were modified during a time span, run a transform, and upload results to a bucket.
Determines a list of objects that were added or modified at a GCS source
location during a specific time-span, copies them to a tempo... | 6 | 3 | 51 | 7 | 41 | 3 | 6 | 0.37 | 1 | 15 | 4 | 0 | 3 | 17 | 4 | 5 | 283 | 43 | 176 | 65 | 149 | 65 | 94 | 44 | 86 | 17 | 2 | 4 | 23 |
8,495 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/kubernetes_engine.py | google.cloud.operators.kubernetes_engine.GKEClusterAuthDetails | from airflow.providers.google.cloud.hooks.kubernetes_engine import GKEHook, GKEKubernetesHook
class GKEClusterAuthDetails:
"""
Helper for fetching information about cluster for connecting.
:param cluster_name: The name of the Google Kubernetes Engine cluster.
:param project_id: The Google Developers C... |
class GKEClusterAuthDetails:
'''
Helper for fetching information about cluster for connecting.
:param cluster_name: The name of the Google Kubernetes Engine cluster.
:param project_id: The Google Developers Console project id.
:param use_internal_ip: Use the internal IP address as the endpoint.
... | 3 | 2 | 13 | 1 | 12 | 1 | 2 | 0.32 | 0 | 4 | 1 | 0 | 2 | 6 | 2 | 2 | 37 | 4 | 25 | 16 | 16 | 8 | 15 | 10 | 12 | 2 | 0 | 1 | 3 |
8,496 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/kubernetes_engine.py | google.cloud.operators.kubernetes_engine.GKECreateClusterOperator | from airflow.providers.google.cloud.triggers.kubernetes_engine import GKEJobTrigger, GKEOperationTrigger, GKEStartPodTrigger
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from typing import TYPE_CHECKING, Any
from collections.abc import Sequence
from google.api_core.exceptions ... |
class GKECreateClusterOperator(GKEOperatorMixin, GoogleCloudBaseOperator):
'''
Create a Google Kubernetes Engine Cluster of specified dimensions and wait until the cluster is created.
The **minimum** required to define a cluster to create is:
``dict()`` ::
cluster_def = {"name": "my-cluster-nam... | 9 | 4 | 21 | 2 | 19 | 1 | 4 | 0.38 | 2 | 12 | 4 | 0 | 6 | 10 | 6 | 12 | 189 | 29 | 116 | 41 | 96 | 44 | 65 | 27 | 58 | 12 | 2 | 2 | 24 |
8,497 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/kubernetes_engine.py | google.cloud.operators.kubernetes_engine.GKECreateCustomResourceOperator | from collections.abc import Sequence
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.providers.cncf.kubernetes.operators.resource import KubernetesCreateResourceOperator, KubernetesDeleteReso... |
class GKECreateCustomResourceOperator(GKEOperatorMixin, KubernetesCreateResourceOperator):
'''
Create a resource in the specified Google Kubernetes Engine cluster.
This Operator assumes that the system has gcloud installed and has configured a
connection id with a service account.
.. seealso::
... | 2 | 1 | 32 | 2 | 28 | 2 | 3 | 0.88 | 2 | 5 | 1 | 0 | 1 | 6 | 1 | 15 | 68 | 8 | 32 | 19 | 20 | 28 | 14 | 9 | 12 | 3 | 3 | 1 | 3 |
8,498 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/kubernetes_engine.py | google.cloud.operators.kubernetes_engine.GKEDeleteClusterOperator | from airflow.providers.google.cloud.triggers.kubernetes_engine import GKEJobTrigger, GKEOperationTrigger, GKEStartPodTrigger
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from airflow.configuration import conf
from airflow.exceptions import AirflowException, AirflowProviderDepr... |
class GKEDeleteClusterOperator(GKEOperatorMixin, GoogleCloudBaseOperator):
'''
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
To delete a certain cluster, you must specify the ``project_id``, the ``cluster_name``
of the cluster, the ``location`` that the cluster is in, and... | 5 | 2 | 12 | 1 | 11 | 0 | 2 | 0.45 | 2 | 8 | 2 | 0 | 6 | 10 | 6 | 12 | 137 | 18 | 82 | 39 | 49 | 37 | 38 | 23 | 31 | 3 | 2 | 1 | 10 |
8,499 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/operators/kubernetes_engine.py | google.cloud.operators.kubernetes_engine.GKEDeleteCustomResourceOperator | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
from collections.abc import Sequence
from airflow.providers.cncf.kubernetes.operators.resource import KubernetesCreateResourceOperator, KubernetesDeleteResourceOperator
from airflow.exceptions import AirflowException, AirflowProviderDeprec... |
class GKEDeleteCustomResourceOperator(GKEOperatorMixin, KubernetesDeleteResourceOperator):
'''
Delete a resource in the specified Google Kubernetes Engine cluster.
This Operator assumes that the system has gcloud installed and has configured a
connection id with a service account.
.. seealso::
... | 2 | 1 | 32 | 2 | 28 | 2 | 3 | 0.88 | 2 | 5 | 1 | 0 | 1 | 6 | 1 | 15 | 68 | 8 | 32 | 19 | 20 | 28 | 14 | 9 | 12 | 3 | 3 | 1 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.