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: //usr/lib/google-cloud-sdk/lib/surface/logging/scopes/__pycache__/delete.cpython-312.pyc
�

��	���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZejGd	�d
ej��Zy)z 'logging scopes delete' command.�)�absolute_import)�division)�unicode_literals)�util)�base)�log)�
console_ioc�&�eZdZdZed��Zd�Zy)�Deletez^Delete a log scope.

  ## EXAMPLES

  To delete a log scope, run:

    $ {command} my-scope
  c��|jdd��tj|dd��|jj	d�y)z Register flags for this command.�LOG_SCOPE_IDzID of the log scope to delete.)�helpzlog scope to deleteT��exclude_billing_accountN)�add_argumentr�
AddParentArgs�display_info�AddCacheUpdater)�parsers �$lib/surface/logging/scopes/delete.py�ArgszDelete.Args'sD������-M��N�����%�t�����'�'��-�c��tjd|jzd��tj�j
j
tj�jtjtjtj|d��dd�d|j����tj|j�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.
    zEReally delete log scope [%s]? (You can not recover it after deletion)T)�cancel_on_nor�	locations�global�	logScopes)�nameN)
r	�PromptContinuer
r�	GetClient�projects_locations_logScopesr�GetMessages�.LoggingProjectsLocationsLogScopesDeleteRequest�CreateResourceName�GetParentFromArgsr�DeletedResource)�self�argss  r�Runz
Delete.Run0s������O�
�
�
�	���	�N�N��1�1�8�8�����I�I��(�(��'�'��*�*�4��N����
��!�!��	J�
	
������)�)�*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