
    ,                     d   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 r\R                  " \R                  R                  5       " S	 S
\R                  5      5       r\R                  " \R                  R"                  \R                  R$                  5       " S S\5      5       rg)z8Lists customizable flags for Google Cloud SQL instances.    )absolute_import)division)unicode_literals)api_util)base)flagsc                 :    U R                   R                  S5        g)z(Adds flags common to all release tracks.z
    table(
        name,
        type,
        appliesTo.list():label=DATABASE_VERSION,
        allowedStringValues.list():label=ALLOWED_VALUES
      )
    N)display_info	AddFormatparsers    lib/surface/sql/flags/list.py_AddCommonFlagsr      s     ! 	    c                   .    \ rS rSrSr\S 5       rS rSrg)List&   7List customizable flags for Google Cloud SQL instances.c                 F    [        U 5        [        R                  " U 5        g)ai  Args is called by calliope to gather arguments for this command.

Please add arguments in alphabetical order except for no- or a clear-
pair for that argument which can follow the argument itself.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
Nr   r   AddDatabaseVersionr   s    r   Args	List.Args*   s     F	V$r   c                    [         R                  " [         R                  5      nUR                  nUR                  nUR
                  R                  UR                  UR                  S95      n[        UR                  5      $ )zList customizable flags for Google Cloud SQL instances.

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

Returns:
  A dict object that has the list of flag resources if the command ran
  successfully.
)databaseVersion)r   	SqlClientAPI_VERSION_DEFAULT
sql_clientsql_messagesr   r   SqlFlagsListRequestdatabase_versioniteritems)selfargsclientr   r   results         r   RunList.Run9   sm      < <=F""J&&L""((9N9N(OQFr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r(   __static_attributes__r*   r   r   r   r   &   s    ?% %r   r   c                   (    \ rS rSrSr\S 5       rSrg)ListAlphaBetaN   r   c                 D    [        U 5        [        R                  " U SS9  g)aa  Args is called by calliope to gather arguments for this command.

Please add arguments in alphabetical order except for no- or a clear-
pair for that argument which can follow the argument itself.

Args:
  parser: An argparse parser that you can use to add arguments that go on
    the command line after this command. Positional arguments are allowed.
F)restrict_choicesNr   r   s    r   r   ListAlphaBeta.ArgsR   s     F	Ve<r   r*   N)r+   r,   r-   r.   r/   r0   r   r1   r*   r   r   r3   r3   N   s    ?= =r   r3   N)r/   
__future__r   r   r   googlecloudsdk.api_lib.sqlr   googlecloudsdk.callioper   googlecloudsdk.command_lib.sqlr   r   ReleaseTracksReleaseTrackGAListCommandr   ALPHABETAr3   r*   r   r   <module>rB      s    ? &  ' / ( 0		 D%%(()$4 $ *$N D%%++T->->-C-CD=D = E=r   