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/dataflow/jobs/__pycache__/archive.cpython-312.pyc
�

���
��,�dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	l
mZejej j"ej j$�ej&Gd
�dej(���Zy)
z7Implementation of gcloud dataflow jobs archive command.�)�absolute_import)�division)�unicode_literals)�apis)�base)�	job_utils)�log)�
console_ioc�&�eZdZdZed��Zd�Zy)�Archivea1Archives a job.

  Archives a single job. The job must be in a terminal state, otherwise the
  request will be rejected.

  This command will require confirmation to run.

  ## EXAMPLES

  To archive job `2025-03-15_14_23_56-1234567890123456`, run:

    $ {command} 2025-03-15_14_23_56-1234567890123456
  c�.�tj|�y)N)r�
ArgsForJobRef)�parsers �$lib/surface/dataflow/jobs/archive.py�ArgszArchive.Args-s��
���F�#�c
��tj|�}|j}tjdj|�d��t
j�}|j|j|jj|jjjdd��g�����	�}|j|j|j|j|d
��}tjj!�j#|�}t$j&j)dj|��|S)
z�Runs the command.

    Args:
      args: The arguments that were provided to this command invocation.

    Returns:
      A Job message.
    zJob [{}] will be archived.T)�message�cancel_on_no�archived�true)�key�value)�additionalProperties)�userDisplayProperties)�jobMetadataz-job_metadata.user_display_properties.archived)�jobId�location�	projectId�job�
updateMaskzArchived job [{}].)r�
ExtractJobRefrr
�PromptContinue�formatr�GetMessagesModule�Job�JobMetadata�UserDisplayPropertiesValue�AdditionalProperty�*DataflowProjectsLocationsJobsUpdateRequestrr�Jobs�
GetService�Updater	�status�Print)�self�args�job_ref�job_id�messagesr �request�results        r�RunzArchive.Run1s.���%�%�d�+�G�
�]�]�F����,�3�3�F�;�$���%�%�'�H�
�,�,��(�(�"*�"6�"6�"Q�"Q��(�(�C�C�V�V�&�f�W��&�#R�#�)�
��
�C��A�A��m�m��!�!��#�#��B�B��G��Y�Y�
!�
!�
#�
*�
*�7�
3�F��J�J���)�0�0��8�9��MrN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr7�rrrrs ����$��$�'rrN)r;�
__future__rrr�googlecloudsdk.api_lib.dataflowr�googlecloudsdk.callioper�#googlecloudsdk.command_lib.dataflowr�googlecloudsdk.corer	�googlecloudsdk.core.consoler
�
ReleaseTracks�ReleaseTrack�GA�BETA�DefaultUniverseOnly�Commandrr=rr�<module>rJsw��>�&��'�0�(�9�#�2�����D�%�%�(�(�$�*;�*;�*@�*@�A����:�d�l�l�:��B�:r