
    
                        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  \R                  \R                  " \R                  R                   5       " S
 S\R"                  5      5       5       rg)z$Export an Artifact Registry version.    )absolute_import)division)unicode_literals)base)flags)requests)log)	resourcesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Export   zExport an Artifact Registry package version.

Export files of an Artifact Registry package version to a Google Cloud Storage
path.
z{description}a        To export version `1.0.0` of package `my-pkg` to a Google Cloud Storage path `gs://my-bucket/sub-folder` under the current project, repository, and location, run:

          $ {command} 1.0.0 --package=my-pkg --gcs-destination=gs://my-bucket/sub-folder
  )DESCRIPTIONEXAMPLESc                 p    [         R                  " 5       R                  U 5        U R                  SSSSS9  g)zHSet up arguments for this command.

Args:
  parser: An argparse.Parser.
z--gcs-destinationGCS_DESTINATIONTz4Google Cloud Storage path to export the artifact to.)metavarrequiredhelpN)r   GetRequiredVersionFlagAddToParseradd_argument)parsers    (lib/surface/artifacts/versions/export.pyArgsExport.Args.   s:     
  "..v6
!C	      c                    UR                   R                  R                  5       nUR                  R	                  S5      n[
        R                  " USU5      n[        R                  R                  UR                  SS9n[        R                  R                  SR                  UR                  5       UR                  UR                  5       5      5        g)zRun the export command.zgs://Nz.artifactregistry.projects.locations.operations)
collectionz@Export request issued from [{}] to [{}].
Created operation [{}].)CONCEPTSversionParsegcs_destinationremoveprefixr   ExportArtifactr
   REGISTRYParseRelativeNamenamer	   statusPrintformatRelativeName)selfargsversion_refr"   opop_refs         r   Run
Export.Run=   s    --''--/K **77@O		 	 dO	DB11
L 2 F JJK	$$&  !

r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r1   __static_attributes__r3   r   r   r   r      s1     %-  r   r   N)r8   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.artifactsr   r   googlecloudsdk.corer	   r
   UniverseCompatibleReleaseTracksReleaseTrackGACommandr   r3   r   r   <module>rE      sf    + &  ' ( 6 9 # ) D%%(()0T\\ 0 * 0r   