
    2	                         d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ dd	l
mZ e	j                   G d
 de	j                               Zy)z+Command for spanner databases ddl describe.    )absolute_import)division)unicode_literalsN)	databases)base)flags)resource_argsc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)Describez.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                     t        j                  | d       | j                  j                  d       | j                  j	                  d       t        j                  d      j                  |        y)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ArgszDescribe.Args-   s^     ((1OP
''-
!!";<	!!J
 k&    c                 r    t        j                  |j                  j                  j	                         |      S )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   RunzDescribe.Run:   s*     **4==+A+A+G+G+I4PPr   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   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>r0      sL    2 &  '  4 ( 4 < #Qt #Q #Qr   