
                             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                  5       " S	 S
\	R                  5      5       rg)zCommand to create a new Lien.    )absolute_import)division)unicode_literals)error)liens)base)
propertiesc                   L    \ rS rSrSr\S 5       r\R                  S 5       r	Sr
g)Create   zCCreate a new lien.

Creates a new lien to be applied to a project.
c                     [         R                  " SSSS9R                  U 5        [         R                  " SSSS9R                  U 5        [         R                  " SSS	S9R                  U 5        g )
Nz--restrictionsTz3Comma separated list of IAM permissions to curtail.)requiredhelpz--reasonz=Human-readable description of why this lien is being applied.z--originFz/Origin of this lien. Defaults to user identity.)r   ArgumentAddToParser)parsers    ,lib/surface/resource_manager/liens/create.pyArgsCreate.Args"   sl    MMBD EPKEMML k&MM> k&    c           	         S[         R                  R                  R                  R	                  SS9-   nUR
                  nU(       d1  [         R                  R                  R                  R	                  SS9n[        R                  " 5       n[        R                  " 5       R                  UR                  UUR                  R                  S5      UUR                  S95      $ )Nz	projects/T)r   ,)parentrestrictionsoriginreason)r	   VALUEScoreprojectGetr   accountr   LiensMessagesLiensServicer   Lienr   splitr   )selfargsr   r   messagess        r   Run
Create.Run4   s    :,,1199==t=LLF [[F  %%--1141@f""$H&&**005;;	 	 	 ! !r    N)__name__
__module____qualname____firstlineno____doc__staticmethodr   r   EmitErrorDetailsr)   __static_attributes__r+   r   r   r   r      s5    
  " 	! !r   r   N)r0   
__future__r   r   r   'googlecloudsdk.api_lib.resource_managerr   r   googlecloudsdk.callioper   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHACreateCommandr   r+   r   r   <module>r<      sW    $ &  ' 9 9 ( * D%%++,(!T (! -(!r   