@@ -59,8 +59,7 @@ def __init__(
5959        driver : Optional [str ] =  None ,
6060        user_agent : Optional [str ] =  None ,
6161    ) ->  None :
62-         """ 
63-         Establish the client to be used for Cloud SQL Admin API requests. 
62+         """Establishes the client to be used for Cloud SQL Admin API requests. 
6463
6564        Args: 
6665            sqladmin_api_endpoint (str): Base URL to use when calling 
@@ -100,24 +99,22 @@ async def _get_metadata(
10099        region : str ,
101100        instance : str ,
102101    ) ->  dict [str , Any ]:
103-         """Requests metadata from the Cloud SQL Instance 
104-         and returns a dictionary containing the IP addresses and certificate 
105-         authority of the Cloud SQL Instance. 
106- 
107-         :type project: str 
108-         :param project: 
109-             A string representing the name of the project. 
102+         """Requests metadata from the Cloud SQL Instance and returns a dictionary 
103+         containing the IP addresses and certificate authority of the Cloud SQL 
104+         Instance. 
110105
111-         :type region: str 
112-         :param region : A string representing the name of the region. 
106+         Args: 
107+             project (str): A string representing the name of the project. 
108+             region (str): A string representing the name of the region. 
109+             instance (str): A string representing the name of the instance. 
113110
114-         :type instance: str 
115-         :param instance: A string representing the name of the instance. 
111+         Returns: 
112+             A dictionary containing a dictionary of all IP addresses 
113+             and their type and a string representing the certificate authority. 
116114
117-         :rtype: dict[str: Union[dict, str]] 
118-         :returns: Returns a dictionary containing a dictionary of all IP 
119-             addresses and their type and a string representing the 
120-             certificate authority. 
115+         Raises: 
116+             ValueError: Provided region does not match the region of the 
117+                 Cloud SQL instance. 
121118        """ 
122119
123120        headers  =  {
@@ -189,23 +186,17 @@ async def _get_ephemeral(
189186    ) ->  tuple [str , datetime .datetime ]:
190187        """Asynchronously requests an ephemeral certificate from the Cloud SQL Instance. 
191188
192-         :type project: str 
193-         :param project : A string representing the name of the project. 
194- 
195-         :type instance: str 
196-         :param instance: A string representing the name of the instance. 
197- 
198-         :type pub_key: 
199-         :param str: A string representing PEM-encoded RSA public key. 
200- 
201-         :type enable_iam_auth: bool 
202-         :param enable_iam_auth 
203-             Enables automatic IAM database authentication for Postgres or MySQL 
204-             instances. 
189+         Args: 
190+             project (str):  A string representing the name of the project. 
191+             instance (str):  string representing the name of the instance. 
192+             pub_key (str): A string representing PEM-encoded RSA public key. 
193+             enable_iam_auth (bool): Enables automatic IAM database 
194+                  authentication for Postgres or MySQL instances. 
205195
206-         :rtype: str 
207-         :returns: An ephemeral certificate from the Cloud SQL instance that allows 
208-             authorized connections to the instance. 
196+         Returns: 
197+             A tuple containing an ephemeral certificate from 
198+             the Cloud SQL instance as well as a datetime object 
199+             representing the expiration time of the certificate. 
209200        """ 
210201        headers  =  {
211202            "Authorization" : f"Bearer { self ._credentials .token }  " ,
0 commit comments