
                         \    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 Zd	 Zy
)z7Flags for commands that deal with the Org Policies API.    )absolute_import)division)unicode_literals)base)
completers)common_argsc                 R    t        j                  ddd      j                  |        y )NidORG_POLICY_IDzThe Org Policy constraint name.metavarhelp)r   ArgumentAddToParser)parsers    Elib/googlecloudsdk/command_lib/resource_manager/org_policies_flags.pyAddIdArgToParserr      s     --
O,..9k&.A    c                     | j                  dd      }|j                  ddt        j                  d       |j                  dd	d
       t	        j
                  d      j                  |       y)am  Add flags for the resource ID and enable custom --project flag to be added by modifying the parser.

  Adds --organization, --folder, and --project flags to the parser. The flags
  are added as a required group with a mutex condition, which ensures that the
  user passes in exactly one of the flags.

  Args:
    parser: ArgumentInterceptor, An argparse parser.
  Tz9Resource that is associated with the organization policy.)requiredr   z--organizationORGANIZATION_IDzOrganization ID.)r   	completerr   z--folder	FOLDER_IDz
Folder ID.r   zProject ID.)help_text_to_overwriteN)add_mutually_exclusive_groupadd_argumentr   OrganizationCompleterr   ProjectArgumentr   )r   resource_groups     r   AddParentResourceFlagsToParserr        s~     66F 7 H. 00	  
 +L  :*,,7K,Gr   N)__doc__
__future__r   r   r   googlecloudsdk.callioper   +googlecloudsdk.command_lib.resource_managerr   $googlecloudsdk.command_lib.util.argsr   r   r     r   r   <module>r'      s(    > &  ' ( B <BHr   