File: //usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/__pycache__/display.cpython-312.pyc
�
��SF � �< � 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� dej0 � Z G d� de� Z G d� de� Z G d� de� Zy)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 ZdZy)�ErrorzBase exception for this module.N��__name__�
__module__�__qualname__�__doc__� � �&lib/googlecloudsdk/calliope/display.pyr r 5 s � �'r r c � � e Zd ZdZy)�CommandNeedsAddCacheUpdaterz(Command needs an AddCacheUpdater() call.Nr r r r r r 9 s � �0r r c � � e Zd ZdZy)�"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� Zy)� 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|j � }|r|j | _ t j | j |j |j �� | _ |j"