| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/endpoints/operations/__pycache__/ |
Upload File : |
�
�� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ d Z G d
� dej
� � ZdS )
z&endpoints operations describe command.� )�absolute_import)�division)�unicode_literals)�
services_util)�base)�arg_parsers)�common_flagsi� c �. � e Zd ZdZed� � � Zd� ZdS )�Describea� Describes an operation resource for a given operation name.
This command will return information about an operation given the name
of that operation.
Note that the `operations/` prefix of the operation name is optional
and may be omitted.
## EXAMPLES
To describe an operation resource named
`operations/serviceConfigs.my-service.1`, run:
$ {command} serviceConfigs.my-service.1
c � � t j d�� � � | � � | j � d� � dS )z�Args is called by calliope to gather arguments for this command.
Args:
parser: An argparse parser that you can use to add arguments that go
on the command line after this command. Positional arguments are
allowed.
zto describe)�suffixzX:(metadata.startTime.date(format="%Y-%m-%d %H:%M:%S %Z", tz=LOCAL)) [transforms] defaultN)r �operation_flag�AddToParser�display_info� AddFormat)�parsers �,lib/surface/endpoints/operations/describe.py�Argsz
Describe.Args1 sP � � ��}�5�5�5�A�A�&�I�I�I�
��!�!� � � � � � � c � � t j � � }t j � � }t j |j � � }|� |�� � }|j � |� � }t j |d�� � S )z�Run 'endpoints operations describe'.
Args:
args: argparse.Namespace, The arguments that this command was invoked
with.
Returns:
The response from the operations.Get API call.
)�operationsIdT)�is_async)
r �GetMessagesModule�GetClientInstancer �GetOperationIdFromArg� operation�%ServicemanagementOperationsGetRequest�
operations�Get�GetProcessedOperationResult)�self�args�messages�client�operation_id�requestr s r �RunzDescribe.Run@ s � � �.�0�0�H�
�
,�
.�
.�F��4�T�^�D�D�L��<�<�!� =� $� $�G� �!�%�%�g�.�.�I� �4�Y��N�N�N�Nr N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r'