
    U	                         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
\	R                  5      rg)zCommand for deleting networks.    )absolute_import)division)unicode_literals)base_classes)utils)base)flagsc                   2    \ rS rSrSrSr\S 5       rS rSr	g)Delete   a  Delete Compute Engine networks.

*{command}* deletes one or more Compute Engine
networks. Networks can only be deleted when no other resources
(e.g., virtual machine instances) refer to them.

## EXAMPLES

To delete a network with the name 'network-name', run:

  $ {command} network-name

To delete two networks with the names 'network-name1' and 'network-name2',
run:

  $ {command} network-name1 network-name2

Nc                     [         R                  " SS9[        l        [        R                  R	                  U SS9  U R
                  R                  [         R                  5        g )NT)pluraldelete)operation_type)r	   NetworkArgumentr   NETWORK_ARGAddArgumentdisplay_infoAddCacheUpdaterNetworksCompleter)parsers    &lib/surface/compute/networks/delete.pyArgsDelete.Args2   sH    ..d;F
""6("C
''(?(?@    c                    [         R                  " U R                  5       5      nUR                  n[        R
                  R                  UUR                  [        R                  " U5      S9n[        R                  " U5        / nU HS  nUR                  UR                  R                  SUR                  R                   " S0 UR#                  5       D645        MU     UR%                  U5      $ )N)scope_listerr    )r   ComputeApiHolderReleaseTrackclientr   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListerr   PromptForDeletionappendapitools_clientnetworksmessagesComputeNetworksDeleteRequestAsDictMakeRequests)selfargsholderr!   network_refsrequestsnetwork_refs          r   Run
Delete.Run8   s    **4+<+<+>?F]]F%%77"88@ 8 BL
 
L)H#oov--66CC 3(//134 5 $
 x((r   r   )
__name__
__module____qualname____firstlineno____doc__r   staticmethodr   r4   __static_attributes__r   r   r   r   r      s'    & +A A
)r   r   N)r:   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer	   r$   +googlecloudsdk.command_lib.compute.networksDeleteCommandr   r   r   r   <module>rC      s4    % &  ' 7 0 ( E =-)T -)r   