
    )                         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                   G d d	e
j                               Zd
die_        y)z,'logging resource-descriptors list' command.    )absolute_import)division)unicode_literals)
list_pager)util)basec                   &    e Zd ZdZed        Zd Zy)ListzpList all available resource descriptors.

  ## EXAMPLES

  To list all resource descriptors:

    $ {command}
  c                     t         j                  j                  |        t         j                  j                  |        | j                  j                  d       y )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Argsz	List.Args'   s?    ((0MM""6*
!!79    c                     t        j                  t        j                         j                  t        j
                         j                         d|j                  |j                  d      S )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   RunzList.Run.   sP     ##55IIK#4::::J	@ @r   N)__name__
__module____qualname____doc__staticmethodr   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>r2      s[     3 &  ' ' / ( @4 @ @F   r   