
    t                     D   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
dZ e
j                  e
j                  j                   e
j                  j"                  e
j                  j$                         G d de
j&                               Zee_        y)zRCommand for removing pre-shared key from the MACsec configuration of interconnect.    )absolute_import)division)unicode_literals)base_classes)client)base)flagsz        *{command}* is used to remove pre-shared key from MACsec configuration of
        interconnect.

        For an example, refer to the *EXAMPLES* section below.
        z        To remove a pre-shared key from MACsec configuration, run:

          $ {command} example-interconnect --key-name=default-key
        )DESCRIPTIONEXAMPLESc                   0    e Zd ZdZdZed        Zd Zd Zy)	RemoveKeyzRemove pre-shared key from a Compute Engine interconnect MACsec configuration.

  *{command}* is used to remove pre-shared key from MACsec configuration of
  interconnect.
  Nc                     t        j                         | _        | j                  j                  |d       t        j                  |       y )Nupdate)operation_type)r	   InterconnectArgumentINTERCONNECT_ARGAddArgument%AddMacsecPreSharedKeyNameForRomoveKey)clsparsers     6lib/surface/compute/interconnects/macsec/remove_key.pyArgszRemoveKey.Args9   s:     557C$$VH$E	//7    c                      y)Nzcompute.interconnects )selfs    r   
CollectionzRemoveKey.Collection@   s    "r   c                    t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  ||j                        }|j                         j                  }|j                  }|D cg c]  }|j                  |j                  k7  s|  c}|_
        |j                  d d d d d d d d d d |      S c c}w )N)compute_client)descriptioninterconnect_typerequested_link_count	link_typeadmin_enablednoc_contact_emaillocationlabelslabel_fingerprintmacsec_enabledmacsec)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   InterconnectDescriber*   preSharedKeysnamekey_namePatch)r   argsholderrefinterconnectr*   keyskeys           r   RunzRemoveKey.RunC   s    **4+<+<+>?F



1
1$8H8H
IC&&s6==IL""$++FD+/M4C388t}}3LC4MF!    Ns   C4C)	__name__
__module____qualname____doc__r   classmethodr   r   r;   r   r   r   r   r   -   s+     8 8#r   r   N)r?   
__future__r   r   r   googlecloudsdk.api_lib.computer   ,googlecloudsdk.api_lib.compute.interconnectsr   googlecloudsdk.callioper   0googlecloudsdk.command_lib.compute.interconnectsr	   DETAILED_HELPReleaseTracksr,   ALPHABETAGAUpdateCommandr   detailed_helpr   r   r   <module>rM      s    Y &  ' 7 ? ( B		& T..33T5F5F5I5I'"" ''T (	 r   