
    s                     >   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ej                   ej                  ej                  j                  ej                  j                  ej                  j                         G d d	ej                                       Zy
)zGroup definition for logs.    )absolute_import)division)unicode_literals)base)
exceptions)	platformsc                       e Zd ZdZd Zd Zy)Logsz!Read logs for Cloud Run services.c                 x    t        j                         t         j                  k7  rt        j                  d      y )Nz<This command group only supports reading logs for Cloud Run.)r   GetPlatformPLATFORM_MANAGEDr   PlatformError)selfs    )lib/surface/run/services/logs/__init__.py_CheckPlatformzLogs._CheckPlatform    s4    )"<"<<$$
H  =    c                 &    | j                          |S )N)r   )r   contextargss      r   FilterzLogs.Filter&   s    Nr   N)__name__
__module____qualname____doc__r   r    r   r   r
   r
      s    
 *r   r
   N)r   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.runr   r   UniverseCompatibleReleaseTracksReleaseTrackALPHABETAGAGroupr
   r   r   r   <module>r&      s    ! &  ' ( 5 4 T..33T5F5F5I5I4::  r   