File: //usr/lib/google-cloud-sdk/lib/surface/scheduler/operations/__pycache__/describe.cpython-312.pyc
�
��� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ej G d � d
ej � � Zy)z/`gcloud scheduler operations describe` command.� )�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�util)� resourcesc �0 � e Zd ZdZddd�Zed� � Zd� Zy)�Describez'Show the latest status of an operation.z" {description}
z� To describe the latest status of an operation:
$ {command} projects/my-project/locations/us-central1/operations/my-operation
)�DESCRIPTION�EXAMPLESc �, � | j ddd�� y )Nz--namez�The full name of the Cloud Scheduler operation to describe. Format: projects/{project}/locations/{location}/operations/{operation}T)�help�required)�add_argument)�parsers �,lib/surface/scheduler/operations/describe.py�Argsz
Describe.Args) s# � �
����
N� � � � c �� � t | j � � j }t j j |j t j �� }|j |� S )N)�
collection)
r �ReleaseTrack�
operationsr �REGISTRY�Parse�namer �OPERATIONS_COLLECTION�Get)�self�args�operations_client�
operation_refs r �RunzDescribe.Run5 sZ � �%�d�&7�&7�&9�:�E�E���&�&�,�,�� � ��-�-� -� �M� � � ��/�/r N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr r# � r r r r s/ � �/��
� �-� � � � �0r r N)r'