
    	                        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	  SS	KJr  SS
KJr  \R"                  \R$                  " \R&                  R(                  5       " S S\R*                  5      5       5       rg)z(The gcloud run presets describe command.    )absolute_import)division)unicode_literalsN)base)
exceptions)presets_printer)yaml)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 preset. Currently only available in alpha.z
          {description}
      zS
          To describe a preset, run:

            $ {command} <preset-name>
      )DESCRIPTIONEXAMPLESc                     U R                  SSS9  [        R                  " [        R                  [        R
                  5        U R                  R                  [        R                  5        g )Nnamez#The name of the preset to describe.)help)add_argumentr
   RegisterFormatterr   PRESETS_PRINTER_FORMATPresetsPrinterdisplay_info	AddFormat)parsers    #lib/surface/run/presets/describe.pyArgsDescribe.Args/   sY    
2  4 &&..&& !!/"H"HI    c                 f    [         R                  " SS5      n[        R                  " U5      nUR                  S/ 5       H&  nUR                  S5      UR                  :X  d  M$  Us  $    [        R                  " SUR                   S35      e! [         a    [
        R                  " S5      ef = f)z>Returns the preset metadata details for the given preset name.zgooglecloudsdk.command_lib.runzpresets.yamlzPresets file not found.presetsr   zPreset 'z' not found.)pkgutilget_datar	   loadIOErrorr   Errorgetr   run_exceptionsArgumentError)selfargspresets_yaml_contentspresets_datapresets        r   RunDescribe.Run:   s    8%..
*N<YY45l
 ""9b1	F	tyy	( 2 
&
&$))L'I
JJ  86778s   -B !B0 N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r-   __static_attributes__r/   r   r   r   r      s5     H

		- J JKr   r   )r4   
__future__r   r   r   r    googlecloudsdk.callioper   googlecloudsdk.command_lib.runr   r&   'googlecloudsdk.command_lib.run.printersr   googlecloudsdk.corer	   googlecloudsdk.core.resourcer
   UniverseCompatibleReleaseTracksReleaseTrackALPHADescribeCommandr   r/   r   r   <module>rC      sq    / &  '  ( G C * $ 9 D%%++,(Kt## (K - (Kr   