
    c                     n   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 dd
lmZ ddlmZ ej$                   ej&                  ej(                  j*                  ej(                  j,                  ej(                  j.                         G d dej0                                      Zy)z1`gcloud dataplex entries remove-aspects` command.    )absolute_import)division)unicode_literals)entry)
exceptions)base)parser_arguments)parser_extensions)flags)resource_argsc                       e Zd ZdZddiZedej                  fd       Z e	j                  d      dej                  fd       Zy	)
RemoveAspectsz%Remove aspects from a Dataplex Entry.EXAMPLESaz  
          To remove all aspects of type `test-project.us-central1.some-aspect-type` from the entry, run:

            $ {command} entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --keys='test-project.us-central1.some-aspect-type@*'

          To remove all aspects on path `Schema.column1` from the entry, run:

            $ {command} entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --keys='*@Schema.column1'

          To remove exact aspects `test-project.us-central1.some-aspect-type@Schema.column1` and `test-project.us-central1.some-aspect-type2@Schema.column2` from the entry, run:

            $ {command} entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --keys=test-project.us-central1.some-aspect-type@Schema.column1,test-project.us-central2.some-aspect-type@Schema.column2

          parserc                 `    t        j                  |        t        j                  | d dd       y )NkeysT)update_aspects_nameremove_aspects_namerequired)r   AddEntryResourceArgr   AddAspectFlags)r   s    .lib/surface/dataplex/entries/remove_aspects.pyArgszRemoveAspects.Args7   s*    %%f-	 "	    z-Status code: {status_code}. {status_message}.argsc                 0    t        j                  |d      S )Nr   )remove_aspects_arg_name)	entry_apiUpdate)selfr   s     r   RunzRemoveAspects.RunB   s    
 D&AAr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr	   ArgumentInterceptorr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr
   	Namespacer!    r   r   r   r      sp    
 .  -$ #77   5445B'11 BBr   r   N)r%   
__future__r   r   r   googlecloudsdk.api_lib.dataplexr   r   googlecloudsdk.api_lib.utilr   r)   googlecloudsdk.callioper   r	   r
   #googlecloudsdk.command_lib.dataplexr   r   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHABETAGAUpdateCommandr   r,   r   r   <module>r9      s    8 &  ' > F ( 4 5 5 = T..33T5F5F5I5I%BD&& %B %Br   