
    F	                     8   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"                  \	R                  R$                  5       " S	 S
\	R&                  5      5       rg)z'Update public delegated prefix command.    )absolute_import)division)unicode_literals)base_classes)public_delegated_prefixes)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)Update   a!  Updates a Compute Engine public delegated prefix.

## EXAMPLES

To announce a regional v2 public delegated prefix:

  $ {command} my-pdp --announce-prefix --region=us-central1

To withdraw a regional v2 public delegated prefix:

  $ {command} my-pdp --withdraw-prefix --region=us-central1
c                     [         R                  " 5       R                  U 5        U R                  SS9n[         R                  " U5        g )NT)required)r	   &MakeRegionalPublicDelegatedPrefixesArgAddArgumentadd_mutually_exclusive_groupAddUpdatePrefixArgs)parserannounce_withdraw_parsers     7lib/surface/compute/public_delegated_prefixes/update.pyArgsUpdate.Args-   sD    	002>>vF%BB  C   
67    c                    [         R                  " U R                  5       5      n[        R                  " UR
                  UR
                  R                  UR                  5      n[        R                  " 5       R                  UUR                  [        R                  " UR
                  5      S9nUR                  (       a  UR                  U5      $ UR                  (       a  UR!                  U5      $ g )N)scope_lister)r   ComputeApiHolderReleaseTrackr   PublicDelegatedPrefixesClientclientmessages	resourcesr	   r   ResolveAsResourcecompute_flagsGetDefaultScopeListerannounce_prefixAnnouncewithdraw_prefixWithdraw)selfargsholder
pdp_clientpdp_refs        r   Run
Update.Run5   s    **4+<+<+>?F*HHv}}--v/?/?J ::<NN"88G O G   ))  )) r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r-   __static_attributes__r/   r   r   r   r      s      8 8*r   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer	   r"   <googlecloudsdk.command_lib.compute.public_delegated_prefixesReleaseTracksr   ALPHABETAGAUpdateCommandr   r/   r   r   <module>rA      sy    . &  ' 7 D ( E N T..33T5F5F5I5I%*T %*%*r   