
                            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  \R                  " \R                  R                  \R                  R                   5       " S	 S
\R"                  5      5       rg)zExport a Looker instance.    )absolute_import)division)unicode_literals)	instances)base)flags)logc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Export   a  Export a Looker instance.

This command can fail for the following reasons:
      * The instance specified does not exist.
      * The active account does not have permission to access the given
        instance.
      * The Google Cloud Storage bucket does not exist.
EXAMPLESa            To export an instance with the name `my-looker-instance` in the default
          region, run:

            $ {command} my-looker-instance --target-gcs-uri='gs://bucketName/folderName'
            --kms-key='projects/my-project/locations/us-central1/keyRings/my-key-ring/cryptoKeys/my-key'

          Note that the kms-key flag should be the full name of the kms key.
      c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddExportInstanceArgs)parsers    &lib/surface/looker/instances/export.pyArgsExport.Args0   s     
'    c                    UR                   R                  R                  5       n[        R                  " X!U R                  5       5      n[        R                  R                  SR                  UR                  UR                  5      5        U$ )Nz@Export request issued for: [{}]
Check operation [{}] for status.)CONCEPTSinstanceParser   ExportInstanceReleaseTrackr	   statusPrintformatname)selfargsinstance_refops       r   Run
Export.Run5   sg    ==))//1L		!	!,d6G6G6I	JBJJ	++16$--+I Ir    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r#   __static_attributes__r%   r   r   r   r      s1       
 - ( (r   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.lookerr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.lookerr   googlecloudsdk.corer	   ReleaseTracksr   ALPHAGACommandr   r%   r   r   <module>r7      sd      &  ' 3 ( 3 # D%%++T->->-A-AB!T\\ ! C!r   