HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/stacks/__pycache__/deploy.cpython-312.pyc
�

�������dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZejejj�Gd
�dej ��Zy)
zICommand for creating or replacing an application from YAML specification.�)�absolute_import)�division)�print_function)�unicode_literals)�base)�flags)�run_apps_operations)�
exceptionsc�6�eZdZdZddd�Zed��Zd�Zd�Zy)	�Deployz;Create or replace an application from a YAML specification.z"          {description}
          zf          To create an application from specification

              $ {command} stack.yaml

         )�DESCRIPTION�EXAMPLESc�X�tj|�tj|�y)N)r�
AddFileArg�AddServiceAccountArg)�cls�parsers  �lib/surface/stacks/deploy.py�ArgszDeploy.Args,s��	���V��	���v�&�c�p�d|vrd|vrtjd��d|vrtjd��y)N�name�	resourcesz!'name' or 'resources' is missing.z/tztabs found in manifest content.)r
�FieldMismatchError�ConfigurationError)�self�file_contents  r�_ValidateAppConfigFilezDeploy._ValidateAppConfigFile1sB��
�\�!�k��&E��)�)�*M�N�N��|���)�)�*K�L�L�rc��|j}|j|�|j�}tj||�5}|j�|j
|�cddd�S#1swYyxYw)z'Create or Update application from YAML.N)�FILEr�ReleaseTrackr	�Connect�VerifyLocation�	ApplyYaml)r�argsr�
release_track�clients     r�Runz
Deploy.Run7sa���9�9�L�����-��%�%�'�M�	�	$�	$�T�=�	9�V�����
�
�
�l�
+�
:�	9�	9�s�!A/�/A8N)	�__name__�
__module__�__qualname__�__doc__�
detailed_help�classmethodrrr(�rrrrs5��C��
�	
�-��'��'�M�
,rrN)r,�
__future__rrrr�googlecloudsdk.callioper�+googlecloudsdk.command_lib.run.integrationsrr	�"googlecloudsdk.command_lib.runappsr
�
ReleaseTracksr!�ALPHA�Commandrr/rr�<module>r7s[��P�&��%�'�(�=�K�9�����D�%�%�+�+�,�$,�T�\�\�$,�-�$,r