Class TranslationTaskDetails (0.10.0)

TranslationTaskDetails(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The translation task config to capture necessary settings for a translation task and subtask.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
teradata_options google.cloud.bigquery_migration_v2alpha.types.TeradataOptions
The Teradata SQL specific settings for the translation task. This field is a member of oneof_ language_options.
bteq_options google.cloud.bigquery_migration_v2alpha.types.BteqOptions
The BTEQ specific settings for the translation task. This field is a member of oneof_ language_options.
input_path str
The Cloud Storage path for translation input files.
output_path str
The Cloud Storage path for translation output files.
file_paths MutableSequence[google.cloud.bigquery_migration_v2alpha.types.TranslationFileMapping]
Cloud Storage files to be processed for translation.
schema_path str
The Cloud Storage path to DDL files as table schema to assist semantic translation.
file_encoding google.cloud.bigquery_migration_v2alpha.types.TranslationTaskDetails.FileEncoding
The file encoding type.
identifier_settings google.cloud.bigquery_migration_v2alpha.types.IdentifierSettings
The settings for SQL identifiers.
special_token_map MutableMapping[str, google.cloud.bigquery_migration_v2alpha.types.TranslationTaskDetails.TokenType]
The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.
filter google.cloud.bigquery_migration_v2alpha.types.Filter
The filter applied to translation details.
translation_exception_table str
Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

Classes

FileEncoding

FileEncoding(value)

The file encoding types.

Values: FILE_ENCODING_UNSPECIFIED (0): File encoding setting is not specified. UTF_8 (1): File encoding is UTF_8. ISO_8859_1 (2): File encoding is ISO_8859_1. US_ASCII (3): File encoding is US_ASCII. UTF_16 (4): File encoding is UTF_16. UTF_16LE (5): File encoding is UTF_16LE. UTF_16BE (6): File encoding is UTF_16BE.

SpecialTokenMapEntry

SpecialTokenMapEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

TokenType

TokenType(value)

The special token data type.

Values: TOKEN_TYPE_UNSPECIFIED (0): Token type is not specified. STRING (1): Token type as string. INT64 (2): Token type as integer. NUMERIC (3): Token type as numeric. BOOL (4): Token type as boolean. FLOAT64 (5): Token type as float. DATE (6): Token type as date. TIMESTAMP (7): Token type as timestamp.