
    	                     2   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ	  ej                  ej                  j                  ej                  j                  ej                  j                        ej                   G d dej                                       Zy	)
zDisable Identity-Aware Proxy.    )absolute_import)division)unicode_literals)base)utilc                   .    e Zd ZdZddiZed        Zd Zy)DisablezDisable Cloud Identity-Aware Proxy (Cloud IAP) on an IAP resource.

  This command disables Cloud Identity-Aware Proxy on an IAP resource. Disabling
  IAP does not clear the OAuth 2.0 credentials.
  EXAMPLESa            To disable IAP on an App Engine application, run:

            $ {command} --resource-type=app-engine

          To disable IAP on a global backend service, run:

            $ {command} --resource-type=backend-services --service=SERVICE_ID

          To disable IAP on a region backend service, run:

            $ {command} --resource-type=backend-services --service=SERVICE_ID
              --region=REGION
  c                 l    t        j                  |       t        j                  j	                  |       y)zRegister flags for this command.

    Args:
      parser: An argparse.ArgumentParser-like object. It is mocked out in order
          to capture some information, but behaves like an ArgumentParser.
    N)iap_utilAddIapResourceArgsr   URI_FLAGRemoveFromParser)clsparsers     lib/surface/iap/web/disable.pyArgszDisable.Args6   s$     'MM""6*    c                 j    t        j                  | j                         |      }|j                         S )a  This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The specified function with its description and configured filter.
    )r   ParseIapResourceReleaseTrackr	   )selfargsiap_refs      r   RunzDisable.RunA   s,     ''(9(9(;TBG??r   N)__name__
__module____qualname____doc__detailed_helpclassmethodr   r    r   r   r	   r	      s1    
 -$ + +r   r	   N)r   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.iapr   r   ReleaseTracksr   ALPHABETAGADefaultUniverseOnlyCommandr	   r"   r   r   <module>r,      s     $ &  ' ( ; T..33T5F5F5I5I .dll . .r   