
    
                     ,   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"                  5      \R$                   " S	 S
\R&                  5      5       5       rg)z.Command for describing Cloud Run Integrations.    )types_utils)base)deprecation_util)flags)integration_printer)run_apps_operations)resource_printerc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Describe   z!Describe a Cloud Run Integration.z"          {description}
          z_          To describe an integration

              $ {command} my-redis-integration

         )DESCRIPTIONEXAMPLESc                     [         R                  " U5        [        R                  " [        R
                  [        R                  5        UR                  R                  [        R
                  5        g)zPSet up arguments for this command.

Args:
  parser: An argparse.ArgumentParser.
N)	r   AddNamePositionalArgr	   RegisterFormatterr   INTEGRATION_PRINTER_FORMATIntegrationPrinterdisplay_info	AddFormat)clsparsers     (lib/surface/run/integrations/describe.pyArgsDescribe.Args/   sQ     
v&&&66..0 !!668    c           
         [         R                  " 5         [         R                  " 5         U R                  5       nUR                  n[
        R                  " X5       nUR                  5         UR                  U5      nUR                  U5      nUR                  UR                  5      n[        R                  " U5      n[        R                  " UUR                   UUUUS9sSSS5        $ ! , (       d  f       g= f)zDescribe an integration type.)nameregionmetadataresourcestatuslatest_deploymentN)r   CheckIfEndOfSaleAppliesDeprecationNoticeReleaseTrackr   r   ConnectVerifyLocationGetIntegrationGenericGetLatestDeploymentGetIntegrationStatusidr   GetTypeMetadataByResourcefbRecordr   )	selfargsrelease_trackr   clientr    r"   resource_statusr   s	            r   RunDescribe.Run=   s    ,,.&&(%%'M99D		$	$T	9V--d3h 44X>33HKK@o66x@hYY - 
:	9	9s   BC--
C; N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r4   __static_attributes__r6   r   r   r   r      s1     *- 8 8r   r   N)r;   'googlecloudsdk.api_lib.run.integrationsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.run.integrationsr   r   r   r   6googlecloudsdk.command_lib.run.integrations.formattersr-   googlecloudsdk.core.resourcer	   ReleaseTracksr%   ALPHABETADefaultUniverseOnlyDescribeCommandr   r6   r   r   <module>rI      sz    5 @ ( H = K K M 9 D%%++T->->-C-CD3t## 3  E3r   