Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#86)
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 35f0233 commit 6a9ae00
Show file tree
Hide file tree
Showing 24 changed files with 164 additions and 159 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-iap/.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-iap/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
55 changes: 28 additions & 27 deletions packages/google-cloud-iap/google/cloud/iap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,43 @@
# limitations under the License.
#

from google.cloud.iap_v1.services.identity_aware_proxy_admin_service.async_client import (
IdentityAwareProxyAdminServiceAsyncClient,
)
from google.cloud.iap_v1.services.identity_aware_proxy_admin_service.client import (
IdentityAwareProxyAdminServiceClient,
)
from google.cloud.iap_v1.services.identity_aware_proxy_admin_service.async_client import (
IdentityAwareProxyAdminServiceAsyncClient,
from google.cloud.iap_v1.services.identity_aware_proxy_o_auth_service.async_client import (
IdentityAwareProxyOAuthServiceAsyncClient,
)
from google.cloud.iap_v1.services.identity_aware_proxy_o_auth_service.client import (
IdentityAwareProxyOAuthServiceClient,
)
from google.cloud.iap_v1.services.identity_aware_proxy_o_auth_service.async_client import (
IdentityAwareProxyOAuthServiceAsyncClient,
from google.cloud.iap_v1.types.service import (
AccessDeniedPageSettings,
AccessSettings,
ApplicationSettings,
Brand,
CorsSettings,
CreateBrandRequest,
CreateIdentityAwareProxyClientRequest,
CsmSettings,
DeleteIdentityAwareProxyClientRequest,
GcipSettings,
GetBrandRequest,
GetIapSettingsRequest,
GetIdentityAwareProxyClientRequest,
IapSettings,
IdentityAwareProxyClient,
ListBrandsRequest,
ListBrandsResponse,
ListIdentityAwareProxyClientsRequest,
ListIdentityAwareProxyClientsResponse,
OAuthSettings,
ResetIdentityAwareProxyClientSecretRequest,
UpdateIapSettingsRequest,
)

from google.cloud.iap_v1.types.service import AccessDeniedPageSettings
from google.cloud.iap_v1.types.service import AccessSettings
from google.cloud.iap_v1.types.service import ApplicationSettings
from google.cloud.iap_v1.types.service import Brand
from google.cloud.iap_v1.types.service import CorsSettings
from google.cloud.iap_v1.types.service import CreateBrandRequest
from google.cloud.iap_v1.types.service import CreateIdentityAwareProxyClientRequest
from google.cloud.iap_v1.types.service import CsmSettings
from google.cloud.iap_v1.types.service import DeleteIdentityAwareProxyClientRequest
from google.cloud.iap_v1.types.service import GcipSettings
from google.cloud.iap_v1.types.service import GetBrandRequest
from google.cloud.iap_v1.types.service import GetIapSettingsRequest
from google.cloud.iap_v1.types.service import GetIdentityAwareProxyClientRequest
from google.cloud.iap_v1.types.service import IapSettings
from google.cloud.iap_v1.types.service import IdentityAwareProxyClient
from google.cloud.iap_v1.types.service import ListBrandsRequest
from google.cloud.iap_v1.types.service import ListBrandsResponse
from google.cloud.iap_v1.types.service import ListIdentityAwareProxyClientsRequest
from google.cloud.iap_v1.types.service import ListIdentityAwareProxyClientsResponse
from google.cloud.iap_v1.types.service import OAuthSettings
from google.cloud.iap_v1.types.service import ResetIdentityAwareProxyClientSecretRequest
from google.cloud.iap_v1.types.service import UpdateIapSettingsRequest

__all__ = (
"IdentityAwareProxyAdminServiceClient",
"IdentityAwareProxyAdminServiceAsyncClient",
Expand Down
53 changes: 25 additions & 28 deletions packages/google-cloud-iap/google/cloud/iap_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,39 @@
# limitations under the License.
#

from .services.identity_aware_proxy_admin_service import (
IdentityAwareProxyAdminServiceClient,
)
from .services.identity_aware_proxy_admin_service import (
IdentityAwareProxyAdminServiceAsyncClient,
IdentityAwareProxyAdminServiceClient,
)
from .services.identity_aware_proxy_o_auth_service import (
IdentityAwareProxyOAuthServiceAsyncClient,
IdentityAwareProxyOAuthServiceClient,
)
from .services.identity_aware_proxy_o_auth_service import (
IdentityAwareProxyOAuthServiceAsyncClient,
from .types.service import (
AccessDeniedPageSettings,
AccessSettings,
ApplicationSettings,
Brand,
CorsSettings,
CreateBrandRequest,
CreateIdentityAwareProxyClientRequest,
CsmSettings,
DeleteIdentityAwareProxyClientRequest,
GcipSettings,
GetBrandRequest,
GetIapSettingsRequest,
GetIdentityAwareProxyClientRequest,
IapSettings,
IdentityAwareProxyClient,
ListBrandsRequest,
ListBrandsResponse,
ListIdentityAwareProxyClientsRequest,
ListIdentityAwareProxyClientsResponse,
OAuthSettings,
ResetIdentityAwareProxyClientSecretRequest,
UpdateIapSettingsRequest,
)

from .types.service import AccessDeniedPageSettings
from .types.service import AccessSettings
from .types.service import ApplicationSettings
from .types.service import Brand
from .types.service import CorsSettings
from .types.service import CreateBrandRequest
from .types.service import CreateIdentityAwareProxyClientRequest
from .types.service import CsmSettings
from .types.service import DeleteIdentityAwareProxyClientRequest
from .types.service import GcipSettings
from .types.service import GetBrandRequest
from .types.service import GetIapSettingsRequest
from .types.service import GetIdentityAwareProxyClientRequest
from .types.service import IapSettings
from .types.service import IdentityAwareProxyClient
from .types.service import ListBrandsRequest
from .types.service import ListBrandsResponse
from .types.service import ListIdentityAwareProxyClientsRequest
from .types.service import ListIdentityAwareProxyClientsResponse
from .types.service import OAuthSettings
from .types.service import ResetIdentityAwareProxyClientSecretRequest
from .types.service import UpdateIapSettingsRequest

__all__ = (
"IdentityAwareProxyAdminServiceAsyncClient",
"IdentityAwareProxyOAuthServiceAsyncClient",
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 IdentityAwareProxyAdminServiceClient
from .async_client import IdentityAwareProxyAdminServiceAsyncClient
from .client import IdentityAwareProxyAdminServiceClient

__all__ = (
"IdentityAwareProxyAdminServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,31 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.iap_v1.types import service
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore

from google.cloud.iap_v1.types import service

from .client import IdentityAwareProxyAdminServiceClient
from .transports.base import (
IdentityAwareProxyAdminServiceTransport,
DEFAULT_CLIENT_INFO,
IdentityAwareProxyAdminServiceTransport,
)
from .transports.grpc_asyncio import IdentityAwareProxyAdminServiceGrpcAsyncIOTransport
from .client import IdentityAwareProxyAdminServiceClient


class IdentityAwareProxyAdminServiceAsyncClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,31 @@
import os
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.iap_v1.types import service
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore

from google.cloud.iap_v1.types import service

from .transports.base import (
IdentityAwareProxyAdminServiceTransport,
DEFAULT_CLIENT_INFO,
IdentityAwareProxyAdminServiceTransport,
)
from .transports.grpc import IdentityAwareProxyAdminServiceGrpcTransport
from .transports.grpc_asyncio import IdentityAwareProxyAdminServiceGrpcAsyncIOTransport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import IdentityAwareProxyAdminServiceGrpcTransport
from .grpc_asyncio import IdentityAwareProxyAdminServiceGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = (
OrderedDict()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
#
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import pkg_resources

import google.auth # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

from google.cloud.iap_v1.types import service
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import grpc_helpers
from google.api_core import gapic_v1
from google.api_core import gapic_v1, grpc_helpers
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
import grpc # type: ignore

from google.cloud.iap_v1.types import service
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from .base import IdentityAwareProxyAdminServiceTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, IdentityAwareProxyAdminServiceTransport


class IdentityAwareProxyAdminServiceGrpcTransport(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.api_core import gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
import grpc # type: ignore
from grpc.experimental import aio # type: ignore

from google.cloud.iap_v1.types import service
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from .base import IdentityAwareProxyAdminServiceTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, IdentityAwareProxyAdminServiceTransport
from .grpc import IdentityAwareProxyAdminServiceGrpcTransport


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 IdentityAwareProxyOAuthServiceClient
from .async_client import IdentityAwareProxyOAuthServiceAsyncClient
from .client import IdentityAwareProxyOAuthServiceClient

__all__ = (
"IdentityAwareProxyOAuthServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
Expand All @@ -33,12 +33,13 @@

from google.cloud.iap_v1.services.identity_aware_proxy_o_auth_service import pagers
from google.cloud.iap_v1.types import service

from .client import IdentityAwareProxyOAuthServiceClient
from .transports.base import (
IdentityAwareProxyOAuthServiceTransport,
DEFAULT_CLIENT_INFO,
IdentityAwareProxyOAuthServiceTransport,
)
from .transports.grpc_asyncio import IdentityAwareProxyOAuthServiceGrpcAsyncIOTransport
from .client import IdentityAwareProxyOAuthServiceClient


class IdentityAwareProxyOAuthServiceAsyncClient:
Expand Down
Loading

0 comments on commit 6a9ae00

Please sign in to comment.