
    )                     t   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  SSKJr  \	R                  " \	R                  R                   5       " S	 S
\	R"                  5      5       r\	R                  " \	R                  R&                  5       " S S\5      5       rSSSS.r\\l        \\l        g)z?`gcloud access-context-manager authorized-orgs update` command.    )absolute_import)division)unicode_literals)authorized_orgs)base)policies)repeatedc                   H    \ rS rSrSrSr\S 5       r\S 5       rS r	S r
Srg	)
UpdateAuthorizedOrgsDescsBase   z8Update an existing authorized organizations description.v1c                 .    [         R                  U 5        g Nr   ArgsVersionedparsers    <lib/surface/access_context_manager/authorized_orgs/update.pyArgs"UpdateAuthorizedOrgsDescsBase.Args!       !//7    c                 ^    [         R                  " U S5        [         R                  " U 5        g )Nz	to update)r   AddResourceArgAddAuthorizedOrgsDescUpdateArgsr   s    r   r   +UpdateAuthorizedOrgsDescsBase.ArgsVersioned%   s     ""6;733F;r   c                 P   [         R                  " U R                  S9nUR                  R                  R                  5       n[        R                  R                  UR                  U5      n[        R                  " X15        U R                  UU[        R                  " X5      S9$ )N)version)clientauthorized_orgs_desc_reforgs)authorized_orgs_apiClient_API_VERSIONCONCEPTSauthorized_orgs_descParser	   CachedResultFromFuncGetr   ValidateAccessPolicyArgPatchr   	ParseOrgs)selfargsr   r    results        r   Run!UpdateAuthorizedOrgsDescsBase.Run*   s     ''0A0ABF#}}AAGGI""++FJJ,DFF$$%=D::!9&&t4   r   c                      UR                  X#S9$ )N)r!   )r,   )r.   r   r    r!   s       r   r,   #UpdateAuthorizedOrgsDescsBase.Patch7   s    <<0<<<r    N)__name__
__module____qualname____firstlineno____doc__r$   staticmethodr   r   r1   r,   __static_attributes__r5   r   r   r   r      s:    @,8 8 < <=r   r   c                   0    \ rS rSrSrSrSr\S 5       rSr	g)UpdateAuthorizedOrgsDescsAlpha;   z)Update an existing authorized orgsd desc.Fv1alphac                 .    [         R                  U 5        g r   r   r   s    r   r   #UpdateAuthorizedOrgsDescsAlpha.ArgsA   r   r   r5   N)
r6   r7   r8   r9   r:   _INCLUDE_UNRESTRICTEDr$   r;   r   r<   r5   r   r   r>   r>   ;   s"    1,8 8r   r>   zNUpdate the organizations for an existing authorized organizations description.z=This command updates an authorized organizations description.zTo update the organizations for an authorized organizations description:

  $ {command} my-authorized-orgs --add-orgs="organizations/123,organizations/456" )briefDESCRIPTIONEXAMPLESN)r:   
__future__r   r   r   +googlecloudsdk.api_lib.accesscontextmanagerr   r"   googlecloudsdk.callioper   /googlecloudsdk.command_lib.accesscontextmanagerr   $googlecloudsdk.command_lib.util.argsr	   ReleaseTracksReleaseTrackGAUpdateCommandr   ALPHAr>   detailed_helpr5   r   r   <module>rR      s    F &  ' ^ ( K D 9 D%%(()=D$6$6 = *=< D%%++,8%B 8 -8	 
I	<
 /<  +/<  ,r   