
    s                         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                   " S	 S
\R                  5      5       rg)zThe gcloud run regions group.    )absolute_import)division)unicode_literals)base)
exceptions)flags)	platformsc                   4    \ rS rSrSr\S 5       rS rS rSr	g)Regions   z1View available Cloud Run (fully managed) regions.c                 .    [         R                  " U SS9  g)z-Adds --platform and the various related args.T)managed_onlyN)r   AddPlatformArg)parsers    #lib/surface/run/regions/__init__.pyArgsRegions.Args   s     
d3    c                     [         R                  " X R                  5       [         R                  R                  5        U R                  5         U$ )z@Runs before command.Run and validates platform with passed args.)r   GetAndValidatePlatformReleaseTrackProductRUN_CheckPlatform)selfcontextargss      r   FilterRegions.Filter$   s;     
  !5==#4#46Nr   c                     [         R                  " 5       nUb+  U[         R                  :w  a  [        R                  " S5      eg g )NzOThis command group only supports listing regions for Cloud Run (fully managed).)r	   GetPlatformPLATFORM_MANAGEDr   PlatformError)r   platforms     r   r   Regions._CheckPlatform-   sD    $$&HI,F,F F$$'( ( !Gr    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r   r   __static_attributes__r&   r   r   r   r      s!    94 4(r   r   N)r+   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.runr   r   r	   UniverseCompatibleGroupr   r&   r   r   <module>r3      sD    $ &  ' ( 5 0 4 (djj ( (r   