
    2	                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSK
Jr  SS	K
Jr  \	R                   " S
 S\	R                  5      5       rg)z+Command for spanner databases ddl describe.    )absolute_import)division)unicode_literalsN)	databases)base)flags)resource_argsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	Describe    z.Describe the DDL for a Cloud Spanner database.EXAMPLESz        To describe the DDL for a given Cloud Spanner database, run:

          $ {command} my-database-id --instance=my-instance-id
        c                     [         R                  " U S5        U R                  R                  S5        U R                  R	                  S5        [
        R                  " SS9R                  U 5        g)zSee base class.zof which the ddl to describeNzvalue(format("{0};
"))zzInclude debug string of proto bundle descriptors in the output. The output is information only and not meant to be parsed.)	help_text)r	   AddDatabaseResourceArgdisplay_infoAddCacheUpdater	AddFormatr   IncludeProtoDescriptorsAddToParser)parsers    -lib/surface/spanner/databases/ddl/describe.pyArgsDescribe.Args-   s^     ((1OP
''-
!!";<	!!J
 k&    c                 t    [         R                  " UR                  R                  R	                  5       U5      $ )zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Some value that we want to have printed later.
)r   GetDdlWithDescriptorsCONCEPTSdatabaseParse)selfargss     r   RunDescribe.Run:   s*     **4==+A+A+G+G+I4PPr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r"   __static_attributes__r$   r   r   r   r       s<    6 
//  - 
 

Qr   r   )r)   
__future__r   r   r   r*   googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   r	   DefaultUniverseOnlyListCommandr   r$   r   r   <module>r5      sL    2 &  '  4 ( 4 < #Qt #Q #Qr   