Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#33)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@1b71c10
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416

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 Apr 21, 2022
1 parent 4a126af commit c650208
Show file tree
Hide file tree
Showing 41 changed files with 362 additions and 403 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-dataplex/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
# created: 2022-04-06T10:30:21.687684602Z
digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416
# created: 2022-04-20T23:42:53.970438194Z
2 changes: 1 addition & 1 deletion packages/google-cloud-dataplex/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
170 changes: 86 additions & 84 deletions packages/google-cloud-dataplex/google/cloud/dataplex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,102 +14,104 @@
# limitations under the License.
#

from google.cloud.dataplex_v1.services.content_service.async_client import (
ContentServiceAsyncClient,
)
from google.cloud.dataplex_v1.services.content_service.client import (
ContentServiceClient,
)
from google.cloud.dataplex_v1.services.content_service.async_client import (
ContentServiceAsyncClient,
from google.cloud.dataplex_v1.services.dataplex_service.async_client import (
DataplexServiceAsyncClient,
)
from google.cloud.dataplex_v1.services.dataplex_service.client import (
DataplexServiceClient,
)
from google.cloud.dataplex_v1.services.dataplex_service.async_client import (
DataplexServiceAsyncClient,
from google.cloud.dataplex_v1.services.metadata_service.async_client import (
MetadataServiceAsyncClient,
)
from google.cloud.dataplex_v1.services.metadata_service.client import (
MetadataServiceClient,
)
from google.cloud.dataplex_v1.services.metadata_service.async_client import (
MetadataServiceAsyncClient,
from google.cloud.dataplex_v1.types.analyze import Content, Environment, Session
from google.cloud.dataplex_v1.types.content import (
CreateContentRequest,
DeleteContentRequest,
GetContentRequest,
ListContentRequest,
ListContentResponse,
UpdateContentRequest,
)

from google.cloud.dataplex_v1.types.analyze import Content
from google.cloud.dataplex_v1.types.analyze import Environment
from google.cloud.dataplex_v1.types.analyze import Session
from google.cloud.dataplex_v1.types.content import CreateContentRequest
from google.cloud.dataplex_v1.types.content import DeleteContentRequest
from google.cloud.dataplex_v1.types.content import GetContentRequest
from google.cloud.dataplex_v1.types.content import ListContentRequest
from google.cloud.dataplex_v1.types.content import ListContentResponse
from google.cloud.dataplex_v1.types.content import UpdateContentRequest
from google.cloud.dataplex_v1.types.logs import DiscoveryEvent
from google.cloud.dataplex_v1.types.logs import JobEvent
from google.cloud.dataplex_v1.types.logs import SessionEvent
from google.cloud.dataplex_v1.types.metadata_ import CreateEntityRequest
from google.cloud.dataplex_v1.types.metadata_ import CreatePartitionRequest
from google.cloud.dataplex_v1.types.metadata_ import DeleteEntityRequest
from google.cloud.dataplex_v1.types.metadata_ import DeletePartitionRequest
from google.cloud.dataplex_v1.types.metadata_ import Entity
from google.cloud.dataplex_v1.types.metadata_ import GetEntityRequest
from google.cloud.dataplex_v1.types.metadata_ import GetPartitionRequest
from google.cloud.dataplex_v1.types.metadata_ import ListEntitiesRequest
from google.cloud.dataplex_v1.types.metadata_ import ListEntitiesResponse
from google.cloud.dataplex_v1.types.metadata_ import ListPartitionsRequest
from google.cloud.dataplex_v1.types.metadata_ import ListPartitionsResponse
from google.cloud.dataplex_v1.types.metadata_ import Partition
from google.cloud.dataplex_v1.types.metadata_ import Schema
from google.cloud.dataplex_v1.types.metadata_ import StorageFormat
from google.cloud.dataplex_v1.types.metadata_ import UpdateEntityRequest
from google.cloud.dataplex_v1.types.metadata_ import StorageSystem
from google.cloud.dataplex_v1.types.resources import Action
from google.cloud.dataplex_v1.types.resources import Asset
from google.cloud.dataplex_v1.types.resources import AssetStatus
from google.cloud.dataplex_v1.types.resources import Lake
from google.cloud.dataplex_v1.types.resources import Zone
from google.cloud.dataplex_v1.types.resources import State
from google.cloud.dataplex_v1.types.service import CancelJobRequest
from google.cloud.dataplex_v1.types.service import CreateAssetRequest
from google.cloud.dataplex_v1.types.service import CreateEnvironmentRequest
from google.cloud.dataplex_v1.types.service import CreateLakeRequest
from google.cloud.dataplex_v1.types.service import CreateTaskRequest
from google.cloud.dataplex_v1.types.service import CreateZoneRequest
from google.cloud.dataplex_v1.types.service import DeleteAssetRequest
from google.cloud.dataplex_v1.types.service import DeleteEnvironmentRequest
from google.cloud.dataplex_v1.types.service import DeleteLakeRequest
from google.cloud.dataplex_v1.types.service import DeleteTaskRequest
from google.cloud.dataplex_v1.types.service import DeleteZoneRequest
from google.cloud.dataplex_v1.types.service import GetAssetRequest
from google.cloud.dataplex_v1.types.service import GetEnvironmentRequest
from google.cloud.dataplex_v1.types.service import GetJobRequest
from google.cloud.dataplex_v1.types.service import GetLakeRequest
from google.cloud.dataplex_v1.types.service import GetTaskRequest
from google.cloud.dataplex_v1.types.service import GetZoneRequest
from google.cloud.dataplex_v1.types.service import ListActionsResponse
from google.cloud.dataplex_v1.types.service import ListAssetActionsRequest
from google.cloud.dataplex_v1.types.service import ListAssetsRequest
from google.cloud.dataplex_v1.types.service import ListAssetsResponse
from google.cloud.dataplex_v1.types.service import ListEnvironmentsRequest
from google.cloud.dataplex_v1.types.service import ListEnvironmentsResponse
from google.cloud.dataplex_v1.types.service import ListJobsRequest
from google.cloud.dataplex_v1.types.service import ListJobsResponse
from google.cloud.dataplex_v1.types.service import ListLakeActionsRequest
from google.cloud.dataplex_v1.types.service import ListLakesRequest
from google.cloud.dataplex_v1.types.service import ListLakesResponse
from google.cloud.dataplex_v1.types.service import ListSessionsRequest
from google.cloud.dataplex_v1.types.service import ListSessionsResponse
from google.cloud.dataplex_v1.types.service import ListTasksRequest
from google.cloud.dataplex_v1.types.service import ListTasksResponse
from google.cloud.dataplex_v1.types.service import ListZoneActionsRequest
from google.cloud.dataplex_v1.types.service import ListZonesRequest
from google.cloud.dataplex_v1.types.service import ListZonesResponse
from google.cloud.dataplex_v1.types.service import OperationMetadata
from google.cloud.dataplex_v1.types.service import UpdateAssetRequest
from google.cloud.dataplex_v1.types.service import UpdateEnvironmentRequest
from google.cloud.dataplex_v1.types.service import UpdateLakeRequest
from google.cloud.dataplex_v1.types.service import UpdateTaskRequest
from google.cloud.dataplex_v1.types.service import UpdateZoneRequest
from google.cloud.dataplex_v1.types.tasks import Job
from google.cloud.dataplex_v1.types.tasks import Task
from google.cloud.dataplex_v1.types.logs import DiscoveryEvent, JobEvent, SessionEvent
from google.cloud.dataplex_v1.types.metadata_ import (
CreateEntityRequest,
CreatePartitionRequest,
DeleteEntityRequest,
DeletePartitionRequest,
Entity,
GetEntityRequest,
GetPartitionRequest,
ListEntitiesRequest,
ListEntitiesResponse,
ListPartitionsRequest,
ListPartitionsResponse,
Partition,
Schema,
StorageFormat,
StorageSystem,
UpdateEntityRequest,
)
from google.cloud.dataplex_v1.types.resources import (
Action,
Asset,
AssetStatus,
Lake,
State,
Zone,
)
from google.cloud.dataplex_v1.types.service import (
CancelJobRequest,
CreateAssetRequest,
CreateEnvironmentRequest,
CreateLakeRequest,
CreateTaskRequest,
CreateZoneRequest,
DeleteAssetRequest,
DeleteEnvironmentRequest,
DeleteLakeRequest,
DeleteTaskRequest,
DeleteZoneRequest,
GetAssetRequest,
GetEnvironmentRequest,
GetJobRequest,
GetLakeRequest,
GetTaskRequest,
GetZoneRequest,
ListActionsResponse,
ListAssetActionsRequest,
ListAssetsRequest,
ListAssetsResponse,
ListEnvironmentsRequest,
ListEnvironmentsResponse,
ListJobsRequest,
ListJobsResponse,
ListLakeActionsRequest,
ListLakesRequest,
ListLakesResponse,
ListSessionsRequest,
ListSessionsResponse,
ListTasksRequest,
ListTasksResponse,
ListZoneActionsRequest,
ListZonesRequest,
ListZonesResponse,
OperationMetadata,
UpdateAssetRequest,
UpdateEnvironmentRequest,
UpdateLakeRequest,
UpdateTaskRequest,
UpdateZoneRequest,
)
from google.cloud.dataplex_v1.types.tasks import Job, Task

__all__ = (
"ContentServiceClient",
Expand Down
160 changes: 76 additions & 84 deletions packages/google-cloud-dataplex/google/cloud/dataplex_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,90 +14,82 @@
# limitations under the License.
#

from .services.content_service import ContentServiceClient
from .services.content_service import ContentServiceAsyncClient
from .services.dataplex_service import DataplexServiceClient
from .services.dataplex_service import DataplexServiceAsyncClient
from .services.metadata_service import MetadataServiceClient
from .services.metadata_service import MetadataServiceAsyncClient

from .types.analyze import Content
from .types.analyze import Environment
from .types.analyze import Session
from .types.content import CreateContentRequest
from .types.content import DeleteContentRequest
from .types.content import GetContentRequest
from .types.content import ListContentRequest
from .types.content import ListContentResponse
from .types.content import UpdateContentRequest
from .types.logs import DiscoveryEvent
from .types.logs import JobEvent
from .types.logs import SessionEvent
from .types.metadata_ import CreateEntityRequest
from .types.metadata_ import CreatePartitionRequest
from .types.metadata_ import DeleteEntityRequest
from .types.metadata_ import DeletePartitionRequest
from .types.metadata_ import Entity
from .types.metadata_ import GetEntityRequest
from .types.metadata_ import GetPartitionRequest
from .types.metadata_ import ListEntitiesRequest
from .types.metadata_ import ListEntitiesResponse
from .types.metadata_ import ListPartitionsRequest
from .types.metadata_ import ListPartitionsResponse
from .types.metadata_ import Partition
from .types.metadata_ import Schema
from .types.metadata_ import StorageFormat
from .types.metadata_ import UpdateEntityRequest
from .types.metadata_ import StorageSystem
from .types.resources import Action
from .types.resources import Asset
from .types.resources import AssetStatus
from .types.resources import Lake
from .types.resources import Zone
from .types.resources import State
from .types.service import CancelJobRequest
from .types.service import CreateAssetRequest
from .types.service import CreateEnvironmentRequest
from .types.service import CreateLakeRequest
from .types.service import CreateTaskRequest
from .types.service import CreateZoneRequest
from .types.service import DeleteAssetRequest
from .types.service import DeleteEnvironmentRequest
from .types.service import DeleteLakeRequest
from .types.service import DeleteTaskRequest
from .types.service import DeleteZoneRequest
from .types.service import GetAssetRequest
from .types.service import GetEnvironmentRequest
from .types.service import GetJobRequest
from .types.service import GetLakeRequest
from .types.service import GetTaskRequest
from .types.service import GetZoneRequest
from .types.service import ListActionsResponse
from .types.service import ListAssetActionsRequest
from .types.service import ListAssetsRequest
from .types.service import ListAssetsResponse
from .types.service import ListEnvironmentsRequest
from .types.service import ListEnvironmentsResponse
from .types.service import ListJobsRequest
from .types.service import ListJobsResponse
from .types.service import ListLakeActionsRequest
from .types.service import ListLakesRequest
from .types.service import ListLakesResponse
from .types.service import ListSessionsRequest
from .types.service import ListSessionsResponse
from .types.service import ListTasksRequest
from .types.service import ListTasksResponse
from .types.service import ListZoneActionsRequest
from .types.service import ListZonesRequest
from .types.service import ListZonesResponse
from .types.service import OperationMetadata
from .types.service import UpdateAssetRequest
from .types.service import UpdateEnvironmentRequest
from .types.service import UpdateLakeRequest
from .types.service import UpdateTaskRequest
from .types.service import UpdateZoneRequest
from .types.tasks import Job
from .types.tasks import Task
from .services.content_service import ContentServiceAsyncClient, ContentServiceClient
from .services.dataplex_service import DataplexServiceAsyncClient, DataplexServiceClient
from .services.metadata_service import MetadataServiceAsyncClient, MetadataServiceClient
from .types.analyze import Content, Environment, Session
from .types.content import (
CreateContentRequest,
DeleteContentRequest,
GetContentRequest,
ListContentRequest,
ListContentResponse,
UpdateContentRequest,
)
from .types.logs import DiscoveryEvent, JobEvent, SessionEvent
from .types.metadata_ import (
CreateEntityRequest,
CreatePartitionRequest,
DeleteEntityRequest,
DeletePartitionRequest,
Entity,
GetEntityRequest,
GetPartitionRequest,
ListEntitiesRequest,
ListEntitiesResponse,
ListPartitionsRequest,
ListPartitionsResponse,
Partition,
Schema,
StorageFormat,
StorageSystem,
UpdateEntityRequest,
)
from .types.resources import Action, Asset, AssetStatus, Lake, State, Zone
from .types.service import (
CancelJobRequest,
CreateAssetRequest,
CreateEnvironmentRequest,
CreateLakeRequest,
CreateTaskRequest,
CreateZoneRequest,
DeleteAssetRequest,
DeleteEnvironmentRequest,
DeleteLakeRequest,
DeleteTaskRequest,
DeleteZoneRequest,
GetAssetRequest,
GetEnvironmentRequest,
GetJobRequest,
GetLakeRequest,
GetTaskRequest,
GetZoneRequest,
ListActionsResponse,
ListAssetActionsRequest,
ListAssetsRequest,
ListAssetsResponse,
ListEnvironmentsRequest,
ListEnvironmentsResponse,
ListJobsRequest,
ListJobsResponse,
ListLakeActionsRequest,
ListLakesRequest,
ListLakesResponse,
ListSessionsRequest,
ListSessionsResponse,
ListTasksRequest,
ListTasksResponse,
ListZoneActionsRequest,
ListZonesRequest,
ListZonesResponse,
OperationMetadata,
UpdateAssetRequest,
UpdateEnvironmentRequest,
UpdateLakeRequest,
UpdateTaskRequest,
UpdateZoneRequest,
)
from .types.tasks import Job, Task

__all__ = (
"ContentServiceAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import ContentServiceClient
from .async_client import ContentServiceAsyncClient
from .client import ContentServiceClient

__all__ = (
"ContentServiceClient",
Expand Down
Loading

0 comments on commit c650208

Please sign in to comment.