From 35a10990d6d9019511d9c1813f4f6d5889004189 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 15 Jun 2022 14:16:30 -0700 Subject: [PATCH] feat: Add SQL Server dialect to bigquerymigration v2 client library (#99) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add SQL Server dialect to bigquerymigration v2 client library PiperOrigin-RevId: 453984088 Source-Link: https://github.com/googleapis/googleapis/commit/f30516e75f6f64ef93abbd4ccd175e32479c6dc0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/19b908a783056837e9d4b43b89ebf214485d3f52 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTliOTA4YTc4MzA1NjgzN2U5ZDRiNDNiODllYmYyMTQ0ODVkM2Y1MiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Steffany Brown <30247553+steffnay@users.noreply.github.com> --- google/cloud/bigquery_migration/__init__.py | 2 ++ google/cloud/bigquery_migration_v2/__init__.py | 2 ++ .../cloud/bigquery_migration_v2/types/__init__.py | 2 ++ .../types/migration_entities.py | 4 +++- .../types/translation_config.py | 15 +++++++++++++++ 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/google/cloud/bigquery_migration/__init__.py b/google/cloud/bigquery_migration/__init__.py index fee5209..f9602f0 100644 --- a/google/cloud/bigquery_migration/__init__.py +++ b/google/cloud/bigquery_migration/__init__.py @@ -62,6 +62,7 @@ SnowflakeDialect, SourceEnv, SparkSQLDialect, + SQLServerDialect, TeradataDialect, TranslationConfigDetails, VerticaDialect, @@ -103,6 +104,7 @@ "SnowflakeDialect", "SourceEnv", "SparkSQLDialect", + "SQLServerDialect", "TeradataDialect", "TranslationConfigDetails", "VerticaDialect", diff --git a/google/cloud/bigquery_migration_v2/__init__.py b/google/cloud/bigquery_migration_v2/__init__.py index 3701195..0ec86fe 100644 --- a/google/cloud/bigquery_migration_v2/__init__.py +++ b/google/cloud/bigquery_migration_v2/__init__.py @@ -51,6 +51,7 @@ SnowflakeDialect, SourceEnv, SparkSQLDialect, + SQLServerDialect, TeradataDialect, TranslationConfigDetails, VerticaDialect, @@ -85,6 +86,7 @@ "Point", "RedshiftDialect", "ResourceErrorDetail", + "SQLServerDialect", "SnowflakeDialect", "SourceEnv", "SparkSQLDialect", diff --git a/google/cloud/bigquery_migration_v2/types/__init__.py b/google/cloud/bigquery_migration_v2/types/__init__.py index 5a7e5d7..74a7d77 100644 --- a/google/cloud/bigquery_migration_v2/types/__init__.py +++ b/google/cloud/bigquery_migration_v2/types/__init__.py @@ -42,6 +42,7 @@ SnowflakeDialect, SourceEnv, SparkSQLDialect, + SQLServerDialect, TeradataDialect, TranslationConfigDetails, VerticaDialect, @@ -81,6 +82,7 @@ "SnowflakeDialect", "SourceEnv", "SparkSQLDialect", + "SQLServerDialect", "TeradataDialect", "TranslationConfigDetails", "VerticaDialect", diff --git a/google/cloud/bigquery_migration_v2/types/migration_entities.py b/google/cloud/bigquery_migration_v2/types/migration_entities.py index aae3940..883c985 100644 --- a/google/cloud/bigquery_migration_v2/types/migration_entities.py +++ b/google/cloud/bigquery_migration_v2/types/migration_entities.py @@ -120,7 +120,9 @@ class MigrationTask(proto.Message): types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - Translation_Snowflake2BQ, Translation_Netezza2BQ. + Translation_Snowflake2BQ, Translation_Netezza2BQ, + Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + Translation_SQLServer2BQ. state (google.cloud.bigquery_migration_v2.types.MigrationTask.State): Output only. The current state of the task. processing_error (google.rpc.error_details_pb2.ErrorInfo): diff --git a/google/cloud/bigquery_migration_v2/types/translation_config.py b/google/cloud/bigquery_migration_v2/types/translation_config.py index d200c4a..4545a58 100644 --- a/google/cloud/bigquery_migration_v2/types/translation_config.py +++ b/google/cloud/bigquery_migration_v2/types/translation_config.py @@ -30,6 +30,7 @@ "NetezzaDialect", "AzureSynapseDialect", "VerticaDialect", + "SQLServerDialect", "ObjectNameMappingList", "ObjectNameMapping", "NameMappingKey", @@ -155,6 +156,10 @@ class Dialect(proto.Message): vertica_dialect (google.cloud.bigquery_migration_v2.types.VerticaDialect): The Vertica dialect + This field is a member of `oneof`_ ``dialect_value``. + sql_server_dialect (google.cloud.bigquery_migration_v2.types.SQLServerDialect): + The SQL Server dialect + This field is a member of `oneof`_ ``dialect_value``. """ @@ -218,6 +223,12 @@ class Dialect(proto.Message): oneof="dialect_value", message="VerticaDialect", ) + sql_server_dialect = proto.Field( + proto.MESSAGE, + number=11, + oneof="dialect_value", + message="SQLServerDialect", + ) class BigQueryDialect(proto.Message): @@ -278,6 +289,10 @@ class VerticaDialect(proto.Message): r"""The dialect definition for Vertica.""" +class SQLServerDialect(proto.Message): + r"""The dialect definition for SQL Server.""" + + class ObjectNameMappingList(proto.Message): r"""Represents a map of name mappings using a list of key:value proto messages of existing name to desired output name.