
                            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)zCCommand to an interface on a Distributed Cloud Edge Network router.    )absolute_import)division)unicode_literals)routers)arg_parsers)base)resource_args)logz?Remove an interface on a Distributed Cloud Edge Network router.z    To remove the interface 'my-int-r1' on Distributed Cloud Edge Network router 'my-router' in edge zone 'us-central1-edge-den1' , run:

        $ {command} my-router --interface-name=my-int-r1 --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)RemoveInterface%   zremove an interface on a Distributed Cloud Edge Network router.

*{command}* is used to remove an interface to 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 remove an interfaceT)requiredz--interface-namesINTERFACE_NAMEz/The list of names for interfaces being removed.)typemetavarhelpz--interface-namez(The name of the interface being removed.)r   )	r	   AddRouterResourceArgadd_mutually_exclusive_groupadd_argumentr   ArgListr   
ASYNC_FLAGAddToParser)parserinterface_parsers     =lib/surface/edge_cloud/networking/routers/remove_interface.pyArgsRemoveInterface.Args.   s    &&v'J'+- ::D:I!!  " >	 " @
 !!!K " MOO'    c                    [         R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  X15      n[        USS5      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 )Nasync_FzOperation was successful.)detailsz$Updating [{0}] with operation [{1}].)r   RoutersClientReleaseTrackCONCEPTSrouterParser   getattrWaitForOperationr
   UpdatedResourceRelativeNamestatusPrintformatname)selfargsrouters_client
router_refupdate_req_opr#   responses          r   RunRemoveInterface.Run=   s    **4+<+<+>?N%%++-J"22:DMT8U+F00?h	

!
!
#-HJoJJ;BB!=#5#57 8r!    N)__name__
__module____qualname____firstlineno____doc__r   r   detailed_helpstaticmethodr   r8   __static_attributes__r:   r!   r   r   r   %   s*    
 #.8D-( (8r!   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   r:   r!   r   <module>rL      sx    J &  ' H / ( J #! D%%++T->->-A-AB$8d(( $8 C$8r!   