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__/delete.cpython-312.pyc
�

��p
��Z�dZddlmZddlmZddlmZddlmZ	ddlm
Z
ddlmZddlm
Z
dd	d
�Zd�Zej ej"j$ej"j&ej"j(�ej*Gd�d
ej,���Zy)z�Deletes(n >= 0) Delivery Pipeline(s), Target(s), Custom Target Type(s), Deploy Policy(ies), and Automation(s) with current project's Cloud Deploy service..�)�deploy)�
exceptions)�base)�flags)�
resource_args)�yamlz
{description}z�     To delete the resources in a Cloud Deploy YAML file `deploy.yaml`:

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

  )�DESCRIPTION�EXAMPLESc��tj|�tj|d�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.
  zYIf true, the delivery pipeline and its sub-resources (releases and rollouts) are deleted.N)r�
AddConfigFile�AddForcer�AddLocationResourceArg��parsers �lib/surface/deploy/delete.py�_CommonArgsr's7�����f���.�.��?�@��&�&�v�.�c�h�eZdZdZeZed��Zeje
j�d��Zy)�DeletezjDeletes Delivery Pipeline(s), Target(s), Custom Target Type(s), and Automation(s) in a yaml configuration.c��t|�y)N)rrs r�ArgszDelete.Args>s
����rc�$�ttj|j��}t	j
�}|jjj�}|j�d}|j|||j�y)z9This is what gets called when the user runs this command.�locationsIdN)�listr�
load_all_path�filer�DeployClient�CONCEPTS�region�Parse�AsDict�DeleteResources�force)�self�args�loaded_yaml�
deploy_client�
region_refrs      r�Runz
Delete.RunBsl��
�t�)�)�$�)�)�4�5�K��'�'�)�M����%�%�+�+�-�J�
�
�
�
 ��
/�F��!�!�+�v�t�z�z�BrN)
�__name__�
__module__�__qualname__�__doc__�_DETAILED_HELP�
detailed_help�staticmethodr�gcloud_exception� CatchHTTPErrorRaiseHTTPException�deploy_exceptions�HTTP_ERROR_FORMATr)�rrrr5sL��
s� �-�����5��4�4��)�)��C��CrrN)r-�"googlecloudsdk.api_lib.clouddeployr�googlecloudsdk.api_lib.utilrr1�googlecloudsdk.callioper�!googlecloudsdk.command_lib.deployr3rr�googlecloudsdk.corerr.r�
ReleaseTracks�ReleaseTrack�ALPHA�BETA�GA�DefaultUniverseOnly�
UpdateCommandrr5rr�<module>rBs���b�6�F�(�M�3�;�$�	�	�	
��/����������T�.�.�3�3�T�5F�5F�5I�5I�����C�T�
�
�C���Cr