diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/.github/release-please.yml b/packages/google-cloud-beyondcorp-clientconnectorservices/.github/release-please.yml index 466597e5b196..528b2741a1f7 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/.github/release-please.yml +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/.github/release-please.yml @@ -1,2 +1,3 @@ releaseType: python handleGHRelease: true +manifest: true diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/.release-please-manifest.json b/packages/google-cloud-beyondcorp-clientconnectorservices/.release-please-manifest.json new file mode 100644 index 000000000000..949ce4c188fa --- /dev/null +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.2.2" +} diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/beyondcorp_clientconnectorservices_v1/types.rst b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/beyondcorp_clientconnectorservices_v1/types.rst index 4dbcbe03870f..9613ea9f7668 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/beyondcorp_clientconnectorservices_v1/types.rst +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/beyondcorp_clientconnectorservices_v1/types.rst @@ -3,5 +3,4 @@ Types for Google Cloud Beyondcorp Clientconnectorservices v1 API .. automodule:: google.cloud.beyondcorp_clientconnectorservices_v1.types :members: - :undoc-members: :show-inheritance: diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/conf.py b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/conf.py index 64fc4bc45f62..a108e5f4327e 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/conf.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/conf.py @@ -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 diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/__init__.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/__init__.py new file mode 100644 index 000000000000..56242c5907bb --- /dev/null +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/__init__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from google.cloud.beyondcorp_clientconnectorservices import ( + gapic_version as package_version, +) + +__version__ = package_version.__version__ + + +from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service.async_client import ( + ClientConnectorServicesServiceAsyncClient, +) +from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service.client import ( + ClientConnectorServicesServiceClient, +) +from google.cloud.beyondcorp_clientconnectorservices_v1.types.client_connector_services_service import ( + ClientConnectorService, + ClientConnectorServiceOperationMetadata, + CreateClientConnectorServiceRequest, + DeleteClientConnectorServiceRequest, + GetClientConnectorServiceRequest, + ListClientConnectorServicesRequest, + ListClientConnectorServicesResponse, + UpdateClientConnectorServiceRequest, +) + +__all__ = ( + "ClientConnectorServicesServiceClient", + "ClientConnectorServicesServiceAsyncClient", + "ClientConnectorService", + "ClientConnectorServiceOperationMetadata", + "CreateClientConnectorServiceRequest", + "DeleteClientConnectorServiceRequest", + "GetClientConnectorServiceRequest", + "ListClientConnectorServicesRequest", + "ListClientConnectorServicesResponse", + "UpdateClientConnectorServiceRequest", +) diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/gapic_version.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/gapic_version.py new file mode 100644 index 000000000000..76c40f2af477 --- /dev/null +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/gapic_version.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +__version__ = "0.2.2" # {x-release-please-version} diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/py.typed b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/py.typed new file mode 100644 index 000000000000..e76239a03894 --- /dev/null +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices/py.typed @@ -0,0 +1,2 @@ +# Marker file for PEP 561. +# The google-cloud-beyondcorp-clientconnectorservices package uses inline types. diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/__init__.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/__init__.py index 52ddf3969ab0..60609c2681ff 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/__init__.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/__init__.py @@ -13,24 +13,27 @@ # See the License for the specific language governing permissions and # limitations under the License. # - -from .services.client_connector_services_service import ( - ClientConnectorServicesServiceClient, +from google.cloud.beyondcorp_clientconnectorservices import ( + gapic_version as package_version, ) + +__version__ = package_version.__version__ + + from .services.client_connector_services_service import ( ClientConnectorServicesServiceAsyncClient, + ClientConnectorServicesServiceClient, ) - -from .types.client_connector_services_service import ClientConnectorService from .types.client_connector_services_service import ( + ClientConnectorService, ClientConnectorServiceOperationMetadata, + CreateClientConnectorServiceRequest, + DeleteClientConnectorServiceRequest, + GetClientConnectorServiceRequest, + ListClientConnectorServicesRequest, + ListClientConnectorServicesResponse, + UpdateClientConnectorServiceRequest, ) -from .types.client_connector_services_service import CreateClientConnectorServiceRequest -from .types.client_connector_services_service import DeleteClientConnectorServiceRequest -from .types.client_connector_services_service import GetClientConnectorServiceRequest -from .types.client_connector_services_service import ListClientConnectorServicesRequest -from .types.client_connector_services_service import ListClientConnectorServicesResponse -from .types.client_connector_services_service import UpdateClientConnectorServiceRequest __all__ = ( "ClientConnectorServicesServiceAsyncClient", diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/__init__.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/__init__.py index c548c30221c8..c4d4a0349672 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/__init__.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/__init__.py @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from .client import ClientConnectorServicesServiceClient from .async_client import ClientConnectorServicesServiceAsyncClient +from .client import ClientConnectorServicesServiceClient __all__ = ( "ClientConnectorServicesServiceClient", diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/async_client.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/async_client.py index 98fdb8ff5672..c7f202e5f3ef 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/async_client.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/async_client.py @@ -16,15 +16,25 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union -import pkg_resources +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) -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] @@ -33,12 +43,6 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( - pagers, -) -from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( - client_connector_services_service, -) from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore @@ -46,19 +50,31 @@ from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore + +from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( + pagers, +) +from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( + client_connector_services_service, +) + +from .client import ClientConnectorServicesServiceClient from .transports.base import ( - ClientConnectorServicesServiceTransport, DEFAULT_CLIENT_INFO, + ClientConnectorServicesServiceTransport, ) from .transports.grpc_asyncio import ClientConnectorServicesServiceGrpcAsyncIOTransport -from .client import ClientConnectorServicesServiceClient class ClientConnectorServicesServiceAsyncClient: - """API Overview: The ``beyondcorp.googleapis.com`` service implements the Google + """API Overview: + + The ``beyondcorp.googleapis.com`` service implements the Google Cloud BeyondCorp API. - Data Model: The ClientConnectorServicesService exposes the following resources: + Data Model: + + The ClientConnectorServicesService exposes the following resources: - Client Connector Services, named as follows: ``projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}``. @@ -192,9 +208,9 @@ def transport(self) -> ClientConnectorServicesServiceTransport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, ClientConnectorServicesServiceTransport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the client connector services service client. @@ -238,13 +254,16 @@ def __init__( async def list_client_connector_services( self, - request: Union[ - client_connector_services_service.ListClientConnectorServicesRequest, dict + request: Optional[ + Union[ + client_connector_services_service.ListClientConnectorServicesRequest, + dict, + ] ] = None, *, - parent: str = None, + parent: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListClientConnectorServicesAsyncPager: r"""Lists ClientConnectorServices in a given project and @@ -278,7 +297,7 @@ async def sample_list_client_connector_services(): print(response) Args: - request (Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.ListClientConnectorServicesRequest, dict]): + request (Optional[Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.ListClientConnectorServicesRequest, dict]]): The request object. Message for requesting list of ClientConnectorServices. parent (:class:`str`): @@ -358,13 +377,15 @@ async def sample_list_client_connector_services(): async def get_client_connector_service( self, - request: Union[ - client_connector_services_service.GetClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.GetClientConnectorServiceRequest, dict + ] ] = None, *, - name: str = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> client_connector_services_service.ClientConnectorService: r"""Gets details of a single ClientConnectorService. @@ -396,7 +417,7 @@ async def sample_get_client_connector_service(): print(response) Args: - request (Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.GetClientConnectorServiceRequest, dict]): + request (Optional[Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.GetClientConnectorServiceRequest, dict]]): The request object. Message for getting a ClientConnectorService. name (:class:`str`): @@ -462,15 +483,20 @@ async def sample_get_client_connector_service(): async def create_client_connector_service( self, - request: Union[ - client_connector_services_service.CreateClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.CreateClientConnectorServiceRequest, + dict, + ] ] = None, *, - parent: str = None, - client_connector_service: client_connector_services_service.ClientConnectorService = None, - client_connector_service_id: str = None, + parent: Optional[str] = None, + client_connector_service: Optional[ + client_connector_services_service.ClientConnectorService + ] = None, + client_connector_service_id: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Creates a new ClientConnectorService in a given @@ -515,7 +541,7 @@ async def sample_create_client_connector_service(): print(response) Args: - request (Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.CreateClientConnectorServiceRequest, dict]): + request (Optional[Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.CreateClientConnectorServiceRequest, dict]]): The request object. Message for creating a ClientConnectorService. parent (:class:`str`): @@ -618,14 +644,19 @@ async def sample_create_client_connector_service(): async def update_client_connector_service( self, - request: Union[ - client_connector_services_service.UpdateClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.UpdateClientConnectorServiceRequest, + dict, + ] ] = None, *, - client_connector_service: client_connector_services_service.ClientConnectorService = None, - update_mask: field_mask_pb2.FieldMask = None, + client_connector_service: Optional[ + client_connector_services_service.ClientConnectorService + ] = None, + update_mask: Optional[field_mask_pb2.FieldMask] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Updates the parameters of a single @@ -669,7 +700,7 @@ async def sample_update_client_connector_service(): print(response) Args: - request (Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.UpdateClientConnectorServiceRequest, dict]): + request (Optional[Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.UpdateClientConnectorServiceRequest, dict]]): The request object. Message for updating a ClientConnectorService client_connector_service (:class:`google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService`): @@ -769,13 +800,16 @@ async def sample_update_client_connector_service(): async def delete_client_connector_service( self, - request: Union[ - client_connector_services_service.DeleteClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.DeleteClientConnectorServiceRequest, + dict, + ] ] = None, *, - name: str = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Deletes a single ClientConnectorService. @@ -811,7 +845,7 @@ async def sample_delete_client_connector_service(): print(response) Args: - request (Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.DeleteClientConnectorServiceRequest, dict]): + request (Optional[Union[google.cloud.beyondcorp_clientconnectorservices_v1.types.DeleteClientConnectorServiceRequest, dict]]): The request object. Message for deleting a ClientConnectorService. name (:class:`str`): @@ -895,10 +929,10 @@ async def sample_delete_client_connector_service(): async def list_operations( self, - request: operations_pb2.ListOperationsRequest = None, + request: Optional[operations_pb2.ListOperationsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.ListOperationsResponse: r"""Lists operations that match the specified filter in the request. @@ -949,10 +983,10 @@ async def list_operations( async def get_operation( self, - request: operations_pb2.GetOperationRequest = None, + request: Optional[operations_pb2.GetOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: r"""Gets the latest state of a long-running operation. @@ -1003,10 +1037,10 @@ async def get_operation( async def delete_operation( self, - request: operations_pb2.DeleteOperationRequest = None, + request: Optional[operations_pb2.DeleteOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a long-running operation. @@ -1058,10 +1092,10 @@ async def delete_operation( async def cancel_operation( self, - request: operations_pb2.CancelOperationRequest = None, + request: Optional[operations_pb2.CancelOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Starts asynchronous cancellation on a long-running operation. @@ -1112,10 +1146,10 @@ async def cancel_operation( async def set_iam_policy( self, - request: iam_policy_pb2.SetIamPolicyRequest = None, + request: Optional[iam_policy_pb2.SetIamPolicyRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: r"""Sets the IAM access control policy on the specified function. @@ -1232,10 +1266,10 @@ async def set_iam_policy( async def get_iam_policy( self, - request: iam_policy_pb2.GetIamPolicyRequest = None, + request: Optional[iam_policy_pb2.GetIamPolicyRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: r"""Gets the IAM access control policy for a function. @@ -1353,10 +1387,10 @@ async def get_iam_policy( async def test_iam_permissions( self, - request: iam_policy_pb2.TestIamPermissionsRequest = None, + request: Optional[iam_policy_pb2.TestIamPermissionsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> iam_policy_pb2.TestIamPermissionsResponse: r"""Tests the specified IAM permissions against the IAM access control @@ -1412,10 +1446,10 @@ async def test_iam_permissions( async def get_location( self, - request: locations_pb2.GetLocationRequest = None, + request: Optional[locations_pb2.GetLocationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.Location: r"""Gets information about a location. @@ -1466,10 +1500,10 @@ async def get_location( async def list_locations( self, - request: locations_pb2.ListLocationsRequest = None, + request: Optional[locations_pb2.ListLocationsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.ListLocationsResponse: r"""Lists information about the supported locations for this service. diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/client.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/client.py index 013f4f6083db..819b5a36b460 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/client.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/client.py @@ -16,18 +16,29 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union -import pkg_resources +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) 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] @@ -36,12 +47,6 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( - pagers, -) -from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( - client_connector_services_service, -) from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore @@ -49,9 +54,17 @@ from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore + +from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( + pagers, +) +from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( + client_connector_services_service, +) + from .transports.base import ( - ClientConnectorServicesServiceTransport, DEFAULT_CLIENT_INFO, + ClientConnectorServicesServiceTransport, ) from .transports.grpc import ClientConnectorServicesServiceGrpcTransport from .transports.grpc_asyncio import ClientConnectorServicesServiceGrpcAsyncIOTransport @@ -77,7 +90,7 @@ class ClientConnectorServicesServiceClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[ClientConnectorServicesServiceTransport]: """Returns an appropriate transport class. @@ -100,10 +113,14 @@ def get_transport_class( class ClientConnectorServicesServiceClient( metaclass=ClientConnectorServicesServiceClientMeta ): - """API Overview: The ``beyondcorp.googleapis.com`` service implements the Google + """API Overview: + + The ``beyondcorp.googleapis.com`` service implements the Google Cloud BeyondCorp API. - Data Model: The ClientConnectorServicesService exposes the following resources: + Data Model: + + The ClientConnectorServicesService exposes the following resources: - Client Connector Services, named as follows: ``projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}``. @@ -361,8 +378,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, ClientConnectorServicesServiceTransport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, ClientConnectorServicesServiceTransport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the client connector services service client. @@ -379,7 +396,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -409,6 +426,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -461,13 +479,16 @@ def __init__( def list_client_connector_services( self, - request: Union[ - client_connector_services_service.ListClientConnectorServicesRequest, dict + request: Optional[ + Union[ + client_connector_services_service.ListClientConnectorServicesRequest, + dict, + ] ] = None, *, - parent: str = None, + parent: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListClientConnectorServicesPager: r"""Lists ClientConnectorServices in a given project and @@ -588,13 +609,15 @@ def sample_list_client_connector_services(): def get_client_connector_service( self, - request: Union[ - client_connector_services_service.GetClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.GetClientConnectorServiceRequest, dict + ] ] = None, *, - name: str = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> client_connector_services_service.ClientConnectorService: r"""Gets details of a single ClientConnectorService. @@ -698,15 +721,20 @@ def sample_get_client_connector_service(): def create_client_connector_service( self, - request: Union[ - client_connector_services_service.CreateClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.CreateClientConnectorServiceRequest, + dict, + ] ] = None, *, - parent: str = None, - client_connector_service: client_connector_services_service.ClientConnectorService = None, - client_connector_service_id: str = None, + parent: Optional[str] = None, + client_connector_service: Optional[ + client_connector_services_service.ClientConnectorService + ] = None, + client_connector_service_id: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Creates a new ClientConnectorService in a given @@ -861,14 +889,19 @@ def sample_create_client_connector_service(): def update_client_connector_service( self, - request: Union[ - client_connector_services_service.UpdateClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.UpdateClientConnectorServiceRequest, + dict, + ] ] = None, *, - client_connector_service: client_connector_services_service.ClientConnectorService = None, - update_mask: field_mask_pb2.FieldMask = None, + client_connector_service: Optional[ + client_connector_services_service.ClientConnectorService + ] = None, + update_mask: Optional[field_mask_pb2.FieldMask] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Updates the parameters of a single @@ -1019,13 +1052,16 @@ def sample_update_client_connector_service(): def delete_client_connector_service( self, - request: Union[ - client_connector_services_service.DeleteClientConnectorServiceRequest, dict + request: Optional[ + Union[ + client_connector_services_service.DeleteClientConnectorServiceRequest, + dict, + ] ] = None, *, - name: str = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Deletes a single ClientConnectorService. @@ -1165,10 +1201,10 @@ def __exit__(self, type, value, traceback): def list_operations( self, - request: operations_pb2.ListOperationsRequest = None, + request: Optional[operations_pb2.ListOperationsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.ListOperationsResponse: r"""Lists operations that match the specified filter in the request. @@ -1219,10 +1255,10 @@ def list_operations( def get_operation( self, - request: operations_pb2.GetOperationRequest = None, + request: Optional[operations_pb2.GetOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: r"""Gets the latest state of a long-running operation. @@ -1273,10 +1309,10 @@ def get_operation( def delete_operation( self, - request: operations_pb2.DeleteOperationRequest = None, + request: Optional[operations_pb2.DeleteOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a long-running operation. @@ -1328,10 +1364,10 @@ def delete_operation( def cancel_operation( self, - request: operations_pb2.CancelOperationRequest = None, + request: Optional[operations_pb2.CancelOperationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Starts asynchronous cancellation on a long-running operation. @@ -1382,10 +1418,10 @@ def cancel_operation( def set_iam_policy( self, - request: iam_policy_pb2.SetIamPolicyRequest = None, + request: Optional[iam_policy_pb2.SetIamPolicyRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: r"""Sets the IAM access control policy on the specified function. @@ -1502,10 +1538,10 @@ def set_iam_policy( def get_iam_policy( self, - request: iam_policy_pb2.GetIamPolicyRequest = None, + request: Optional[iam_policy_pb2.GetIamPolicyRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: r"""Gets the IAM access control policy for a function. @@ -1623,10 +1659,10 @@ def get_iam_policy( def test_iam_permissions( self, - request: iam_policy_pb2.TestIamPermissionsRequest = None, + request: Optional[iam_policy_pb2.TestIamPermissionsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> iam_policy_pb2.TestIamPermissionsResponse: r"""Tests the specified IAM permissions against the IAM access control @@ -1682,10 +1718,10 @@ def test_iam_permissions( def get_location( self, - request: locations_pb2.GetLocationRequest = None, + request: Optional[locations_pb2.GetLocationRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.Location: r"""Gets information about a location. @@ -1736,10 +1772,10 @@ def get_location( def list_locations( self, - request: locations_pb2.ListLocationsRequest = None, + request: Optional[locations_pb2.ListLocationsRequest] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.ListLocationsResponse: r"""Lists information about the supported locations for this service. diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/pagers.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/pagers.py index 45186980f985..954aa7efaf0d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/pagers.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/pagers.py @@ -18,10 +18,10 @@ AsyncIterator, Awaitable, Callable, + Iterator, + Optional, Sequence, Tuple, - Optional, - Iterator, ) from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/__init__.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/__init__.py index 868be552bcb0..ab6949b9fd5a 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/__init__.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/__init__.py @@ -19,9 +19,10 @@ from .base import ClientConnectorServicesServiceTransport from .grpc import ClientConnectorServicesServiceGrpcTransport from .grpc_asyncio import ClientConnectorServicesServiceGrpcAsyncIOTransport -from .rest import ClientConnectorServicesServiceRestTransport -from .rest import ClientConnectorServicesServiceRestInterceptor - +from .rest import ( + ClientConnectorServicesServiceRestInterceptor, + ClientConnectorServicesServiceRestTransport, +) # Compile a registry of transports. _transport_registry = ( diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/base.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/base.py index 27369d890946..52b0d5717246 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/base.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/base.py @@ -15,25 +15,23 @@ # 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 gapic_v1, operations_v1 from google.api_core import retry as retries -from google.api_core import operations_v1 +import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore +import pkg_resources from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( client_connector_services_service, ) -from google.cloud.location import locations_pb2 # type: ignore -from google.iam.v1 import iam_policy_pb2 # type: ignore -from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 -from google.longrunning import operations_pb2 # type: ignore try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( @@ -56,7 +54,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc.py index 488277e7296a..f5b9c84877df 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc.py @@ -13,27 +13,24 @@ # 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 operations_v1 -from google.api_core import gapic_v1 +from google.api_core import gapic_v1, grpc_helpers, operations_v1 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.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( client_connector_services_service, ) -from google.cloud.location import locations_pb2 # type: ignore -from google.iam.v1 import iam_policy_pb2 # type: ignore -from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 -from google.longrunning import operations_pb2 # type: ignore -from .base import ClientConnectorServicesServiceTransport, DEFAULT_CLIENT_INFO + +from .base import DEFAULT_CLIENT_INFO, ClientConnectorServicesServiceTransport class ClientConnectorServicesServiceGrpcTransport( @@ -41,10 +38,14 @@ class ClientConnectorServicesServiceGrpcTransport( ): """gRPC backend transport for ClientConnectorServicesService. - API Overview: The ``beyondcorp.googleapis.com`` service implements the Google + API Overview: + + The ``beyondcorp.googleapis.com`` service implements the Google Cloud BeyondCorp API. - Data Model: The ClientConnectorServicesService exposes the following resources: + Data Model: + + The ClientConnectorServicesService exposes the following resources: - Client Connector Services, named as follows: ``projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}``. @@ -63,14 +64,14 @@ def __init__( self, *, host: str = "beyondcorp.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -198,8 +199,8 @@ def __init__( def create_channel( cls, host: str = "beyondcorp.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc_asyncio.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc_asyncio.py index 4b26a07dee75..ddff5ece9648 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/grpc_asyncio.py @@ -13,27 +13,24 @@ # 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 operations_v1 +from google.api_core import gapic_v1, grpc_helpers_async, operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore - +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( client_connector_services_service, ) -from google.cloud.location import locations_pb2 # type: ignore -from google.iam.v1 import iam_policy_pb2 # type: ignore -from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 -from google.longrunning import operations_pb2 # type: ignore -from .base import ClientConnectorServicesServiceTransport, DEFAULT_CLIENT_INFO + +from .base import DEFAULT_CLIENT_INFO, ClientConnectorServicesServiceTransport from .grpc import ClientConnectorServicesServiceGrpcTransport @@ -42,10 +39,14 @@ class ClientConnectorServicesServiceGrpcAsyncIOTransport( ): """gRPC AsyncIO backend transport for ClientConnectorServicesService. - API Overview: The ``beyondcorp.googleapis.com`` service implements the Google + API Overview: + + The ``beyondcorp.googleapis.com`` service implements the Google Cloud BeyondCorp API. - Data Model: The ClientConnectorServicesService exposes the following resources: + Data Model: + + The ClientConnectorServicesService exposes the following resources: - Client Connector Services, named as follows: ``projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}``. @@ -65,7 +66,7 @@ class ClientConnectorServicesServiceGrpcAsyncIOTransport( def create_channel( cls, host: str = "beyondcorp.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -108,15 +109,15 @@ def __init__( self, *, host: str = "beyondcorp.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/rest.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/rest.py index cddb7aba84b7..5d87e319ebfc 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/rest.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/services/client_connector_services_service/transports/rest.py @@ -14,29 +14,31 @@ # limitations under the License. # -from google.auth.transport.requests import AuthorizedSession # type: ignore +import dataclasses import json # type: ignore -import grpc # type: ignore -from google.auth.transport.grpc import SslCredentials # type: ignore -from google.auth import credentials as ga_credentials # type: ignore +import re +from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +import warnings + +from google.api_core import ( + gapic_v1, + operations_v1, + path_template, + rest_helpers, + rest_streaming, +) from google.api_core import exceptions as core_exceptions from google.api_core import retry as retries -from google.api_core import rest_helpers -from google.api_core import rest_streaming -from google.api_core import path_template -from google.api_core import gapic_v1 - -from google.protobuf import json_format -from google.api_core import operations_v1 +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore +from google.auth.transport.requests import AuthorizedSession # type: ignore +from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 +from google.protobuf import json_format +import grpc # type: ignore from requests import __version__ as requests_version -import dataclasses -import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union -import warnings try: OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] @@ -44,16 +46,14 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore -from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( - client_connector_services_service, -) from google.longrunning import operations_pb2 # type: ignore -from .base import ( - ClientConnectorServicesServiceTransport, - DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO, +from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( + client_connector_services_service, ) +from .base import ClientConnectorServicesServiceTransport +from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version, @@ -469,10 +469,14 @@ class ClientConnectorServicesServiceRestTransport( ): """REST backend transport for ClientConnectorServicesService. - API Overview: The ``beyondcorp.googleapis.com`` service implements the Google + API Overview: + + The ``beyondcorp.googleapis.com`` service implements the Google Cloud BeyondCorp API. - Data Model: The ClientConnectorServicesService exposes the following resources: + Data Model: + + The ClientConnectorServicesService exposes the following resources: - Client Connector Services, named as follows: ``projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}``. @@ -492,10 +496,10 @@ def __init__( self, *, host: str = "beyondcorp.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -642,7 +646,7 @@ def __call__( request: client_connector_services_service.CreateClientConnectorServiceRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: r"""Call the create client connector @@ -743,7 +747,7 @@ def __call__( request: client_connector_services_service.DeleteClientConnectorServiceRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: r"""Call the delete client connector @@ -835,7 +839,7 @@ def __call__( request: client_connector_services_service.GetClientConnectorServiceRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> client_connector_services_service.ClientConnectorService: r"""Call the get client connector @@ -930,7 +934,7 @@ def __call__( request: client_connector_services_service.ListClientConnectorServicesRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> client_connector_services_service.ListClientConnectorServicesResponse: r"""Call the list client connector @@ -1031,7 +1035,7 @@ def __call__( request: client_connector_services_service.UpdateClientConnectorServiceRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: r"""Call the update client connector @@ -1178,7 +1182,7 @@ def __call__( request: locations_pb2.GetLocationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.Location: @@ -1245,7 +1249,7 @@ def __call__( request: locations_pb2.ListLocationsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> locations_pb2.ListLocationsResponse: @@ -1312,7 +1316,7 @@ def __call__( request: iam_policy_pb2.GetIamPolicyRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: @@ -1395,7 +1399,7 @@ def __call__( request: iam_policy_pb2.SetIamPolicyRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> policy_pb2.Policy: @@ -1485,7 +1489,7 @@ def __call__( request: iam_policy_pb2.TestIamPermissionsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> iam_policy_pb2.TestIamPermissionsResponse: @@ -1577,7 +1581,7 @@ def __call__( request: operations_pb2.CancelOperationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: @@ -1643,7 +1647,7 @@ def __call__( request: operations_pb2.DeleteOperationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> None: @@ -1706,7 +1710,7 @@ def __call__( request: operations_pb2.GetOperationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.Operation: @@ -1773,7 +1777,7 @@ def __call__( request: operations_pb2.ListOperationsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> operations_pb2.ListOperationsResponse: diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/types/client_connector_services_service.py b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/types/client_connector_services_service.py index 1ad3378499f4..782c0f625974 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/types/client_connector_services_service.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/google/cloud/beyondcorp_clientconnectorservices_v1/types/client_connector_services_service.py @@ -13,11 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import proto # type: ignore +from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore - +import proto # type: ignore __protobuf__ = proto.module( package="google.cloud.beyondcorp.clientconnectorservices.v1", @@ -93,7 +93,7 @@ class Config(proto.Message): transport_protocol (google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService.Ingress.Config.TransportProtocol): Required. Immutable. The transport protocol used between the client and the server. - destination_routes (Sequence[google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService.Ingress.Config.DestinationRoute]): + destination_routes (MutableSequence[google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService.Ingress.Config.DestinationRoute]): Required. The settings used to configure basic ClientGateways. """ @@ -119,27 +119,29 @@ class DestinationRoute(proto.Message): ClientGateway. """ - address = proto.Field( + address: str = proto.Field( proto.STRING, number=1, ) - netmask = proto.Field( + netmask: str = proto.Field( proto.STRING, number=2, ) - transport_protocol = proto.Field( + transport_protocol: "ClientConnectorService.Ingress.Config.TransportProtocol" = proto.Field( proto.ENUM, number=1, enum="ClientConnectorService.Ingress.Config.TransportProtocol", ) - destination_routes = proto.RepeatedField( + destination_routes: MutableSequence[ + "ClientConnectorService.Ingress.Config.DestinationRoute" + ] = proto.RepeatedField( proto.MESSAGE, number=2, message="ClientConnectorService.Ingress.Config.DestinationRoute", ) - config = proto.Field( + config: "ClientConnectorService.Ingress.Config" = proto.Field( proto.MESSAGE, number=1, oneof="ingress_config", @@ -169,47 +171,47 @@ class PeeredVpc(proto.Message): the consumer project. """ - network_vpc = proto.Field( + network_vpc: str = proto.Field( proto.STRING, number=1, ) - peered_vpc = proto.Field( + peered_vpc: "ClientConnectorService.Egress.PeeredVpc" = proto.Field( proto.MESSAGE, number=1, oneof="destination_type", message="ClientConnectorService.Egress.PeeredVpc", ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - create_time = proto.Field( + create_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=2, message=timestamp_pb2.Timestamp, ) - update_time = proto.Field( + update_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, ) - display_name = proto.Field( + display_name: str = proto.Field( proto.STRING, number=4, ) - ingress = proto.Field( + ingress: Ingress = proto.Field( proto.MESSAGE, number=6, message=Ingress, ) - egress = proto.Field( + egress: Egress = proto.Field( proto.MESSAGE, number=7, message=Egress, ) - state = proto.Field( + state: State = proto.Field( proto.ENUM, number=8, enum=State, @@ -237,23 +239,23 @@ class ListClientConnectorServicesRequest(proto.Message): Optional. Hint for how to order the results. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=2, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=3, ) - filter = proto.Field( + filter: str = proto.Field( proto.STRING, number=4, ) - order_by = proto.Field( + order_by: str = proto.Field( proto.STRING, number=5, ) @@ -263,12 +265,12 @@ class ListClientConnectorServicesResponse(proto.Message): r"""Message for response to listing ClientConnectorServices. Attributes: - client_connector_services (Sequence[google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService]): + client_connector_services (MutableSequence[google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService]): The list of ClientConnectorService. next_page_token (str): A token identifying a page of results the server should return. - unreachable (Sequence[str]): + unreachable (MutableSequence[str]): Locations that could not be reached. """ @@ -276,16 +278,18 @@ class ListClientConnectorServicesResponse(proto.Message): def raw_page(self): return self - client_connector_services = proto.RepeatedField( + client_connector_services: MutableSequence[ + "ClientConnectorService" + ] = proto.RepeatedField( proto.MESSAGE, number=1, message="ClientConnectorService", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) - unreachable = proto.RepeatedField( + unreachable: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=3, ) @@ -299,7 +303,7 @@ class GetClientConnectorServiceRequest(proto.Message): Required. Name of the resource. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) @@ -348,24 +352,24 @@ class CreateClientConnectorServiceRequest(proto.Message): resource in any way. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - client_connector_service_id = proto.Field( + client_connector_service_id: str = proto.Field( proto.STRING, number=2, ) - client_connector_service = proto.Field( + client_connector_service: "ClientConnectorService" = proto.Field( proto.MESSAGE, number=3, message="ClientConnectorService", ) - request_id = proto.Field( + request_id: str = proto.Field( proto.STRING, number=4, ) - validate_only = proto.Field( + validate_only: bool = proto.Field( proto.BOOL, number=5, ) @@ -413,25 +417,25 @@ class UpdateClientConnectorServiceRequest(proto.Message): resource if it is not found. """ - update_mask = proto.Field( + update_mask: field_mask_pb2.FieldMask = proto.Field( proto.MESSAGE, number=1, message=field_mask_pb2.FieldMask, ) - client_connector_service = proto.Field( + client_connector_service: "ClientConnectorService" = proto.Field( proto.MESSAGE, number=2, message="ClientConnectorService", ) - request_id = proto.Field( + request_id: str = proto.Field( proto.STRING, number=3, ) - validate_only = proto.Field( + validate_only: bool = proto.Field( proto.BOOL, number=4, ) - allow_missing = proto.Field( + allow_missing: bool = proto.Field( proto.BOOL, number=5, ) @@ -467,15 +471,15 @@ class DeleteClientConnectorServiceRequest(proto.Message): resource in any way. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - request_id = proto.Field( + request_id: str = proto.Field( proto.STRING, number=2, ) - validate_only = proto.Field( + validate_only: bool = proto.Field( proto.BOOL, number=3, ) @@ -511,33 +515,33 @@ class ClientConnectorServiceOperationMetadata(proto.Message): operation. """ - create_time = proto.Field( + create_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=1, message=timestamp_pb2.Timestamp, ) - end_time = proto.Field( + end_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=2, message=timestamp_pb2.Timestamp, ) - target = proto.Field( + target: str = proto.Field( proto.STRING, number=3, ) - verb = proto.Field( + verb: str = proto.Field( proto.STRING, number=4, ) - status_message = proto.Field( + status_message: str = proto.Field( proto.STRING, number=5, ) - requested_cancellation = proto.Field( + requested_cancellation: bool = proto.Field( proto.BOOL, number=6, ) - api_version = proto.Field( + api_version: str = proto.Field( proto.STRING, number=7, ) diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/noxfile.py b/packages/google-cloud-beyondcorp-clientconnectorservices/noxfile.py index d752b54f56da..d8440c023805 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/noxfile.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/noxfile.py @@ -17,6 +17,7 @@ # Generated by synthtool. DO NOT EDIT! from __future__ import absolute_import + import os import pathlib import re diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/owlbot.py b/packages/google-cloud-beyondcorp-clientconnectorservices/owlbot.py index b382e8016178..908909d6d075 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/owlbot.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/owlbot.py @@ -12,7 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json from pathlib import Path +import shutil import synthtool as s import synthtool.gcp as gcp @@ -22,12 +24,19 @@ # Copy the generated client from the owl-bot staging directory # ---------------------------------------------------------------------------- -default_version = "v1" +clean_up_generated_samples = True + +# Load the default version defined in .repo-metadata.json. +default_version = json.load(open(".repo-metadata.json", "rt")).get( + "default_version" +) for library in s.get_staging_dirs(default_version): - s.replace(library / "google/cloud/**/*.py","\n ------------\n\n ",":") - s.replace(library / "google/cloud/**/*.py","\n ----------\n\n ",":") - s.move(library, excludes=["google/cloud/beyondcorp_clientconnectorservices", "setup.py"]) + if clean_up_generated_samples: + shutil.rmtree("samples/generated_samples", ignore_errors=True) + clean_up_generated_samples = False + + s.move([library], excludes=["**/gapic_version.py"]) s.remove_staging_dirs() # ---------------------------------------------------------------------------- @@ -39,11 +48,10 @@ microgenerator=True, versions=gcp.common.detect_versions(path="./google", default_first=True), ) -s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file +s.move(templated_files, excludes=[".coveragerc", ".github/release-please.yml"]) python.py_samples(skip_readmes=True) - -# run blacken session for all directories which have a noxfile +# run format session for all directories which have a noxfile for noxfile in Path(".").glob("**/noxfile.py"): - s.shell.run(["nox", "-s", "blacken"], cwd=noxfile.parent, hide_output=False) + s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False) diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/release-please-config.json b/packages/google-cloud-beyondcorp-clientconnectorservices/release-please-config.json new file mode 100644 index 000000000000..455211c1d3a0 --- /dev/null +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/release-please-config.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "python", + "extra-files": [ + "google/cloud/beyondcorp_clientconnectorservices/gapic_version.py", + { + "type": "json", + "path": "samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json", + "jsonpath": "$.clientLibrary.version" + } + ] + } + }, + "release-type": "python", + "plugins": [ + { + "type": "sentence-case" + } + ], + "initial-version": "0.1.0" +} diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_0be2464e.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_0be2464e.py deleted file mode 100644 index d860a0e3c98d..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_0be2464e.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync_0be2464e] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_create_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - client_connector_service = beyondcorp_clientconnectorservices_v1.ClientConnectorService() - client_connector_service.name = "name_value" - client_connector_service.ingress.config.transport_protocol = "TCP" - client_connector_service.ingress.config.destination_routes.address = "address_value" - client_connector_service.ingress.config.destination_routes.netmask = "netmask_value" - client_connector_service.egress.peered_vpc.network_vpc = "network_vpc_value" - - request = beyondcorp_clientconnectorservices_v1.CreateClientConnectorServiceRequest( - parent="parent_value", - client_connector_service=client_connector_service, - ) - - # Make the request - operation = client.create_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync_0be2464e] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_16f742b2.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_16f742b2.py deleted file mode 100644 index d6e0db238212..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_16f742b2.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync_16f742b2] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_create_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - client_connector_service = beyondcorp_clientconnectorservices_v1.ClientConnectorService() - client_connector_service.name = "name_value" - client_connector_service.ingress.config.transport_protocol = "TCP" - client_connector_service.ingress.config.destination_routes.address = "address_value" - client_connector_service.ingress.config.destination_routes.netmask = "netmask_value" - client_connector_service.egress.peered_vpc.network_vpc = "network_vpc_value" - - request = beyondcorp_clientconnectorservices_v1.CreateClientConnectorServiceRequest( - parent="parent_value", - client_connector_service=client_connector_service, - ) - - # Make the request - operation = client.create_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync_16f742b2] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_0b7cd638.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_0b7cd638.py deleted file mode 100644 index b0be129e3198..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_0b7cd638.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync_0b7cd638] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_delete_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.DeleteClientConnectorServiceRequest( - name="name_value", - ) - - # Make the request - operation = client.delete_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync_0b7cd638] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_af621649.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_af621649.py deleted file mode 100644 index c40fa7d76a3b..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_af621649.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync_af621649] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_delete_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.DeleteClientConnectorServiceRequest( - name="name_value", - ) - - # Make the request - operation = client.delete_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync_af621649] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_033204bf.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_033204bf.py deleted file mode 100644 index 16837f8092a7..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_033204bf.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync_033204bf] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_get_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.GetClientConnectorServiceRequest( - name="name_value", - ) - - # Make the request - response = client.get_client_connector_service(request=request) - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync_033204bf] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_da50a4fd.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_da50a4fd.py deleted file mode 100644 index 6a56f70d3262..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_da50a4fd.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync_da50a4fd] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_get_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.GetClientConnectorServiceRequest( - name="name_value", - ) - - # Make the request - response = client.get_client_connector_service(request=request) - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync_da50a4fd] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_6dbee5af.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_6dbee5af.py deleted file mode 100644 index 720986865623..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_6dbee5af.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListClientConnectorServices -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync_6dbee5af] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_list_client_connector_services(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.ListClientConnectorServicesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_client_connector_services(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync_6dbee5af] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_81f8a848.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_81f8a848.py deleted file mode 100644 index ce6c477a4d93..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_81f8a848.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListClientConnectorServices -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync_81f8a848] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_list_client_connector_services(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - request = beyondcorp_clientconnectorservices_v1.ListClientConnectorServicesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_client_connector_services(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync_81f8a848] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_62031516.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_62031516.py deleted file mode 100644 index 5cc6eabcbc23..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_62031516.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync_62031516] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_update_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - client_connector_service = beyondcorp_clientconnectorservices_v1.ClientConnectorService() - client_connector_service.name = "name_value" - client_connector_service.ingress.config.transport_protocol = "TCP" - client_connector_service.ingress.config.destination_routes.address = "address_value" - client_connector_service.ingress.config.destination_routes.netmask = "netmask_value" - client_connector_service.egress.peered_vpc.network_vpc = "network_vpc_value" - - request = beyondcorp_clientconnectorservices_v1.UpdateClientConnectorServiceRequest( - client_connector_service=client_connector_service, - ) - - # Make the request - operation = client.update_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync_62031516] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_badbdf76.py b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_badbdf76.py deleted file mode 100644 index cb1786a880de..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_badbdf76.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateClientConnectorService -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-beyondcorp-clientconnectorservices - - -# [START beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync_badbdf76] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import beyondcorp_clientconnectorservices_v1 - - -def sample_update_client_connector_service(): - # Create a client - client = beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient() - - # Initialize request argument(s) - client_connector_service = beyondcorp_clientconnectorservices_v1.ClientConnectorService() - client_connector_service.name = "name_value" - client_connector_service.ingress.config.transport_protocol = "TCP" - client_connector_service.ingress.config.destination_routes.address = "address_value" - client_connector_service.ingress.config.destination_routes.netmask = "netmask_value" - client_connector_service.egress.peered_vpc.network_vpc = "network_vpc_value" - - request = beyondcorp_clientconnectorservices_v1.UpdateClientConnectorServiceRequest( - client_connector_service=client_connector_service, - ) - - # Make the request - operation = client.update_client_connector_service(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync_badbdf76] diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_beyondcorp clientconnectorservices_v1.json b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json similarity index 65% rename from packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_beyondcorp clientconnectorservices_v1.json rename to packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json index 179b5d43b39a..9a230827e86d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_beyondcorp clientconnectorservices_v1.json +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated_samples/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json @@ -7,7 +7,8 @@ } ], "language": "PYTHON", - "name": "google-cloud-beyondcorp-clientconnectorservices" + "name": "google-cloud-beyondcorp-clientconnectorservices", + "version": "0.1.0" }, "snippets": [ { @@ -149,7 +150,7 @@ "shortName": "create_client_connector_service" }, "description": "Sample for CreateClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_16f742b2.py", + "file": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync", @@ -185,95 +186,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_16f742b2.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient", - "shortName": "ClientConnectorServicesServiceClient" - }, - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient.create_client_connector_service", - "method": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.CreateClientConnectorService", - "service": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService", - "shortName": "ClientConnectorServicesService" - }, - "shortName": "CreateClientConnectorService" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.CreateClientConnectorServiceRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "client_connector_service", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService" - }, - { - "name": "client_connector_service_id", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "create_client_connector_service" - }, - "description": "Sample for CreateClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_0be2464e.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_sync", - "segments": [ - { - "end": 63, - "start": 27, - "type": "FULL" - }, - { - "end": 63, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 53, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 60, - "start": 54, - "type": "REQUEST_EXECUTION" - }, - { - "end": 64, - "start": 61, - "type": "RESPONSE_HANDLING" - } - ], - "title": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync_0be2464e.py" + "title": "beyondcorp_v1_generated_client_connector_services_service_create_client_connector_service_sync.py" }, { "canonical": true, @@ -398,7 +311,7 @@ "shortName": "delete_client_connector_service" }, "description": "Sample for DeleteClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_0b7cd638.py", + "file": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync", @@ -434,87 +347,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_0b7cd638.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient", - "shortName": "ClientConnectorServicesServiceClient" - }, - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient.delete_client_connector_service", - "method": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.DeleteClientConnectorService", - "service": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService", - "shortName": "ClientConnectorServicesService" - }, - "shortName": "DeleteClientConnectorService" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.DeleteClientConnectorServiceRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "delete_client_connector_service" - }, - "description": "Sample for DeleteClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_af621649.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync_af621649.py" + "title": "beyondcorp_v1_generated_client_connector_services_service_delete_client_connector_service_sync.py" }, { "canonical": true, @@ -639,87 +472,7 @@ "shortName": "get_client_connector_service" }, "description": "Sample for GetClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_033204bf.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_033204bf.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient", - "shortName": "ClientConnectorServicesServiceClient" - }, - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient.get_client_connector_service", - "method": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.GetClientConnectorService", - "service": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService", - "shortName": "ClientConnectorServicesService" - }, - "shortName": "GetClientConnectorService" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.GetClientConnectorServiceRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService", - "shortName": "get_client_connector_service" - }, - "description": "Sample for GetClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_da50a4fd.py", + "file": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_sync", @@ -755,7 +508,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync_da50a4fd.py" + "title": "beyondcorp_v1_generated_client_connector_services_service_get_client_connector_service_sync.py" }, { "canonical": true, @@ -880,7 +633,7 @@ "shortName": "list_client_connector_services" }, "description": "Sample for ListClientConnectorServices", - "file": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_6dbee5af.py", + "file": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync", @@ -916,87 +669,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_6dbee5af.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient", - "shortName": "ClientConnectorServicesServiceClient" - }, - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient.list_client_connector_services", - "method": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.ListClientConnectorServices", - "service": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService", - "shortName": "ClientConnectorServicesService" - }, - "shortName": "ListClientConnectorServices" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.ListClientConnectorServicesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service.pagers.ListClientConnectorServicesPager", - "shortName": "list_client_connector_services" - }, - "description": "Sample for ListClientConnectorServices", - "file": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_81f8a848.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync_81f8a848.py" + "title": "beyondcorp_v1_generated_client_connector_services_service_list_client_connector_services_sync.py" }, { "canonical": true, @@ -1129,91 +802,7 @@ "shortName": "update_client_connector_service" }, "description": "Sample for UpdateClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_badbdf76.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync", - "segments": [ - { - "end": 62, - "start": 27, - "type": "FULL" - }, - { - "end": 62, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 52, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 59, - "start": 53, - "type": "REQUEST_EXECUTION" - }, - { - "end": 63, - "start": 60, - "type": "RESPONSE_HANDLING" - } - ], - "title": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_badbdf76.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient", - "shortName": "ClientConnectorServicesServiceClient" - }, - "fullName": "google.cloud.beyondcorp_clientconnectorservices_v1.ClientConnectorServicesServiceClient.update_client_connector_service", - "method": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.UpdateClientConnectorService", - "service": { - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService", - "shortName": "ClientConnectorServicesService" - }, - "shortName": "UpdateClientConnectorService" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.UpdateClientConnectorServiceRequest" - }, - { - "name": "client_connector_service", - "type": "google.cloud.beyondcorp_clientconnectorservices_v1.types.ClientConnectorService" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "update_client_connector_service" - }, - "description": "Sample for UpdateClientConnectorService", - "file": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_62031516.py", + "file": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_sync", @@ -1249,7 +838,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync_62031516.py" + "title": "beyondcorp_v1_generated_client_connector_services_service_update_client_connector_service_sync.py" } ] } diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/setup.py b/packages/google-cloud-beyondcorp-clientconnectorservices/setup.py index 5e1081a16b91..1d0b806c864e 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/setup.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/setup.py @@ -1,33 +1,49 @@ # -*- coding: utf-8 -*- -# -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# https://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - +# import io import os -import setuptools +import setuptools # type: ignore + +package_root = os.path.abspath(os.path.dirname(__file__)) name = "google-cloud-beyondcorp-clientconnectorservices" -description = "BeyondCorp ClientConnectorServices API client library" -version = "0.2.2" -release_status = "Development Status :: 4 - Beta" + + +description = "Google Cloud Beyondcorp Clientconnectorservices API client library" + +version = {} +with open( + os.path.join( + package_root, "google/cloud/beyondcorp_clientconnectorservices/gapic_version.py" + ) +) as fp: + exec(fp.read(), version) +version = version["__version__"] + +if version[0] == "0": + release_status = "Development Status :: 4 - Beta" +else: + release_status = "Development Status :: 5 - Production/Stable" + dependencies = [ "google-api-core[grpc] >= 1.33.2, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*", "proto-plus >= 1.22.0, <2.0.0dev", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", - "grpc-google-iam-v1 >=0.12.4, <1.0.0dev", + "grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev", ] url = "https://github.com/googleapis/python-beyondcorp-clientconnectorservices" @@ -47,7 +63,6 @@ if "google.cloud" in packages: namespaces.append("google.cloud") - setuptools.setup( name=name, version=version, diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.10.txt b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.10.txt index e69de29bb2d1..ad3f0fa58e2d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.10.txt +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.10.txt @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf +grpc-google-iam-v1 diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.11.txt b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.11.txt index e69de29bb2d1..ad3f0fa58e2d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.11.txt +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.11.txt @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf +grpc-google-iam-v1 diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.8.txt b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.8.txt index e69de29bb2d1..ad3f0fa58e2d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.8.txt +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.8.txt @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf +grpc-google-iam-v1 diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.9.txt b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.9.txt index e69de29bb2d1..ad3f0fa58e2d 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.9.txt +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/testing/constraints-3.9.txt @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf +grpc-google-iam-v1 diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/tests/unit/gapic/beyondcorp_clientconnectorservices_v1/test_client_connector_services_service.py b/packages/google-cloud-beyondcorp-clientconnectorservices/tests/unit/gapic/beyondcorp_clientconnectorservices_v1/test_client_connector_services_service.py index 96b3b18df955..8be4aeb099fb 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/tests/unit/gapic/beyondcorp_clientconnectorservices_v1/test_client_connector_services_service.py +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/tests/unit/gapic/beyondcorp_clientconnectorservices_v1/test_client_connector_services_service.py @@ -22,56 +22,52 @@ except ImportError: # pragma: NO COVER import mock -import grpc -from grpc.experimental import aio from collections.abc import Iterable -from google.protobuf import json_format import json import math -import pytest -from proto.marshal.rules.dates import DurationRule, TimestampRule -from proto.marshal.rules import wrappers -from requests import Response -from requests import Request, PreparedRequest -from requests.sessions import Session -from google.protobuf import json_format +from google.api_core import ( + future, + gapic_v1, + grpc_helpers, + grpc_helpers_async, + operation, + operations_v1, + path_template, +) from google.api_core import client_options from google.api_core import exceptions as core_exceptions -from google.api_core import future -from google.api_core import gapic_v1 -from google.api_core import grpc_helpers -from google.api_core import grpc_helpers_async -from google.api_core import operation from google.api_core import operation_async # type: ignore -from google.api_core import operations_v1 -from google.api_core import path_template +import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError +from google.cloud.location import locations_pb2 +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import options_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.oauth2 import service_account +from google.protobuf import empty_pb2 # type: ignore +from google.protobuf import field_mask_pb2 # type: ignore +from google.protobuf import json_format +from google.protobuf import timestamp_pb2 # type: ignore +import grpc +from grpc.experimental import aio +from proto.marshal.rules import wrappers +from proto.marshal.rules.dates import DurationRule, TimestampRule +import pytest +from requests import PreparedRequest, Request, Response +from requests.sessions import Session + from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( ClientConnectorServicesServiceAsyncClient, -) -from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( ClientConnectorServicesServiceClient, -) -from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( pagers, -) -from google.cloud.beyondcorp_clientconnectorservices_v1.services.client_connector_services_service import ( transports, ) from google.cloud.beyondcorp_clientconnectorservices_v1.types import ( client_connector_services_service, ) -from google.cloud.location import locations_pb2 -from google.iam.v1 import iam_policy_pb2 # type: ignore -from google.iam.v1 import options_pb2 # type: ignore -from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 -from google.oauth2 import service_account -from google.protobuf import field_mask_pb2 # type: ignore -from google.protobuf import timestamp_pb2 # type: ignore -import google.auth def client_cert_source_callback():