| 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/builds/triggers/__pycache__/ |
Upload File : |
�
��
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ dd l
mZ dd
l
mZ G d� dej � � Zd
S )zDescribe trigger command.� )�absolute_import)�division)�unicode_literals)�cloudbuild_util)�base)�
resource_args)�concept_parsers)�
properties)� resourcesc �8 � e Zd ZdZddd�Zed� � � Zd� ZdS )�Describez+Get information about a particular trigger.z2Get information about the specified build trigger.zU
To describe a build trigger, run:
$ {command} MY-TRIGGER
)�DESCRIPTION�EXAMPLESc � � t j � dt j � � dd�� � � | � � d S )N�TRIGGERzBuild Trigger.T��required)r �
ConceptParser�ForResourcer �GetTriggerResourceSpec�AddToParser)�parsers �'lib/surface/builds/triggers/describe.py�Argsz
Describe.Args* sJ � ��!�-�-���,�.�.��� .� � � #�{�6�*�*�*�*�*� c �� � t j � � }t j j j � d�� � }t j j j � � � }|j p
|pt j }|j
}t j �
||||d�d�� � � � � }|j � |j � ||�� � � � S )z�Describes a build trigger..
Args:
args: an argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
Some value that we want to have printed later.
Tr )�
projectsId�locationsId�
triggersIdz&cloudbuild.projects.locations.triggers)�params�
collection)�name� triggerId)r �GetClientInstancer
�VALUES�core�project�Get�builds�region�DEFAULT_REGIONr r �REGISTRY�Parse�RelativeName�projects_locations_triggers�MESSAGES_MODULE�-CloudbuildProjectsLocationsTriggersGetRequest)�self�args�clientr'