
    !
                        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  SS
KJr  \R                  " \R                   R"                  \R                   R$                  5       " S S\R&                  5      5       rg)z&Apply an Anthos configuration package.    )absolute_import)division)unicode_literals)base)anthoscli_backend)flags)common_args)log)
propertiesc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Apply   z6Apply configuration changes for Anthos infrastructure.EXAMPLESz
      To apply Anthos package to a Google Kubernetes Engine cluster in
      project `my-project`:

          $ {command} my-config --project=my-project
      c                     [         R                  " SS9R                  U 5        [        R                  " SS9R                  U 5        g )NzDirectory of package to apply.)help_overridezProject ID.)help_text_to_overwrite)r   GetLocalDirFlagAddToParserr	   ProjectArgument)parsers    lib/surface/anthos/apply.pyArgs
Apply.Args*   s8    	688CF8K,..9k&.A    c           
         [         R                  " 5       n[        R                  R                  R
                  R                  5       n[         R                  " [        R                  R                  R                  R                  5       SS9n[        R                  R                  SR                  UR                  U5      5        U" SUR                  UUR                  [         R                  " SS0S9US9nU R!                  U5      $ )Napply)account	operationz1Starting apply of package [{}] using project [{}]GCLOUD_AUTH_PLUGINtrue)
extra_vars)command	apply_dirprojectshow_exec_errorenvstdin)r   AnthosCliWrapperr   VALUEScorer$   GetGetAuthTokenr   r
   statusPrintformat	LOCAL_DIRr%   GetEnvArgsForCommand _DefaultOperationResponseHandler)selfargscommand_executorapply_project	auth_credresponses         r   Run	Apply.Run1   s    (99;%%**22668M!..!!&&..224IIJJ $$*F4>>=$IK*...(5040D0D$5$J$J0Df/M%O&/1H 00::r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r9   __static_attributes__r;   r   r   r   r      s1    >  
- B B;r   r   N)r@   
__future__r   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.anthosr   r   $googlecloudsdk.command_lib.util.argsr	   googlecloudsdk.corer
   r   ReleaseTracksReleaseTrackALPHABETABinaryBackedCommandr   r;   r   r   <module>rN      sn    - &  ' ) ? 3 < # * D%%++T->->-C-CD!;D$$ !; E!;r   