
                            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  SS	K	Jr  SS
KJr  Sr\R                   " \R"                  R$                  5       " S S\R&                  5      5       r\R                   " \R"                  R*                  \R"                  R,                  5       " S S\5      5       rg)z5`gcloud service-directory namespaces update` command.    )absolute_import)division)unicode_literals)
namespaces)base)flags)resource_args)util)log	namespacec                   <    \ rS rSrSrSS0r\S 5       rS rS r	Sr
g	)
Update   Updates a namespace.EXAMPLESz          To update a Service Directory namespace, run:

            $ {command} my-namespace --location=us-east1 --labels=a=b,c=d
          c                 h    [         R                  " U S5        [        R                  " U [        5        g )Nz
to update.)r	   AddNamespaceResourceArgr   AddLabelsFlag_RESOURCE_TYPE)parsers    2lib/surface/service_directory/namespaces/update.pyArgsUpdate.Args,   s"    ))&,?	/    c                 `   [         R                  " U R                  5       5      nUR                  R                  R                  5       n[        R                  " UR                  U R                  5       5      nUR                  X45      n[        R                  " UR                  [        5        U$ N)r   NamespacesClientGetReleaseTrackCONCEPTSr   Parser
   ParseLabelsArglabelsr   r   UpdatedResourcenamespacesIdr   )selfargsclientnamespace_refr"   results         r   Run
Update.Run1   s{    (()=)=)?@FMM++113M  d.B.B.DEF]]=1F22NCMr   c                 6    [         R                  R                  $ r   )r   ReleaseTrackGAr%   s    r   r   Update.GetReleaseTrack;   s    r    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   r   __static_attributes__r1   r   r   r   r      s4     - 0 0 r   r   c                       \ rS rSrSrS rSrg)
UpdateBeta?   r   c                 6    [         R                  R                  $ r   )r   r-   BETAr/   s    r   r   UpdateBeta.GetReleaseTrackC   s    !!!r   r1   N)r2   r3   r4   r5   r6   r   r9   r1   r   r   r;   r;   ?   s
    "r   r;   N)r6   
__future__r   r   r   (googlecloudsdk.api_lib.service_directoryr   googlecloudsdk.callioper   ,googlecloudsdk.command_lib.service_directoryr   r	   r
   googlecloudsdk.corer   r   ReleaseTracksr-   r.   UpdateCommandr   ALPHAr>   r;   r1   r   r   <module>rH      s    < &  ' ? ( > F = # D%%(() T   * > D%%++T->->-C-CD" " E"r   