Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-bigquery-migration
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.10.0
Choose a base ref
...
head repository: googleapis/python-bigquery-migration
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.11.0
Choose a head ref
  • 6 commits
  • 18 files changed
  • 4 contributors

Commits on Mar 1, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2f7445f View commit details

Commits on Mar 4, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    38fcf52 View commit details

Commits on Mar 16, 2023

  1. chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#174)

    Source-Link: https://togithub.com/googleapis/synthtool/commit/92006bb3cdc84677aa93c7f5235424ec2b157146
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6
    gcf-owl-bot[bot] authored Mar 16, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    46cf18b View commit details

Commits on Mar 22, 2023

  1. feat: Add request_source field (#175)

    * feat: Add request_source field and update formatting
    
    PiperOrigin-RevId: 518330942
    
    Source-Link: googleapis/googleapis@184334d
    
    Source-Link: https://github.com/googleapis/googleapis-gen/commit/1e999b9e556884c94ee2fb4110aa3087d0dc96b5
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWU5OTliOWU1NTY4ODRjOTRlZTJmYjQxMTBhYTMwODdkMGRjOTZiNSJ9
    
    * 🦉 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>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d11aa1f View commit details

Commits on Mar 23, 2023

  1. docs: Fix formatting of request arg in docstring (#177)

    * docs: Fix formatting of request arg in docstring
    
    chore: Update gapic-generator-python to v1.9.1
    PiperOrigin-RevId: 518604533
    
    Source-Link: googleapis/googleapis@8a085ae
    
    Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9
    
    * 🦉 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>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 23, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    699d68c View commit details

Commits on Mar 27, 2023

  1. chore(main): release 0.11.0 (#176)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Mar 27, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5660f49 View commit details
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97
digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6
2 changes: 1 addition & 1 deletion .kokoro/requirements.in
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ typing-extensions
twine
wheel
setuptools
nox
nox>=2022.11.21 # required to remove dependency on py
charset-normalizer<3
click<8.1.0
14 changes: 5 additions & 9 deletions .kokoro/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes requirements.in
#
@@ -335,9 +335,9 @@ more-itertools==9.0.0 \
--hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \
--hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab
# via jaraco-classes
nox==2022.8.7 \
--hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \
--hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c
nox==2022.11.21 \
--hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \
--hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684
# via -r requirements.in
packaging==21.3 \
--hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \
@@ -380,10 +380,6 @@ protobuf==3.20.3 \
# gcp-docuploader
# gcp-releasetool
# google-api-core
py==1.11.0 \
--hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \
--hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378
# via nox
pyasn1==0.4.8 \
--hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \
--hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.10.0"
".": "0.11.0"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [0.11.0](https://github.com/googleapis/python-bigquery-migration/compare/v0.10.0...v0.11.0) (2023-03-23)


### Features

* Add `request_source` field to `TranslationConfigDetails` ([d11aa1f](https://github.com/googleapis/python-bigquery-migration/commit/d11aa1fdb4a7d9c7e0bb270ad5b8306a91485818))
* Add PENDING_DEPENDENCY to `State` enum of `MigrationSubtask` ([d11aa1f](https://github.com/googleapis/python-bigquery-migration/commit/d11aa1fdb4a7d9c7e0bb270ad5b8306a91485818))


### Documentation

* Fix formatting of request arg in docstring ([#177](https://github.com/googleapis/python-bigquery-migration/issues/177)) ([699d68c](https://github.com/googleapis/python-bigquery-migration/commit/699d68cfddad624609ec1913fbbe1992d83d0806))

## [0.10.0](https://github.com/googleapis/python-bigquery-migration/compare/v0.9.1...v0.10.0) (2023-03-01)


2 changes: 1 addition & 1 deletion google/cloud/bigquery_migration/gapic_version.py
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.10.0" # {x-release-please-version}
__version__ = "0.11.0" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/bigquery_migration_v2/gapic_version.py
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.10.0" # {x-release-please-version}
__version__ = "0.11.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -387,8 +387,8 @@ async def sample_get_migration_workflow():
Args:
request (Optional[Union[google.cloud.bigquery_migration_v2.types.GetMigrationWorkflowRequest, dict]]):
The request object. A request to get a previously
created migration workflow.
The request object. A request to get a previously created
migration workflow.
name (:class:`str`):
Required. The unique identifier for the migration
workflow. Example:
@@ -827,8 +827,8 @@ async def sample_get_migration_subtask():
Args:
request (Optional[Union[google.cloud.bigquery_migration_v2.types.GetMigrationSubtaskRequest, dict]]):
The request object. A request to get a previously
created migration subtasks.
The request object. A request to get a previously created
migration subtasks.
name (:class:`str`):
Required. The unique identifier for the migration
subtask. Example:
Original file line number Diff line number Diff line change
@@ -632,8 +632,8 @@ def sample_get_migration_workflow():
Args:
request (Union[google.cloud.bigquery_migration_v2.types.GetMigrationWorkflowRequest, dict]):
The request object. A request to get a previously
created migration workflow.
The request object. A request to get a previously created
migration workflow.
name (str):
Required. The unique identifier for the migration
workflow. Example:
@@ -1047,8 +1047,8 @@ def sample_get_migration_subtask():
Args:
request (Union[google.cloud.bigquery_migration_v2.types.GetMigrationSubtaskRequest, dict]):
The request object. A request to get a previously
created migration subtasks.
The request object. A request to get a previously created
migration subtasks.
name (str):
Required. The unique identifier for the migration
subtask. Example:
Original file line number Diff line number Diff line change
@@ -147,7 +147,7 @@ class MigrationTask(proto.Message):
Translation_Snowflake2BQ, Translation_Netezza2BQ,
Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
Translation_SQLServer2BQ, Translation_Presto2BQ,
Translation_MySQL2BQ.
Translation_MySQL2BQ, Translation_Postgresql2BQ.
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):
@@ -295,13 +295,17 @@ class State(proto.Enum):
scheduled. If it was already assigned,it might
still finish but no new lease renewals will be
granted.
PENDING_DEPENDENCY (6):
The subtask is pending a dependency. It will
be scheduled once its dependencies are done.
"""
STATE_UNSPECIFIED = 0
ACTIVE = 1
RUNNING = 2
SUCCEEDED = 3
FAILED = 4
PAUSED = 5
PENDING_DEPENDENCY = 6

name: str = proto.Field(
proto.STRING,
29 changes: 18 additions & 11 deletions google/cloud/bigquery_migration_v2/types/translation_config.py
Original file line number Diff line number Diff line change
@@ -65,19 +65,22 @@ class TranslationConfigDetails(proto.Message):
corresponding input files to.
This field is a member of `oneof`_ ``target_location``.
source_dialect (google.cloud.bigquery_migration_v2.types.Dialect):
The dialect of the input files.
target_dialect (google.cloud.bigquery_migration_v2.types.Dialect):
The target dialect for the engine to
translate the input to.
name_mapping_list (google.cloud.bigquery_migration_v2.types.ObjectNameMappingList):
The mapping of objects to their desired
output names in list form.
This field is a member of `oneof`_ ``output_name_mapping``.
source_dialect (google.cloud.bigquery_migration_v2.types.Dialect):
The dialect of the input files.
target_dialect (google.cloud.bigquery_migration_v2.types.Dialect):
The target dialect for the engine to
translate the input to.
source_env (google.cloud.bigquery_migration_v2.types.SourceEnv):
The default source environment values for the
translation.
request_source (str):
The indicator to show translation request
initiator.
"""

gcs_source_path: str = proto.Field(
@@ -90,6 +93,12 @@ class TranslationConfigDetails(proto.Message):
number=2,
oneof="target_location",
)
name_mapping_list: "ObjectNameMappingList" = proto.Field(
proto.MESSAGE,
number=5,
oneof="output_name_mapping",
message="ObjectNameMappingList",
)
source_dialect: "Dialect" = proto.Field(
proto.MESSAGE,
number=3,
@@ -100,17 +109,15 @@ class TranslationConfigDetails(proto.Message):
number=4,
message="Dialect",
)
name_mapping_list: "ObjectNameMappingList" = proto.Field(
proto.MESSAGE,
number=5,
oneof="output_name_mapping",
message="ObjectNameMappingList",
)
source_env: "SourceEnv" = proto.Field(
proto.MESSAGE,
number=6,
message="SourceEnv",
)
request_source: str = proto.Field(
proto.STRING,
number=8,
)


class Dialect(proto.Message):
2 changes: 1 addition & 1 deletion google/cloud/bigquery_migration_v2alpha/gapic_version.py
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.10.0" # {x-release-please-version}
__version__ = "0.11.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -387,8 +387,8 @@ async def sample_get_migration_workflow():
Args:
request (Optional[Union[google.cloud.bigquery_migration_v2alpha.types.GetMigrationWorkflowRequest, dict]]):
The request object. A request to get a previously
created migration workflow.
The request object. A request to get a previously created
migration workflow.
name (:class:`str`):
Required. The unique identifier for the migration
workflow. Example:
@@ -827,8 +827,8 @@ async def sample_get_migration_subtask():
Args:
request (Optional[Union[google.cloud.bigquery_migration_v2alpha.types.GetMigrationSubtaskRequest, dict]]):
The request object. A request to get a previously
created migration subtasks.
The request object. A request to get a previously created
migration subtasks.
name (:class:`str`):
Required. The unique identifier for the migration
subtask. Example:
Original file line number Diff line number Diff line change
@@ -632,8 +632,8 @@ def sample_get_migration_workflow():
Args:
request (Union[google.cloud.bigquery_migration_v2alpha.types.GetMigrationWorkflowRequest, dict]):
The request object. A request to get a previously
created migration workflow.
The request object. A request to get a previously created
migration workflow.
name (str):
Required. The unique identifier for the migration
workflow. Example:
@@ -1047,8 +1047,8 @@ def sample_get_migration_subtask():
Args:
request (Union[google.cloud.bigquery_migration_v2alpha.types.GetMigrationSubtaskRequest, dict]):
The request object. A request to get a previously
created migration subtasks.
The request object. A request to get a previously created
migration subtasks.
name (str):
Required. The unique identifier for the migration
subtask. Example:
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-migration",
"version": "0.10.0"
"version": "0.11.0"
},
"snippets": [
{
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-migration",
"version": "0.10.0"
"version": "0.11.0"
},
"snippets": [
{
2 changes: 1 addition & 1 deletion samples/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.2.1
pytest==7.2.2
google-cloud-testutils==1.3.3
google-api-core==2.11.0
google-cloud-storage==2.7.0
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-bigquery-migration==0.9.1
google-cloud-bigquery-migration==0.10.0