| 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/secrets/__pycache__/ |
Upload File : |
�
��5 � �` � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ ddl
m
Z dd lmZ e j e j e j j � � G d
� de j � � � � � � Ze j e j e j j � � G d� d
e� � � � � � ZdS )zDelete a secret.� )�absolute_import)�division)�unicode_literals)�api)�base)�args)�log)�
console_ioc �2 � e Zd ZdZdZed� � � Zd� ZdS )�Deleteah Delete a secret.
Delete a secret and destroy all secret versions. This action is irreversible.
If the given secret does not exist, this command will succeed, but the
operation will be a no-op.
## EXAMPLES
Delete a secret `my-secret`:
$ {command} my-secret
Delete a secret `my-secret` using an etag:
$ {command} my-secret --etag=123
zsYou are about to destroy the secret [{secret}] and its [{num_versions}] version(s). This action cannot be reversed.c � � t j | ddd�� � t j | dd�� � t j | d�� � d S � Nz to deleteT)�purpose�
positional�requiredzto delete secretF)r �hidden�deleted)�action��secrets_args� AddSecret�AddLocation�
AddSecretEtag��parsers �lib/surface/secrets/delete.py�ArgszDelete.Args4 �\ � ������t�� � � � ��V�-?��N�N�N�N���v�i�8�8�8�8�8�8� c � � t j | � � � � � }t j |�� � }|j j � � � }t j |�� � � |d|j �� � }d}|D ]!}|j
|j j j
k r|dz
}�"| j � |� � � |�� � }t# j |dd� � � t j |�� � � ||j |j �
� � } t- j � � � |� � | S �N)�version)�api_versioni'