
    @
                         S r SSK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	5      r\R                   " S
 S\R                  5      5       rg)zFImplementation of describe command to get the Anywhere Cache Instance.    N)api_factory)base)flags)storage_url)resource_util%AnywhereCacheDisplayTitlesAndDefaults)admission_policyanywhere_cache_idbucketcreate_timeidkindpending_updatestatettlupdate_timezonec                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Describe-   z7Returns details of Anywhere Cache instance of a bucket.zF

      Desribes a single Anywhere Cache instance if it exists.
      z

      The following command describes the anywhere cache instance of bucket
      ``my-bucket'' having anywhere_cache_id ``my-cache-id'':

        $ {command} my-bucket/my-cache-id
      )DESCRIPTIONEXAMPLESc                 Z    UR                  S[        SS9  [        R                  " U5        g )Nr   zIdentifier for a Anywhere Cache instance. It is a combination of bucket_name/anywhere_cache_id, For example : test-bucket/my-cache-id.)typehelp)add_argumentstrr   add_raw_display_flag)clsparsers     7lib/surface/storage/buckets/anywhere_caches/describe.pyArgsDescribe.Args?   s0    
(	   
v&    c                    UR                   R                  S5      u  p#n[        R                  " [        R
                  R                  5      R                  X$5      n[        R                  " U[        UR                  5      $ )N/)r   
rpartitionr   get_apir   ProviderPrefixGCSget_anywhere_cacher   get_display_dict_for_resourcer   raw)selfargsbucket_name_r
   results         r!   RunDescribe.RunM   sk    (,(:(:3(?%K%  ""&&8  66- r$    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr"   r3   __static_attributes__r5   r$   r!   r   r   -   s/    ?

- ' 'r$   r   )r:   collectionsgooglecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   r   ,googlecloudsdk.command_lib.storage.resourcesr   
namedtupler   DefaultUniverseOnlyDescribeCommandr   r5   r$   r!   <module>rF      s_    M  6 ( 4 : F )4(>(>+) %$ *t## * *r$   