
                         N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      rg)	z'Format and filter resource info module.    )absolute_import)division)unicode_literals)resource_transformc                   6    \ rS rSrSr       SS jrS rSrg)ResourceInfo   a  Format and filter resource info.

(DEPRECATED) attributes are used by core.resource.resource_registry which
is being phased out.

Attributes:
  bypass_cache: True if cache_command output should be used instead of cache.
  cache_command: The gcloud command string that updates the URI cache.
  list_command: The gcloud command string that lists URIs one per line.
  list_format: The default list format string for resource_printer.Print().
  defaults: The resource projection transform defaults.
  transforms: Memoized combined transform symbols dict set by GetTransforms().
  async_collection: (DEPRECATED) The operations collection when --async is
    set.
  collection: (DEPRECATED) Memoized collection name set by Get().

Special format values:
  None: Ignore this format.
  'default': calliope.base.DEFAULT_FORMAT.
  'error': Resource print using this format is an error.
  'none': Do not print anything.
Nc                 t    Xl         X l        X0l        X@l        XPl        X`l        S U l        S U l        Xpl        g )N)	bypass_cachecache_commandlist_commandlist_formatdefaults
transforms_transforms
collectionasync_collection)selfr   r   r   r   r   r   r   s           1lib/googlecloudsdk/core/resource/resource_info.py__init__ResourceInfo.__init__1   s=     %&$"M OD DO,    c                 *   U R                   (       a  U R                   $ / nUR                  [        R                  " 5       5        U R                  (       a8  [        R                  " U R                  5      nU(       a  UR                  U5        U R
                  (       a  UR                  U R
                  5        [        U5      S:X  a  US   U l         U R                   $ 0 U l         U H  nU R                   R                  U5        M      U R                   $ )zReturns the combined transform symbols dict.

Returns:
  The builtin transforms combined with the collection specific transforms
  if any.
   r   )r   appendr   GetTransformsr   r   lenupdate)r   all_transformsr   s      r   r   ResourceInfo.GetTransformsE   s     N ,::<= %33DOODj	j) DOO, >a'*d 	 d&*
+ ' r   )	r   r   r   r   r   r   r   r   r   )FNNNNNN)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__ r   r   r   r      s(    0 "!  $-("r   r   N)	r%   
__future__r   r   r   googlecloudsdk.core.resourcer   objectr   r'   r   r   <module>r+      s$     . &  ' ;N6 Nr   