HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/artifacts/sbom/__pycache__/export.cpython-312.pyc
�

���	���dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
ejejejj�Gd	�d
ej���Zy)z,Implements the command to export SBOM files.�)�absolute_import)�division)�unicode_literals)�base)�
endpoint_util)�flags)�	sbom_utilc�0�eZdZdZddd�Zed��Zd�Zy)�Exportz*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��|jjd�|jddd��tj�j|�y)z[Set up arguments for this command.

    Args:
      parser: An argparse.ArgumentPaser.
    �yamlz--uriTaThe 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�ArgszExport.Args)sP�����!�!�&�)�
�����
I�	�
�
�#�#�%�1�1�&�9�c��|j}tj|�5tj|�ddd�y#1swYyxYw)z�This 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�argsrs   r�Runz
Export.Run>s5���}�}�H�	�	!�	!�(�	+����4� �
,�	+�	+�s�A�A
N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrr!�rrrrs1��3�%���-��:��:�(	!rrN)r%�
__future__rrr�googlecloudsdk.callioper�$googlecloudsdk.command_lib.artifactsrrr	�DefaultUniverseOnly�
ReleaseTracks�ReleaseTrack�GA�Commandrr(rr�<module>r1se��3�&��'�(�>�6�:��������D�%�%�(�(�)�*!�T�\�\�*!�*��*!r