ó
    €Ïc  ã                   óÂ   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  SS	K	Jr  SS
KJr  S r\R                    " S S\R"                  5      5       rg)z.Command to delete notification configurations.é    )Úabsolute_import)Údivision)Úunicode_literals)Úbase)Ú#notification_configuration_iterator)Útask_executor)Útask_graph_executor)Útask_status)Ú&delete_notification_configuration_taskc              #   ó´   #   • [         R                  " U 5       H:  n[        R                  " UR                  UR
                  R                  5      v •  M<     g7f)z>Creates delete tasks from notification_configuration_iterator.N)r   Ú'get_notification_configuration_iteratorr   Ú#DeleteNotificationConfigurationTaskÚ
bucket_urlÚnotification_configurationÚid)ÚurlsÚ*notification_configuration_iterator_results     Ú3lib/surface/storage/buckets/notifications/delete.pyÚ0_delete_notification_configuration_task_iteratorr      sW   é € ô *ß.Ñ.ð/Ø/3ö5ð 1ô 2ß/Ñ/ð0à9×DÑDØ9ß*Ñ*¯2©2ó	/ô 0ò5ùs   ‚AAc                   ó8   • \ rS rSrSrSSS.r\S 5       rS rSr	g	)
ÚDeleteé)   z1Delete notification configurations from a bucket.aý  
      *{command}* deletes notification configurations from a bucket. If a
      notification configuration name is passed as a parameter, that
      configuration alone is deleted. If a bucket name is passed, all
      notification configurations associated with the bucket are deleted.

      Cloud Pub/Sub topics associated with this notification configuration
      are not deleted by this command. Those must be deleted separately,
      for example with the command "gcloud pubsub topics delete".
      a.  
      Delete a single notification configuration (with ID 3) in the
      bucket `example-bucket`:

        $ {command} projects/_/buckets/example-bucket/notificationConfigs/3

      Delete all notification configurations in the bucket `example-bucket`:

        $ {command} gs://example-bucket
      )ÚDESCRIPTIONÚEXAMPLESc                 ó&   • U R                  SSSS9  g )Nr   Ú+z6Specifies notification configuration names or buckets.)ÚnargsÚhelp)Úadd_argument)Úparsers    r   ÚArgsÚDelete.ArgsF   s   € à
×ÑØØØEð ò Gó    c           
      óê   • [         R                  R                  5       n[        R                  " [        UR                  5      SU[        R                  " [        R                  R                  S S9S9  g )NT)Úincrement_typeÚmanifest_path)ÚparallelizableÚtask_status_queueÚprogress_manager_args)r	   Úmultiprocessing_contextÚQueuer   Úexecute_tasksr   r   r
   ÚProgressManagerArgsÚIncrementTypeÚINTEGER)ÚselfÚargsr(   s      r   ÚRunÚ
Delete.RunM   sW   € Ü+×CÑC×IÑIÓKÐÜ×ÒÜ8¸¿¹ÓCØØ+Ü)×=Ò=Ü&×4Ñ4×<Ñ<Øñ ó	r#   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Údetailed_helpÚstaticmethodr!   r2   Ú__static_attributes__r4   r#   r   r   r   )   s1   † á9ð	
ð	
ñ€-ð2 ñGó ðGõ	r#   r   N)r9   Ú
__future__r   r   r   Úgooglecloudsdk.callioper   Ú"googlecloudsdk.command_lib.storager   Ú(googlecloudsdk.command_lib.storage.tasksr   r	   r
   Ú>googlecloudsdk.command_lib.storage.tasks.buckets.notificationsr   r   ÚUniverseCompatibleÚDeleteCommandr   r4   r#   r   Ú<module>rD      sQ   ðñ 5å &Ý Ý 'å (Ý RÝ BÝ HÝ @Ý qò	0ð ×Ñô,ˆT×Ñó ,ó ñ,r#   