
                            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
rSr\	R                   " \	R"                  R$                  \	R"                  R&                  5       " S S\	R(                  5      5       rg)zJCommand to remove a BGP peer from a Distributed Cloud Edge Network router.    )absolute_import)division)unicode_literals)routers)arg_parsers)base)resource_args)logzFDelete a list of BGP peer from a Distributed Cloud Edge Network routerz    To delete a BGP peer 'peer1' from the Distributed Cloud Edge Network router 'my-router' in edge zone 'us-central1-edge-den1' , run:

        $ {command} my-router --peer-name=peer1 --location=us-central1 --zone=us-central1-edge-den1

   c                   8    \ rS rSrSr\\S.r\S 5       r	S r
Srg)RemoveBgpPeer&   zRemove a BGP peer from a Distributed Cloud Edge Network router.

*{command}* is used to delete a BGP peer from a Distributed Cloud
Edge
Network router.
)DESCRIPTIONEXAMPLESc                     [         R                  " U SS5        U R                  SS9nUR                  S[        R
                  " 5       SSS9  UR                  SS	S
9  [        R                  R                  U 5        g )Nzfrom which we delete a BGP peerT)requiredz--peer-names	PEER_NAMEz`The list of names for peers being removed.
        Only single value allowed currently.
        )typemetavarhelpz--peer-namez'The name of the BGP peer being removed.)r   )	r	   AddRouterResourceArgadd_mutually_exclusive_groupadd_argumentr   ArgListr   
ASYNC_FLAGAddToParser)parserbgp_peer_parsers     <lib/surface/edge_cloud/networking/routers/remove_bgp_peer.pyArgsRemoveBgpPeer.Args1   s    &&14 9949HO    "	 !    E !  	OO'    c                    [         R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  X15      nUR                  nU(       d6  UR                  U5      n[        R                  " UR                  5       SS9  U$ [        R                  R                  SR                  UR                  5       UR                  5      5        g )NzOperation was successful.)detailsz$Updating [{0}] with operation [{1}].)r   RoutersClientReleaseTrackCONCEPTSrouterParser   async_WaitForOperationr
   UpdatedResourceRelativeNamestatusPrintformatname)selfargsrouters_client
router_refupdate_req_opr)   responses          r   RunRemoveBgpPeer.RunD   s    **4+<+<+>?N%%++-J"00BM[[F00?h	

!
!
#-H oJJ.55##%}'9'9	
r!    N)__name__
__module____qualname____firstlineno____doc__r   r   detailed_helpstaticmethodr   r7   __static_attributes__r9   r!   r   r   r   &   s*     #.8D-( ($r!   r   N)r>   
__future__r   r   r   4googlecloudsdk.api_lib.edge_cloud.networking.routersr   googlecloudsdk.callioper   r   0googlecloudsdk.command_lib.edge_cloud.networkingr	   googlecloudsdk.corer
   r   r   ReleaseTracksr%   ALPHAGAUpdateCommandr   r9   r!   r   <module>rK      s|    Q &  ' H / ( J # M  D%%++T->->-A-AB.D&& . C.r!   