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/compute/snapshots/__pycache__/describe.cpython-312.pyc
�

��z���dZddlmZddlmZddlmZddlmZddlmZddl	m
Zddl	mZ
ddlm
Z
d	�Zd
�Zd�Zej$ej&j(�ej*Gd�d
ej,���Zej$ej&j0�Gd�de��Zej$ej&j4�Gd�de��Zdddd�e_y)z!Command for describing snapshots.�)�absolute_import)�division)�unicode_literals)�base_classes)�base)�flags)�scopec��tj�t_tjj	|d��y)z Set Args based on Release Track.�describe��operation_typeN)r�MakeSnapshotArg�Describe�SnapshotArg�AddArgument��parsers �)lib/surface/compute/snapshots/describe.py�_GAArgsrs,���.�.�0�(��
���"�"�6�*�"�E�c��tj�t_tjj	|d��y�Nrr�r�#MakeSnapshotArgForRegionalSnapshotsrrrrs r�	_BetaArgsr"�,���B�B�D�(��
���"�"�6�*�"�Erc��tj�t_tjj	|d��yrrrs r�
_AlphaArgsr'rrc�.�eZdZdZed��Zd�Zdd�Zy)rz#Describe a Compute Engine snapshot.c��t|�y�N)rrs r�Argsz
Describe.Args1s	���F�Orc�$�|j|�Sr!��_Run��self�argss  r�RunzDescribe.Run5s���9�9�T�?�rc��tj|j��}|j}|j}t
jj||jtj|�tjj��}|r_|j�dk(rL|jdi|j!���}|j#|j$j&d|fg�dS|j(di|j!���}|j#|j$j*d|fg�dS)N)�scope_lister�
default_scopezcompute.regionSnapshots�Getr�)r�ComputeApiHolder�ReleaseTrack�client�messagesrr�ResolveAsResource�	resources�
compute_flags�GetDefaultScopeLister�
compute_scope�	ScopeEnum�GLOBAL�
Collection� ComputeRegionSnapshotsGetRequest�AsDict�MakeRequests�apitools_client�regionSnapshots�ComputeSnapshotsGetRequest�	snapshots)r'r(�support_region�holderr1r2�snapshot_ref�requests        rr%z
Describe._Run8s7��
�
*�
*�4�+<�+<�+>�
?�F�
�]�]�F����H��'�'�9�9�����"�8�8��@�#�-�-�4�4�	:��L�	��#�#�%�)B�B�:��9�9�����!��g��
 �
 ��"�"�2�2�E�7�C�
D��	���2�h�1�1�J�L�4G�4G�4I�J�G����
�
 �
 �
*�
*�E�7�	;�<���	�	rN)F)�__name__�
__module__�__qualname__�__doc__�staticmethodr"r)r%r.rrrr,s#��,������	rrc�"�eZdZed��Zd�Zy)�DescribeBetac��t|�yr!)rrs rr"zDescribeBeta.ArgsZs
��
�f�rc�(�|j|d��S�NT)rBr$r&s  rr)zDescribeBeta.Run^����9�9�����rN�rFrGrHrJr"r)r.rrrLrLWs������rrLc�"�eZdZed��Zd�Zy)�
DescribeAlphac��t|�yr!)rrs rr"zDescribeAlpha.Argshs
���v�rc�(�|j|d��SrOr$r&s  rr)zDescribeAlpha.RunlrPrNrQr.rrrSrSes������rrSz"Describe a Compute Engine snapshota�
    *{command}* displays all data associated with a Compute Engine snapshot
    in a project.

    Given an existing snapshot is queried, successful output of this command
    looks like the following:

    ```
    creationTimestamp: '2018-05-07T10:45:46.988-07:00'
    diskSizeGb: '500'
    id: '1234567891234567890'
    kind: compute#snapshot
    labelFingerprint: 12345abcdWW=
    name: zs9utdhb8r1x
    selfLink: https://www.googleapis.com/compute/v1/projects/test-project-name/global/snapshots/snapshot-number
    sourceDisk: https://www.googleapis.com/compute/v1/projects/test-project-name/zones/us-central1-c/disks/test
    sourceDiskId: '1234567891234567890'
    status: READY
    storageBytes: '0'
    storageBytesStatus: UP_TO_DATE
    ```
    a{

    To run `{command}`, you'll need the name of a snapshot. To list existing
    snapshots by name, run:

      $ {parent_command} list

    To display specific details of an existing Compute Engine snapshot (like
    its creation time, status, and storage details), run:

      $ {command} SNAPSHOT_NAME --format="table(creationTimestamp, status, storageBytesStatus)"
        )�brief�DESCRIPTION�EXAMPLESN)rI�
__future__rrr�googlecloudsdk.api_lib.computer�googlecloudsdk.callioper�"googlecloudsdk.command_lib.computerr5r	r7�,googlecloudsdk.command_lib.compute.snapshotsrrr�
ReleaseTracksr0�GA�UniverseCompatible�DescribeCommandr�BETArL�ALPHArS�
detailed_helpr.rr�<module>res���(�&��'�7�(�E�E�>�F�F�
F�
����D�%�%�(�(�)����&	�t�#�#�&	��*�&	�R����D�%�%�*�*�+�
�8�
�,�
�����D�%�%�+�+�,�
�H�
�-�
�2��.�3%��r