
    6	                     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 update-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	)
UpdateAspectsz+Add or update aspects for a Dataplex Entry.EXAMPLESaA  
          To add or update aspects for the Dataplex entry `entry1` within the entry group `entry-group1` in location `us-central1` from the YAML/JSON file, run:

            $ {command} entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --aspects=path-to-a-file-with-aspects.json

          parserc                 `    t        j                  |        t        j                  | dd d       y )NaspectsT)update_aspects_nameremove_aspects_namerequired)r   AddEntryResourceArgr   AddAspectFlags)r   s    .lib/surface/dataplex/entries/update_aspects.pyArgszUpdateAspects.Args/   s*    %%f-	% 	    z-Status code: {status_code}. {status_message}.argsc                 0    t        j                  |d      S )Nr   )update_aspects_arg_name)	entry_apiUpdate)selfr   s     r   RunzUpdateAspects.Run:   s    
 D)DDr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr	   ArgumentInterceptorr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr
   	Namespacer!    r   r   r   r      sp    
 4  - #77   5445E'11 EE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ED&& E Er   