
    b                     ,   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 ddl	m
Z
 ddl	mZ  ej                  ej                  j                  ej                  j                   ej                  j"                         G d	 d
ej$                               Zy)z8Command to turn off enforcement of a boolean constraint.    )absolute_import)division)unicode_literals)org_policies)base)org_policies_base)org_policies_flagsc                   &    e Zd ZdZed        Zd Zy)DisableEnforcea  Turns off enforcement of boolean Organization Policy constraint.

  Turns off enforcement of a boolean Organization Policy constraint at
  the specified resource.

  ## EXAMPLES

  The following command disables enforcement of the Organization Policy boolean
  constraint `compute.disableSerialPortAccess` on project `foo-project`:

    $ {command} compute.disableSerialPortAccess --project=foo-project
  c                 X    t        j                  |        t        j                  |        y )N)flagsAddIdArgToParserAddParentResourceFlagsToParser)parsers    <lib/surface/resource_manager/org_policies/disable_enforce.pyArgszDisableEnforce.Args+   s    	6"	((0    c                    t        j                  |      }t        j                         }|j	                  t        j
                  ||j                  t        j                  |j                        |j                  d                        S )NF)enforced)
constraintbooleanPolicy)
r   OrgPoliciesServicer   OrgPoliciesMessagesSetOrgPolicySetOrgPolicyRequest	OrgPolicyFormatConstraintidBooleanPolicy)selfargsservicemessagess       r   RunzDisableEnforce.Run0   s~    2248G//1H--'88A&44e4D  F	GH Hr   N)__name__
__module____qualname____doc__staticmethodr   r$    r   r   r   r      s!     1 1	Hr   r   N)r(   
__future__r   r   r   'googlecloudsdk.api_lib.resource_managerr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.resource_managerr   r	   r   ReleaseTracksReleaseTrackALPHABETAGACommandr   r*   r   r   <module>r5      sy    ? &  ' @ ( I S D%%++T->->-C-C%%((*HT\\ H*Hr   