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: //usr/lib/google-cloud-sdk/lib/surface/logging/views/__pycache__/describe.cpython-312.pyc
�

��*	���dZddlmZddlmZddlmZddlmZddlmZddlm	Z	dd	d
�Z
e	jGd�de	j��Z
e
e
_y
)z#'logging buckets describe' command.�)�absolute_import)�division)�unicode_literals)�util)�arg_parsers)�basez4
        Displays information about a log view.
    zr
     To describe a view in a project, run:

        $ {command} my-view --bucket=my-bucket --location=global
    )�DESCRIPTION�EXAMPLESc�&�eZdZdZed��Zd�Zy)�Describez!Display information about a view.c���|jdd��tj|d�tj|dd�|jddt	j
dd	�d
��y)
z Register flags for this command.�VIEW_IDzId of the view to describe.)�helpzview to describeTzLocation of the bucket.z--bucketz.+zmust be non-emptyzID of bucket)�required�typerN)�add_argumentr�
AddParentArgs�AddBucketLocationArgr�RegexpValidator)�parsers �%lib/surface/logging/views/describe.py�Argsz
Describe.Args)si�����	�(E��F����v�1�2����f�d�,E�F�
�����
�
(�
(��0C�
D�
�	��c�B�tj�jjtj�jtjtjtj|�d|j�d|j����S)z�This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The specified view
    �buckets�views)�name)
r�	GetClient� projects_locations_buckets_views�Get�GetMessages�.LoggingProjectsLocationsBucketsViewsGetRequest�CreateResourceName�GetBucketLocationFromArgs�bucketr)�self�argss  r�RunzDescribe.Run5s}���>�>��<�<�@�@�����I�I��(�(��'�'��2�2�4�8�)��K�K�!�")�4�<�<�9�	J�	:�;�;rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr(�rrrr%s��)��	��	�;rrN)r,�
__future__rrr�googlecloudsdk.api_lib.loggingr�googlecloudsdk.callioperr�
DETAILED_HELP�UniverseCompatible�DescribeCommandr�
detailed_helpr.rr�<module>r6s_��*�&��'�/�/�(���		�
����;�t�#�#�;��;�B'��r