Skip to content

Commit 993f5cb

Browse files
chore: updating docstrings (#204)
* chore: updating docstrings
1 parent 4eadc60 commit 993f5cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

google/cloud/sql/connector/refresh_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

tests/unit/test_refresh_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def test_get_ephemeral(connect_string: str) -> None:
5858
@pytest.mark.asyncio
5959
async 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

0 commit comments

Comments
 (0)