
                         x    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Z	d Z
d	 Z	 	 dd
ZddZ	 	 ddZy)z-Flags module for Essential Contacts commands.    )absolute_import)division)unicode_literals)arg_parsers)	arg_utilsc                 4    | j                  dt        |       y)z-Adds an arg for the contact id to the parser.
CONTACT_ID)typehelpN)add_argumentstr)parser	help_texts     :lib/googlecloudsdk/command_lib/essential_contacts/flags.pyAddContactIdArgr      s    l9=    c                     | j                  d      }|j                  dd       |j                  dd       |j                  dd	       y
)z=Adds args for the parent resource of a contact to the parser.F)requiredz	--projectzproject number or id where contacts are set. If neither --project, --folder, nor --organization are provided then the config property [core/project] will be used as the resource.)r   z--folderzfolder number where contacts are set. If neither --project, --folder, nor --organization are provided then the config property [core/project] will be used as the resource.z--organizationzorganization number where contacts are set. If neither --project, --folder, nor --organization are provided then the config property [core/project] will be used as the resource.N)add_mutually_exclusive_groupr   )r   parent_groups     r   AddParentArgsr      sm    44e4D, @    y      r   c                 .    t        j                  d|       S )N--notification-categories)r   ChoiceEnumMapper)"notification_category_enum_messages    r   _NotificationCategoryEnumMapperr   /   s    		#	#$?$F
H Hr   c           	      ~    | j                  ddt        j                  t        |      j                        ||       y)zLAdds the arg for specifying a list of notification categories to the parser.r   NOTIFICATION_CATEGORIES)choices)metavarr
   r   r   N)r   r   ArgListr   r   )r   r   r   r   s       r   AddNotificationCategoriesArgr"   4   sC     	!'10229';   r   c                 ,    | j                  d||       y)z2Adds an arg for the contact's email to the parser.z--emailr   r   Nr   r   r   r   s      r   AddEmailArgr'   D   s    ii(Cr   c                 ,    | j                  d||       y)z?Adds an arg for the contact's preferred language to the parser.z
--languager$   Nr%   r&   s      r   AddLanugageArgr)   I   s     	lXFr   N)zid of contact)Fz9list of notification categories contact is subscribed to.)Fzemail address of contact.)FzGpreferred language of contact. Must be a valid ISO 639-1 language code.)__doc__
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.util.apisr   r   r   r   r"   r'   r)    r   r   <module>r/      sL    4 &  ' / :>
"H I	 D Gr   