
    d	                         S 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,Implements the command to export SBOM files.    )base)endpoint_util)flags)	sbom_utilc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Export   z*Export SBOM files to Google Cloud Storage.z{description}a            To export an SBOM file for the Artifact Registry image with URI "us-west1-docker.pkg.dev/my-project/my-repository/busy-box@sha256:abcxyz":

          $ {command} --uri=us-west1-docker.pkg.dev/my-project/my-repository/busy-box@sha256:abcxyz
          )DESCRIPTIONEXAMPLESc                     U R                   R                  S5        U R                  SSSS9  [        R                  " 5       R                  U 5        g)zOSet up arguments for this command.

Args:
  parser: An argparse.ArgumentPaser.
yamlz--uriTa  The URI of the Artifact Registry image the SBOM is exported for. A 'gcr.io' image can also be used if redirection is enabled in Artifact Registry. Make sure 'artifactregistry.projectsettings.get' permission is granted to the current gcloud user to verify the redirection status.)requiredhelpN)display_info	AddFormatadd_argumentr   GetOptionalAALocationFlagAddToParser)parsers    $lib/surface/artifacts/sbom/export.pyArgsExport.Args&   sP     !!&)
I	  
 
##%11&9    c                     UR                   n[        R                  " U5         [        R                  " U5        SSS5        g! , (       d  f       g= f)zThis is what gets called when the user runs this command.

Args:
  args: An argparse namespace. All the arguments that were provided to this
    command invocation.
N)locationr   
WithRegionr   
ExportSbom)selfargsr   s      r   Run
Export.Run;   s5     }}H		!	!(	+4  
,	+	+s   A
A N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r    __static_attributes__r"   r   r   r   r      s1     3 %- : :(	!r   r   N)r'   googlecloudsdk.callioper   $googlecloudsdk.command_lib.artifactsr   r   r   DefaultUniverseOnlyReleaseTracksReleaseTrackGACommandr   r"   r   r   <module>r2      s\    3 ) > 6 : D%%(()*!T\\ *! * *!r   