
                         B   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S.rS	 r\R                  " \R                  R                  \R                  R                   \R                  R"                  5      \R$                   " S
 S\R&                  5      5       5       rg)z4Get the Cloud Deploy config for the provided region.    )config)
exceptions)base)resource_argsz{description}z     To get the config for project `test-project` in region `us-central1`:

       $ {command} --project=test-project --region=us-central1

  )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g)zRegister flags for this command.

Args:
  parser: An argparse.ArgumentParser-like object. It is mocked out in order to
    capture some information, but behaves like an ArgumentParser.
N)r   AddLocationResourceArgparsers     lib/surface/deploy/get_config.py_CommonArgsr   &   s     &&v.    c                   p    \ rS rSrSr\r\S 5       r\	R                  " \R                  5      S 5       rSrg)	GetConfig0   zCGet the Cloud Deploy config for the provided region and project.
  c                     [        U 5        g )N)r   r   s    r   ArgsGetConfig.Args:   s
    r   c                     UR                   R                  R                  5       nUR                  5       S   nUR                  5       S   n[        R
                  " 5       nUR                  X45      nU$ )N
projectsIdlocationsId)CONCEPTSregionParseAsDictr   ConfigClientr   )selfargslocation_refprojectr   config_clientconfs          r   RunGetConfig.Run>   se     ==''--/L!!#L1G  "=1F'')M""73DKr    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptiondeploy_exceptionsHTTP_ERROR_FORMATr$   __static_attributes__r&   r   r   r   r   0   sH    
 !-  44))r   r   N)r+   "googlecloudsdk.api_lib.clouddeployr   googlecloudsdk.api_lib.utilr   r/   googlecloudsdk.callioper   !googlecloudsdk.command_lib.deployr1   r   r,   r   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyDescribeCommandr   r&   r   r   <module>r?      s    ; 6 F ( M ;
 			
/ T..33T5F5F5I5I $$  r   