
    \                     ,   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)z7Command to turn on 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)EnableEnforcea  Turns on enforcement of boolean Organization Policy constraint.

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

  ## EXAMPLES

  The following command enables 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/enable_enforce.pyArgszEnableEnforce.Args+   s    	6"	((0    c                    t        j                  |      }t        j                         }|j	                  t        j
                  ||j                  t        j                  |j                        |j                  d                        S )NT)enforced)
constraintbooleanPolicy)
r   OrgPoliciesServicer   OrgPoliciesMessagesSetOrgPolicySetOrgPolicyRequest	OrgPolicyFormatConstraintidBooleanPolicy)selfargsservicemessagess       r   RunzEnableEnforce.Run0   s~    2248G//1H--'88A&44d4C  E	FG Gr   N)__name__
__module____qualname____doc__staticmethodr   r$    r   r   r   r      s!     1 1	G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%%((*GDLL G*Gr   