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,000 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/datastore.py | google.cloud.hooks.datastore.DatastoreHook | from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
import time
from collections.abc import Sequence
from googleapiclient.discovery import Resource, build
from typing import Any
class DatastoreHook(GoogleBaseHook):
"""
Interact with Google Cloud Datastore. This hook uses the Google Clo... |
class DatastoreHook(GoogleBaseHook):
'''
Interact with Google Cloud Datastore. This hook uses the Google Cloud connection.
This object is not threads safe. If you want to make multiple requests
simultaneously, you will need to create a hook per thread.
:param api_version: The version of the API it ... | 22 | 13 | 22 | 3 | 10 | 8 | 2 | 0.74 | 1 | 8 | 0 | 0 | 13 | 2 | 13 | 47 | 311 | 60 | 144 | 78 | 95 | 107 | 74 | 43 | 60 | 3 | 3 | 2 | 22 |
8,001 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/dlp.py | google.cloud.hooks.dlp.CloudDLPHook | from google.protobuf.field_mask_pb2 import FieldMask
from collections.abc import Sequence
from google.cloud.dlp import DlpServiceClient
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
import re
from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google imp... |
class CloudDLPHook(GoogleBaseHook):
'''
Hook for Google Cloud Data Loss Prevention (DLP) APIs.
Cloud DLP allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in user-supplied,
unstructured data streams, like text blocks or images. The s... | 50 | 32 | 41 | 3 | 23 | 14 | 3 | 0.64 | 1 | 10 | 1 | 0 | 35 | 1 | 35 | 69 | 1,496 | 149 | 823 | 380 | 512 | 524 | 246 | 105 | 210 | 6 | 3 | 2 | 88 |
8,002 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/functions.py | google.cloud.hooks.functions.CloudFunctionsHook | from airflow.exceptions import AirflowException
import requests
from collections.abc import Sequence
import time
from googleapiclient.discovery import build
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
class CloudFunctionsHook(GoogleBaseHook):
"""
Google Clou... |
class CloudFunctionsHook(GoogleBaseHook):
'''
Google Cloud Functions APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, api_version: str, gcp_conn_id: str='google_cloud_default', impersonation_chain: s... | 15 | 10 | 17 | 1 | 10 | 7 | 2 | 0.68 | 1 | 6 | 1 | 0 | 9 | 1 | 10 | 44 | 197 | 24 | 103 | 52 | 76 | 70 | 56 | 35 | 45 | 4 | 3 | 3 | 15 |
8,003 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/gcs.py | google.cloud.hooks.gcs.GCSAsyncHook | from gcloud.aio.storage import Storage
from typing import IO, TYPE_CHECKING, Any, ParamSpec, TypeVar, cast, overload
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
class GCSAsyncHook(GoogleBaseAsyncHook):
"""GCSAsyncHook run on the trigger work... |
class GCSAsyncHook(GoogleBaseAsyncHook):
'''GCSAsyncHook run on the trigger worker, inherits from GoogleBaseAsyncHook.'''
async def get_storage_client(self, session: ClientSession) -> Storage:
'''Return a Google Cloud Storage service object.'''
pass | 2 | 2 | 7 | 0 | 6 | 1 | 1 | 0.25 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 17 | 12 | 2 | 8 | 4 | 6 | 2 | 5 | 4 | 3 | 1 | 3 | 0 | 1 |
8,004 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/gcs.py | google.cloud.hooks.gcs.GCSHook | from google.cloud.storage.retry import DEFAULT_RETRY
import google.cloud.storage as storage
from airflow.version import version
from airflow.utils import timezone
from google.cloud.exceptions import GoogleCloudError
import gzip as gz
from functools import partial
import os
from airflow.providers.google.cloud.utils.help... |
class GCSHook(GoogleBaseHook):
'''Use the Google Cloud connection to interact with Google Cloud Storage.'''
def get_conn(self) -> storage.Client:
'''Return a Google Cloud Storage service object.'''
pass
def copy(self, source_bucket: str, source_object: str, destination_bucket: str | None=... | 46 | 33 | 35 | 3 | 22 | 11 | 3 | 0.48 | 1 | 20 | 2 | 0 | 32 | 0 | 34 | 68 | 1,265 | 153 | 764 | 299 | 570 | 366 | 393 | 139 | 354 | 12 | 3 | 3 | 117 |
8,005 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/gdm.py | google.cloud.hooks.gdm.GoogleDeploymentManagerHook | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from googleapiclient.discovery import Resource, build
from airflow.exceptions import AirflowException
from typing import Any
class GoogleDeploymentManagerHook(GoogleBaseHook):
"""
Interact with Google Cloud Deploym... |
class GoogleDeploymentManagerHook(GoogleBaseHook):
'''
Interact with Google Cloud Deployment Manager using the Google Cloud connection.
This allows for scheduled and programmatic inspection and deletion of resources managed by GDM.
'''
def get_conn(self) -> Resource:
'''Return a Google Dep... | 6 | 4 | 16 | 2 | 10 | 4 | 2 | 0.53 | 1 | 5 | 1 | 0 | 3 | 0 | 3 | 37 | 59 | 10 | 32 | 21 | 19 | 17 | 19 | 12 | 15 | 2 | 3 | 1 | 5 |
8,006 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kms.py | google.cloud.hooks.kms.CloudKMSHook | from airflow.providers.google.common.consts import CLIENT_INFO
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from collections.abc import Sequence
from google.cloud.kms_v1 import KeyManagementServiceClient
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
class CloudKMSH... |
class CloudKMSHook(GoogleBaseHook):
'''
Hook for Google Cloud Key Management service.
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts require... | 5 | 4 | 24 | 1 | 15 | 8 | 1 | 0.75 | 1 | 6 | 0 | 0 | 4 | 1 | 4 | 38 | 115 | 10 | 60 | 30 | 34 | 45 | 15 | 9 | 10 | 2 | 3 | 1 | 5 |
8,007 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kubernetes_engine.py | google.cloud.hooks.kubernetes_engine.GKEAsyncHook | from kubernetes import client
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
from collections.abc import Sequence
from google.cloud.container_v1 import ClusterManagerAsyncClient, ClusterManagerClient
from kubernetes_asyncio import client as async_cl... |
class GKEAsyncHook(GoogleBaseAsyncHook):
'''Asynchronous client of GKE.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', location: str | None=None, impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
async def _get_client(self) -> ClusterManagerAsyncClient:... | 5 | 2 | 13 | 1 | 11 | 2 | 1 | 0.2 | 1 | 3 | 0 | 0 | 3 | 2 | 3 | 19 | 48 | 6 | 35 | 20 | 20 | 7 | 15 | 9 | 11 | 2 | 3 | 1 | 4 |
8,008 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kubernetes_engine.py | google.cloud.hooks.kubernetes_engine.GKEClusterConnection | from kubernetes import client
from airflow.providers.cncf.kubernetes.kube_client import _enable_tcp_keepalive
from kubernetes_asyncio import client as async_client
from google.auth.transport import requests as google_requests
from kubernetes_asyncio.config.kube_config import FileOrData
class GKEClusterConnection:
... |
class GKEClusterConnection:
'''Helper for establishing connection to GKE cluster.'''
def __init__(self, cluster_url: str, ssl_ca_cert: str, credentials: google.auth.credentials.Credentials, enable_tcp_keepalive: bool=False, use_dns_endpoint: bool=False):
pass
def get_conn(self) -> client.ApiClien... | 7 | 1 | 7 | 0 | 7 | 0 | 1 | 0.03 | 0 | 2 | 0 | 0 | 4 | 4 | 5 | 5 | 45 | 5 | 39 | 20 | 26 | 1 | 23 | 13 | 17 | 2 | 0 | 1 | 7 |
8,009 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kubernetes_engine.py | google.cloud.hooks.kubernetes_engine.GKEHook | from airflow import version
import time
from google.cloud import exceptions
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
from google.cloud.container_v1 import ClusterManagerAsyncClient... |
class GKEHook(GoogleBaseHook):
'''
Google Kubernetes Engine cluster APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', location: str | None=None, impersonation_... | 14 | 9 | 25 | 2 | 14 | 9 | 3 | 0.65 | 1 | 8 | 1 | 0 | 8 | 2 | 9 | 43 | 249 | 29 | 135 | 48 | 95 | 88 | 64 | 17 | 54 | 7 | 3 | 3 | 23 |
8,010 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kubernetes_engine.py | google.cloud.hooks.kubernetes_engine.GKEKubernetesAsyncHook | from collections.abc import Sequence
from kubernetes_asyncio.config.kube_config import FileOrData
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
from airflow.providers.cncf.kubernetes.hooks.kubernetes import AsyncKubernetesHook, KubernetesHook
from ... |
class GKEKubernetesAsyncHook(GoogleBaseAsyncHook, AsyncKubernetesHook):
'''
Async GKE authenticated hook for standard Kubernetes API.
This hook provides full set of the standard Kubernetes API provided by the AsyncKubernetesHook,
and at the same time it provides a GKE authentication, so it makes it pos... | 6 | 1 | 12 | 0 | 12 | 0 | 1 | 0.14 | 2 | 4 | 0 | 0 | 4 | 3 | 4 | 101 | 63 | 6 | 51 | 24 | 37 | 7 | 23 | 15 | 18 | 2 | 8 | 2 | 5 |
8,011 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/kubernetes_engine.py | google.cloud.hooks.kubernetes_engine.GKEKubernetesHook | from airflow.providers.cncf.kubernetes.hooks.kubernetes import AsyncKubernetesHook, KubernetesHook
from typing import TYPE_CHECKING, Any
from kubernetes import client
from kubernetes_asyncio import client as async_client
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHo... |
class GKEKubernetesHook(GoogleBaseHook, KubernetesHook):
'''
GKE authenticated hook for standard Kubernetes API.
This hook provides full set of the standard Kubernetes API provided by the KubernetesHook,
and at the same time it provides a GKE authentication, so it makes it possible to KubernetesHook
... | 4 | 2 | 15 | 0 | 11 | 3 | 1 | 0.43 | 2 | 7 | 1 | 0 | 3 | 3 | 3 | 106 | 55 | 5 | 35 | 21 | 17 | 15 | 10 | 7 | 6 | 1 | 7 | 0 | 3 |
8,012 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/looker.py | google.cloud.hooks.looker.JobStatus | from enum import Enum
class JobStatus(Enum):
"""The job status string."""
QUEUED = 'added'
PENDING = 'pending'
RUNNING = 'running'
CANCELLED = 'killed'
DONE = 'complete'
ERROR = 'error'
UNKNOWN = 'unknown' |
class JobStatus(Enum):
'''The job status string.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 10 | 1 | 8 | 8 | 7 | 1 | 8 | 8 | 7 | 0 | 4 | 0 | 0 |
8,013 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/looker.py | google.cloud.hooks.looker.LookerApiSettings | from looker_sdk.rtl import api_settings, auth_session, requests_transport, serialize
from airflow.exceptions import AirflowException
class LookerApiSettings(api_settings.ApiSettings):
"""Custom implementation of Looker SDK's `ApiSettings` class."""
def __init__(self, conn: Connection) -> None:
self.co... |
class LookerApiSettings(api_settings.ApiSettings):
'''Custom implementation of Looker SDK's `ApiSettings` class.'''
def __init__(self, conn: Connection) -> None:
pass
def read_config(self):
'''
Fetch the connection settings from Airflow's connection object.
Overrides the d... | 3 | 2 | 21 | 5 | 14 | 4 | 4 | 0.31 | 1 | 4 | 2 | 0 | 2 | 1 | 2 | 2 | 45 | 11 | 29 | 9 | 23 | 9 | 23 | 6 | 20 | 7 | 1 | 1 | 8 |
8,014 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/looker.py | google.cloud.hooks.looker.LookerHook | from looker_sdk.sdk.api40 import methods as methods40
from looker_sdk.rtl import api_settings, auth_session, requests_transport, serialize
from packaging.version import parse as parse_version
from airflow.exceptions import AirflowException
from airflow.providers.google.version_compat import BaseHook
import time
import ... |
class LookerHook(BaseHook):
'''Hook for Looker APIs.'''
def __init__(self, looker_conn_id: str, **kwargs) -> None:
pass
def start_pdt_build(self, model: str, view: str, query_params: dict | None=None):
'''
Submit a PDT materialization job to Looker.
:param model: Required.... | 8 | 7 | 22 | 3 | 15 | 4 | 2 | 0.28 | 1 | 7 | 3 | 0 | 7 | 2 | 7 | 19 | 163 | 30 | 104 | 50 | 73 | 29 | 60 | 27 | 52 | 6 | 2 | 2 | 14 |
8,015 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/mlengine.py | google.cloud.hooks.mlengine.MLEngineAsyncHook | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
from aiohttp import ClientSession
import contextlib
from gcloud.aio.auth import AioSession, Token
from airflow.exceptions import AirflowException
class MLEngineAsyncHook(GoogleBaseAsyncHook):
"""Cl... |
class MLEngineAsyncHook(GoogleBaseAsyncHook):
'''Class to get asynchronous hook for MLEngine.'''
def _check_fileds(self, job_id: str, project_id: str=PROVIDE_PROJECT_ID):
pass
async def _get_link(self, url: str, session: Session):
pass
async def get_job(self, job_id: str, session: Se... | 5 | 3 | 15 | 1 | 12 | 2 | 3 | 0.18 | 1 | 7 | 1 | 0 | 4 | 0 | 4 | 20 | 67 | 9 | 50 | 24 | 37 | 9 | 35 | 13 | 30 | 5 | 3 | 3 | 10 |
8,016 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/mlengine.py | google.cloud.hooks.mlengine.MLEngineHook | from googleapiclient.discovery import Resource, build
from airflow.version import version as airflow_version
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseAsyncHook, GoogleBaseHook
from googleapiclient.errors import HttpError
from collections.abc import Callable
import time... |
class MLEngineHook(GoogleBaseHook):
'''
Hook for Google ML Engine APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def get_conn(self) -> Resource:
'''
Retrieve the connection to MLEngine.
:retur... | 26 | 14 | 28 | 3 | 16 | 10 | 3 | 0.61 | 1 | 6 | 0 | 0 | 15 | 1 | 15 | 49 | 451 | 57 | 245 | 123 | 179 | 150 | 167 | 65 | 151 | 8 | 3 | 4 | 46 |
8,017 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/natural_language.py | google.cloud.hooks.natural_language.CloudNaturalLanguageHook | from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from collections.abc import Sequence
from google.cloud.language_v1 import EncodingType, LanguageServiceClient
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.consts import CLIENT_INFO
fr... |
class CloudNaturalLanguageHook(GoogleBaseHook):
'''
Hook for Google Cloud Natural Language Service.
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of ac... | 15 | 8 | 24 | 2 | 13 | 9 | 2 | 0.77 | 1 | 6 | 0 | 0 | 8 | 1 | 8 | 42 | 223 | 25 | 112 | 69 | 50 | 86 | 40 | 16 | 31 | 3 | 3 | 1 | 16 |
8,018 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/os_login.py | google.cloud.hooks.os_login.OSLoginHook | from collections.abc import Sequence
from google.cloud.oslogin_v1 import ImportSshPublicKeyResponse, OsLoginServiceClient
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import PROVI... |
class OSLoginHook(GoogleBaseHook):
'''
Hook for Google OS login APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | No... | 5 | 3 | 18 | 1 | 12 | 5 | 1 | 0.49 | 1 | 6 | 0 | 0 | 3 | 1 | 3 | 37 | 65 | 7 | 39 | 20 | 21 | 19 | 12 | 6 | 8 | 2 | 3 | 1 | 4 |
8,019 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/pubsub.py | google.cloud.hooks.pubsub.PubSubAsyncHook | from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from googleapiclient.errors import HttpError
from google.api_core.exceptions import AlreadyExists, GoogleAPICallError
from typing import TYPE_CHECKING, Any
from google.pubsub_v1.services.subscriber.async_client import SubscriberAsyncClient
from airflow... |
class PubSubAsyncHook(GoogleBaseAsyncHook):
'''Class to get asynchronous hook for Google Cloud PubSub.'''
def __init__(self, project_id: str=PROVIDE_PROJECT_ID, **kwargs: Any):
pass
async def _get_subscriber_client(self) -> SubscriberAsyncClient:
'''
Return async connection to the... | 7 | 4 | 30 | 2 | 18 | 11 | 2 | 0.62 | 1 | 11 | 1 | 0 | 4 | 2 | 4 | 20 | 129 | 11 | 74 | 37 | 49 | 46 | 35 | 15 | 30 | 4 | 3 | 1 | 9 |
8,020 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/pubsub.py | google.cloud.hooks.pubsub.PubSubException | class PubSubException(Exception):
"""Alias for Exception.""" | class PubSubException(Exception):
'''Alias for Exception.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
8,021 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/pubsub.py | google.cloud.hooks.pubsub.PubSubHook | from google.api_core.exceptions import AlreadyExists, GoogleAPICallError
from airflow.providers.google.common.consts import CLIENT_INFO
from collections.abc import Sequence
from airflow.version import version
from googleapiclient.errors import HttpError
from airflow.exceptions import AirflowProviderDeprecationWarning
f... |
class PubSubHook(GoogleBaseHook):
'''
Hook for accessing Google Pub/Sub.
The Google Cloud project against which actions are applied is determined by
the project embedded in the Connection referenced by gcp_conn_id.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_c... | 21 | 10 | 45 | 3 | 25 | 17 | 4 | 0.66 | 1 | 13 | 2 | 0 | 10 | 2 | 11 | 45 | 520 | 41 | 289 | 128 | 190 | 192 | 125 | 34 | 113 | 8 | 3 | 3 | 39 |
8,022 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/secret_manager.py | google.cloud.hooks.secret_manager.GoogleCloudSecretManagerHook | from functools import cached_property
from google.cloud.secretmanager_v1 import AccessSecretVersionResponse, Secret, SecretManagerServiceClient, SecretPayload, SecretVersion
from collections.abc import Sequence
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.api_core.gapic_v1.me... |
class GoogleCloudSecretManagerHook(GoogleBaseHook):
'''
Hook for the Google Cloud Secret Manager API.
See https://cloud.google.com/secret-manager
'''
def __init__(self, location: str | None=None, **kwargs) -> None:
pass
@cached_property
def client(self):
'''
Create ... | 20 | 12 | 27 | 2 | 14 | 11 | 1 | 0.73 | 1 | 7 | 0 | 0 | 8 | 0 | 8 | 42 | 233 | 22 | 122 | 65 | 66 | 89 | 36 | 18 | 27 | 3 | 3 | 2 | 10 |
8,023 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/spanner.py | google.cloud.hooks.spanner.SpannerConnectionParams | from typing import TYPE_CHECKING, NamedTuple
class SpannerConnectionParams(NamedTuple):
"""Information about Google Spanner connection parameters."""
project_id: str | None
instance_id: str | None
database_id: str | None |
class SpannerConnectionParams(NamedTuple):
'''Information about Google Spanner connection parameters.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
8,024 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/spanner.py | google.cloud.hooks.spanner.SpannerHook | from google.cloud.spanner_v1.client import Client
from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook, get_field
from collections import OrderedDict
from airflow.providers.common.sql.hooks.sql import DbApiHook
from sqlalchemy import create_engine
... |
class SpannerHook(GoogleBaseHook, DbApiHook):
'''
Hook for Google Cloud Spanner APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Se... | 28 | 15 | 20 | 1 | 12 | 8 | 2 | 0.63 | 2 | 8 | 2 | 0 | 15 | 1 | 16 | 99 | 361 | 34 | 201 | 117 | 119 | 126 | 114 | 47 | 97 | 6 | 3 | 2 | 37 |
8,025 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/speech_to_text.py | google.cloud.hooks.speech_to_text.CloudSpeechToTextHook | from airflow.providers.google.common.consts import CLIENT_INFO
from google.cloud.speech_v1.types import RecognitionAudio, RecognitionConfig
from collections.abc import Sequence
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.cloud.speech_v1 import SpeechClient
from google.api_co... |
class CloudSpeechToTextHook(GoogleBaseHook):
'''
Hook for Google Cloud Speech API.
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required t... | 5 | 3 | 16 | 1 | 10 | 5 | 2 | 0.82 | 1 | 5 | 0 | 0 | 3 | 1 | 3 | 37 | 67 | 7 | 33 | 19 | 17 | 27 | 17 | 7 | 13 | 3 | 3 | 1 | 6 |
8,026 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/stackdriver.py | google.cloud.hooks.stackdriver.StackdriverHook | from collections.abc import Sequence
from googleapiclient.errors import HttpError
from airflow.exceptions import AirflowException
import json
from typing import TYPE_CHECKING, Any
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from google.api_core.exceptions import Inva... |
class StackdriverHook(GoogleBaseHook):
'''Stackdriver Hook for connecting with Google Cloud Stackdriver.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def _get_policy_client(self):
pass
def... | 26 | 11 | 35 | 2 | 22 | 11 | 3 | 0.49 | 1 | 12 | 1 | 0 | 15 | 2 | 15 | 49 | 545 | 44 | 337 | 158 | 216 | 164 | 115 | 51 | 99 | 10 | 3 | 3 | 39 |
8,027 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/tasks.py | google.cloud.hooks.tasks.CloudTasksHook | from google.cloud.tasks_v2 import CloudTasksClient
from google.cloud.tasks_v2.types import Queue, Task
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from collections.abc import Sequence
from airflow.pr... |
class CloudTasksHook(GoogleBaseHook):
'''
Hook for Google Cloud Tasks APIs.
Cloud Tasks allows developers to manage the execution of background work in their applications.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
:param g... | 29 | 15 | 34 | 2 | 19 | 14 | 2 | 0.75 | 1 | 9 | 1 | 0 | 15 | 1 | 15 | 49 | 555 | 44 | 292 | 183 | 140 | 219 | 79 | 47 | 63 | 4 | 3 | 2 | 25 |
8,028 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/text_to_speech.py | google.cloud.hooks.text_to_speech.CloudTextToSpeechHook | from collections.abc import Sequence
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.cloud.texttospeech_v1.types import AudioConfig, SynthesisInput, SynthesizeSpeechResponse, VoiceSelectionParams
from google.api_core... |
class CloudTextToSpeechHook(GoogleBaseHook):
'''
Hook for Google Cloud Text to Speech API.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param impers... | 5 | 3 | 20 | 2 | 12 | 6 | 2 | 0.89 | 1 | 5 | 0 | 0 | 3 | 1 | 3 | 37 | 80 | 10 | 37 | 19 | 20 | 33 | 18 | 6 | 14 | 4 | 3 | 1 | 7 |
8,029 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/translate.py | google.cloud.hooks.translate.CloudTranslateHook | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from collections.abc import MutableMapping, MutableSequence, Sequence
from airflow.providers.google.common.consts import CLIENT_INFO
from google.cloud.translate_v2 import Client
class CloudTranslateHook(GoogleBaseHook):
... |
class CloudTranslateHook(GoogleBaseHook):
'''
Hook for Google Cloud translate APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequ... | 5 | 3 | 24 | 3 | 11 | 10 | 1 | 1.06 | 1 | 5 | 0 | 0 | 3 | 1 | 3 | 37 | 82 | 12 | 34 | 19 | 17 | 36 | 11 | 6 | 7 | 2 | 3 | 1 | 4 |
8,030 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/translate.py | google.cloud.hooks.translate.TranslateHook | from collections.abc import MutableMapping, MutableSequence, Sequence
from typing import TYPE_CHECKING, cast
from google.cloud.translate_v3 import TranslationServiceClient
from airflow.providers.google.common.consts import CLIENT_INFO
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_c... |
class TranslateHook(GoogleBaseHook, OperationHelper):
'''
Hook for Google Cloud translation (Advanced) using client version V3.
See related docs https://cloud.google.com/translate/docs/editions#advanced.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Seq... | 25 | 22 | 42 | 2 | 22 | 18 | 2 | 0.82 | 1 | 12 | 1 | 0 | 20 | 1 | 23 | 57 | 991 | 76 | 502 | 285 | 275 | 413 | 128 | 82 | 104 | 4 | 3 | 2 | 35 |
8,031 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/translate.py | google.cloud.hooks.translate.WaitOperationNotDoneYetError | class WaitOperationNotDoneYetError(Exception):
"""Wait operation not done yet error."""
pass | class WaitOperationNotDoneYetError(Exception):
'''Wait operation not done yet error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
8,032 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py | google.cloud.hooks.vertex_ai.auto_ml.AutoMLHook | from google.cloud.aiplatform_v1 import JobServiceClient, PipelineServiceClient
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
import warnings
from airflow.providers.google.common.hooks.operation_helpers impo... |
class AutoMLHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Auto ML APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_pipeline_service_client(self, region: str | None... | 27 | 17 | 68 | 2 | 32 | 34 | 2 | 1.04 | 1 | 12 | 2 | 0 | 18 | 2 | 20 | 54 | 1,401 | 61 | 658 | 308 | 369 | 686 | 106 | 44 | 85 | 4 | 3 | 1 | 36 |
8,033 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py | google.cloud.hooks.vertex_ai.batch_prediction_job.BatchPredictionJobAsyncHook | from google.api_core.client_options import ClientOptions
import asyncio
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.consts import CLIENT_INFO
from collections.abc import Sequence
from google.cloud.aiplatform_v1 import JobServiceAsyncClient, JobServiceClient, ... |
class BatchPredictionJobAsyncHook(GoogleBaseAsyncHook):
'''Hook for Google Cloud Vertex AI Batch Prediction Job Async APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs):
pass
async def get_job_service_client(self, r... | 5 | 3 | 22 | 1 | 18 | 3 | 2 | 0.15 | 1 | 8 | 1 | 0 | 4 | 0 | 4 | 20 | 95 | 9 | 75 | 35 | 48 | 11 | 26 | 12 | 21 | 4 | 3 | 2 | 8 |
8,034 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py | google.cloud.hooks.vertex_ai.batch_prediction_job.BatchPredictionJobHook | from airflow.providers.google.common.consts import CLIENT_INFO
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import GoogleBaseAsyncHook, GoogleBaseHook
from collections.abc import Sequence
from google.cloud.aiplatform_v1 import JobServiceAsync... |
class BatchPredictionJobHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Batch Prediction Job APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_job_service_client(self... | 16 | 9 | 46 | 1 | 21 | 24 | 1 | 1.13 | 1 | 10 | 1 | 0 | 9 | 2 | 10 | 44 | 473 | 19 | 213 | 113 | 113 | 241 | 41 | 23 | 30 | 2 | 3 | 1 | 13 |
8,035 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py | google.cloud.hooks.vertex_ai.custom_job.CustomJobAsyncHook | from google.cloud.aiplatform import CustomContainerTrainingJob, CustomPythonPackageTrainingJob, CustomTrainingJob, datasets, models
from airflow.exceptions import AirflowException
from airflow.providers.google.common.consts import CLIENT_INFO
from collections.abc import Sequence
from google.cloud.aiplatform_v1 import J... |
class CustomJobAsyncHook(GoogleBaseAsyncHook):
'''Async hook for Custom Job Service Client.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs):
pass
async def get_credentials(self) -> Credentials:
pass
async ... | 9 | 7 | 22 | 0 | 19 | 3 | 2 | 0.15 | 1 | 8 | 1 | 0 | 8 | 1 | 8 | 24 | 198 | 11 | 162 | 72 | 106 | 25 | 59 | 23 | 50 | 4 | 3 | 2 | 18 |
8,036 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py | google.cloud.hooks.vertex_ai.custom_job.CustomJobHook | from airflow.providers.google.common.hooks.operation_helpers import OperationHelper
from google.cloud.aiplatform import CustomContainerTrainingJob, CustomPythonPackageTrainingJob, CustomTrainingJob, datasets, models
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
from google.api_co... | null | 51 | 29 | 91 | 4 | 37 | 50 | 1 | 1.31 | 1 | 12 | 1 | 0 | 30 | 1 | 35 | 69 | 3,278 | 184 | 1,340 | 693 | 674 | 1,754 | 155 | 88 | 119 | 2 | 3 | 1 | 46 |
8,037 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/dataset.py | google.cloud.hooks.vertex_ai.dataset.DatasetHook | from airflow.providers.google.common.consts import CLIENT_INFO
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.operation_helpers import OperationHelper
from google.api_core.client_options import ClientOptions
from collections.abc import Sequence
from airflo... |
class DatasetHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Dataset APIs.'''
def get_dataset_service_client(self, region: str | None=None) -> DatasetServiceClient:
'''Return DatasetServiceClient.'''
pass
@staticmethod
def extract_dataset_id(obj: dict) -> str:... | 23 | 13 | 31 | 2 | 20 | 9 | 1 | 0.44 | 1 | 8 | 1 | 0 | 12 | 0 | 13 | 47 | 424 | 34 | 270 | 157 | 144 | 120 | 64 | 45 | 50 | 2 | 3 | 1 | 15 |
8,038 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py | google.cloud.hooks.vertex_ai.endpoint_service.EndpointServiceHook | from airflow.providers.google.common.hooks.operation_helpers import OperationHelper
from airflow.providers.google.common.consts import CLIENT_INFO
from google.api_core.client_options import ClientOptions
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.cloud.aiplatform_v1 import ... |
class EndpointServiceHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Endpoint Service APIs.'''
def get_endpoint_service_client(self, region: str | None=None) -> EndpointServiceClient:
'''Return EndpointServiceClient.'''
pass
@staticmethod
def extract_endpoint_... | 20 | 11 | 28 | 2 | 16 | 10 | 1 | 0.59 | 1 | 8 | 1 | 0 | 9 | 1 | 11 | 45 | 333 | 30 | 191 | 111 | 103 | 112 | 51 | 34 | 39 | 2 | 3 | 1 | 13 |
8,039 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/feature_store.py | google.cloud.hooks.vertex_ai.feature_store.FeatureStoreHook | from collections.abc import Sequence
from google.cloud.aiplatform_v1beta1 import FeatureOnlineStoreAdminServiceClient, FeatureOnlineStoreServiceClient
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google imp... |
class FeatureStoreHook(GoogleBaseHook):
'''
Hook for interacting with Google Cloud Vertex AI Feature Store.
This hook provides an interface to manage Feature Store resources in Vertex AI,
including feature views and their synchronization operations. It handles authentication
and provides methods fo... | 22 | 10 | 31 | 5 | 16 | 11 | 2 | 0.96 | 1 | 5 | 1 | 0 | 3 | 0 | 3 | 37 | 117 | 19 | 50 | 27 | 32 | 48 | 27 | 11 | 23 | 3 | 3 | 2 | 7 |
8,040 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/generative_model.py | google.cloud.hooks.vertex_ai.generative_model.GenerativeModelHook | from vertexai.language_models import TextEmbeddingModel
from vertexai.preview.evaluation import EvalResult, EvalTask
from vertexai.preview.caching import CachedContent
from datetime import timedelta
import time
from vertexai.preview import generative_models as preview_generative_model
from vertexai.preview.tuning impor... |
class GenerativeModelHook(GoogleBaseHook):
'''Hook for Google Cloud Vertex AI Generative Model APIs.'''
def get_text_embedding_model(self, pretrained_model: str):
'''Return a Model Garden Model object based on Text Embedding.'''
pass
def get_generative_model(self, pretrained_model: str, s... | 17 | 12 | 27 | 2 | 16 | 9 | 1 | 0.53 | 1 | 6 | 0 | 0 | 13 | 0 | 13 | 47 | 384 | 43 | 224 | 140 | 105 | 118 | 60 | 36 | 46 | 2 | 3 | 1 | 14 |
8,041 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py | google.cloud.hooks.vertex_ai.hyperparameter_tuning_job.HyperparameterTuningJobAsyncHook | from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.cloud.aiplatform_v1 import JobServiceAsyncClient, JobServiceClient, JobState, types
from collections.abc import Sequence
from airflow.providers.google.common.consts import CLIENT_INFO
import asyncio
from google.api_core.client_options impor... |
class HyperparameterTuningJobAsyncHook(GoogleBaseAsyncHook):
'''Async hook for Google Cloud Vertex AI Hyperparameter Tuning Job APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs):
pass
async def get_job_service_clie... | 5 | 3 | 23 | 2 | 18 | 3 | 2 | 0.19 | 1 | 8 | 1 | 0 | 4 | 0 | 4 | 20 | 100 | 11 | 75 | 35 | 48 | 14 | 26 | 12 | 21 | 4 | 3 | 2 | 8 |
8,042 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py | google.cloud.hooks.vertex_ai.hyperparameter_tuning_job.HyperparameterTuningJobHook | from airflow.providers.google.common.hooks.base_google import GoogleBaseAsyncHook, GoogleBaseHook
from google.api_core.client_options import ClientOptions
from collections.abc import Sequence
from google.cloud.aiplatform_v1 import JobServiceAsyncClient, JobServiceClient, JobState, types
from airflow.providers.google.co... |
class HyperparameterTuningJobHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Hyperparameter Tuning Job APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_job_service_c... | 16 | 10 | 33 | 1 | 20 | 12 | 1 | 0.6 | 1 | 11 | 1 | 0 | 10 | 2 | 11 | 45 | 381 | 23 | 225 | 115 | 124 | 135 | 47 | 25 | 35 | 2 | 3 | 1 | 15 |
8,043 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/model_service.py | google.cloud.hooks.vertex_ai.model_service.ModelServiceHook | from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.cloud.aiplatform_v1 import ModelServiceClient
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from collections.abc import Sequence
from airflow.providers.google.co... |
class ModelServiceHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Endpoint Service APIs.'''
def get_model_service_client(self, region: str | None=None) -> ModelServiceClient:
'''Return ModelServiceClient object.'''
pass
@staticmethod
def extract_model_id(obj: ... | 24 | 13 | 30 | 2 | 19 | 9 | 1 | 0.45 | 1 | 8 | 1 | 0 | 12 | 1 | 13 | 47 | 410 | 37 | 258 | 149 | 145 | 115 | 73 | 49 | 59 | 3 | 3 | 2 | 19 |
8,044 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/pipeline_job.py | google.cloud.hooks.vertex_ai.pipeline_job.PipelineJobAsyncHook | import asyncio
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.client_options import ClientOptions
from google.cloud.aiplatform_v1 import PipelineServiceAsyncClient, PipelineServiceClient, PipelineState, types
from airflow.providers.google.common.hooks.base_google import GoogleB... |
class PipelineJobAsyncHook(GoogleBaseAsyncHook):
'''Asynchronous hook for Google Cloud Vertex AI Pipeline Job APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
async def get_credentials(self) -> Crede... | 8 | 3 | 14 | 0 | 12 | 1 | 2 | 0.12 | 1 | 8 | 1 | 0 | 7 | 0 | 7 | 23 | 114 | 11 | 92 | 44 | 59 | 11 | 37 | 18 | 29 | 4 | 3 | 2 | 11 |
8,045 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/pipeline_job.py | google.cloud.hooks.vertex_ai.pipeline_job.PipelineJobHook | from google.cloud.aiplatform import PipelineJob
from airflow.providers.google.common.hooks.base_google import GoogleBaseAsyncHook, GoogleBaseHook
from typing import TYPE_CHECKING, Any
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.operation_helpers import Opera... |
class PipelineJobHook(GoogleBaseHook, OperationHelper):
'''Hook for Google Cloud Vertex AI Pipeline Job APIs.'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_pipeline_service_client(self, region: ... | 19 | 11 | 37 | 2 | 20 | 16 | 1 | 0.78 | 1 | 11 | 1 | 0 | 11 | 1 | 12 | 46 | 462 | 30 | 243 | 129 | 129 | 189 | 51 | 28 | 38 | 2 | 3 | 1 | 15 |
8,046 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/prediction_service.py | google.cloud.hooks.vertex_ai.prediction_service.PredictionServiceHook | from google.cloud.aiplatform_v1 import PredictionServiceClient
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from collections.abc import Sequence
from google.api_core.gapic_v1.method import DEFAULT, _Method... |
class PredictionServiceHook(GoogleBaseHook):
'''Hook for Google Cloud Vertex AI Prediction API.'''
def get_prediction_service_client(self, region: str | None=None) -> PredictionServiceClient:
'''
Return PredictionServiceClient object.
:param region: The ID of the Google Cloud region th... | 4 | 3 | 27 | 2 | 14 | 11 | 2 | 0.79 | 1 | 6 | 0 | 0 | 2 | 0 | 2 | 36 | 58 | 6 | 29 | 17 | 15 | 23 | 10 | 6 | 7 | 2 | 3 | 1 | 3 |
8,047 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/video_intelligence.py | google.cloud.hooks.video_intelligence.CloudVideoIntelligenceHook | from collections.abc import Sequence
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from google.cloud.videointelligence_v1 import Feature, VideoContext, VideoI... |
class CloudVideoIntelligenceHook(GoogleBaseHook):
'''
Hook for Google Cloud Video Intelligence APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
:param gcp_conn_id: The connection ID to use when fetching connection info.
:pa... | 5 | 3 | 23 | 1 | 15 | 7 | 1 | 0.78 | 1 | 7 | 0 | 0 | 3 | 1 | 3 | 37 | 89 | 7 | 46 | 23 | 25 | 36 | 11 | 6 | 7 | 2 | 3 | 1 | 4 |
8,048 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vision.py | google.cloud.hooks.vision.CloudVisionHook | from airflow.providers.google.common.consts import CLIENT_INFO
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from google.protobuf.json_format import MessageToDict
from airflow.exceptions import AirflowException
from google.api_core.gapic_v1.method import DEFAULT, _Meth... |
class CloudVisionHook(GoogleBaseHook):
'''
Hook for Google Cloud Vision APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def __init__(self, gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[s... | 44 | 21 | 24 | 3 | 17 | 4 | 2 | 0.26 | 1 | 11 | 1 | 0 | 21 | 0 | 23 | 57 | 613 | 93 | 414 | 241 | 220 | 108 | 182 | 70 | 158 | 4 | 3 | 1 | 43 |
8,049 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/vision.py | google.cloud.hooks.vision.NameDeterminer | from copy import deepcopy
from collections.abc import Callable, Sequence
from airflow.exceptions import AirflowException
from typing import TYPE_CHECKING, Any
class NameDeterminer:
"""Helper class to determine entity name."""
def __init__(self, label: str, id_label: str, get_path: Callable[[str, str, str], st... |
class NameDeterminer:
'''Helper class to determine entity name.'''
def __init__(self, label: str, id_label: str, get_path: Callable[[str, str, str], str]) -> None:
pass
def get_entity_with_name(self, entity: Any, entity_id: str | None, location: str | None, project_id: str) -> Any:
'''
... | 3 | 2 | 25 | 2 | 14 | 9 | 3 | 0.68 | 0 | 3 | 1 | 0 | 2 | 3 | 2 | 2 | 53 | 6 | 28 | 10 | 23 | 19 | 18 | 8 | 15 | 5 | 0 | 2 | 6 |
8,050 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/hooks/workflows.py | google.cloud.hooks.workflows.WorkflowsHook | from airflow.providers.google.common.consts import CLIENT_INFO
from google.cloud.workflows_v1beta import Workflow, WorkflowsClient
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
from google.cloud.workfl... |
class WorkflowsHook(GoogleBaseHook):
'''
Hook for Google GCP APIs.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
'''
def get_workflows_client(self) -> WorkflowsClient:
'''Return WorkflowsClient object.'''
pass... | 20 | 12 | 26 | 1 | 14 | 11 | 1 | 0.78 | 1 | 5 | 0 | 0 | 11 | 0 | 11 | 45 | 307 | 25 | 158 | 113 | 62 | 124 | 50 | 29 | 38 | 2 | 3 | 0 | 12 |
8,051 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/alloy_db.py | google.cloud.links.alloy_db.AlloyDBBackupsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class AlloyDBBackupsLink(BaseGoogleLink):
"""Helper class for constructing AlloyDB backups Link."""
name = 'AlloyDB Backups'
key = 'alloy_db_backups'
format_str = ALLOY_DB_BACKUPS_LINK |
class AlloyDBBackupsLink(BaseGoogleLink):
'''Helper class for constructing AlloyDB backups Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,052 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/alloy_db.py | google.cloud.links.alloy_db.AlloyDBClusterLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class AlloyDBClusterLink(BaseGoogleLink):
"""Helper class for constructing AlloyDB cluster Link."""
name = 'AlloyDB Cluster'
key = 'alloy_db_cluster'
format_str = ALLOY_DB_CLUSTER_LINK |
class AlloyDBClusterLink(BaseGoogleLink):
'''Helper class for constructing AlloyDB cluster Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,053 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/alloy_db.py | google.cloud.links.alloy_db.AlloyDBUsersLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class AlloyDBUsersLink(BaseGoogleLink):
"""Helper class for constructing AlloyDB users Link."""
name = 'AlloyDB Users'
key = 'alloy_db_users'
format_str = ALLOY_DB_USERS_LINK |
class AlloyDBUsersLink(BaseGoogleLink):
'''Helper class for constructing AlloyDB users Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,054 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/base.py | google.cloud.links.base.BaseGoogleLink | from typing import TYPE_CHECKING, ClassVar
from airflow.providers.google.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator, BaseOperatorLink, BaseSensorOperator
class BaseGoogleLink(BaseOperatorLink):
"""
Base class for all Google links.
When you inherit this class in a Link class;
- You can ca... |
class BaseGoogleLink(BaseOperatorLink):
'''
Base class for all Google links.
When you inherit this class in a Link class;
- You can call the persist method to push data to the XCom to use it later in the get_link method.
- If you have an operator which inherit the GoogleCloudBaseOperator or Bas... | 8 | 2 | 12 | 0 | 12 | 0 | 3 | 0.25 | 1 | 2 | 1 | 122 | 1 | 0 | 1 | 1 | 23 | 3 | 16 | 8 | 9 | 4 | 11 | 3 | 9 | 3 | 1 | 1 | 3 |
8,055 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigquery.py | google.cloud.links.bigquery.BigQueryDatasetLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigQueryDatasetLink(BaseGoogleLink):
"""Helper class for constructing BigQuery Dataset Link."""
name = 'BigQuery Dataset'
key = 'bigquery_dataset'
format_str = BIGQUERY_DATASET_LINK |
class BigQueryDatasetLink(BaseGoogleLink):
'''Helper class for constructing BigQuery Dataset Link.'''
pass | 1 | 1 | 11 | 0 | 11 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 19 | 2 | 16 | 11 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,056 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigquery.py | google.cloud.links.bigquery.BigQueryJobDetailLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigQueryJobDetailLink(BaseGoogleLink):
"""Helper class for constructing BigQuery Job Detail Link."""
name = 'BigQuery Job Detail'
key = 'bigquery_job_detail'
format_str = BIGQUERY_JOB_DETAIL_LINK |
class BigQueryJobDetailLink(BaseGoogleLink):
'''Helper class for constructing BigQuery Job Detail Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,057 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigquery.py | google.cloud.links.bigquery.BigQueryTableLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigQueryTableLink(BaseGoogleLink):
"""Helper class for constructing BigQuery Table Link."""
name = 'BigQuery Table'
key = 'bigquery_table'
format_str = BIGQUERY_TABLE_LINK |
class BigQueryTableLink(BaseGoogleLink):
'''Helper class for constructing BigQuery Table Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,058 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigquery_dts.py | google.cloud.links.bigquery_dts.BigQueryDataTransferConfigLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigQueryDataTransferConfigLink(BaseGoogleLink):
"""Helper class for constructing BigQuery Data Transfer Config Link."""
name = 'BigQuery Data Transfer Config'
key = 'bigquery_dts_config'
format_str = BIGQUERY_DTS_LINK |
class BigQueryDataTransferConfigLink(BaseGoogleLink):
'''Helper class for constructing BigQuery Data Transfer Config Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,059 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigtable.py | google.cloud.links.bigtable.BigtableClusterLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigtableClusterLink(BaseGoogleLink):
"""Helper class for constructing Bigtable Cluster link."""
name = 'Bigtable Cluster'
key = 'cluster_key'
format_str = BIGTABLE_CLUSTER_LINK |
class BigtableClusterLink(BaseGoogleLink):
'''Helper class for constructing Bigtable Cluster link.'''
pass | 1 | 1 | 13 | 0 | 13 | 0 | 1 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 21 | 2 | 18 | 9 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,060 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigtable.py | google.cloud.links.bigtable.BigtableInstanceLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigtableInstanceLink(BaseGoogleLink):
"""Helper class for constructing Bigtable Instance link."""
name = 'Bigtable Instance'
key = 'instance_key'
format_str = BIGTABLE_INSTANCE_LINK |
class BigtableInstanceLink(BaseGoogleLink):
'''Helper class for constructing Bigtable Instance link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 9 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,061 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/bigtable.py | google.cloud.links.bigtable.BigtableTablesLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class BigtableTablesLink(BaseGoogleLink):
"""Helper class for constructing Bigtable Tables link."""
name = 'Bigtable Tables'
key = 'tables_key'
format_str = BIGTABLE_TABLES_LINK |
class BigtableTablesLink(BaseGoogleLink):
'''Helper class for constructing Bigtable Tables link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 9 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,062 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_build.py | google.cloud.links.cloud_build.CloudBuildLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudBuildLink(BaseGoogleLink):
"""Helper class for constructing Cloud Build link."""
name = 'Cloud Build Details'
key = 'cloud_build_key'
format_str = BUILD_LINK |
class CloudBuildLink(BaseGoogleLink):
'''Helper class for constructing Cloud Build link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,063 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_build.py | google.cloud.links.cloud_build.CloudBuildListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudBuildListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Build List link."""
name = 'Cloud Builds List'
key = 'cloud_build_list_key'
format_str = BUILD_LIST_LINK |
class CloudBuildListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Build List link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,064 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_build.py | google.cloud.links.cloud_build.CloudBuildTriggerDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudBuildTriggerDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Build Trigger Details link."""
name = 'Cloud Build Triggers Details'
key = 'cloud_build_triggers_details_key'
format_str = BUILD_TRIGGER_DETAIL... |
class CloudBuildTriggerDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Build Trigger Details link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,065 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_build.py | google.cloud.links.cloud_build.CloudBuildTriggersListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudBuildTriggersListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Build Triggers List link."""
name = 'Cloud Build Triggers List'
key = 'cloud_build_triggers_list_key'
format_str = BUILD_TRIGGERS_LIST_LINK |
class CloudBuildTriggersListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Build Triggers List link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,066 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_functions.py | google.cloud.links.cloud_functions.CloudFunctionsDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudFunctionsDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Functions Details Link."""
name = 'Cloud Functions Details'
key = 'cloud_functions_details'
format_str = CLOUD_FUNCTIONS_DETAILS_LINK |
class CloudFunctionsDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Functions Details Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,067 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_functions.py | google.cloud.links.cloud_functions.CloudFunctionsListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudFunctionsListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Functions Details Link."""
name = 'Cloud Functions List'
key = 'cloud_functions_list'
format_str = CLOUD_FUNCTIONS_LIST_LINK |
class CloudFunctionsListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Functions Details Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,068 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_memorystore.py | google.cloud.links.cloud_memorystore.MemcachedInstanceDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class MemcachedInstanceDetailsLink(BaseGoogleLink):
"""Helper class for constructing Memorystore Memcached Instance Link."""
name = 'Memorystore Memcached Instance'
key = 'memcached_instance'
format_str = MEMCACHED_LINK |
class MemcachedInstanceDetailsLink(BaseGoogleLink):
'''Helper class for constructing Memorystore Memcached Instance Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,069 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_memorystore.py | google.cloud.links.cloud_memorystore.MemcachedInstanceListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class MemcachedInstanceListLink(BaseGoogleLink):
"""Helper class for constructing Memorystore Memcached List of Instances Link."""
name = 'Memorystore Memcached List of Instances'
key = 'memcached_instances'
format_str = MEMCACHED_LIS... |
class MemcachedInstanceListLink(BaseGoogleLink):
'''Helper class for constructing Memorystore Memcached List of Instances Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,070 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_memorystore.py | google.cloud.links.cloud_memorystore.RedisInstanceDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class RedisInstanceDetailsLink(BaseGoogleLink):
"""Helper class for constructing Memorystore Redis Instance Link."""
name = 'Memorystore Redis Instance'
key = 'redis_instance'
format_str = REDIS_LINK |
class RedisInstanceDetailsLink(BaseGoogleLink):
'''Helper class for constructing Memorystore Redis Instance Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,071 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_memorystore.py | google.cloud.links.cloud_memorystore.RedisInstanceListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class RedisInstanceListLink(BaseGoogleLink):
"""Helper class for constructing Memorystore Redis List of Instances Link."""
name = 'Memorystore Redis List of Instances'
key = 'redis_instances'
format_str = REDIS_LIST_LINK |
class RedisInstanceListLink(BaseGoogleLink):
'''Helper class for constructing Memorystore Redis List of Instances Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,072 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_sql.py | google.cloud.links.cloud_sql.CloudSQLInstanceDatabaseLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudSQLInstanceDatabaseLink(BaseGoogleLink):
"""Helper class for constructing Cloud SQL Instance Database Link."""
name = 'Cloud SQL Instance Database'
key = 'cloud_sql_instance_database'
format_str = CLOUD_SQL_INSTANCE_DATABAS... |
class CloudSQLInstanceDatabaseLink(BaseGoogleLink):
'''Helper class for constructing Cloud SQL Instance Database Link.'''
pass | 1 | 1 | 11 | 0 | 11 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 19 | 2 | 16 | 11 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,073 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_sql.py | google.cloud.links.cloud_sql.CloudSQLInstanceLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudSQLInstanceLink(BaseGoogleLink):
"""Helper class for constructing Cloud SQL Instance Link."""
name = 'Cloud SQL Instance'
key = 'cloud_sql_instance'
format_str = CLOUD_SQL_INSTANCE_LINK |
class CloudSQLInstanceLink(BaseGoogleLink):
'''Helper class for constructing Cloud SQL Instance Link.'''
pass | 1 | 1 | 11 | 0 | 11 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 19 | 2 | 16 | 11 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,074 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_storage_transfer.py | google.cloud.links.cloud_storage_transfer.CloudStorageTransferDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudStorageTransferDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Storage Transfer Operation Link."""
name = 'Cloud Storage Transfer Details'
key = 'cloud_storage_transfer_details'
format_str = CLOUD_STORAG... |
class CloudStorageTransferDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Storage Transfer Operation Link.'''
@staticmethod
def extract_parts(operation_name: str | None):
pass
@classmethod
def persist(cls, context: Context, **value):
pass | 5 | 1 | 17 | 1 | 16 | 0 | 1 | 0.05 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 2 | 25 | 3 | 21 | 12 | 13 | 1 | 7 | 6 | 5 | 1 | 2 | 0 | 1 |
8,075 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_storage_transfer.py | google.cloud.links.cloud_storage_transfer.CloudStorageTransferJobLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudStorageTransferJobLink(BaseGoogleLink):
"""Helper class for constructing Storage Transfer Job Link."""
name = 'Cloud Storage Transfer Job'
key = 'cloud_storage_transfer_job'
format_str = CLOUD_STORAGE_TRANSFER_JOB_LINK |
class CloudStorageTransferJobLink(BaseGoogleLink):
'''Helper class for constructing Storage Transfer Job Link.'''
pass | 1 | 1 | 16 | 1 | 15 | 0 | 2 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 3 | 20 | 11 | 12 | 1 | 7 | 5 | 5 | 2 | 2 | 0 | 2 |
8,076 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_storage_transfer.py | google.cloud.links.cloud_storage_transfer.CloudStorageTransferLinkHelper | class CloudStorageTransferLinkHelper:
"""Helper class for Storage Transfer links."""
@staticmethod
def extract_parts(operation_name: str | None):
if not operation_name:
return ('', '')
transfer_operation = operation_name.split('/')[1]
transfer_job = operation_name.split(... | class CloudStorageTransferLinkHelper:
'''Helper class for Storage Transfer links.'''
@staticmethod
def extract_parts(operation_name: str | None):
pass | 3 | 1 | 6 | 0 | 6 | 0 | 2 | 0.13 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 10 | 1 | 8 | 5 | 5 | 1 | 7 | 4 | 5 | 2 | 0 | 1 | 2 |
8,077 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_storage_transfer.py | google.cloud.links.cloud_storage_transfer.CloudStorageTransferListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudStorageTransferListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Storage Transfer Link."""
name = 'Cloud Storage Transfer'
key = 'cloud_storage_transfer'
format_str = CLOUD_STORAGE_TRANSFER_LIST_LINK |
class CloudStorageTransferListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Storage Transfer Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,078 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_tasks.py | google.cloud.links.cloud_tasks.CloudTasksLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudTasksLink(BaseGoogleLink):
"""Helper class for constructing Cloud Task Link."""
name = 'Cloud Tasks'
key = 'cloud_task'
format_str = CLOUD_TASKS_LINK |
class CloudTasksLink(BaseGoogleLink):
'''Helper class for constructing Cloud Task Link.'''
pass | 1 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,079 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/cloud_tasks.py | google.cloud.links.cloud_tasks.CloudTasksQueueLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudTasksQueueLink(BaseGoogleLink):
"""Helper class for constructing Cloud Task Queue Link."""
name = 'Cloud Tasks Queue'
key = 'cloud_task_queue'
format_str = CLOUD_TASKS_QUEUE_LINK
@staticmethod
def extract_parts(que... |
class CloudTasksQueueLink(BaseGoogleLink):
'''Helper class for constructing Cloud Task Queue Link.'''
@staticmethod
def extract_parts(queue_name: str | None):
'''
Extract project_id, location and queue id from queue name.
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID.
... | 5 | 2 | 11 | 1 | 8 | 2 | 2 | 0.23 | 1 | 1 | 0 | 0 | 0 | 0 | 2 | 3 | 31 | 4 | 22 | 14 | 13 | 5 | 12 | 8 | 9 | 2 | 2 | 1 | 3 |
8,080 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/compute.py | google.cloud.links.compute.ComputeInstanceDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class ComputeInstanceDetailsLink(BaseGoogleLink):
"""Helper class for constructing Compute Instance details Link."""
name = 'Compute Instance details'
key = 'compute_instance_details'
format_str = COMPUTE_LINK |
class ComputeInstanceDetailsLink(BaseGoogleLink):
'''Helper class for constructing Compute Instance details Link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,081 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/compute.py | google.cloud.links.compute.ComputeInstanceGroupManagerDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class ComputeInstanceGroupManagerDetailsLink(BaseGoogleLink):
"""Helper class for constructing Compute Instance Group Manager details Link."""
name = 'Compute Instance Group Manager'
key = 'compute_instance_group_manager_details'
form... |
class ComputeInstanceGroupManagerDetailsLink(BaseGoogleLink):
'''Helper class for constructing Compute Instance Group Manager details Link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,082 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/compute.py | google.cloud.links.compute.ComputeInstanceTemplateDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class ComputeInstanceTemplateDetailsLink(BaseGoogleLink):
"""Helper class for constructing Compute Instance Template details Link."""
name = 'Compute Instance Template details'
key = 'compute_instance_template_details'
format_str = CO... |
class ComputeInstanceTemplateDetailsLink(BaseGoogleLink):
'''Helper class for constructing Compute Instance Template details Link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,083 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPDeidentifyTemplateDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPDeidentifyTemplateDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Deidentify Template Details'
key = 'cloud_dlp_deidentify_template_details_key'
format_... |
class CloudDLPDeidentifyTemplateDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,084 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPDeidentifyTemplatesListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPDeidentifyTemplatesListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Deidentify Templates List'
key = 'cloud_dlp_deidentify_templates_list_key'
format_str = ... |
class CloudDLPDeidentifyTemplatesListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,085 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPInfoTypeDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPInfoTypeDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Info Type Details'
key = 'cloud_dlp_info_type_details_key'
format_str = DLP_INFO_TYPE_DETAILS_LI... |
class CloudDLPInfoTypeDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,086 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPInfoTypesListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPInfoTypesListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Info Types List'
key = 'cloud_dlp_info_types_list_key'
format_str = DLP_INFO_TYPES_LIST_LINK |
class CloudDLPInfoTypesListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,087 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPInspectTemplateDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPInspectTemplateDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Inspect Template Details'
key = 'cloud_dlp_inspect_template_details_key'
format_str = DLP... |
class CloudDLPInspectTemplateDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,088 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPInspectTemplatesListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPInspectTemplatesListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Inspect Templates List'
key = 'cloud_dlp_inspect_templates_list_key'
format_str = DLP_INSPE... |
class CloudDLPInspectTemplatesListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,089 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPJobDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPJobDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Job Details'
key = 'cloud_dlp_job_details_key'
format_str = DLP_JOB_DETAILS_LINK |
class CloudDLPJobDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,090 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPJobTriggerDetailsLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPJobTriggerDetailsLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Job Triggers Details'
key = 'cloud_dlp_job_trigger_details_key'
format_str = DLP_JOB_TRIGGER_D... |
class CloudDLPJobTriggerDetailsLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 14 | 0 | 14 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 22 | 2 | 19 | 11 | 11 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,091 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPJobTriggersListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPJobTriggersListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Job Triggers List'
key = 'cloud_dlp_job_triggers_list_key'
format_str = DLP_JOB_TRIGGER_LIST_LIN... |
class CloudDLPJobTriggersListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,092 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPJobsListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPJobsListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Jobs List'
key = 'cloud_dlp_jobs_list_key'
format_str = DLP_JOBS_LIST_LINK |
class CloudDLPJobsListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,093 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/data_loss_prevention.py | google.cloud.links.data_loss_prevention.CloudDLPPossibleInfoTypesListLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class CloudDLPPossibleInfoTypesListLink(BaseGoogleLink):
"""Helper class for constructing Cloud Data Loss Prevention link."""
name = 'Cloud DLP Possible Info Types List'
key = 'cloud_dlp_possible_info_types_list_key'
format_str = DLP_... |
class CloudDLPPossibleInfoTypesListLink(BaseGoogleLink):
'''Helper class for constructing Cloud Data Loss Prevention link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 10 | 10 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,094 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/dataflow.py | google.cloud.links.dataflow.DataflowJobLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataflowJobLink(BaseGoogleLink):
"""Helper class for constructing Dataflow Job Link."""
name = 'Dataflow Job'
key = 'dataflow_job_config'
format_str = DATAFLOW_JOB_LINK |
class DataflowJobLink(BaseGoogleLink):
'''Helper class for constructing Dataflow Job Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,095 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/dataflow.py | google.cloud.links.dataflow.DataflowPipelineLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataflowPipelineLink(BaseGoogleLink):
"""Helper class for constructing Dataflow Pipeline Link."""
name = 'Dataflow Pipeline'
key = 'dataflow_pipeline_config'
format_str = DATAFLOW_PIPELINE_LINK |
class DataflowPipelineLink(BaseGoogleLink):
'''Helper class for constructing Dataflow Pipeline Link.'''
pass | 1 | 1 | 12 | 0 | 12 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 20 | 2 | 17 | 12 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,096 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/dataform.py | google.cloud.links.dataform.DataformRepositoryLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataformRepositoryLink(BaseGoogleLink):
"""Helper class for constructing Dataflow repository link."""
name = 'Dataform Repository'
key = 'dataform_repository'
format_str = DATAFORM_REPOSITORY_LINK |
class DataformRepositoryLink(BaseGoogleLink):
'''Helper class for constructing Dataflow repository link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,097 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/dataform.py | google.cloud.links.dataform.DataformWorkflowInvocationLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataformWorkflowInvocationLink(BaseGoogleLink):
"""Helper class for constructing Dataflow Job Link."""
name = 'Dataform Workflow Invocation'
key = 'dataform_workflow_invocation_config'
format_str = DATAFORM_WORKFLOW_INVOCATION_L... |
class DataformWorkflowInvocationLink(BaseGoogleLink):
'''Helper class for constructing Dataflow Job Link.'''
pass | 1 | 1 | 18 | 0 | 18 | 0 | 1 | 0.04 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 26 | 2 | 23 | 13 | 13 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,098 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/dataform.py | google.cloud.links.dataform.DataformWorkspaceLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataformWorkspaceLink(BaseGoogleLink):
"""Helper class for constructing Dataform workspace link."""
name = 'Dataform Workspace'
key = 'dataform_workspace'
format_str = DATAFORM_WORKSPACE_LINK |
class DataformWorkspaceLink(BaseGoogleLink):
'''Helper class for constructing Dataform workspace link.'''
pass | 1 | 1 | 18 | 0 | 18 | 0 | 1 | 0.04 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 26 | 2 | 23 | 13 | 13 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,099 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/cloud/links/datafusion.py | google.cloud.links.datafusion.DataFusionInstanceLink | from airflow.providers.google.cloud.links.base import BaseGoogleLink
class DataFusionInstanceLink(BaseGoogleLink):
"""Helper class for constructing Data Fusion Instance link."""
name = 'Data Fusion Instance'
key = 'instance_conf'
format_str = DATAFUSION_INSTANCE_LINK |
class DataFusionInstanceLink(BaseGoogleLink):
'''Helper class for constructing Data Fusion Instance link.'''
pass | 1 | 1 | 16 | 0 | 16 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 24 | 2 | 21 | 12 | 12 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.