
    
                        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	  \	R                  \	R                  " \	R                  R                  \	R                  R                  5       " S S	\	R                  5      5       5       rg
)z#Command for listing health sources.    )absolute_import)division)unicode_literals)base_classes)lister)basec                   x    \ rS rSrSrSr\S 5       rS rS r	\
S 5       r\
S 5       r\
S	 5       r\
S
 5       rSrg)List   zList health sources.Nc                 f    [         R                  " U 5        U R                  R                  S5        g )Na  
                                  table(
                                      name:label=NAME,
                                      region.basename():label=REGION,
                                      healthAggregationPolicy.basename():label=HEALTH_AGGREGATION_POLICY,
                                      sourceType:label=SOURCE_TYPE,
                                      sources.basename():label=SOURCES
                                  )
                                  )r   AddRegionsArgdisplay_info	AddFormat)parsers    *lib/surface/compute/health_sources/list.pyArgs	List.Args!   s)    
 
!! #& '    c                     g)z4Override the default collection from the base class.N selfs    r   
CollectionList.Collection.   s    r   c                 l   [         R                  " U R                  5       5      nUR                  nUR                  U l        [
        R                  " XR                  5      n[
        R                  " UUR                  R                  UR                  R                  S9n[
        R                  " XE5      $ )N)regional_serviceaggregation_service)r   ComputeApiHolderReleaseTrackclientmessagesr   ParseMultiScopeFlags	resourcesMultiScopeListerapitools_clientregionHealthSourcesInvoke)r   argsholderr    request_datalist_implementations         r   RunList.Run2   s    **4+<+<+>?F]]FOODM..t5E5EFL 11//CC"22FF ==;;r   c                 .    U R                   R                  $ )Ncomputer&   r   s    r   serviceList.serviceA   s    <<+++r   c                     g)Nr&   r   r   s    r   resource_typeList.resource_typeE   s     r   c                 .    U R                   R                  $ )z,The service used to list regional resources.r/   r   s    r   r   List.regional_serviceI        <<+++r   c                 .    U R                   R                  $ )z5The service used to get aggregated list of resources.r/   r   s    r   r   List.aggregation_serviceN   r8   r   )r!   )__name__
__module____qualname____firstlineno____doc__r!   staticmethodr   r   r,   propertyr1   r4   r   r   __static_attributes__r   r   r   r
   r
      sx     (
' 
'< , , ! ! , , , ,r   r
   N)r?   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   DefaultUniverseOnlyReleaseTracksr   ALPHABETAListCommandr
   r   r   r   <module>rK      sq    * &  ' 7 1 ( D%%++T->->-C-CD5,4 5, E 5,r   