| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/deploy/__pycache__/ |
Upload File : |
�
���
� �> � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl
mZ ddlmZ
ddlmZ dd lmZ dd
lmZ ddd
�Zd� Z ej ej j ej j ej j � � ej G d� dej � � � � � � ZdS )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..� )�absolute_import)�division)�unicode_literals)�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 � � t j | � � t j | d� � t j | � � dS )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 * sM � � ��f�����.�� ?�@� @� @� �&�v�.�.�.�.�.� c �h � e Zd ZdZeZed� � � Z ej e
j � � d� � � ZdS )�DeletezjDeletes Delivery Pipeline(s), Target(s), Custom Target Type(s), and Automation(s) in a yaml configuration.c �$ � t | � � d S )N)r r s r �ArgszDelete.ArgsA s � �������r c � � t t j |j � � � � }t j � � }|j j � � � }|� � � d }|�
|||j � � dS )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_refr"