Skip to content

Commit

Permalink
fix: correct python namespace for migration API (#3)
Browse files Browse the repository at this point in the history
* fix: correct python namespace for migration API Committer: @shollyman

PiperOrigin-RevId: 399757729

Source-Link: googleapis/googleapis@2fa1722

Source-Link: googleapis/googleapis-gen@f02a4ea
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjAyYTRlYTRlMWE2NmY1MDUyYTNhNDY1NGJiYTBjMDAwMzUxMTgwNCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* remove references to google/cloud/bigquery/migration

* bigquery is not a namespace package

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2021
1 parent 8fb16fb commit aa77bc0
Show file tree
Hide file tree
Showing 28 changed files with 303 additions and 121 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery-migration/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ branch = True
[report]
show_missing = True
omit =
google/cloud/bigquery/migration/__init__.py
google/cloud/bigquery_migration/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
MigrationService
----------------------------------

.. automodule:: google.cloud.bigquery.migration_v2alpha.services.migration_service
.. automodule:: google.cloud.bigquery_migration_v2alpha.services.migration_service
:members:
:inherited-members:

.. automodule:: google.cloud.bigquery.migration_v2alpha.services.migration_service.pagers
.. automodule:: google.cloud.bigquery_migration_v2alpha.services.migration_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Types for Google Cloud Bigquery Migration v2alpha API
=====================================================

.. automodule:: google.cloud.bigquery.migration_v2alpha.types
.. automodule:: google.cloud.bigquery_migration_v2alpha.types
:members:
:undoc-members:
:show-inheritance:
6 changes: 3 additions & 3 deletions packages/google-cloud-bigquery-migration/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ API Reference
.. toctree::
:maxdepth: 2

migration_v2alpha/services
migration_v2alpha/types
bigquery_migration_v2alpha/services
bigquery_migration_v2alpha/types

Changelog
---------
Expand All @@ -18,4 +18,4 @@ For a list of all ``google-cloud-bigquery-migration`` releases:
.. toctree::
:maxdepth: 2

changelog
changelog
Original file line number Diff line number Diff line change
Expand Up @@ -14,60 +14,60 @@
# limitations under the License.
#

from google.cloud.bigquery.migration_v2alpha.services.migration_service.client import (
from google.cloud.bigquery_migration_v2alpha.services.migration_service.client import (
MigrationServiceClient,
)
from google.cloud.bigquery.migration_v2alpha.services.migration_service.async_client import (
from google.cloud.bigquery_migration_v2alpha.services.migration_service.async_client import (
MigrationServiceAsyncClient,
)

from google.cloud.bigquery.migration_v2alpha.types.migration_entities import (
from google.cloud.bigquery_migration_v2alpha.types.migration_entities import (
MigrationSubtask,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_entities import (
from google.cloud.bigquery_migration_v2alpha.types.migration_entities import (
MigrationTask,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_entities import (
from google.cloud.bigquery_migration_v2alpha.types.migration_entities import (
MigrationWorkflow,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_error_details import (
from google.cloud.bigquery_migration_v2alpha.types.migration_error_details import (
ErrorDetail,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_error_details import (
from google.cloud.bigquery_migration_v2alpha.types.migration_error_details import (
ErrorLocation,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_error_details import (
from google.cloud.bigquery_migration_v2alpha.types.migration_error_details import (
ResourceErrorDetail,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_metrics import Point
from google.cloud.bigquery.migration_v2alpha.types.migration_metrics import TimeInterval
from google.cloud.bigquery.migration_v2alpha.types.migration_metrics import TimeSeries
from google.cloud.bigquery.migration_v2alpha.types.migration_metrics import TypedValue
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_metrics import Point
from google.cloud.bigquery_migration_v2alpha.types.migration_metrics import TimeInterval
from google.cloud.bigquery_migration_v2alpha.types.migration_metrics import TimeSeries
from google.cloud.bigquery_migration_v2alpha.types.migration_metrics import TypedValue
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
CreateMigrationWorkflowRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
DeleteMigrationWorkflowRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
GetMigrationSubtaskRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
GetMigrationWorkflowRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
ListMigrationSubtasksRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
ListMigrationSubtasksResponse,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
ListMigrationWorkflowsRequest,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
ListMigrationWorkflowsResponse,
)
from google.cloud.bigquery.migration_v2alpha.types.migration_service import (
from google.cloud.bigquery_migration_v2alpha.types.migration_service import (
StartMigrationWorkflowRequest,
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.bigquery.migration_v2alpha",
"libraryPackage": "google.cloud.bigquery_migration_v2alpha",
"protoPackage": "google.cloud.bigquery.migration.v2alpha",
"schema": "1.0",
"services": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

from google.cloud.bigquery.migration_v2alpha.services.migration_service import pagers
from google.cloud.bigquery.migration_v2alpha.types import migration_entities
from google.cloud.bigquery.migration_v2alpha.types import migration_error_details
from google.cloud.bigquery.migration_v2alpha.types import migration_metrics
from google.cloud.bigquery.migration_v2alpha.types import migration_service
from google.cloud.bigquery_migration_v2alpha.services.migration_service import pagers
from google.cloud.bigquery_migration_v2alpha.types import migration_entities
from google.cloud.bigquery_migration_v2alpha.types import migration_error_details
from google.cloud.bigquery_migration_v2alpha.types import migration_metrics
from google.cloud.bigquery_migration_v2alpha.types import migration_service
from google.protobuf import timestamp_pb2 # type: ignore
from google.rpc import error_details_pb2 # type: ignore
from .transports.base import MigrationServiceTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -187,7 +187,7 @@ async def create_migration_workflow(
r"""Creates a migration workflow.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.CreateMigrationWorkflowRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.CreateMigrationWorkflowRequest`):
The request object. Request to create a migration
workflow resource.
parent (:class:`str`):
Expand All @@ -198,7 +198,7 @@ async def create_migration_workflow(
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
migration_workflow (:class:`google.cloud.bigquery.migration_v2alpha.types.MigrationWorkflow`):
migration_workflow (:class:`google.cloud.bigquery_migration_v2alpha.types.MigrationWorkflow`):
Required. The migration workflow to
create.
Expand All @@ -212,7 +212,7 @@ async def create_migration_workflow(
sent along with the request as metadata.
Returns:
google.cloud.bigquery.migration_v2alpha.types.MigrationWorkflow:
google.cloud.bigquery_migration_v2alpha.types.MigrationWorkflow:
A migration workflow which specifies
what needs to be done for an EDW
migration.
Expand Down Expand Up @@ -269,7 +269,7 @@ async def get_migration_workflow(
r"""Gets a previously created migration workflow.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.GetMigrationWorkflowRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.GetMigrationWorkflowRequest`):
The request object. A request to get a previously
created migration workflow.
name (:class:`str`):
Expand All @@ -287,7 +287,7 @@ async def get_migration_workflow(
sent along with the request as metadata.
Returns:
google.cloud.bigquery.migration_v2alpha.types.MigrationWorkflow:
google.cloud.bigquery_migration_v2alpha.types.MigrationWorkflow:
A migration workflow which specifies
what needs to be done for an EDW
migration.
Expand Down Expand Up @@ -351,7 +351,7 @@ async def list_migration_workflows(
r"""Lists previously created migration workflow.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.ListMigrationWorkflowsRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.ListMigrationWorkflowsRequest`):
The request object. A request to list previously created
migration workflows.
parent (:class:`str`):
Expand All @@ -369,7 +369,7 @@ async def list_migration_workflows(
sent along with the request as metadata.
Returns:
google.cloud.bigquery.migration_v2alpha.services.migration_service.pagers.ListMigrationWorkflowsAsyncPager:
google.cloud.bigquery_migration_v2alpha.services.migration_service.pagers.ListMigrationWorkflowsAsyncPager:
Response object for a ListMigrationWorkflows call.
Iterating over this object will yield results and
Expand Down Expand Up @@ -440,7 +440,7 @@ async def delete_migration_workflow(
r"""Deletes a migration workflow by name.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.DeleteMigrationWorkflowRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.DeleteMigrationWorkflowRequest`):
The request object. A request to delete a previously
created migration workflow.
name (:class:`str`):
Expand Down Expand Up @@ -509,7 +509,7 @@ async def start_migration_workflow(
RUNNING.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.StartMigrationWorkflowRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.StartMigrationWorkflowRequest`):
The request object. A request to start a previously
created migration workflow.
name (:class:`str`):
Expand Down Expand Up @@ -583,7 +583,7 @@ async def get_migration_subtask(
r"""Gets a previously created migration subtask.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.GetMigrationSubtaskRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.GetMigrationSubtaskRequest`):
The request object. A request to get a previously
created migration subtasks.
name (:class:`str`):
Expand All @@ -601,7 +601,7 @@ async def get_migration_subtask(
sent along with the request as metadata.
Returns:
google.cloud.bigquery.migration_v2alpha.types.MigrationSubtask:
google.cloud.bigquery_migration_v2alpha.types.MigrationSubtask:
A subtask for a migration which
carries details about the configuration
of the subtask. The content of the
Expand Down Expand Up @@ -668,7 +668,7 @@ async def list_migration_subtasks(
r"""Lists previously created migration subtasks.
Args:
request (:class:`google.cloud.bigquery.migration_v2alpha.types.ListMigrationSubtasksRequest`):
request (:class:`google.cloud.bigquery_migration_v2alpha.types.ListMigrationSubtasksRequest`):
The request object. A request to list previously created
migration subtasks.
parent (:class:`str`):
Expand All @@ -685,7 +685,7 @@ async def list_migration_subtasks(
sent along with the request as metadata.
Returns:
google.cloud.bigquery.migration_v2alpha.services.migration_service.pagers.ListMigrationSubtasksAsyncPager:
google.cloud.bigquery_migration_v2alpha.services.migration_service.pagers.ListMigrationSubtasksAsyncPager:
Response object for a ListMigrationSubtasks call.
Iterating over this object will yield results and
Expand Down
Loading

0 comments on commit aa77bc0

Please sign in to comment.