
                             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  \R                  \R                  " \R                  R                  5      \R                   " S S\R                  5      5       5       5       rg	)
zOCommand for creating or updating application resources from YAML specification.    )base)deprecation_util)flags)run_apps_operations)
exceptionsc                   >    \ rS rSrSrSSS.r\S 5       rS rS r	S	r
g
)Deploy   zACreate or update application resources from a YAML specification.z"          {description}
          zm          To create application resources from specification

              $ {command} stack.yaml

         )DESCRIPTIONEXAMPLESc                 \    [         R                  " U5        [         R                  " U5        g )N)r   
AddFileArgAddServiceAccountArg)clsparsers     &lib/surface/run/integrations/deploy.pyArgsDeploy.Args-   s    	V	v&    c                     SU;  a  SU;  a  [         R                  " S5      eSU;   a  [         R                  " S5      eg )Nname	resourcesz!'name' or 'resources' is missing.z/tztabs found in manifest content.)r   FieldMismatchErrorConfigurationError)selffile_contents     r   _ValidateAppConfigFileDeploy._ValidateAppConfigFile2   sB    \!k&E))*MNN|))*KLL r   c                 T   [         R                  " 5         [         R                  " 5         UR                  nU R	                  U5        U R                  5       n[        R                  " X5       nUR                  5         UR                  U5      sSSS5        $ ! , (       d  f       g= f)z'Create or Update application from YAML.N)
r   CheckIfEndOfSaleAppliesDeprecationNoticeFILEr   ReleaseTrackr   ConnectVerifyLocation	ApplyYaml)r   argsr   release_trackclients        r   Run
Deploy.Run8   sw     ,,.&&(99L-%%'M		$	$T	9Vl+ 
:	9	9s   .!B
B' N)__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r   r*   __static_attributes__r,   r   r   r	   r	      s8     J- ' 'M,r   r	   N)r1   googlecloudsdk.callioper   +googlecloudsdk.command_lib.run.integrationsr   r   r   "googlecloudsdk.command_lib.runappsr   HiddenReleaseTracksr#   ALPHADefaultUniverseOnlyCommandr	   r,   r   r   <module>r=      sl    V ) H = K 9 D%%++,(,T\\ (,  - (,r   