airflow.providers.google.cloud.operators.vertex_ai.feature_store

This module contains Google Vertex AI Feature Store operators.

Classes

SyncFeatureViewOperator

Initiate a synchronization operation for a Feature View in Vertex AI Feature Store.

GetFeatureViewSyncOperator

Retrieve the status and details of a Feature View synchronization operation.

Module Contents

class airflow.providers.google.cloud.operators.vertex_ai.feature_store.SyncFeatureViewOperator(*, project_id, location, feature_online_store_id, feature_view_id, gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.cloud.operators.cloud_base.GoogleCloudBaseOperator

Initiate a synchronization operation for a Feature View in Vertex AI Feature Store.

This operator triggers a sync operation that updates the online serving data for a feature view based on the latest data in the underlying batch source. The sync operation ensures that the online feature values are up-to-date for real-time serving.

Parameters:
  • project_id (str) – Required. The ID of the Google Cloud project that contains the feature store. This is used to identify which project’s resources to interact with.

  • location (str) – Required. The location of the feature store (e.g., ‘us-central1’, ‘us-east1’). This specifies the Google Cloud region where the feature store resources are located.

  • feature_online_store_id (str) – Required. The ID of the online feature store that contains the feature view to be synchronized. This store serves as the online serving layer.

  • feature_view_id (str) – Required. The ID of the feature view to synchronize. This identifies the specific view that needs to have its online values updated from the batch source.

  • gcp_conn_id (str) – The connection ID to use for connecting to Google Cloud Platform. Defaults to ‘google_cloud_default’.

  • impersonation_chain (str | collections.abc.Sequence[str] | None) – Optional service account to impersonate using short-term credentials. Can be either a single account or a chain of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account.

template_fields: collections.abc.Sequence[str] = ('project_id', 'location', 'feature_online_store_id', 'feature_view_id')[source]
project_id[source]
location[source]
feature_online_store_id[source]
feature_view_id[source]
gcp_conn_id = 'google_cloud_default'[source]
impersonation_chain = None[source]
execute(context)[source]

Execute the feature view sync operation.

class airflow.providers.google.cloud.operators.vertex_ai.feature_store.GetFeatureViewSyncOperator(*, location, feature_view_sync_name, gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.cloud.operators.cloud_base.GoogleCloudBaseOperator

Retrieve the status and details of a Feature View synchronization operation.

This operator fetches information about a specific feature view sync operation, including its current status, timing information, and synchronization metrics. It’s typically used to monitor the progress of a sync operation initiated by the SyncFeatureViewOperator.

Parameters:
  • location (str) – Required. The location of the feature store (e.g., ‘us-central1’, ‘us-east1’). This specifies the Google Cloud region where the feature store resources are located.

  • feature_view_sync_name (str) – Required. The full resource name of the feature view sync operation to retrieve. This is typically the return value from a SyncFeatureViewOperator execution.

  • gcp_conn_id (str) – The connection ID to use for connecting to Google Cloud Platform. Defaults to ‘google_cloud_default’.

  • impersonation_chain (str | collections.abc.Sequence[str] | None) – Optional service account to impersonate using short-term credentials. Can be either a single account or a chain of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account.

template_fields: collections.abc.Sequence[str] = ('location', 'feature_view_sync_name')[source]
location[source]
feature_view_sync_name[source]
gcp_conn_id = 'google_cloud_default'[source]
impersonation_chain = None[source]
execute(context)[source]

Execute the get feature view sync operation.

Was this entry helpful?