
    \	                     D   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	K
Jr  SS
KJr  \R                  " \R                   R"                  \R                   R$                  \R                   R&                  5       " S S\R(                  5      5       rg)z6List command for gcloud debug logpoints command group.    )absolute_import)division)unicode_literals)arg_parsers)base)flags)
taxonomies)util)
propertiesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Import   z>Export a file with serialized taxonomies to a certain project.zP
          Export a file with serialized taxonomies to a certain project.
      z
          To parse and import the taxonomies contained in '/tmp/taxonomies.json'
          to your project within location LOCATION:

            $ {command} "/tmp/taxonomies.json" --location="LOCATION"
      )DESCRIPTIONEXAMPLESc                 |    [         R                  " U S5        U R                  S[        R                  " 5       SSS9  g )Nz!Location to import taxonomies to.r	   
TAXONOMIESz9            File containing serialized taxonomy.
        )typemetavarhelp)r   AddLocationResourceArgadd_argumentr   YAMLFileContents)parsers    -lib/surface/data_catalog/taxonomies/import.pyArgsImport.Args/   s=    	  )LM
))+	      c                 0   [         R                  " U R                  5       5      n[        R                  R
                  R                  R                  5       Ul        [        R                  " UR                  U5      Ul        [        R                  " X5      $ )zRun the import command.)r   GetVersionLabelReleaseTrackr   VALUEScoreprojectGetproject_valr
   ProcessTaxonomiesFromYAMLr	   r   )selfargsversion_labels      r   Run
Import.Run:   sk    ))$*;*;*=>M!((--5599;D44T__5BDDOT11r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   __static_attributes__r,   r   r   r   r      s2     G

	
-  2r   r   N)r1   
__future__r   r   r   googlecloudsdk.callioper   r   'googlecloudsdk.command_lib.data_catalogr   2googlecloudsdk.command_lib.data_catalog.taxonomiesr	   r
   googlecloudsdk.corer   ReleaseTracksr    ALPHABETAGACommandr   r,   r   r   <module>r?      sz     = &  ' / ( 9 I C * D%%++T->->-C-C%%((* 2T\\  2* 2r   