diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5fc5daa..b8edda5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -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 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index 882178c..ec867d9 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -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 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index fa99c12..66a2172 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -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 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7d9b009..78e7f27 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.0" + ".": "0.11.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 25965b1..2ca3536 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/google/cloud/bigquery_migration/gapic_version.py b/google/cloud/bigquery_migration/gapic_version.py index 267ed2e..111c83c 100644 --- a/google/cloud/bigquery_migration/gapic_version.py +++ b/google/cloud/bigquery_migration/gapic_version.py @@ -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} diff --git a/google/cloud/bigquery_migration_v2/gapic_version.py b/google/cloud/bigquery_migration_v2/gapic_version.py index 267ed2e..111c83c 100644 --- a/google/cloud/bigquery_migration_v2/gapic_version.py +++ b/google/cloud/bigquery_migration_v2/gapic_version.py @@ -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} diff --git a/google/cloud/bigquery_migration_v2/services/migration_service/async_client.py b/google/cloud/bigquery_migration_v2/services/migration_service/async_client.py index 608c923..f66c795 100644 --- a/google/cloud/bigquery_migration_v2/services/migration_service/async_client.py +++ b/google/cloud/bigquery_migration_v2/services/migration_service/async_client.py @@ -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: diff --git a/google/cloud/bigquery_migration_v2/services/migration_service/client.py b/google/cloud/bigquery_migration_v2/services/migration_service/client.py index 882f8af..95b255e 100644 --- a/google/cloud/bigquery_migration_v2/services/migration_service/client.py +++ b/google/cloud/bigquery_migration_v2/services/migration_service/client.py @@ -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: diff --git a/google/cloud/bigquery_migration_v2/types/migration_entities.py b/google/cloud/bigquery_migration_v2/types/migration_entities.py index ae0baa4..e7db80c 100644 --- a/google/cloud/bigquery_migration_v2/types/migration_entities.py +++ b/google/cloud/bigquery_migration_v2/types/migration_entities.py @@ -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,6 +295,9 @@ 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 @@ -302,6 +305,7 @@ class State(proto.Enum): SUCCEEDED = 3 FAILED = 4 PAUSED = 5 + PENDING_DEPENDENCY = 6 name: str = proto.Field( proto.STRING, diff --git a/google/cloud/bigquery_migration_v2/types/translation_config.py b/google/cloud/bigquery_migration_v2/types/translation_config.py index 741d9fe..05395c0 100644 --- a/google/cloud/bigquery_migration_v2/types/translation_config.py +++ b/google/cloud/bigquery_migration_v2/types/translation_config.py @@ -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): diff --git a/google/cloud/bigquery_migration_v2alpha/gapic_version.py b/google/cloud/bigquery_migration_v2alpha/gapic_version.py index 267ed2e..111c83c 100644 --- a/google/cloud/bigquery_migration_v2alpha/gapic_version.py +++ b/google/cloud/bigquery_migration_v2alpha/gapic_version.py @@ -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} diff --git a/google/cloud/bigquery_migration_v2alpha/services/migration_service/async_client.py b/google/cloud/bigquery_migration_v2alpha/services/migration_service/async_client.py index ef9b052..8181ff1 100644 --- a/google/cloud/bigquery_migration_v2alpha/services/migration_service/async_client.py +++ b/google/cloud/bigquery_migration_v2alpha/services/migration_service/async_client.py @@ -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: diff --git a/google/cloud/bigquery_migration_v2alpha/services/migration_service/client.py b/google/cloud/bigquery_migration_v2alpha/services/migration_service/client.py index 70d75f9..ca4c79b 100644 --- a/google/cloud/bigquery_migration_v2alpha/services/migration_service/client.py +++ b/google/cloud/bigquery_migration_v2alpha/services/migration_service/client.py @@ -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: diff --git a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2.json b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2.json index 24663c5..3ffe105 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-migration", - "version": "0.10.0" + "version": "0.11.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json index 0169709..324a608 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-migration", - "version": "0.10.0" + "version": "0.11.0" }, "snippets": [ { diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index f3ea4a8..229704f 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -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 \ No newline at end of file diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 9816067..734c590 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-bigquery-migration==0.9.1 +google-cloud-bigquery-migration==0.10.0