
    0	                     ~    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J	r
  SSKJr  Sr " S	 S
\
R                  5      rg)zV2 Revision specific printer.    )k8s_object_printer_util)container_printer)printer_util)volume_printer)custom_printer_base)revisionr   c                   ~    \ rS rSrSrS\R                  4S jr\S\R                  S\	R                  4S j5       rSrg)	RevisionPrinter   zPrints the Run v2 Revision in a custom human-readable format.

Format specific to Cloud Run revisions. Only available on Cloud Run
commands that print worker revisions.
recordc           	          [         R                  " [        R                  " USS9[        R
                  " UR                  5      SU R                  U5      [        R                  " U5      /5      nU$ )zATransform a revision into the output structure of marker classes.T)is_child_resource )	cpLinesr   BuildHeaderk8s_util	GetLabelslabelsTransformSpecFormatReadyMessage)selfr   fmts      Blib/googlecloudsdk/command_lib/run/printers/v2/revision_printer.py	TransformRevisionPrinter.Transform#   s]    
((  4@6==)6"''/ C J    returnc           	         SU R                   4/nUR                  S[        R                  " U R                  5      4S[        R
                  " U R                  5      4SU R                  (       a  SOS4S[        R                  " U R                  5      4/5        [        R                  " [        R                  " U R                  5      [        R                   " U5      /5      $ )NzService accountz
VPC accessCMEKzSession AffinityTrue Volumes)service_accountextendr   GetVpcNetwork
vpc_accessGetCMEKencryption_keysession_affinityr   
GetVolumesvolumesr   r   r   GetContainers
containersLabeled)r   r   s     r   r   RevisionPrinter.TransformSpec.   s     &"8"89:F
MM	|11&2C2CDE	%%f&;&;<=	v'>'>VBG	N--fnn=>  88		(	():):	;RZZ=OP r    N)__name__
__module____qualname____firstlineno____doc__r   Revisionr   staticmethodr   r   r   __static_attributes__r1   r   r   r
   r
      sE    	h// 	 H-- "((  r   r
   N)r6   'googlecloudsdk.command_lib.run.printersr   r   *googlecloudsdk.command_lib.run.printers.v2r   r   r   googlecloudsdk.core.resourcer   r   ;googlecloudsdk.generated_clients.gapic_clients.run_v2.typesr   REVISION_PRINTER_FORMATCustomPrinterBaser
   r1   r   r   <module>r@      s6    $ W H C E B P % b** r   