This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add task details and orchestration result details (#32)
* feat!: Consolidate task details into service API and add orchestration result details BREAKING CHANGE: This change relocates some task proto definitions and updates message fields, necessitating updates to imports. PiperOrigin-RevId: 423360094 Source-Link: googleapis/googleapis@c9a482e Source-Link: googleapis/googleapis-gen@0c2ce73 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGMyY2U3M2MxNDgzODllNDM4MmMxMWViN2FiZmQwYjI2OTczY2JiNyJ9 * 🦉 Updates from OwlBot 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> Co-authored-by: Anthonios Partheniou <[email protected]>
- Loading branch information
1 parent
2ec1240
commit 44c10e1
Showing
7 changed files
with
455 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
google/cloud/bigquery_migration_v2alpha/types/assessment_task.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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. | ||
# | ||
import proto # type: ignore | ||
|
||
|
||
__protobuf__ = proto.module( | ||
package="google.cloud.bigquery.migration.v2alpha", | ||
manifest={"AssessmentTaskDetails", "AssessmentOrchestrationResultDetails",}, | ||
) | ||
|
||
|
||
class AssessmentTaskDetails(proto.Message): | ||
r"""Assessment task config. | ||
Attributes: | ||
input_path (str): | ||
Required. The Cloud Storage path for | ||
assessment input files. | ||
output_dataset (str): | ||
Required. The BigQuery dataset for output. | ||
querylogs_path (str): | ||
Optional. An optional Cloud Storage path to | ||
write the query logs (which is then used as an | ||
input path on the translation task) | ||
data_source (str): | ||
Required. The data source or data warehouse | ||
type (eg: TERADATA/REDSHIFT) from which the | ||
input data is extracted. | ||
""" | ||
|
||
input_path = proto.Field(proto.STRING, number=1,) | ||
output_dataset = proto.Field(proto.STRING, number=2,) | ||
querylogs_path = proto.Field(proto.STRING, number=3,) | ||
data_source = proto.Field(proto.STRING, number=4,) | ||
|
||
|
||
class AssessmentOrchestrationResultDetails(proto.Message): | ||
r"""Details for an assessment task orchestration result. | ||
Attributes: | ||
output_tables_schema_version (str): | ||
Optional. The version used for the output | ||
table schemas. | ||
""" | ||
|
||
output_tables_schema_version = proto.Field(proto.STRING, number=1,) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.