
    )                         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                   " S S	\
R                  5      5       rS
S0\l        g)z,'logging resource-descriptors list' command.    )absolute_import)division)unicode_literals)
list_pager)util)basec                   .    \ rS rSrSr\S 5       rS rSrg)List   zhList all available resource descriptors.

## EXAMPLES

To list all resource descriptors:

  $ {command}
c                     [         R                  R                  U 5        [         R                  R                  U 5        U R                  R                  S5        g )Nz-table(type, description, labels[].key.list()))r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGdisplay_info	AddFormat)parsers    0lib/surface/logging/resource_descriptors/list.pyArgs	List.Args'   s?    ((0MM""6*
!!79    c           	          [         R                  " [        R                  " 5       R                  [        R
                  " 5       R                  5       SUR                  UR                  SS9$ )zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  The list of log entries.
resourceDescriptorspageSize)fieldlimit
batch_sizebatch_size_attribute)r   YieldFromListr   	GetClientmonitoredResourceDescriptorsGetMessages.LoggingMonitoredResourceDescriptorsListRequestr   )selfargss     r   RunList.Run.   sP     ##55IIK#4::::J	@ @r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r%   __static_attributes__r'   r   r   r
   r
      s!     9 9@r   r
   DESCRIPTIONz
        List all available resource descriptors that are used by Cloud
        Logging. Each log entry must be associated with a valid resource
        descriptor.
    N)r,   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   UniverseCompatibleListCommandr
   detailed_helpr'   r   r   <module>r7      s[     3 &  ' ' / ( @4 @ @F   r   