
    
                     >   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
  \R                  \R                  " \R                  R                  \R                  R                  \R                  R                   5       " S S	\R"                  5      5       5       rg
)z&Command for creating network peerings.    )absolute_import)division)unicode_literals)base_classes)base)
propertiesc                   >    \ rS rSrSr\S 5       r\S 5       rS rSr	g)RequestDelete   aG  Request deletion of a Compute Engine network peering.

*{command}* is used to request deletion of a consensus peering between virtual
  networks. The peering can be deleted if both sides request deletion.

## EXAMPLES
  To request deletion of a consensus peering with the name 'peering-name'
  between the network 'local-network' and the network 'peer-network', run:

      $ {command} peering-name --network=local-network

      $ {command} peering-name --network=peer-network

  To complete the deletion, run gcloud compute networks peerings delete
  for each side of the peering.
c                     UR                  SSS9  UR                  SSSS9  [        R                  R                  U5        g )NnamezThe name of the peering.)helpz	--networkTzFThe name of the network in the current project containing the peering.)requiredr   )add_argumentr   
ASYNC_FLAGAddToParserclsparsers     7lib/surface/compute/networks/peerings/request_delete.py
ArgsCommonRequestDelete.ArgsCommon0   sJ     %?@
	   	OO'    c                 &    U R                  U5        g )N)r   r   s     r   ArgsRequestDelete.Args@   s    NN6r   c                    [         R                  " U R                  5       5      nUR                  nUR                  R                  UR                  UR                  R                  UR                  S9[        R                  R                  R                  R                  5       S9nUR                  UR                  R                   SU4/5      $ )zDIssues the request necessary for requesting deletion of the peering.)r   )network#networksRequestRemovePeeringRequestprojectRequestRemovePeering)r   ComputeApiHolderReleaseTrackclientmessages*ComputeNetworksRequestRemovePeeringRequestr   #NetworksRequestRemovePeeringRequestr   r   VALUEScorer    	GetOrFailMakeRequestsapitools_clientnetworks)selfargsholderr$   requests        r   RunRequestDelete.RunD   s    **4+<+<+>?F]]FooHHOO??TYY?O!!&&..88: I G 

 
 
)
)+A7	KL r    N)
__name__
__module____qualname____firstlineno____doc__classmethodr   r   r2   __static_attributes__r4   r   r   r
   r
      s4    
" ( (  r   r
   N)r9   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksr#   ALPHABETAGACommandr
   r4   r   r   <module>rF      s    - &  ' 7 ( * T..33T5F5F5I5I5DLL 5 5r   