
                         \    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  SSK	J
r
  S rS	 rg
)z7Flags for commands that deal with the Org Policies API.    )absolute_import)division)unicode_literals)base)
completers)common_argsc                 N    [         R                  " SSSS9R                  U 5        g )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                     U R                  SSS9nUR                  SS[        R                  SS9  UR                  SS	S
S9  [        R
                  " SS9R                  U5        g)aa  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   