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

*{command}* deletes a Compute Engine network peering.

## EXAMPLES

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

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

c                 F    U R                  SSS9  U R                  SSSS9  g )Nnamez"The name of the peering to delete.)helpz	--networkTzFThe name of the network in the current project containing the peering.)requiredr   )add_argument)parsers    /lib/surface/compute/networks/peerings/delete.pyArgsDelete.Args)   s6     %IJ
      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      $ )z6Issues the request necessary for deleting the peering.)r   )networknetworksRemovePeeringRequestprojectRemovePeering)r   ComputeApiHolderReleaseTrackclientmessages#ComputeNetworksRemovePeeringRequestr   NetworksRemovePeeringRequestr   r   VALUEScorer   	GetOrFailMakeRequestsapitools_clientnetworks)selfargsholderr   requests        r   Run
Delete.Run4   s    **4+<+<+>?F]]FooAAOO88dii8H!!&&..88:	 B <G !7!7!@!@!0'!;  < = =r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r+   __static_attributes__r-   r   r   r
   r
      s       =r   r
   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   googlecloudsdk.corer   DeleteCommandr
   r-   r   r   <module>r:      s.    - &  ' 7 ( *&=T &=r   