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

��X����dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddl
mZddl
mZdd
l
mZddlmZej&Gd�dej(��Zy)z2Implementation of rb command for deleting buckets.�)�absolute_import)�division)�unicode_literals)�base)�errors_util)�flags)�name_expansion)�plurality_checkable_iterator)�storage_url)�
task_executor)�task_graph_executor)�task_status)�delete_task_iterator_factoryc�0�eZdZdZddd�Zed��Zd�Zy)�DeletezDeletes Cloud Storage buckets.z8
      Deletes one or more Cloud Storage buckets.
      z�

      Delete a Google Cloud Storage bucket named "my-bucket":

        $ {command} gs://my-bucket

      Delete two buckets:

        $ {command} gs://my-bucket gs://my-other-bucket
      )�DESCRIPTION�EXAMPLESc��|jddd��tj|�tj|�y)N�urls�+z,Specifies the URLs of the buckets to delete.)�nargs�help)�add_argumentr�add_additional_headers_flag�add_continue_on_error_flag)�parsers �%lib/surface/storage/buckets/delete.py�ArgszDelete.Args7s:��
����c� N��P�	�%�%�f�-�	�$�$�V�,�c	�Z�|jD]7}tj|�}tj|j
|��9tjj�}tjtj|jtjj��|��j�}t!j"|�}t%j&|d|t)j*t(j,j.d��|j0��|_y)N)�include_buckets)�task_status_queueT)�increment_type�
manifest_path)�parallelizabler"�progress_manager_args�continue_on_error)rr�storage_url_from_stringr�raise_error_if_not_bucket�command_pathr
�multiprocessing_context�Queuer�DeleteTaskIteratorFactoryr	�NameExpansionIterator�
BucketSetting�YES�bucket_iteratorr
�PluralityCheckableIteratorr�
execute_tasksr�ProgressManagerArgs�
IncrementType�INTEGERr'�	exit_code)�self�args�
url_string�urlr"r1�#plurality_checkable_bucket_iterators       r�Runz
Delete.Run>s����i�i�
��/�/�
�;�c��+�+�D�,=�,=�s�C� �,�C�C�I�I�K��2�L�L��,�,��I�I�~�'C�'C�'G�'G�	
�,�	�
�o���	%�?�?��	�(�#�0�0�+��+�)�=�=�&�4�4�<�<�� ��0�0�2�D�NrN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr=�rrrr!s/��&�
�	
�
�-�$�-��-�2rrN)rA�
__future__rrr�googlecloudsdk.callioper�"googlecloudsdk.command_lib.storagerrr	r
r�(googlecloudsdk.command_lib.storage.tasksrr
r�+googlecloudsdk.command_lib.storage.tasks.rmr�UniverseCompatible�CommandrrDrr�<module>rLsV��9�&��'�(�:�4�=�K�:�B�H�@�T����42�T�\�\�42��42r