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

��	���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZejGd	�d
ej��Zy)z'logging sinks delete' command.�)�absolute_import)�division)�unicode_literals)�util)�base)�log)�
console_ioc�&�eZdZdZed��Zd�Zy)�DeleteaNDelete a sink.

  Delete a sink and halt the export of log entries associated with that sink.
  Deleting a sink does not affect log entries already exported through
  the deleted sink, and will not affect other sinks that are exporting
  the same log(s).

  ## EXAMPLES

  To delete a sync 'my-bq-sync':

    $ {command} my-bq-sink
  c��|jdd��tj|d�|jj	d�y)z Register flags for this command.�	sink_namezThe name of the sink to delete.)�helpzsink to deleteN)�add_argumentr�
AddParentArgs�display_info�AddCacheUpdater)�parsers �#lib/surface/logging/sinks/delete.py�ArgszDelete.Args,s=������*K��L����v�/�0�
���'�'��-�c��tj|j|�}tjtj|�d|j
�}t
jd|j
zd��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.
    �sinkszReally delete sink [%s]?T)�cancel_on_no)�sinkNameN)r�GetSinkReferencer
�CreateResourceName�GetParentFromArgs�sinksIdr	�PromptContinue�	GetClient�projects_sinksr�GetMessages�!LoggingProjectsSinksDeleteRequestr�DeletedResource)�self�args�sink_ref�
sink_resources    r�Runz
Delete.Run3s����$�$�T�^�^�T�:�H��+�+�D�,B�,B�4�,H�,3�X�5E�5E�G�M����8�8�;K�;K�K�+/�1�	�N�N��#�#�*�*�����<�<�"�	=�	$�%�����!rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr)�rrrrs ����.��.�"rrN)r-�
__future__rrr�googlecloudsdk.api_lib.loggingr�googlecloudsdk.callioper�googlecloudsdk.corer�googlecloudsdk.core.consoler	�UniverseCompatible�
DeleteCommandrr/rr�<module>r7sF�� &�&��'�/�(�#�2����'"�T�
�
�'"��'"r