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: //lib/google-cloud-sdk/lib/surface/compute/instances/__pycache__/reset.cpython-312.pyc
�

������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
dd	d
d�ZGd�d
ej�Z
ee
_y)z"Command for resetting an instance.�)�absolute_import)�division)�unicode_literals)�base_classes)�base)�flags�!Reset a virtual machine instance.z�          *{command}* is used to perform a hard reset on a
        Compute Engine virtual machine.

        This will not perform a clean shutdown of the guest OS on the instance.
        zh        To reset an instance named ``test-instance'', run:

          $ {command} test-instance
        )�brief�DESCRIPTION�EXAMPLESc�&�eZdZdZed��Zd�Zy)�Resetr	c�B�tjj|�y)N)r�
INSTANCES_ARG�AddArgument)�parsers �&lib/surface/compute/instances/reset.py�Argsz
Reset.Args/s��	���#�#�F�+�c���tj|j��}|j}tj
j
||jt	j|���}g}|D]j}|jj|j�|j|j��}|j|jj d|f��l|j#|�S)N)�scope_lister)�instance�project�zoner)r�ComputeApiHolder�ReleaseTrack�clientrr�ResolveAsResource�	resources�GetInstanceZoneScopeLister�messages�ComputeInstancesResetRequest�Namerr�append�apitools_client�	instances�MakeRequests)�self�args�holderr�
instance_refs�request_list�instance_ref�requests        r�Runz	Reset.Run3s���
�
*�
*�4�+<�+<�+>�
?�F�
�]�]�F��'�'�9�9��f����5�5�f�=�:�?�M��L�%�����<�<��$�$�&��&�&�� � �=�"�g�
���6�1�1�;�;�W�g�N�O�
&����|�,�,rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr/�rrrr,s��)��,��,�-rrN)r3�
__future__rrr�googlecloudsdk.api_lib.computer�googlecloudsdk.callioper�,googlecloudsdk.command_lib.compute.instancesr�
DETAILED_HELP�
SilentCommandr�
detailed_helpr5rr�<module>r=sN�� )�&��'�7�(�>�1�	�	��
�$-�D���-�2$��r