airflow.providers.google.cloud.links.translate

This module contains Google Translate links.

Attributes

TRANSLATION_BASE_LINK

TRANSLATION_LEGACY_DATASET_LINK

TRANSLATION_DATASET_LIST_LINK

TRANSLATION_LEGACY_MODEL_LINK

TRANSLATION_LEGACY_MODEL_TRAIN_LINK

TRANSLATION_LEGACY_MODEL_PREDICT_LINK

TRANSLATION_TRANSLATE_TEXT_BATCH

TRANSLATION_NATIVE_DATASET_LINK

TRANSLATION_NATIVE_LIST_LINK

TRANSLATION_NATIVE_MODEL_LINK

TRANSLATION_MODELS_LIST_LINK

TRANSLATION_HUB_RESOURCES_LIST_LINK

Classes

TranslationLegacyDatasetLink

Helper class for constructing Legacy Translation Dataset link.

TranslationDatasetListLink

Helper class for constructing Translation Dataset List link.

TranslationLegacyModelLink

Helper class for constructing Translation Legacy Model link.

TranslationLegacyModelTrainLink

Helper class for constructing Translation Legacy Model Train link.

TranslationLegacyModelPredictLink

Helper class for constructing Translation Legacy Model Predict link.

TranslateTextBatchLink

Helper class for constructing Translation results for the text batch translate.

TranslationNativeDatasetLink

Helper class for constructing Legacy Translation Dataset link.

TranslationDatasetsListLink

Helper class for constructing Translation Datasets List link.

TranslationModelLink

Helper class for constructing Translation Model link.

TranslationModelsListLink

Helper class for constructing Translation Models List link.

TranslateResultByOutputConfigLink

Helper class for constructing Translation results Link.

TranslationGlossariesListLink

Helper class for constructing Translation Glossaries List link.

Module Contents

airflow.providers.google.cloud.links.translate.TRANSLATION_TRANSLATE_TEXT_BATCH = 'https://console.cloud.google.com/storage/browser/{output_uri_prefix}?project={project_id}'[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Legacy Translation Dataset link.

Legacy Datasets are created and managed by AutoML API.

name = 'Translation Legacy Dataset'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_legacy_dataset'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/sentence...[source]
static persist(context, task_instance, dataset_id, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Dataset List link.

name = 'Translation Dataset List'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_dataset_list'[source]
format_str = 'https://console.cloud.google.com/translation/datasets?project={project_id}'[source]
static persist(context, task_instance, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Legacy Model link.

Legacy Models are created and managed by AutoML API.

name = 'Translation Legacy Model'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_legacy_model'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/evaluate...[source]
static persist(context, task_instance, dataset_id, model_id, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Legacy Model Train link.

Legacy Models are created and managed by AutoML API.

name = 'Translation Legacy Model Train'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_legacy_model_train'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/train?pr...[source]
static persist(context, task_instance, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Legacy Model Predict link.

Legacy Models are created and managed by AutoML API.

name = 'Translation Legacy Model Predict'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_legacy_model_predict'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/predict;...[source]
static persist(context, task_instance, model_id, project_id, dataset_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation results for the text batch translate.

Provides link to output results.

name = 'Text Translate Batch'[source]

Name of the link. This will be the button name on the task UI.

key = 'translate_text_batch'[source]
format_str = 'https://console.cloud.google.com/storage/browser/{output_uri_prefix}?project={project_id}'[source]
static extract_output_uri_prefix(output_config)[source]
static persist(context, task_instance, project_id, output_config)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Legacy Translation Dataset link.

Legacy Datasets are created and managed by AutoML API.

name = 'Translation Native Dataset'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_naive_dataset'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/sentence...[source]
static persist(context, task_instance, dataset_id, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Datasets List link.

Both legacy and native datasets are available under this link.

name = 'Translation Dataset List'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_dataset_list'[source]
format_str = 'https://console.cloud.google.com/translation/datasets?project={project_id}'[source]
static persist(context, task_instance, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Model link.

Link for legacy and native models.

name = 'Translation Model'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_model'[source]
format_str = 'https://console.cloud.google.com/translation/locations/{location}/datasets/{dataset_id}/evaluate...[source]
static persist(context, task_instance, dataset_id, model_id, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Models List link.

Both legacy and native models are available under this link.

name = 'Translation Models List'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_models_list'[source]
format_str = 'https://console.cloud.google.com/translation/models/list?project={project_id}'[source]
static persist(context, task_instance, project_id)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation results Link.

Provides link to gcs destination output translation results, by provided output_config with gcs destination specified.

name = 'Translate Results By Output Config'[source]

Name of the link. This will be the button name on the task UI.

key = 'translate_results_by_output_config'[source]
format_str = 'https://console.cloud.google.com/storage/browser/{output_uri_prefix}?project={project_id}'[source]
static extract_output_uri_prefix(output_config)[source]
static persist(context, task_instance, project_id, output_config)[source]

Bases: airflow.providers.google.cloud.links.base.BaseGoogleLink

Helper class for constructing Translation Glossaries List link.

Link for the list of available glossaries.

name = 'Translation Glossaries List'[source]

Name of the link. This will be the button name on the task UI.

key = 'translation_glossaries_list'[source]
format_str = 'https://console.cloud.google.com/translation/hub/resources?project={project_id}'[source]
static persist(context, task_instance, project_id)[source]

Was this entry helpful?