ó
    €Ïã  ã                   ój   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKr " S S\R                  5      r	g)	z.Object representation format resource printer.é    )Úabsolute_import)Údivision)Úunicode_literals)Úresource_printer_baseNc                   ó6   ^ • \ rS rSrSrU 4S jrSS jrSrU =r$ )ÚObjectPrinteré   a  Prints the object representation of each item in a list.

Bypasses JSON-serialization and prints the object representation of each
resource.

Printer attributes:
  separator: The line printed between resources.
  terminator: The line printed after each resource.
c                 óÐ   >• [         [        U ]
  " USS0UD6  SU l        U R                  R                  S5      U l        U R                  R                  S5      U l        S U l        g )NÚ
by_columnsTÚ	separatorÚ
terminatorc                 ó   • U $ )N© )Úxs    Ú2lib/googlecloudsdk/core/resource/object_printer.pyÚ<lambda>Ú(ObjectPrinter.__init__.<locals>.<lambda>+   s   € ¡Qó    )	Úsuperr   Ú__init__Ú_first_recordÚ
attributesÚgetÚ
_separatorÚ_terminatorÚ_process_record)ÚselfÚargsÚkwargsÚ	__class__s      €r   r   ÚObjectPrinter.__init__&   sY   ø€ Ü	Œ-˜Ò'¨ÐI¸$ÐIÀ&ÒIØ€DÔØ—o‘o×)Ñ)¨+Ó6€D„OØ—‘×*Ñ*¨<Ó8€DÔÙ&€DÕr   c                 ól  • U R                   (       a  SU l         O9U(       a2  U R                  b%  U R                  R                  U R                  5        U R                  R	                  [
        R                  " U5      5        U R                  b&  U R                  R                  U R                  5        gg)zƒImmediately prints the given record using the object representation.

Args:
  record: An object.
  delimit: Display the separator.
FN)r   r   Ú_outÚPrintÚwriteÚsixÚ	text_typer   )r   ÚrecordÚdelimits      r   Ú
_AddRecordÚObjectPrinter._AddRecord-   su   € ð ××Ø €dÕÞ	T—_‘_Ñ0Ø
‡ii‡ood—o‘oÔ&Ø‡II‡OO”C—M’M &Ó)Ô*Ø×ÑÑ#Ø
‡ii‡ood×&Ñ&Õ'ð $r   )r   r   r   r   )F)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r*   Ú__static_attributes__Ú__classcell__)r    s   @r   r   r      s   ø† ñõ'÷(ò (r   r   )
r0   Ú
__future__r   r   r   Úgooglecloudsdk.core.resourcer   r&   ÚResourcePrinterr   r   r   r   Ú<module>r6      s,   ðñ  5å &Ý Ý 'å >ã 
ô(Ð)×9Ñ9õ (r   