diff --git a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/__init__.py b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/__init__.py index 26d2fbbf7bfd..d3ef506eeb0f 100644 --- a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/__init__.py +++ b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/__init__.py @@ -28,7 +28,6 @@ _transport_registry["grpc"] = AccessApprovalGrpcTransport _transport_registry["grpc_asyncio"] = AccessApprovalGrpcAsyncIOTransport - __all__ = ( "AccessApprovalTransport", "AccessApprovalGrpcTransport", diff --git a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc.py b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc.py index 0123743345a1..cda3af4a12bc 100644 --- a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc.py +++ b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc.py @@ -181,6 +181,10 @@ def __init__( ssl_credentials=ssl_credentials, scopes=scopes or self.AUTH_SCOPES, quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) self._ssl_channel_credentials = ssl_credentials else: @@ -199,6 +203,10 @@ def __init__( ssl_credentials=ssl_channel_credentials, scopes=scopes or self.AUTH_SCOPES, quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) self._stubs = {} # type: Dict[str, Callable] @@ -225,7 +233,7 @@ def create_channel( ) -> grpc.Channel: """Create and return a gRPC channel object. Args: - address (Optionsl[str]): The host for the channel to use. + address (Optional[str]): The host for the channel to use. credentials (Optional[~.Credentials]): The authorization credentials to attach to requests. These credentials identify this application to the service. If diff --git a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc_asyncio.py b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc_asyncio.py index e7b04122323d..ac82c00a2481 100644 --- a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc_asyncio.py +++ b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/services/access_approval/transports/grpc_asyncio.py @@ -226,6 +226,10 @@ def __init__( ssl_credentials=ssl_credentials, scopes=scopes or self.AUTH_SCOPES, quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) self._ssl_channel_credentials = ssl_credentials else: @@ -244,6 +248,10 @@ def __init__( ssl_credentials=ssl_channel_credentials, scopes=scopes or self.AUTH_SCOPES, quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) # Run the base constructor. diff --git a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/types/__init__.py b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/types/__init__.py index a9d0614ca7ab..acbf24843020 100644 --- a/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/types/__init__.py +++ b/packages/google-cloud-access-approval/google/cloud/accessapproval_v1/types/__init__.py @@ -32,9 +32,9 @@ GetAccessApprovalSettingsMessage, UpdateAccessApprovalSettingsMessage, DeleteAccessApprovalSettingsMessage, + EnrollmentLevel, ) - __all__ = ( "AccessLocations", "AccessReason", @@ -52,4 +52,5 @@ "GetAccessApprovalSettingsMessage", "UpdateAccessApprovalSettingsMessage", "DeleteAccessApprovalSettingsMessage", + "EnrollmentLevel", ) diff --git a/packages/google-cloud-access-approval/synth.metadata b/packages/google-cloud-access-approval/synth.metadata index e1d701b4957e..a43de519c156 100644 --- a/packages/google-cloud-access-approval/synth.metadata +++ b/packages/google-cloud-access-approval/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-access-approval.git", - "sha": "bdf9e41f796e8da5db53d54c8bb2da4d7ee24acc" + "sha": "7c682116987ed328a58d788b10f93e0a0d09bf73" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3ac5ef0436d8dfeb2ca0091dc7fa8012da1c85af", - "internalRef": "342835449" + "sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907", + "internalRef": "347055288" } }, { diff --git a/packages/google-cloud-access-approval/tests/unit/gapic/accessapproval_v1/test_access_approval.py b/packages/google-cloud-access-approval/tests/unit/gapic/accessapproval_v1/test_access_approval.py index 895aa7522a97..8d0d0df7968f 100644 --- a/packages/google-cloud-access-approval/tests/unit/gapic/accessapproval_v1/test_access_approval.py +++ b/packages/google-cloud-access-approval/tests/unit/gapic/accessapproval_v1/test_access_approval.py @@ -2238,6 +2238,10 @@ def test_access_approval_transport_channel_mtls_with_client_cert_source( scopes=("https://www.googleapis.com/auth/cloud-platform",), ssl_credentials=mock_ssl_cred, quota_project_id=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) assert transport.grpc_channel == mock_grpc_channel assert transport._ssl_channel_credentials == mock_ssl_cred @@ -2279,6 +2283,10 @@ def test_access_approval_transport_channel_mtls_with_adc(transport_class): scopes=("https://www.googleapis.com/auth/cloud-platform",), ssl_credentials=mock_ssl_cred, quota_project_id=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], ) assert transport.grpc_channel == mock_grpc_channel