diff --git a/google/cloud/datastream_v1alpha1/services/datastream/client.py b/google/cloud/datastream_v1alpha1/services/datastream/client.py index e2c3c32..870fecf 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/client.py @@ -161,49 +161,49 @@ def transport(self) -> DatastreamTransport: @staticmethod def connection_profile_path( - project: str, location: str, connectionProfile: str, + project: str, location: str, connection_profile: str, ) -> str: """Returns a fully-qualified connection_profile string.""" - return "projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}".format( - project=project, location=location, connectionProfile=connectionProfile, + return "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}".format( + project=project, location=location, connection_profile=connection_profile, ) @staticmethod def parse_connection_profile_path(path: str) -> Dict[str, str]: """Parses a connection_profile path into its component segments.""" m = re.match( - r"^projects/(?P.+?)/locations/(?P.+?)/connectionProfiles/(?P.+?)$", + r"^projects/(?P.+?)/locations/(?P.+?)/connectionProfiles/(?P.+?)$", path, ) return m.groupdict() if m else {} @staticmethod def private_connection_path( - project: str, location: str, privateConnection: str, + project: str, location: str, private_connection: str, ) -> str: """Returns a fully-qualified private_connection string.""" - return "projects/{project}/locations/{location}/privateConnections/{privateConnection}".format( - project=project, location=location, privateConnection=privateConnection, + return "projects/{project}/locations/{location}/privateConnections/{private_connection}".format( + project=project, location=location, private_connection=private_connection, ) @staticmethod def parse_private_connection_path(path: str) -> Dict[str, str]: """Parses a private_connection path into its component segments.""" m = re.match( - r"^projects/(?P.+?)/locations/(?P.+?)/privateConnections/(?P.+?)$", + r"^projects/(?P.+?)/locations/(?P.+?)/privateConnections/(?P.+?)$", path, ) return m.groupdict() if m else {} @staticmethod def route_path( - project: str, location: str, privateConnection: str, route: str, + project: str, location: str, private_connection: str, route: str, ) -> str: """Returns a fully-qualified route string.""" - return "projects/{project}/locations/{location}/privateConnections/{privateConnection}/routes/{route}".format( + return "projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}".format( project=project, location=location, - privateConnection=privateConnection, + private_connection=private_connection, route=route, ) @@ -211,7 +211,7 @@ def route_path( def parse_route_path(path: str) -> Dict[str, str]: """Parses a route path into its component segments.""" m = re.match( - r"^projects/(?P.+?)/locations/(?P.+?)/privateConnections/(?P.+?)/routes/(?P.+?)$", + r"^projects/(?P.+?)/locations/(?P.+?)/privateConnections/(?P.+?)/routes/(?P.+?)$", path, ) return m.groupdict() if m else {} diff --git a/tests/unit/gapic/datastream_v1alpha1/test_datastream.py b/tests/unit/gapic/datastream_v1alpha1/test_datastream.py index 60855bc..ccbd965 100644 --- a/tests/unit/gapic/datastream_v1alpha1/test_datastream.py +++ b/tests/unit/gapic/datastream_v1alpha1/test_datastream.py @@ -6046,12 +6046,12 @@ def test_datastream_grpc_lro_async_client(): def test_connection_profile_path(): project = "squid" location = "clam" - connectionProfile = "whelk" - expected = "projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}".format( - project=project, location=location, connectionProfile=connectionProfile, + connection_profile = "whelk" + expected = "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}".format( + project=project, location=location, connection_profile=connection_profile, ) actual = DatastreamClient.connection_profile_path( - project, location, connectionProfile + project, location, connection_profile ) assert expected == actual @@ -6060,7 +6060,7 @@ def test_parse_connection_profile_path(): expected = { "project": "octopus", "location": "oyster", - "connectionProfile": "nudibranch", + "connection_profile": "nudibranch", } path = DatastreamClient.connection_profile_path(**expected) @@ -6072,12 +6072,12 @@ def test_parse_connection_profile_path(): def test_private_connection_path(): project = "cuttlefish" location = "mussel" - privateConnection = "winkle" - expected = "projects/{project}/locations/{location}/privateConnections/{privateConnection}".format( - project=project, location=location, privateConnection=privateConnection, + private_connection = "winkle" + expected = "projects/{project}/locations/{location}/privateConnections/{private_connection}".format( + project=project, location=location, private_connection=private_connection, ) actual = DatastreamClient.private_connection_path( - project, location, privateConnection + project, location, private_connection ) assert expected == actual @@ -6086,7 +6086,7 @@ def test_parse_private_connection_path(): expected = { "project": "nautilus", "location": "scallop", - "privateConnection": "abalone", + "private_connection": "abalone", } path = DatastreamClient.private_connection_path(**expected) @@ -6098,15 +6098,15 @@ def test_parse_private_connection_path(): def test_route_path(): project = "squid" location = "clam" - privateConnection = "whelk" + private_connection = "whelk" route = "octopus" - expected = "projects/{project}/locations/{location}/privateConnections/{privateConnection}/routes/{route}".format( + expected = "projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}".format( project=project, location=location, - privateConnection=privateConnection, + private_connection=private_connection, route=route, ) - actual = DatastreamClient.route_path(project, location, privateConnection, route) + actual = DatastreamClient.route_path(project, location, private_connection, route) assert expected == actual @@ -6114,7 +6114,7 @@ def test_parse_route_path(): expected = { "project": "oyster", "location": "nudibranch", - "privateConnection": "cuttlefish", + "private_connection": "cuttlefish", "route": "mussel", } path = DatastreamClient.route_path(**expected)