
                             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 e	j                   G d	 d
e	j                               Zy)z#Remove Attestor public key command.    )absolute_import)division)unicode_literals)apis)	attestors)base)flagsc                   &    e Zd ZdZed        Zd Zy)RemovezRemove a public key from an Attestor.

  ## EXAMPLES

  To remove a public key from the Attestor `my_attestor`:

    $ {command} 0638AADD940361EA2D7F14C58C124F0E663DA097 \
        --attestor=my_attestor
  c                     t        j                  |t        j                  ddd             |j                  dd       y )NTFz9The attestor from which the public key should be removed.)required
positional
group_helppublic_key_idz#The ID of the public key to remove.)help)r	   AddConceptsGetAttestorPresentationSpecadd_argument)clsparsers     >lib/surface/container/binauthz/attestors/public_keys/remove.pyArgszRemove.Args'   sE    	))K		
 2  4    c                     t        j                  | j                               }t        j                  |      }|j
                  j                  j                         }|j                  ||j                         y )N)	pubkey_id)
r   GetApiVersionReleaseTrackr   ClientCONCEPTSattestorParse	RemoveKeyr   )selfargsapi_versionattestors_clientattestor_refs        r   Runz
Remove.Run6   s]    $$T%6%6%89K ''4==))//1L|t7I7IJr   N)__name__
__module____qualname____doc__classmethodr   r(    r   r   r   r      s!     4 4Kr   r   N)r,   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.binauthzr	   DefaultUniverseOnlyCommandr   r.   r   r   <module>r5      sG    * &  ' : ? ( ?  KT\\  K  Kr   