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/deploy/__pycache__/apply.cpython-312.pyc
�

���	��Z�dZddlmZddlmZddlmZddlmZ	ddlm
Z
ddlmZddlm
Z
dd	d
�Zd�Zej ej"j$ej"j&ej"j(�ej*Gd�d
ej,���Zy)z�Applies a yaml configuration containing Delivery Pipeline(s), Target(s), Custom Target Type(s), and Automation(s) declarative definitions.�)�deploy)�
exceptions)�base)�flags)�
resource_args)�yamlz
{description}z{       To apply a Cloud Deploy YAML file `deploy.yaml`:

         $ {command} --file=deploy.yaml --region=us-central1

    )�DESCRIPTION�EXAMPLESc�X�tj|�tj|�y)z�Register flags for this command.

  Args:
    parser: An argparse.ArgumentParser-like object. It is mocked out in order to
      capture some information, but behaves like an ArgumentParser.
  N)r�
AddConfigFiler�AddLocationResourceArg��parsers �lib/surface/deploy/apply.py�_CommonArgsr's �����f���&�&�v�.�c�h�eZdZdZeZed��Zeje
j�d��Zy)�Applyz�Applies a yaml configuration containing Delivery Pipeline(s), Target(s), Custom Target Type(s), Deploy Policy(ies), and Automation(s) declarative definitions.c��t|�y)N)rrs r�Argsz
Apply.Args;s
����rc��ttj|j��}t	j
�}|jjj�}|j�d}|j||�y)z9This is what gets called when the user runs this command.�locationsIdN)�listr�
load_all_path�filer�DeployClient�CONCEPTS�region�Parse�AsDict�CreateResources)�self�args�loaded_yaml�
deploy_client�
region_refrs      r�Runz	Apply.Run?sf��
�t�)�)�$�)�)�4�5�K��'�'�)�M����%�%�+�+�-�J�
�
�
�
 ��
/�F��!�!�+�v�6rN)
�__name__�
__module__�__qualname__�__doc__�_DETAILED_HELP�
detailed_help�staticmethodr�gcloud_exception� CatchHTTPErrorRaiseHTTPException�deploy_exceptions�HTTP_ERROR_FORMATr'�rrrr2sJ��
g� �-�����5��4�4��)�)��7��7rrN)r+�"googlecloudsdk.api_lib.clouddeployr�googlecloudsdk.api_lib.utilrr/�googlecloudsdk.callioper�!googlecloudsdk.command_lib.deployr1rr�googlecloudsdk.corerr,r�
ReleaseTracks�ReleaseTrack�ALPHA�BETA�GA�DefaultUniverseOnly�
UpdateCommandrr3rr�<module>r@s���Q�6�F�(�M�3�;�$�	�	�	
��/����������T�.�.�3�3�T�5F�5F�5I�5I�����7�D���7���7r