
    e                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ dd	lmZ  G d
 dej                        Zy)z6Command to describe service account identity bindings.    )absolute_import)division)unicode_literals)util)base)iam_util)log)
console_ioc                   &    e Zd ZdZed        Zd Zy)Deletez*Delete a service account identity binding.c                 z    | j                  ddd       | j                  ddt        j                         d       y )	N
binding_idz
BINDING-IDzThe ID of the identity binding.)metavarhelpz--service-accountTz.The service account with the identity binding.)requiredtyper   )add_argumentr   GetIamAccountFormatValidator)parsers    <lib/surface/iam/service_accounts/identity_bindings/delete.pyArgszDelete.Args   sH    
.  0 224=	  ?    c                    t        j                         \  }}|j                  t        j                  |j
                  |j                              }t        j                  dj                  |j                  |j
                        d       |j                  j                  |       t        j                  j                  dj                  |j                  |j
                               y )N)namezHYou are about to delete identity binding [{0}] on service account [{1}].T)messagecancel_on_noz7Deleted identity binding [{0}] on service account [{1}])r   GetClientAndMessages7IamProjectsServiceAccountsIdentityBindingsDeleteRequestr   %EmailAndIdentityBindingToResourceNameservice_accountr   r
   PromptContinueformat)projects_serviceAccounts_identityBindingsr   r	   statusPrint)selfargsclientmessagesreqs        r   Runz
Delete.Run+   s    002FH

J
J;;  $//3 K 4C 1E1EF
 44;;C@JJAHHOOT11	34r   N)__name__
__module____qualname____doc__staticmethodr   r+    r   r   r   r      s    2	? 	?4r   r   N)r/   
__future__r   r   r   googlecloudsdk.api_lib.iamr   googlecloudsdk.callioper   googlecloudsdk.command_lib.iamr   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DeleteCommandr   r1   r   r   <module>r9      s4    = &  ' + ( 3 # 24T 4r   