
    /                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r
  SSKJ	r	  SSKJr   " S	 S
\	R                  \
R                  5      rg)zCThe command to describe the status of the Identity Service Feature.    )absolute_import)division)unicode_literalsN)client)base)timesc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)	Describe   zPrints the status of all clusters with Identity Service installed.

Prints the status of the Identity Service Feature resource in a fleet.

## EXAMPLES

To describe the status of the Identity Service configuration, run:

  $ {command}

identityservicec                     g )N )clsparsers     8lib/surface/container/fleet/identity_service/describe.pyArgsDescribe.Args,   s        c                 t   U R                  5       n[        R                  R                  UR                  5      nUR                  5        H  u  pEU R                  US5        M     U R                  R                  U5      Ul        [        R                  R                  UR                  5      nUR                  5        H  u  pGU R                  US5        M     U R                  R                  U R                  R                  R                  U5      Ul	        UR                  nU R                  US5        SU0$ )Nz&identityservice.identityServiceOptionsz3identityservice.memberConfig.identityServiceOptionszIdentity Service Feature)
GetFeaturer   	HubClientToPyDictmembershipSpecsitemsFormatSessionDuration	hubclientToMembershipSpecsmembershipStates
ToProtoMapmessagesFeatureMembershipStatesValuefleetDefaultMemberConfig)	selfargsfeaturespecs_specstatesstatedefault_configs	            r   RunDescribe.Run0   s   ooG%%g&=&=>E;;=
  'OP !"nn>>uEG&&w'?'?@FLLN
  
F #  $~~8833V G 55N@ '00r   c                     [         R                  " U5      " U5      nUR                  bK  [        R                  " UR                  SS9R
                  n[        US-  5      n[        U5      S-   Ul        g g ! [         a     g f = f)Ns)default_suffix<   z mins)	operator
attrgettersessionDurationr   ParseDurationtotal_secondsintstrAttributeError)r$   configpathidentity_service_optionssession_duration_secssession_duration_minss         r   r   Describe.FormatSessionDurationH   s    !)!4!4T!:6!B	!	1	1	= % 3 3$44S!

- 	 !$$9"$< =%&0 	!0 
>  
s   A3A7 7
BBr   N)__name__
__module____qualname____firstlineno____doc__feature_nameclassmethodr   r-   r   __static_attributes__r   r   r   r
   r
      s*    
 #,	 	10r   r
   )rE   
__future__r   r   r   r3   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   calliope_base3googlecloudsdk.command_lib.container.fleet.featuresgooglecloudsdk.core.utilr   FeatureCommandListCommandr
   r   r   r   <module>rQ      s=    J &  '  9 9 D *7t""M$=$= 7r   