
                            d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	lmZ d
ZdZ e	j                   e	j"                  j$                  e	j"                  j&                         G d de	j(                               Zy)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                   0    e Zd ZdZeedZed        Zd Z	y)RemoveBgpPeerzRemove 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                    t        j                  | dd       | j                  d      }|j                  dt	        j
                         dd       |j                  dd	
       t        j                  j                  |        y )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ArgszRemoveBgpPeer.Args1   s    &&14 9949HO    "	 !    E !  	OO'    c                    t        j                  | j                               }|j                  j                  j                         }|j                  ||      }|j                  }|s8|j                  |      }t        j                  |j                         d       |S t        j                  j                  dj                  |j                         |j                               y )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   RunzRemoveBgpPeer.RunD   s    **4+<+<+>?N%%++-J"00TBM[[F00?h	

!
!
#-H oJJ.55##%}'9'9	
r   N)
__name__
__module____qualname____doc__r   r   detailed_helpstaticmethodr   r5    r   r   r   r   &   s*     #.8D-( ($r   r   N)r9   
__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   r<   r   r   <module>rF      s~    Q &  ' H / ( J # M  D%%++T->->-A-AB.D&& . C.r   