Skip to content

Commit

Permalink
feat(v2alpha): Add SQL translation service (#170)
Browse files Browse the repository at this point in the history
* feat: Add SQL translation service to Bazel generation

PiperOrigin-RevId: 512937316

Source-Link: googleapis/googleapis@178674c

Source-Link: googleapis/googleapis-gen@131f327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTMxZjMyNzEyNTZlMGE3YTJhYjk2ZDQyNTQwZWYwNWM5Y2FjZWM3ZCJ9

* 🦉 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 1, 2023
1 parent 79e6ef9 commit e8b977a
Show file tree
Hide file tree
Showing 18 changed files with 3,882 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Bigquery Migration v2alpha API
:maxdepth: 2

migration_service
sql_translation_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SqlTranslationService
---------------------------------------

.. automodule:: google.cloud.bigquery_migration_v2alpha.services.sql_translation_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
MigrationServiceAsyncClient,
MigrationServiceClient,
)
from .services.sql_translation_service import (
SqlTranslationServiceAsyncClient,
SqlTranslationServiceClient,
)
from .types.assessment_task import (
AssessmentOrchestrationResultDetails,
AssessmentTaskDetails,
Expand Down Expand Up @@ -49,6 +53,13 @@
ListMigrationWorkflowsResponse,
StartMigrationWorkflowRequest,
)
from .types.translation_service import (
SqlTranslationError,
SqlTranslationErrorDetail,
SqlTranslationWarning,
TranslateQueryRequest,
TranslateQueryResponse,
)
from .types.translation_task import (
BteqOptions,
DatasetReference,
Expand All @@ -61,6 +72,7 @@

__all__ = (
"MigrationServiceAsyncClient",
"SqlTranslationServiceAsyncClient",
"AssessmentOrchestrationResultDetails",
"AssessmentTaskDetails",
"BteqOptions",
Expand All @@ -84,10 +96,16 @@
"MigrationWorkflow",
"Point",
"ResourceErrorDetail",
"SqlTranslationError",
"SqlTranslationErrorDetail",
"SqlTranslationServiceClient",
"SqlTranslationWarning",
"StartMigrationWorkflowRequest",
"TeradataOptions",
"TimeInterval",
"TimeSeries",
"TranslateQueryRequest",
"TranslateQueryResponse",
"TranslationFileMapping",
"TranslationTaskDetails",
"TypedValue",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,30 @@
}
}
}
},
"SqlTranslationService": {
"clients": {
"grpc": {
"libraryClient": "SqlTranslationServiceClient",
"rpcs": {
"TranslateQuery": {
"methods": [
"translate_query"
]
}
}
},
"grpc-async": {
"libraryClient": "SqlTranslationServiceAsyncClient",
"rpcs": {
"TranslateQuery": {
"methods": [
"translate_query"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import SqlTranslationServiceAsyncClient
from .client import SqlTranslationServiceClient

__all__ = (
"SqlTranslationServiceClient",
"SqlTranslationServiceAsyncClient",
)
Loading

0 comments on commit e8b977a

Please sign in to comment.