
    	                     J   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  \R                  " \R                  R                  \R                  R                   \R                  R"                  5      \R$                   " S	 S
\R&                  5      5       5       rg)z-`gcloud api-gateway operations wait` command.    )absolute_import)division)unicode_literals)
operations)base)resource_args)logc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Wait   z3Wait for a Cloud API Gateway operation to complete.z{description}a=            To wait for a Cloud API Gateway operation named ``NAME'' in the ``us-central1''
          region, run:

            $ {command} NAME --location=us-central1

          To wait for a Cloud API Gateway operation with a resource name of ``RESOURCE'',
          run:

            $ {command} RESOURCE

          )DESCRIPTIONEXAMPLESc                 2    [         R                  " U S5        g )Npoll)r   AddOperationResourceArgs)parsers    *lib/surface/api_gateway/operations/wait.pyArgs	Wait.Args4   s    **66:    c                 `   [         R                  " 5       nUR                  R                  R	                  5       nUR                  U5      nUR                  (       a  SnOUR                  U5        Sn[        R                  R                  SR                  UUR                  5       5      5        g )Nz Operation has already completed.z!Operation completed successfully.zZ{} Use the following command for more details:

gcloud api-gateway operations describe {}
)r   OperationsClientCONCEPTS	operationParseGetdoneWaitForOperationr	   statusPrintformatRelativeName)selfargsclientoperation_refr   
msg_prefixs         r   RunWait.Run8   s    ((*FMM++113M 

=)I~~5j m,6jJJ CCI6#&335D78r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r(   __static_attributes__r*   r   r   r   r      s1     < 	-$ ; ;8r   r   N)r/   
__future__r   r   r   "googlecloudsdk.api_lib.api_gatewayr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.api_gatewayr   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyCommandr   r*   r   r   <module>r?      s     4 &  ' 9 ( @ # D%%++T->->-C-C%%((*,84<< ,8 *,8r   