Ë
    €Ï	  ã                   óP   — 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„ Z	d„ Z
y	)
z?Utilities for defining Resource Settings arguments on a parser.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú
completers)Úcommon_argsc                 ó,   — | j                  ddd¬«       y)zsAdds argument for the settings name to the parser.

  Args:
    parser: ArgumentInterceptor, An argparse parser.
  Úsetting_nameÚSETTING_NAMEzŽName of the resource settings. The list of available settings can be fetched using the list command: 
 $ gcloud resource-manager settings list©ÚmetavarÚhelpN)Úadd_argument)Úparsers    úElib/googlecloudsdk/command_lib/resource_manager/settings/arguments.pyÚAddSettingsNameArgToParserr      s"   € ð 	×ÑØØð5ð	 õ ó    c                 óâ   — | j                  dd¬«      }|j                  ddt        j                  d¬«       |j                  dd	d
¬«       t	        j
                  d¬«      j                  |«       y)a7  Adds flags for the resource ID to 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.
  Tz7Resource that is associated with the resource settings.)Ú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_groupr   r   ÚOrganizationCompleterr   ÚProjectArgumentÚAddToParser)r   Úresource_groups     r   ÚAddResourceFlagsToParserr   +   s~   € ð ×6Ñ6ØØDð 7ó F€.ð ×ÑØØÜ×0Ñ0Øð	 ô ð
 ×ÑØ˜+¨Lð ô :ä×ÑØ*ô,ß,7©K¸Õ,Gr   N)Ú__doc__Ú
__future__r   r   r   Ú+googlecloudsdk.command_lib.resource_managerr   Ú$googlecloudsdk.command_lib.util.argsr   r   r   © r   r   Ú<module>r$      s%   ðñ Få &Ý Ý 'å BÝ <òó$Hr   