
    
                     R   S r SSKJr  SSKJr  SSKJr  SSK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                  R$                  5       " S
 S\	R&                  5      5       5       rg)zExport data from a Cloud SQL instance to a BAK file.

Export data from a Cloud SQL instance to a Google Cloud Storage bucket as
a BAK backup file.
    )absolute_import)division)unicode_literalsN)api_util)base)export_util)flagsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	Bak!   zExport data from a Cloud SQL instance to a BAK file.

Export data from a Cloud SQL instance to a Google Cloud Storage
bucket as a BAK backup file. This is only supported for SQL Server.
EXAMPLESa            To export data from the database `my-database` in the Cloud SQL
          instance `my-instance` to a BAK file `my-bucket/my-export.bak`,
          run:

            $ {command} my-instance gs://my-bucket/my-export.bak --database=my-database
          c                 V   [         R                  " U SS[        R                  S9  [        R                  " U 5        [        R
                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go on
    the command line after this command. Positional arguments are allowed.
FT)gz_supporteddatabase_requireddatabase_help_textN)
r   AddBaseExportFlagsr	   (SQLSERVER_DATABASE_LIST_EXPORT_HELP_TEXTAddBakExportStripeCountArgumentAddBakExportStripedArgumentAddBakExportBakTypeArgument$AddBakExportDifferentialBaseArgument AddBakExportLogStartTimeArgumentAddBakExportLogEndTimeArgument)parsers    lib/surface/sql/export/bak.pyArgsBak.Args7   s{     "" II	K
 
))&1	%%f-	%%f-	..v6	**62	((0    c                 v    [         R                  " [         R                  5      n[        R                  " X5      $ )z2Runs the command to export the Cloud SQL instance.)r   	SqlClientAPI_VERSION_DEFAULTr   RunBakExportCommand)selfargsclients      r   RunBak.RunK   s)     < <=F**488r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r&   __static_attributes__r(   r   r   r   r   !   s=    
 
//  	- 1 1&9r   r   )r-   
__future__r   r   r   r.   googlecloudsdk.api_lib.sqlr   googlecloudsdk.callioper   googlecloudsdk.command_lib.sqlr   r	   DefaultUniverseOnlyReleaseTracksReleaseTrackGABETAALPHACommandr   r(   r   r   <module>r>      s    '  '  / ( 6 0 $++00$2C2C2I2I)9$,, )9 )9r   