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/trace/sinks/__pycache__/delete.cpython-312.pyc
�

���	���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	d
d�Z
Gd�d
ej�Ze
e_y)z'logging sinks delete' command.�)�absolute_import)�division)�unicode_literals)�util)�base)�log)�
console_ioa/
        Deletes a sink and halts the export of traces associated with that sink.
        Deleting a sink does not affect traces already exported through
        the deleted sink, and will not affect other sinks that are exporting
        the same traces.
    z#/

        $ {command} my-sink
    )�DESCRIPTION�EXAMPLESc�&�eZdZdZed��Zd�Zy)�DeletezDeletes a sink.c��|jdd��|jdd��|jjd�y)z Register flags for this command.�	sink_namezThe name of the sink to delete.)�helpz	--projectzSDelete a sink associated with this project. This will override the default project.N)�add_argument�display_info�AddCacheUpdater)�parsers �!lib/surface/trace/sinks/delete.py�ArgszDelete.Args-sI������*K��L�
����3��4����'�'��-�c��tjd|jzdd��tj|j|j
�}|j
�}tj�jjtj�j|���tj|�y)z�This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.
    zReally delete sink [%s]?TF)�cancel_on_no�default)�nameN)r	�PromptContinuerr�GetTraceSinkResource�project�RelativeName�	GetClient�projects_traceSinksr
�GetMessages�)CloudtraceProjectsTraceSinksDeleteRequestr�DeletedResource)�self�args�sink_ref�sink_resource_names    r�Runz
Delete.Run7s������"�T�^�^�3����
�(�(�������F�H�!�.�.�0���N�N��(�(�/�/�����D�D�#�	E�	%�&�����!rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr)�rrr
r
*s����.��.�"rr
N)r-�
__future__rrr�googlecloudsdk.api_lib.tracer�googlecloudsdk.callioper�googlecloudsdk.corer�googlecloudsdk.core.consoler	�
DETAILED_HELP�
DeleteCommandr
�
detailed_helpr/rr�<module>r8sM��&�&��'�-�(�#�2�	�	�
�
� !"�T�
�
�!"�H%��r