
    
                     l   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S
KJr  SSS.r\R"                  \R$                  " \R&                  R(                  \R&                  R*                  \R&                  R,                  5       " S S\R.                  5      5       5       rg)z)Command for deleting cross site networks.    )absolute_import)division)unicode_literals)base_classes)utils)client)base)flags)
propertiesz        *{command}* is used to delete cross site networks.

        For an example, refer to the *EXAMPLES* section below.
        z        To delete a cross site network, run:

          $ {command} example-csn

        Although not shown in this example, you can delete multiple cross site
        networks in a single command.
        )DESCRIPTIONEXAMPLESc                   <    \ rS rSrSr\rSr\S 5       r	S r
S rSrg)Delete/   zdDelete Compute Engine cross site networks.

*{command}* deletes Compute Engine cross site networks.
Nc                 j    [         R                  " SS9U l        U R                  R                  USS9  g )NT)pluraldelete)operation_type)r
   CrossSiteNetworkArgumentCROSS_SITE_NETWORK_ARGAddArgument)clsparsers     ?lib/surface/compute/interconnects/cross_site_networks/delete.pyArgsDelete.Args>   s.    !&!?!?t!LC**6(*K    c                     g)Nzcompute.crossSiteNetworks )selfs    r   
CollectionDelete.CollectionC   s    &r   c                    [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  R                  R                  R                  5       n[        R                  " U5        / nU H@  n[        R                  " XdUR                  S9nUR                  UR!                  SS95        MB     UR                  R#                  U5      $ )N)projectcompute_clientT)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   VALUEScorer$   	GetOrFailr   PromptForDeletionr   CrossSiteNetworkextendr   MakeRequests)r    argsholderrefsr$   requestsrefcross_site_networks           r   Run
Delete.RunF   s    **4+<+<+>?F&&88?O?OPD$$,,668G	D!H!22
v}} oo

#
#$
#
?	  ==%%h//r   r   )__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpr   classmethodr   r!   r8   __static_attributes__r   r   r   r   r   /   s2    
 !-L L'0r   r   N)r>   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   @googlecloudsdk.api_lib.compute.interconnects.cross_site_networksr   googlecloudsdk.callioper	   Dgooglecloudsdk.command_lib.compute.interconnects.cross_site_networksr
   googlecloudsdk.corer   r?   UniverseCompatibleReleaseTracksr(   ALPHABETAGADeleteCommandr   r   r   r   <module>rO      s     0 &  ' 7 0 S ( V *
" T..33T5F5F5I5I"0T "0 "0r   