File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
google/cloud/sql/connector Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ async def _get_metadata(
4040 authority of the Cloud SQL Instance.
4141
4242 :type credentials: google.oauth2.service_account.Credentials
43- :param service :
43+ :param credentials :
4444 A credentials object created from the google-auth Python library.
4545 Must have the SQL Admin API scopes. For more info check out
4646 https://google-auth.readthedocs.io/en/latest/.
@@ -49,8 +49,8 @@ async def _get_metadata(
4949 :param project:
5050 A string representing the name of the project.
5151
52- :type inst_name : str
53- :param project : A string representing the name of the instance.
52+ :type instance : str
53+ :param instance : A string representing the name of the instance.
5454
5555 :rtype: Dict[str: Union[Dict, str]]
5656 :returns: Returns a dictionary containing a dictionary of all IP
@@ -67,8 +67,8 @@ async def _get_metadata(
6767 ):
6868 raise TypeError (
6969 "Arguments must be as follows: "
70- + "service (googleapiclient.discovery.Resource ), "
71- + "proj_name (str) and inst_name (str)."
70+ + "credentials (google.oauth2.service_account.Credentials ), "
71+ + "project (str) and instance (str)."
7272 )
7373
7474 if not credentials .valid :
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async def test_get_ephemeral(connect_string: str) -> None:
5858@pytest .mark .asyncio
5959async def test_get_metadata (connect_string : str ) -> None :
6060 """
61- Test to check whether _get_ephemeral runs without problems given a valid
61+ Test to check whether _get_metadata runs without problems given a valid
6262 connection string.
6363 """
6464
You can’t perform that action at this time.
0 commit comments