
    	                        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  \	R                  " \	R                  R                   \	R                  R"                  5       " S
 S\	R$                  5      5       rg)z$Command to update fleet information.    )absolute_import)division)unicode_literals)client)util)base)	resources)	arg_utilsc                   .    \ rS rSrSr\S 5       rS rSrg)Update   a  Update a fleet namespace.

This command can fail for the following reasons:
* The project specified does not exist.
* The fleet namespace does not exist in the project.
* The caller does not have permission to access the project or namespace.

## EXAMPLES

To update the namespace `NAMESPACE` in the active project:

  $ {command} NAMESPACE

To update the namespace `NAMESPACE` in project `PROJECT_ID`:

  $ {command} NAMESPACE --project=PROJECT_ID
c                     UR                  S[        SS9  [        R                  " US[        R
                  U R                  5          SS9  g )NNAMEz$Name of the namespace to be updated.)typehelpz--scopez9Name of the fleet scope to create the fleet namespace in.)
scope_help)add_argumentstrr	   AddScopeResourceArgr   VERSION_MAPReleaseTrack)clsparsers     0lib/surface/container/fleet/namespaces/update.pyArgsUpdate.Args0   sL    
SE  G!!))+,N	    c                    / nS H,  nUR                  U5      (       d  M  UR                  U5        M.     S nUR                  R                  R	                  5       nUb  UR                  5       n[        R                  " USSS9n[        R                  " U R                  5       S9nUR                  UR                  XFSR                  U5      S9$ )N)scopez	--projectT)use_defaults)release_track,)mask)IsKnownAndSpecifiedappendCONCEPTSr   ParseRelativeNamer
   GetFromNamespacer   FleetClientr   UpdateNamespacer   join)selfargsr#   flagr   	scope_argprojectfleetclients           r   Run
Update.Run;   s    D		!	!$	'	'D  E##))+I$$&e(({NG$$43D3D3FGK&&		5 '  r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r3   __static_attributes__r5   r   r   r   r      s     $  r   r   N)r:   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   r   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.fleetr	   $googlecloudsdk.command_lib.util.apisr
   ReleaseTracksr   ALPHABETAUpdateCommandr   r5   r   r   <module>rF      si    + &  ' 9 7 ( @ : D%%++T->->-C-CD+T + E+r   