airflow.providers.google.cloud.operators.mlengine¶
This module contains Google Cloud MLEngine operators.
Attributes¶
Classes¶
Creates a new model. |
Module Contents¶
- class airflow.providers.google.cloud.operators.mlengine.MLEngineCreateModelOperator(*, model, project_id=PROVIDE_PROJECT_ID, gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]¶
Bases:
airflow.providers.google.cloud.operators.cloud_base.GoogleCloudBaseOperator
Creates a new model.
Warning
This operator is deprecated. Please use appropriate VertexAI operator from
airflow.providers.google.cloud.operators.vertex_ai
instead.See also
For more information on how to use this operator, take a look at the guide: Creating a model
The model should be provided by the model parameter.
- Parameters:
model (dict) – A dictionary containing the information about the model.
project_id (str) – The Google Cloud project name to which MLEngine model belongs. If set to None or missing, the default project_id from the Google Cloud connection is used. (templated)
gcp_conn_id (str) – The connection ID to use when fetching connection info.
impersonation_chain (str | collections.abc.Sequence[str] | None) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in 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 (templated).
- template_fields: collections.abc.Sequence[str] = ('project_id', 'model', 'impersonation_chain')[source]¶