
                            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)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                   0    e Zd ZdZeedZed        Zd Z	y)RemoveInterfacezremove 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                    t        j                  | dd       | j                  d      }|j                  dt	        j
                         dd       |j                  dd	
       t        j                  j                  |        y )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ArgszRemoveInterface.Args.   s    &&v'J'+- ::D:I!!  " >	 " @
 !!!K " MOO'    c                    t        j                  | j                               }|j                  j                  j                         }|j                  ||      }t        |dd      }|s8|j                  |      }t        j                  |j                         d       |S t        j                  j                  dj                  |j                         |j                               y )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   RunzRemoveInterface.Run=   s    **4+<+<+>?N%%++-J"22:tDMT8U+F00?h	

!
!
#-HJoJJ;BB!=#5#57 8r   N)
__name__
__module____qualname____doc__r   r   detailed_helpstaticmethodr   r6    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>rG      sz    J &  ' H / ( J #! D%%++T->->-A-AB$8d(( $8 C$8r   