
    V                     t    S r SSKJr  SSKJr  SSKJr  \R                   " S S\R                  5      5       r	g)z@Command to update a universe descriptor data entry in the cache.    )base)log)universe_descriptorc                   .    \ rS rSrSr\S 5       rS rSrg)Update   z-Update universe descriptor data in the cache.c                 $    U R                  SSS9  g)zAdds args for this command.universe_domainzBUniverse domain of the universe descriptor to update in the cache.)helpN)add_argument)parsers    1lib/surface/config/universe_descriptors/update.pyArgsUpdate.Args   s     P      c                 j   A [         R                  " 5       n UR                  UR                  SS9  UR	                  UR                  5        [
        R                  R                  SUR                  -  5        g! [         R                   a$    [
        R                  " SUR                  5         gf = f)zRun the update command.F)fetch_if_not_cachedz6Universe descriptor with universe domain [%s] updated.z<Universe descriptor with universe domain [%s] is not cached.N)
r   UniverseDescriptorGetr
   "UpdateDescriptorFromUniverseDomainr   statusPrintUniverseDescriptorErrorerror)selfargsuniverse_descriptor_objs      r   Run
Update.Run$   s    1DDF!!


E "  @@


 
jj
B  ! 66 	ii
H


s   A: :5B21B2 N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r    r   r   r   r      s    5 r   r   N)
r%   googlecloudsdk.callioper   googlecloudsdk.corer   'googlecloudsdk.core.universe_descriptorr   UniverseCompatibleCommandr   r    r   r   <module>r-      s9    G ( # G !T\\ ! !r   