
                             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
  SSKJr  \R                   " S	 S
\R                  5      5       rg)zJImplementation of list command to list Anywhere Cache instances of bucket.    )api_factory)base)errors_util)flags)storage_url)resource_util)describec                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   z.List all Anywhere Cache instances of a bucket.z7

      List all cache instances of this bucket.
      z

      The following command lists all anywhere cache instances of bucket
      ``gs://my-bucket'':

        $ {command} gs://my-bucket
      )DESCRIPTIONEXAMPLESc                 Z    UR                  S[        SS9  [        R                  " U5        g )NurlzTSpecifies the URL of the bucket for which anywhere cache instances should be listed.)typehelp)add_argumentstrr   add_raw_display_flag)clsparsers     3lib/surface/storage/buckets/anywhere_caches/list.pyArgs	List.Args,   s0    
!	   
v&    c              #   v  #    [         R                  " UR                  5      n[        R                  " UR
                  U5        [        R                  " UR                  5      R                  UR                  5      nU H5  n[        R                  " U[        R                  UR                  5      v   M7     g 7f)N)r   storage_url_from_stringr   r   raise_error_if_not_gcs_bucketcommand_pathr   get_apischemelist_anywhere_cachesbucket_namer   get_display_dict_for_resourcer	   %AnywhereCacheDisplayTitlesAndDefaultsraw)selfargsr   cache_resourcescache_resources        r   RunList.Run9   s     

-
-dhh
7C--d.?.?E!))#**5JJO *77


8
8
((  *s   B7B9 N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r+   __static_attributes__r-   r   r   r   r      s/    6

- 
' 
'r   r   N)r2   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   r   r   ,googlecloudsdk.command_lib.storage.resourcesr   'surface.storage.buckets.anywhere_cachesr	   DefaultUniverseOnlyListCommandr   r-   r   r   <module>r=      sG    Q 6 ( : 4 : F < *4 * *r   