
    	                     2   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	  \R                  " \R                  R                  \R                  R                  \R                  R                  5      \R                   " S S\R                   5      5       5       rg	)
zDisable Identity-Aware Proxy.    )absolute_import)division)unicode_literals)base)utilc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Disable   zDisable 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                 n    [         R                  " U5        [        R                  R	                  U5        g)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ArgsDisable.Args6   s$     'MM""6*    c                 l    [         R                  " U R                  5       U5      nUR                  5       $ )zThis 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   RunDisable.RunA   s,     ''(9(9(;TBG??r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r   __static_attributes__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>r1      s~     $ &  ' ( ; T..33T5F5F5I5I .dll . .r   