| 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/googlecloudsdk/calliope/__pycache__/ |
Upload File : |
�
���E � �L � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
dd lmZ dd
lm
Z
ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlZ G d� dej � � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )aH Resource display for all calliope commands.
The print_format string passed to resource_printer.Print() is determined in this
order:
(1) Display disabled and resources not consumed if user output is disabled.
(2) The explicit --format flag format string.
(3) The explicit Display() method.
(4) The DisplayInfo format from the parser.
(5) Otherwise no output but the resources are consumed.
Format expressions are left-to-right composable. Each format expression is a
string tuple
< NAME [ATTRIBUTE...] (PROJECTION...) >
where only one of the three elements need be present.
� )�absolute_import)�division)�unicode_literals)�display_taps)�
exceptions)�log)�module_util)�
properties)�cache_update_ops)�resource_lex)�resource_printer)�resource_projection_spec)�resource_property)�resource_reference)�resource_transform)�
peek_iterableNc � � e Zd ZdZdS )�ErrorzBase exception for this module.N��__name__�
__module__�__qualname__�__doc__� � �&lib/googlecloudsdk/calliope/display.pyr r 5 s � � � � � �'�'�'�'r r c � � e Zd ZdZdS )�CommandNeedsAddCacheUpdaterz(Command needs an AddCacheUpdater() call.Nr r r r r r 9 s � � � � � �0�0�0�0r r c � � e Zd ZdZdS )�"CommandShouldntHaveAddCacheUpdaterz4Command has an AddCacheUpdater() call and shouldn't.Nr r r r r r = s � � � � � �<�<�<�<r r c � � e Zd ZdZdZdd�Zd� Zd� Zd� Zd� Z d � Z
d
� Zd� Zd� Z
d
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )� Displayera� Implements the resource display method.
Dispatches the global flags args by constructing a format string and letting
resource_printer.Print() do the heavy lifting.
Attributes:
_args: The argparse.Namespace given to command.Run().
_command: The Command object that generated the resources to display.
_defaults: The resource format and filter default projection.
_format: The printer format string.
_info: The resource info or None if not registered.
_printer: The printer object.
_printer_is_initialized: True if self._printer has been initialized.
_resources: The resources to display, returned by command.Run().
_transform_uri: A transform function that returns the URI for a resource.
)�async�filter�limitNc �& � || _ d| _ || _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ || _
|s|� � � }|r[|j | _ t j | j |j |j �� � | _ |j | _ |j | _ |j | _ | j j � dt. j � � | _ || j j t/ j d� � <