
    `
                         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                  5       " S S	\R                  5      5       5       rg
)z:Command for cancelling a network peering deletion request.    )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)CancelRequestDelete   a  Cancel deletion request of a Compute Engine network peering.

*{command}* is used to cancel a request to delete a consensus network peering
connection between two networks.

## EXAMPLES
  To cancel a deletion request 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
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     >lib/surface/compute/networks/peerings/cancel_request_delete.py
ArgsCommonCancelRequestDelete.ArgsCommon,   sH    
%?@
	   	OO'    c                 &    U R                  U5        g )N)r   r   s     r   ArgsCancelRequestDelete.Args9   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      $ )zLIssues the request necessary for cancelling deletion request of the peering.)r   )network)networksCancelRequestRemovePeeringRequestprojectCancelRequestRemovePeering)r   ComputeApiHolderReleaseTrackclientmessages0ComputeNetworksCancelRequestRemovePeeringRequestr   )NetworksCancelRequestRemovePeeringRequestr   r   VALUEScorer    	GetOrFailMakeRequestsapitools_clientnetworks)selfargsholderr$   requests        r   RunCancelRequestDelete.Run=   s    **4+<+<+>?F]]FooNNOOEEYY F  !!&&..88: O G ''$!    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Commandr
   r4   r   r   <module>rD      sa    A &  ' 7 ( * D%%++,4$,, 4 - 4r   