
    v
                     8   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	KJr  \	R                  " \	R                  R                   \	R                  R"                  \	R                  R$                  5       " S
 S\	R&                  5      5       rg)z1Retrieves information about a Cloud SQL database.    )absolute_import)division)unicode_literals)api_util)validate)base)flags)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)Get   zDisplays configuration and metadata about a Cloud SQL database.

Information such as database name, charset, and collation will be displayed.
c                 \    [         R                  " U 5        [         R                  " U 5        g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use it to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
N)r	   AddDatabaseNameAddInstance)parsers    %lib/surface/sql/databases/describe.pyArgsGet.Args$   s      
&!	f    c                    [         R                  " [         R                  5      nUR                  nUR                  n[
        R                  " UR                  5        UR                  R                  UR                  S[        R                  R                  R                  R                  0SS9nUR                  UR                  UR                  UR                   S9nUR"                  R%                  U5      $ )aQ  Displays configuration and metadata about a Cloud SQL database.

Information such as database name, charset, and collation will be displayed.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  A dict object representing the database resource if fetching the database
  was successful.
projectzsql.instances)params
collection)r   instancedatabase)r   	SqlClientAPI_VERSION_DEFAULT
sql_clientsql_messagesr   ValidateInstanceNamer   resource_parserParser
   VALUEScorer   	GetOrFailSqlDatabasesGetRequestr   	databasesr   )selfargsclientr   r   instance_refdatabase_requests          r   RunGet.Run0   s      < <=F""J&&L!!$--0))//:,,1199CCD" 0 $L
 $::$$&& ;   ##$455r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r-   __static_attributes__r/   r   r   r   r      s     
 	 	6r   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.sqlr   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.sqlr	   googlecloudsdk.corer
   ReleaseTracksReleaseTrackGABETAALPHADescribeCommandr   r/   r   r   <module>rB      sy    8 &  ' / / ( 0 * D%%(($*;*;*@*@%%++-.6$

 .6-.6r   