
    	                     J   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SK	Jr  \R                  " \R                  R                  \R                  R                  \R                  R                   5      \R"                   " S	 S
\R$                  5      5       5       rg)z'Command to create an Essential Contact.    )absolute_import)division)unicode_literals)contacts)base)flags)utilc                   .    \ rS rSrSr\S 5       rS rSrg)Create   a  Create an essential contact.

## EXAMPLES

To create a contact in the current project, run:

      $ {command} --email=contact-email@example.com
      --notification-categories=technical,product-updates --language=en-US

To create a contact in the folder with id ``456'', run:

      $ {command} --email=contact-email@example.com
      --notification-categories=technical,product-updates --language=en-US
      --folder=456

To create a contact in the organization with id ``456'', run:

      $ {command} --email=contact-email@example.com
      --notification-categories=technical,product-updates --language=en-US
      --organization=456
c                     [         R                  " U SS9  [         R                  " U [        R                  " 5       SS9  [         R
                  " U SS9  [         R                  " U 5        g)zAdds command-specific args.T)requiredN)r   AddEmailArgAddNotificationCategoriesArgr   "GetContactNotificationCategoryEnumAddLanugageArgAddParentArgs)parsers    (lib/surface/essential_contacts/create.pyArgsCreate.Args5   sQ     
ft,	&&;;=N	$/	    c                     [         R                  " U5      n[         R                  " U[        R                  " 5       5      n[        R
                  " 5       nUR                  X!R                  X1R                  5      $ )zRuns the create command.)	r	   	GetParentGetNotificationCategoriesr   r   ContactsClientr   emaillanguage)selfargsparent_name
categoriesclients        r   Run
Create.Run>   sU    ..&K//h99;=J$$&F==jj*mmLLr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r$   __static_attributes__r&   r   r   r   r      s!    ,    Mr   r   N)r+   
__future__r   r   r   )googlecloudsdk.api_lib.essential_contactsr   googlecloudsdk.callioper   -googlecloudsdk.command_lib.essential_contactsr   r	   ReleaseTracksReleaseTrackALPHABETAGAUniverseCompatibleCreateCommandr   r&   r   r   <module>r9      s    . &  ' > ( ? > D%%++T->->-C-C%%((*&MT &M *&Mr   