
    a
                         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
  \R                   " S S	\R                  5      5       rS
SS.\l        g)zACommand for removing a route policy from a Compute Engine router.    )absolute_import)division)unicode_literals)base_classes)base)flagsc                   2    \ rS rSrSrSr\S 5       rS rSr	g)RemoveRoutePolicy   z3Remove a route policy from a Compute Engine router.Nc                     [         R                  " 5       [        l        [        R                  R	                  USS9  UR                  SSSS9  g )Ndelete)operation_typez--policy-namez'Name of the route policy to be removed.T)helprequired)r   RouterArgumentr
   
ROUTER_ARGAddArgumentadd_argument)clsparsers     2lib/surface/compute/routers/remove_route_policy.pyArgsRemoveRoutePolicy.Args!   sI    #(#7#7#9   ,,VH,M
:      c                    [         R                  " U R                  5       5      nUR                  n[        R
                  R                  UUR                  [        R                  " U5      S9nUR                  R                  SUR                  R                  " S0 UR                  5       DSUR                  0D64nUR!                  U/5      S   $ )zIssues the request necessary for removing a route policy from a Router.

Args:
  args: contains arguments passed to the command.

Returns:
  The result of patching the router removing the route policy.
)scope_listerDeleteRoutePolicypolicyr    )r   ComputeApiHolderReleaseTrackclientr
   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListerapitools_clientroutersmessages&ComputeRoutersDeleteRoutePolicyRequestAsDictpolicy_nameMakeRequests)selfargsholderr"   
router_refrequests         r   RunRemoveRoutePolicy.Run+   s     **4+<+<+>?F]]F"--??"88@ @ J 	&&>> 	
!	
*.*:*:	
G y)!,,r   r   )
__name__
__module____qualname____firstlineno____doc__r   classmethodr   r3   __static_attributes__r   r   r   r
   r
      s!    ;* -r   r
   zE  *{command}* removes a route policy from a Compute Engine router.
  z       To remove a route policy `my-policy` from a router `my-router` in region `us-central1`, run:

              $ {command} my-router --region=us-central1 --policy-name=my-policy

          )DESCRIPTIONEXAMPLESN)r9   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r%   *googlecloudsdk.command_lib.compute.routersUniverseCompatibleDeleteCommandr
   detailed_helpr   r   r   <module>rF      s]     H &  ' 7 ( E < (-** (- (-V	
#  r   